scsi_xedt(D4sdi)
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 an SDI device or controller.
One such structure is defined for each Logical Unit Number.
Structure definition
The scsi_xedt structure is defined as follows:
struct scsi_xedt {
major_t xedt_cmaj;
major_t xedt_bmaj;
ulong_t xedt_minors_per;
uchar_t xedt_pdtype;
uchar_t xedt_lun;
ushort_t xedt_ctl;
ushort_t xedt_target;
uchar_t xedt_bus;
char xedt_drvname[NAME_LEN];
uchar_t xedt_tcinquiry[INQ_EXLEN];
ulong_t xedt_memaddr;
ulong_t xedt_ctlorder;
ulong_t xedt_ordinal;
minor_t xedt_first_minor;
uchar_t xedt_ha_id;
uchar_t xedt_fill[7];
rm_key_t xedt_rmkey;
struct pd_stamp xedt_stamp
};
Structure members
xedt_cmaj
and xedt_bmaj
-
For DDI versions prior to version 8,
the device character and block major numbers.
xedt_minors_per
-
For DDI versions prior to version 8,
taken from the
minors_per
member in the
drv_majors(D4sdi)
structure as initialized by the target driver's
rinit(D2sdi)
entry point routine.
Undefined for DDI 8.
xedt_pdtype
-
Identifies the SCSI target device type.
xedt_ctl
, xedt_bus
, xedt_target
, and xedt_lun
-
Give the hbano
and SCSI device address for the EDT entry.
xedt_drvname
-
Target driver's ASCII name is returned here.
xedt_tcinquiry
-
Target controller's vendor and product name
is saved here.
xedt_memaddr
-
ROM BIOS address used by the controller.
Meaningful only for EDT
entries that describe the host adapter.
xedt_ctlorder
-
Controller order if the HBA specified
boot order in the
hba_idata_v5(D4sdi)
structure.
Meaningful only for EDT
entries that describe the host adapter.
xedt_ordinal
-
Reserved for application use and not used by the kernel.
xedt_first_minor
-
For DDI versions prior to version 8,
taken from the
first_minor
member
in the
drv_majors(D4sdi)
structure as initialized by the target driver's
rinit( )
entry point routine.
Undefined for DDI 8.
xedt_ha_id
-
Speciries the host adaptor SCSI ID.
Meaningful only for EDT
entries that describe the host adapter.
fill
-
Reserved for future expansion.
rmkey
-
Resource manager key, if any. See
``Resource manager database'' in HDK Technical Reference.
xedt_stamp
-
Used to map the serial member of the
pdinfo structure into a simulated 64-bit quantity.
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.
Applicable hardware
All.
Version applicability
sdi: 2, 3, 4
Differences between versions
The xedt_ctlorder
, xedt_rmkey
,
and xedt_stamp
members
are used only for SDI version 4 and later drivers.
SDI versions prior to version 3
use the
sdi_edt(D4sdi)
structure instead.
References
drv_majors(D4sdi),
owner(D4sdi),
rinit(D2sdi)
sdi,
sdi_edt(D4sdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005