db21554_ctrl.h revision 00d0963faf2e861a4aef6b1bf28f99a5b2b20755
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_DB21554_CTRL_H
#define _SYS_DB21554_CTRL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* definitions for device state */
#define DB_SUSPENDED 0x00100000
#define DB_DEBUG_MODE_ON 0x01000000
#define DB_PCI_CONF_RNUMBER 0
#define DB_PCI_CONF_OFFSET 0
#define DB_CSR_MEMBAR_RNUMBER 1
#define DB_CSR_MEM_OFFSET 0
#define DB_CSR_IOBAR_RNUMBER 2
#define DB_CSR_IO_OFFSET 0
#define DB_PCI_WAIT_MS 0
#define DB_CONF_FAILURE -1
#define DB_PIF_SECONDARY_TO_HOST 0x80
#define DB_PIF_PRIMARY_TO_HOST 0x40
/*
* the following definition is used to save the state of all PCI children
* under us.
*/
typedef struct db_cfg_state {
/* the main control structure of our device */
typedef struct db_ctrl {
/* our bus range information */
/* any device tuning parameters here. */
/* for child initialization */
/* error holders */
#ifdef DEBUG
#endif
/* cpr related. */
/* all map handles below */
#define DB_SOFT_STATE_CLOSED 0x00
#define DB_SOFT_STATE_OPEN 0x01
#define DB_SOFT_STATE_OPEN_EXCL 0x02
int fm_cap;
typedef struct db_acc_cfg_addr {
typedef struct db_acc_pvt {
} db_acc_pvt_t;
/* We can use the following modes for generating indirect PCI transcations */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DB21554_CTRL_H */