scsi_xedt(D4I) scsi_xedt(D4I)
NAME
scsi_xedt - external EDT device definition structure
SYNOPSIS
#include <sys/sdi.h>
#include <sys/ddi.h>
DESCRIPTION
The scsi_xedt structure defines the external representation of
an entry to the extended Equipped Device Table (EDT) and
describes a PDI device or controller.
The xedt_cmaj and xedt_bmaj, represent the device character
and block major numbers.
The xedt_pdtype field identifies the SCSI target device type.
The xedt_ctl, xedt_bus, xedt_target, and xedt_lun, fields give
the hbano and SCSI device address for the EDT entry.
The device driver name is returned in xedt_drvname, and the
inquiry string is saved in the xedt_tcinquiry field.
The xedt_memaddr, xedt_ctlorder, and xedt_ha_id fields are
meaningful for EDT entries that describe the host adapter.
xedt_memaddr is the ROM BIOS address used by the controller.
xedt_ctlorder specifies the boot order of the controller, and
is set if the HBA specified boot order in the hba_idata.
xedt_ha_id specifies the host adaptor SCSI id.
xedt_ordinal is a field reserved for application use and not
used by the kernel.
xedt_minors_per is taken from the minors_per field in the
drv_majors structure as initialized by the target driver's
rinit(D2I) function.
xedt_first_minor is taken from the first_minor field in the
drv_majors structure as initialized by the target driver's
rinit function.
Copyright 1994 Novell, Inc. Page 1
scsi_xedt(D4I) scsi_xedt(D4I)
Return Values
None.
USAGE
When sdi_ioctl is called with the B_RXEDT function, SDI fills
in an scsi_xedt structure for all found SCSI target devices
for the configured host adapters. The B_EDT_CNT function of
sdi_ioctl is used to get the number of configured entries in
the EDT.
Structure Members
The scsi_xedt structure is defined as follows:
struct scsi_xedt {
major_t xedt_cmaj; /* target drv. character major number */
major_t xedt_bmaj; /* target drv. block major number */
ulong_t xedt_minors_per; /* number of minors for each unit */
uchar_t xedt_pdtype; /* target controller SCSI device type */
uchar_t xedt_lun; /* lun for this device */
ushort_t xedt_ctl; /* Host Adapter controller number */
ushort_t xedt_target; /* target number */
uchar_t xedt_bus; /* bus number */
char xedt_drvname[NAME_LEN]; /* target driver ASCII name */
uchar_t xedt_tcinquiry[INQ_EXLEN]; /* TC vendor and product name */
ulong_t xedt_memaddr; /* configured memory (ROM BIOS) addr */
/* for controller xedt_ctl. */
uchar_t xedt_ctlorder; /* Controller order (if specified) by */
/* controller xedt_ctl. */
ulong_t xedt_ordinal; /* ordinal numbering of all devices */
minor_t xedt_first_minor; /* the first minor for this device */
uchar_t xedt_ha_id; /* HBA target number */
uchar_t xedt_fill[7]; /* future expansion */
};
REFERENCES
drv_majors(D4I), owner(D4I), rinit(D2I) sdi(7), sdi_edt(D4I)
Copyright 1994 Novell, Inc. Page 2