diff options
author | James Smart <James.Smart@Emulex.Com> | 2007-06-17 20:56:36 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-06-17 23:05:45 -0400 |
commit | 2e0fef85e098f6794956b8b80b111179fbb4cbb7 (patch) | |
tree | f632090be67f95e9a637eeb044938ba1591e848f /drivers/scsi/lpfc/lpfc_hw.h | |
parent | 4c2baaaf2ba4875d1d2d59b3b3e1216d3277b17a (diff) |
[SCSI] lpfc: NPIV: split ports
The driver is reorganized to separate the handling of the adapter from
the handling of the FC port. Adapter handling includes submissions of
command requests, receiving responses, and managing adapter resources.
The FC port includes the discovery engine, login handling, and the
mapping of a Scsi_Host on the "port". Although not a large functional
change, as it touches core structures and functions, resulting in a
large text delta.
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hw.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hw.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hw.h b/drivers/scsi/lpfc/lpfc_hw.h index 2623a9bc7775..c4be6dc00c4c 100644 --- a/drivers/scsi/lpfc/lpfc_hw.h +++ b/drivers/scsi/lpfc/lpfc_hw.h | |||
@@ -312,8 +312,7 @@ struct csp { | |||
312 | 312 | ||
313 | #ifdef __BIG_ENDIAN_BITFIELD | 313 | #ifdef __BIG_ENDIAN_BITFIELD |
314 | uint16_t increasingOffset:1; /* FC Word 1, bit 31 */ | 314 | uint16_t increasingOffset:1; /* FC Word 1, bit 31 */ |
315 | uint16_t randomOffset:1; /* FC Word 1, bit 30 */ | 315 | uint16_t response_multiple_Nport:1; /* FC Word 1, bit 29 */ |
316 | uint16_t word1Reserved2:1; /* FC Word 1, bit 29 */ | ||
317 | uint16_t fPort:1; /* FC Word 1, bit 28 */ | 316 | uint16_t fPort:1; /* FC Word 1, bit 28 */ |
318 | uint16_t altBbCredit:1; /* FC Word 1, bit 27 */ | 317 | uint16_t altBbCredit:1; /* FC Word 1, bit 27 */ |
319 | uint16_t edtovResolution:1; /* FC Word 1, bit 26 */ | 318 | uint16_t edtovResolution:1; /* FC Word 1, bit 26 */ |
@@ -2178,8 +2177,8 @@ typedef struct { | |||
2178 | #define DMP_RSP_OFFSET 0x14 /* word 5 contains first word of rsp */ | 2177 | #define DMP_RSP_OFFSET 0x14 /* word 5 contains first word of rsp */ |
2179 | #define DMP_RSP_SIZE 0x6C /* maximum of 27 words of rsp data */ | 2178 | #define DMP_RSP_SIZE 0x6C /* maximum of 27 words of rsp data */ |
2180 | 2179 | ||
2181 | /* Structure for MB Command CONFIG_PORT (0x88) */ | ||
2182 | 2180 | ||
2181 | /* Structure for MB Command CONFIG_PORT (0x88) */ | ||
2183 | typedef struct { | 2182 | typedef struct { |
2184 | uint32_t pcbLen; | 2183 | uint32_t pcbLen; |
2185 | uint32_t pcbLow; /* bit 31:0 of memory based port config block */ | 2184 | uint32_t pcbLow; /* bit 31:0 of memory based port config block */ |
@@ -2742,15 +2741,15 @@ struct lpfc_sli2_slim { | |||
2742 | IOCB_t IOCBs[MAX_SLI2_IOCB]; | 2741 | IOCB_t IOCBs[MAX_SLI2_IOCB]; |
2743 | }; | 2742 | }; |
2744 | 2743 | ||
2745 | /******************************************************************* | 2744 | /* |
2746 | This macro check PCI device to allow special handling for LC HBAs. | 2745 | * This function checks PCI device to allow special handling for LC HBAs. |
2747 | 2746 | * | |
2748 | Parameters: | 2747 | * Parameters: |
2749 | device : struct pci_dev 's device field | 2748 | * device : struct pci_dev 's device field |
2750 | 2749 | * | |
2751 | return 1 => TRUE | 2750 | * return 1 => TRUE |
2752 | 0 => FALSE | 2751 | * 0 => FALSE |
2753 | *******************************************************************/ | 2752 | */ |
2754 | static inline int | 2753 | static inline int |
2755 | lpfc_is_LC_HBA(unsigned short device) | 2754 | lpfc_is_LC_HBA(unsigned short device) |
2756 | { | 2755 | { |