Index Index for
Section 9
Index Alphabetical
listing for D
Bottom of page Bottom of
page

DEV_DESC(9s)

NAME

DEV_DESC - SCSI/CAM: Defines the device descriptor structure

SYNOPSIS

typedef struct dev_desc { u_char dd_pv_name[IDSTRING_SIZE]; u_char dd_length; u_char dd_dev_name[DEV_NAME_SIZE]; U32 dd_device_type; struct pt_info *dd_def_partition; U32 dd_block_size; U32 dd_max_record; DENSITY_TBL *dd_density_tbl; MODESEL_TBL *dd_modesel_tbl; U32 dd_flags; U32 dd_scsi_optcmds; U32 dd_ready_time; u_short dd_que_depth; u_char dd_valid; u_char dd_inq_len; u_char dd_req_sense_len; U32 dd_ref_count; U32 dd_attribute_cnt; DEV_ATTRIBUTE *dd_attributes; struct dev_desc *dd_forw; struct dev_desc *dd_back; char dd_vid[DDR_VID_LENGTH]; char dd_pid[DDR_PID_LENGTH]; char dd_rev[DDR_REV_LENGTH]; simple_lock_data_t dd_desc_lk; } DEV_DESC;

MEMBERS

dd_pv_name Contains the product ID and vendor string from inquiry data. dd_length Contains the length of the dd_pv_name string. dd_dev_name Contains the device name string. dd_device_type Bits 0 - 23 contain one of the following device classes: _______________________________________ Class Description _______________________________________ SZ_HARD_DISK Hard disk (Winchester) SZ_CDROM Hard disk (Winchester) SZ_FLOP_3 3.5" diskette SZ_FLOP_5 5.25" diskette SZ_RAID RAID target controller SZ_TK_CLASS TK50, TK30 class tapes SZ_RDAT_CLASS RDAT tlz04 class tapes SZ_9TRK_CLASS 9-track tapes SZ_QIC_CLASS Qic tapes (tzk10) SZ_8MM_CLASS 8-millimeter (exabytes) SZ_3480_CLASS 3480 cartridge class SZ_LOADER _______________________________________ Bits 24 - 31 contain the SCSI device type. The CAM_EDT_ENTRY structure lists the device types. dd_def_partition Contains the default partition sizes, disks only. dd_block_size Contains the block or sector size. dd_max_record Contains the maximum transfer size in bytes allowed for the device. dd_density_tbl Contains a pointer to the density table, tapes only. dd_modesel_tbl Contains a pointer to the mode select table, used on open and recovery. dd_flags Contains one or more of the following option flags: ______________________________________________________________ Flag Description ______________________________________________________________ SZ_NO_FLAGS No flags. SZ_BBR Allows bad block recovery. SZ_NOSYNC Does not allow synchronous data transfer. SZ_DYNAMIC_GEOM Device sizes can change (dynamic geometry). SZ_NO_DISC Does not allow disconnects. SZ_NO_TAG Does not allow tagged queueing regardless of inquiry data. SZ_REORDER Allows the SIM to reorder CCBs. SZ_LONG_STO_RETRY Does long select timeout retries. SZ_DISPERSE_QUE Allows the queue depth to be spread across all LUNs for a given target. SZ_NOWIDE Does not do wide transfers. SZ_WCE_CAPABLE Device is capable of running with WCE. ______________________________________________________________ dd_scsi_optcmnd Specifies one or more of the following flags, indicating any optional commands supported by the device: ___________________________________________ Command Description ___________________________________________ NO_OPT_CMDS No optional commands SZ_RW10 Read/write 10 byte CDBs SZ_PREV_ALLOW Prevent/allow media removal SZ_EXT_RESRV Extent reserve/release ___________________________________________ dd_ready_time Specifies the number of seconds from power up until the device is ready. The default is 45 seconds, defined by the constant SZ_READY_DEF. dd_que_depth Specifies the number of CCBs that can be placed on a queue at one time, for devices that support command queueing. dd_valid Indicates which data length fields are valid, as follows: · DD_REQSNS_VAL indicates that the request sense length is valid. · DD_INQ_VAL indicates that the inquiry data length is valid. dd_inq_len Specifies the length of inquiry data for this device. dd_req_sense_len Specifies the length of sense data for this device. dd_ref_count Specifies the number of references to this device descriptor. dd_attribute_cnt Specifies the number of attributes created by default. dd_attributes Contains a linked list of attributes. dd_forw Specifies a pointer to the next device descriptor in a linked list. dd_back Specifies a pointer to the previous device descriptor in a linked list. dd_vid dd_pid dd_rev dd_desc_lk

DESCRIPTION

The DEV_DESC structure describes the characteristics of the device, such as its name and device type. It contains pointers to the mode select and density tables, as well. There is one DEV_DESC structure for each device type.

FILES

</usr/sys/include/io/cam/pdrv.h>

Index Index for
Section 9
Index Alphabetical
listing for D
Top of page Top of
page