HP-UX Reference (11i v2 04/09) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

s
scsi_ctl(7) scsi_ctl(7)
xfer_rate, max_width, max_reqack_offset
, max_xfer_rate
fields only apply to parallel SCSI.
Bus communication parameters may be managed by use of the
SIOC_GET_BUS_PARMS
,
SIOC_SET_BUS_LIMITS
, and SIOC_GET_BUS_LIMITS
ioctls to any associated
LUN.
The SIOC_GET_BUS_PARMS
ioctl indicates the current bus communication parameter values. The
max_width field indicates the maximum data transfer width that will be attempted for data transfers to
any target device connected to the associated bus. The
max_reqack_offset
field indicates the max-
imum number of outstanding
REQs that will be attempted during data transfers to any target device con-
nected to the associated bus. The max_xfer_rate
field indicates the maximum ‘‘burst’’ data transfer
rate that will be attempted for data transfers to any target device connected to the associated bus.
The
SIOC_SET_BUS_LIMITS
ioctl specifies the bus communication parameter limit suggestions for tar-
gets connected to the associated bus. The
max_width
field specifies the suggested maximum data
transfer width that should be attempted for data transfers to any target device connected to the associ-
ated bus. The
max_reqack_offset
field specifies the maximum number of outstanding
REQs that
should be attempted during data transfers to any target device connected to the associated bus. The
max_xfer_rate
field specifies the maximum synchronous ‘‘burst’’ data transfer rate that should be
attempted for data transfers to any target device connected to the associated bus. The
SIOC_GET_BUS_LIMITS
ioctl indicates the current bus communication parameter limit suggestions.
The
max_width, max_reqack_offset
and max_xfer_rate
fields only apply to parallel SCSI.
The following is included from <sys/scsi.h>:
/* SCSI communication parameter ioctls */
#define SIOC_GET_LUN_PARMS _IOR(’S’, 58, struct sioc_lun_parms)
#define SIOC_GET_TGT_PARMS _IOR(’S’, 59, struct sioc_tgt_parms)
#define SIOC_GET_BUS_PARMS _IOR(’S’, 60, struct sioc_bus_parms)
#define SIOC_GET_LUN_LIMITS _IOR(’S’, 61, struct sioc_lun_limits)
#define SIOC_GET_TGT_LIMITS _IOR(’S’, 62, struct sioc_tgt_limits)
#define SIOC_GET_BUS_LIMITS _IOR(’S’, 63, struct sioc_bus_limits)
#define SIOC_SET_LUN_LIMITS _IOW(’S’, 64, struct sioc_lun_limits)
#define SIOC_SET_TGT_LIMITS _IOW(’S’, 65, struct sioc_tgt_limits)
#define SIOC_SET_BUS_LIMITS _IOW(’S’, 66, struct sioc_bus_limits)
struct sioc_lun_parms {
unsigned int flags;
unsigned int max_q_depth; /* maximum active I/O’s */
unsigned int reserved[4]; /* reserved for future use */
};
struct sioc_lun_limits {
unsigned int flags;
unsigned int max_q_depth;
unsigned int reserved[4]; /* reserved for future use */
};
struct sioc_tgt_parms {
unsigned int flags;
unsigned int width; /* bits */
unsigned int reqack_offset;
unsigned int xfer_rate; /* bytes/sec */
unsigned int reserved[4]; /* reserved for future use */
};
struct sioc_tgt_limits {
unsigned int flags;
unsigned int max_reqack_offset;
unsigned int max_xfer_rate; /* bytes/sec */
unsigned int max_width; /* bits */
unsigned int reserved[4]; /* reserved for future use */
};
struct sioc_bus_parms {
unsigned int flags; /* reserved for future use */
unsigned int max_width;
unsigned int max_reqack_offset;
Section 7136 Hewlett-Packard Company 3 HP-UX 11i Version 2: September 2004