DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_edt(D4sdi)


sdi_edt -- internal EDT device definition structure

Synopsis

   #include <sys/sdi.h>

Description

The sdi_edt structure is an internal SDI structure that defines an entry to the Equipped Device Table (EDT) and describes an SDI device or controller. The scsi_adr structure represents the SCSI address of the device.

Structure definition

The sdi_edt structure is defined as follows:
   struct sdi_edt {
       struct sdi_edt      *hash_p;
       short               hba_no;
       unsigned char       lun;
       struct owner        *owner_list;
       struct sdi_device   se_devicep;
       int                 pdtype;
       unsigned char       iotype;
       char                inquiry[INQ_LEN];
       struct scsi_adr     scsi_adr;
       unsigned long       memaddr;
       unsigned char       ctlorder;
       struct ident        edt_ident;
       ushort_t            *timeout;
       unsigned int        ha_chan_id;
       unsigned int        ex_iotype;
       struct pd_stamp     stamp;
   };

Structure members


hash_p
Pointer to next sdi_edt structure in the hash list.

hba_no
HBA path number. This member is retained for compatibility, although the information should be accessed through the scsi_adr(D4sdi) structure pointed to by the scsi_adr member.

lun
Logical unit number. This member is retained for compatibility, although the information should be accessed through the scsi_adr(D4sdi) structure pointed to by the scsi_adr member.

owner_list
Chain of owner(D4sdi) structures for this EDT entry. For DDI drivers prior to version 8, the major and minor numbers are derived from these owner structures.

se_devicep
Pointer to sdi_device(D4sdi) structure for this entry.

pdtype
SCSI peripheral ID type.

iotype
I/O capability such as DMA or PIO.

inquiry
The inquiry string returned from the SCSI inquiry command.

scsi_adr
Pointer to the scsi_adr(D4sdi) structure that describes the controller, target, LUN, and bus.

memaddr
ROM BIOS address used by the controller. Meaningful only for EDT entries that describe the controller.

ctlorder
Specifies the boot order of the controller, and is set if the HBA specified boot order in the hba_idata_v5(D4sdi) structure. Meaningful only for EDT entries that describe the controller.

edt_ident
Inquiry data structure returned by the device from the inquiry command.

timeout
Timeout values per command.

ha_chan_id
HBA channel ID.

ex_iotype
Extended I/O type.

stamp
Device stamp.

Usage

When sdi_register(D3sdi) is called, SDI allocates an sdi_edt structure for each SCSI device found during inquiries to the controller. The EDT entries represent all SDI devices that are configured in the system. The sdiconfig command uses the contents of the EDT to configure the system for kernel configuration, and the sdimkdev command uses the contents of the EDT to make the SDI device nodes.

Applicable hardware

All.

Version applicability

sdi: 2, 3, 4

Differences between versions

The se_devicep, timeout, ha_chan_id, ex_iotype, and stamp members should be used only with SDI 4 and later versions.

References

hba_idata_v5(D4sdi), owner(D4sdi), sdiconfig, sdimkdev, sdi_register(D3sdi).
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005