Specifications
D
evice Driver Programming
9-10
/*
* Used by drivers
*/
device_t *devices; /* List of devices on this adapter */
long adapter_state;/* Adapter has been probed,etc */
char *add_info1; /* Pointers to device specific info */
char *add_info2;
char *add_info3;
char *add_info4;
char *add_info5;
char *add_info6;
char *add_info7;
char *add_info8;
} adapter_t;
The fields in the adapter structure are defined as follows:
adapter_name The internal name of the adapter.
adapter_type A unique code that is assigned to the adapter. Codes are
defined in adapter.h.
ADAPTER_HSA SCSI Adapter or VIA
ADAPTER_EGL Eagle Ethernet Controller
ADAPTER_PG Peregrine VMEbus FDDI Control-
ler
ADAPTER_HPS SYSTECH High Performance
Serial Adapter
adapter_no The logical adapter number
bus Identifies the type of bus to which the adapter is physically
attached. Bus types are defined in bus.h as follows:
Use the BUS_TYPE( ) macro to determine the type of bus.
BUS_TYPE_ HVME HVME bus
BUS_TYPE_VME VMEbus
BUS_TYPE_PCI PCI bus
Use the BUS_INSTANCE macro to determine the # of the
bus.
itype Identifies the interrupt processing method for the adapter.
Interrupt processing methods are defined in adapter.h
as follows:
ITYPE_NONE None
ITYPE_INTR Hardware interrupt
ITYPE_DAEMON Serviced by a kernel daemon