scsi_edt(D4I) scsi_edt(D4I)
NAME
scsi_edt - external EDT device definition structure
SYNOPSIS
#include <sys/sdi.h>
#include <sys/ddi.h>
DESCRIPTION
The scsi_edt structure defines the external representation of
an entry to the Equipped Device Table (EDT) and describes a
PDI device or controller. The c_maj and b_maj fields
represent the device character and block major numbers. The
pdtype field identifies the SCSI target device type. The
tc_equip field is set to one if the target is equipped. The
ha_slot field is set to the hbano of the controller for this
device. The n_lus contains a count of the number of LUs
equipped, and lu_id is an array that has a one set for the LUs
that are equipped. The device driver name is returned in
drv_name, and the inquiry string is saved in the tc_inquiry
field.
Return Values
None.
USAGE
When the B_REDT ioctl (see sdi(7)) is invoked, SDI fills in a
scsi_edt structure for all SCSI target devices on each
configured host adapter. When the B_HA_CNT ioctl is invoked,
SDI uses this information to compute the number of configured
host adapters in the system.
Structure Members
The scsi_edt structure is defined as follows:
struct scsi_edt {
short c_maj; /* Target drv. character major number */
short b_maj; /* Target drv. block major number */
uchar_t pdtype; /* Target controller SCSI device type */
uchar_t tc_equip; /* one if TC is equipped */
uchar_t ha_slot; /* Host Adaptor controller slot number*/
uchar_t n_lus; /* number of equipped LUS on TC */
uchar_t lu_id[MAX_LUS]; /* one if LU is equipped */
char drv_name[NAME_LEN]; /* target driver ASCII name */
uchar_t tc_inquiry[INQ_LEN]; /* TC vendor and product name */
};
Copyright 1994 Novell, Inc. Page 1
scsi_edt(D4I) scsi_edt(D4I)
REFERENCES
sdi(7)
Copyright 1994 Novell, Inc. Page 2