Clean up some comments. Expand usage of cd_reserved. Expand cd_tagval

to 32 bits so it can haul along this furshlugginer handle for parallel
SCSI as well as a regular vanilla 8 bit SCSI tag.
This commit is contained in:
mjacob 2001-03-14 05:10:38 +00:00
parent 928cef6eb8
commit 6112b6b2e7
1 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isp_tpublic.h,v 1.5 2000/12/23 01:38:00 wiz Exp $ */
/* $NetBSD: isp_tpublic.h,v 1.6 2001/03/14 05:10:38 mjacob Exp $ */
/*
* This driver, which is contained in NetBSD in the files:
*
@ -129,7 +129,9 @@ typedef struct {
* layer maintains a port database, for example).
*
* The cd_tagtype field specifies what kind of command tag has been
* sent with the command. The cd_tagval is the tag's value.
* sent with the command. The cd_tagval is the tag's value (low 16
* bits). It also contains (in the upper 16 bits) any command handle.
*
*
* N.B.: when the MD layer sends this command to outside software
* the outside software likely *MUST* return the same cd_tagval that
@ -203,7 +205,9 @@ typedef struct {
* The tag cd_error is to communicate between the MD layer and outer software
* the current error conditions.
*
* The tag cd_reserved pads out the structure to 128 bytes.
* The tag cd_reserved pads out the structure to 128 bytes. The first
* half of the pad area is reserved to the MD layer, and the second half
* may be used by outer layers, for scratch purposes.
*/
#ifndef _LP64
@ -234,7 +238,7 @@ typedef struct tmd_cmd {
u_int64_t cd_lun; /* logical unit */
u_int8_t cd_bus; /* bus */
u_int8_t cd_tagtype; /* tag type */
u_int16_t cd_tagval; /* tag value */
u_int32_t cd_tagval; /* tag value */
u_int8_t cd_cdb[ATIO_CDBLEN]; /* Command */
u_int8_t cd_lflags; /* flags lower level sets */
u_int8_t cd_hflags; /* flags higher level sets */
@ -294,7 +298,7 @@ typedef enum {
* When the HBA is enabled for receiving commands, one may show up
* without notice. When that happens, the Qlogic target mode driver
* gets a tmd_cmd_t, fills it with the info that just arrived, and
* calls the outer layer with a QIN_TMD_START code and pointer to
* calls the outer layer with a QOUT_TMD_START code and pointer to
* the tmd_cmd_t.
*
* The outer layer decodes the command, fetches data, prepares stuff,
@ -353,5 +357,5 @@ typedef struct {
int r_inst;
int r_lunwidth;
int r_buswidth;
void (*r_action) __P((int, void *));
void (*r_action)(int, void *);
} hba_register_t;