diff options
author | Stephen M. Cameron <scameron@beardog.cce.hp.com> | 2012-01-19 15:00:48 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-19 09:08:55 -0500 |
commit | d66ae08bad182e9a87859e120e61cfd51e402ed8 (patch) | |
tree | 1f7c7eca29f268cfef6927d4f503752c0a337511 /drivers/scsi/hpsa_cmd.h | |
parent | 55e14e764df5e24bedf93220f1da167af8300c2f (diff) |
[SCSI] hpsa: removed unneeded structure member max_sg_entries and fix badly named constant MAXSGENTRIES
We had both h->max_sg_entries and h->maxsgentries in the per controller
structure which is terribly confusing. max_sg_entries was really
just a constant, 32, which defines how big the "block fetch table"
is, which is as large as the max number of SG elements embedded
within a command (excluding SG elements in chain blocks).
MAXSGENTRIES was the constant used to denote the max number of SG
elements embedded within a command, also a poor name.
So renamed MAXSGENTREIS to SG_ENTRIES_IN_CMD, and removed
h->max_sg_entries and replaced it with SG_ENTRIES_IN_CMD.
h->maxsgentries is unchanged, and is the maximum number of sg
elements the controller will support in a command, including
those in chain blocks, minus 1 for the chain block pointer..
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/hpsa_cmd.h')
-rw-r--r-- | drivers/scsi/hpsa_cmd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/hpsa_cmd.h b/drivers/scsi/hpsa_cmd.h index 3fd4715935c2..516d6e53c7e6 100644 --- a/drivers/scsi/hpsa_cmd.h +++ b/drivers/scsi/hpsa_cmd.h | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | /* general boundary defintions */ | 24 | /* general boundary defintions */ |
25 | #define SENSEINFOBYTES 32 /* may vary between hbas */ | 25 | #define SENSEINFOBYTES 32 /* may vary between hbas */ |
26 | #define MAXSGENTRIES 32 | 26 | #define SG_ENTRIES_IN_CMD 32 /* Max SG entries excluding chain blocks */ |
27 | #define HPSA_SG_CHAIN 0x80000000 | 27 | #define HPSA_SG_CHAIN 0x80000000 |
28 | #define MAXREPLYQS 256 | 28 | #define MAXREPLYQS 256 |
29 | 29 | ||
@@ -282,7 +282,7 @@ struct CommandList { | |||
282 | struct CommandListHeader Header; | 282 | struct CommandListHeader Header; |
283 | struct RequestBlock Request; | 283 | struct RequestBlock Request; |
284 | struct ErrDescriptor ErrDesc; | 284 | struct ErrDescriptor ErrDesc; |
285 | struct SGDescriptor SG[MAXSGENTRIES]; | 285 | struct SGDescriptor SG[SG_ENTRIES_IN_CMD]; |
286 | /* information associated with the command */ | 286 | /* information associated with the command */ |
287 | u32 busaddr; /* physical addr of this record */ | 287 | u32 busaddr; /* physical addr of this record */ |
288 | struct ErrorInfo *err_info; /* pointer to the allocated mem */ | 288 | struct ErrorInfo *err_info; /* pointer to the allocated mem */ |