sdi_edt(D4I) sdi_edt(D4I)
NAME
sdi_edt - internal EDT device definition structure
SYNOPSIS
#include <sys/sdi.h>
#include <sys/ddi.h>
DESCRIPTION
The sdi_edt is an internal SDI structure that defines an entry
to the Equipped Device Table (EDT) and describes a PDI device
or controller. The scsi_adr represents the SCSI address of
the device. The curdev field identifies the target driver
that currently owns the device. The device type returned from
the SCSI inquiry command is saved in devtype, and the inquiry
string is saved in the inquiry field. The memaddr and
ctlorder fields are meaningful for EDT entries that describe
the controller. The memaddr is the ROM BIOS address used by
the controller. The ctlorder specifies the boot order of the
controller, and is set if the HBA specified boot order in the
hba_idata. The edt_ident is the inquiry data structure
returned by the device from the inquiry command.
Return Values
None.
USAGE
When sdi_register is called, SDI allocates an sdi_edt
structure for each SCSI device found during inquiries to the
controller. The EDT entries represent all PDI devices that
are configured in the system. The pdiconfig(1M) command uses
the contents of the EDT to configure the system for kernel
configuration, and the pdimkdev(1M) command uses the contents
of the EDT to make the PDI device nodes.
Structure Members
The sdi_edt structure is defined as follows:
struct sdi_edt {
struct sdi_edt *hash_p; /* next sdi_edt in hash list */
short hba_no; /* HBA/path id */
unsigned char scsi_id; /* SCSI id */
unsigned char lun; /* logical unit number */
struct owner *curdrv; /* pointer to current owner */
struct owner *owner_list;/* chain of owners of this edt */
unsigned long res1; /* reserved */
int pdtype; /* SCSI physical device type */
Copyright 1994 Novell, Inc. Page 1
sdi_edt(D4I) sdi_edt(D4I)
unsigned char iotype; /* I/O capability such as DMA, PIO */
char inquiry[INQ_LEN]; /* INQUIRY string returned */
struct scsi_adr scsi_adr; /* SCSI ctl/target/lun/bus */
unsigned long memaddr; /* Controller memory (ROM BIOS) addr */
unsigned char ctlorder; /* Controller order (if specified by */
/* the HBA) */
struct ident edt_ident; /* INQUIRY Data structure */
};
REFERENCES
hba_idata(D4I), owner(D4I), pdiconfig(1M), pdimkdev(1M)
Copyright 1994 Novell, Inc. Page 2