diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 20:19:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 20:19:08 -0500 |
commit | 9b73e76f3cf63379dcf45fcd4f112f5812418d0a (patch) | |
tree | 4e6bef87cd0cd6d848fc39a5ae25b981dbbe035b /drivers/scsi/qla2xxx/qla_fw.h | |
parent | 50d9a126240f9961cfdd063336bbeb91f77a7dce (diff) | |
parent | 23c3e290fb9ce38cabc2822b47583fc8702411bf (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (200 commits)
[SCSI] usbstorage: use last_sector_bug flag universally
[SCSI] libsas: abstract STP task status into a function
[SCSI] ultrastor: clean up inline asm warnings
[SCSI] aic7xxx: fix firmware build
[SCSI] aacraid: fib context lock for management ioctls
[SCSI] ch: remove forward declarations
[SCSI] ch: fix device minor number management bug
[SCSI] ch: handle class_device_create failure properly
[SCSI] NCR5380: fix section mismatch
[SCSI] sg: fix /proc/scsi/sg/devices when no SCSI devices
[SCSI] IB/iSER: add logical unit reset support
[SCSI] don't use __GFP_DMA for sense buffers if not required
[SCSI] use dynamically allocated sense buffer
[SCSI] scsi.h: add macro for enclosure bit of inquiry data
[SCSI] sd: add fix for devices with last sector access problems
[SCSI] fix pcmcia compile problem
[SCSI] aacraid: add Voodoo Lite class of cards.
[SCSI] aacraid: add new driver features flags
[SCSI] qla2xxx: Update version number to 8.02.00-k7.
[SCSI] qla2xxx: Issue correct MBC_INITIALIZE_FIRMWARE command.
...
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_fw.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_fw.h | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/drivers/scsi/qla2xxx/qla_fw.h b/drivers/scsi/qla2xxx/qla_fw.h index 25364b1aaf12..9337e138ed63 100644 --- a/drivers/scsi/qla2xxx/qla_fw.h +++ b/drivers/scsi/qla2xxx/qla_fw.h | |||
@@ -952,9 +952,31 @@ struct device_reg_24xx { | |||
952 | uint32_t iobase_sdata; | 952 | uint32_t iobase_sdata; |
953 | }; | 953 | }; |
954 | 954 | ||
955 | /* Trace Control *************************************************************/ | ||
956 | |||
957 | #define TC_AEN_DISABLE 0 | ||
958 | |||
959 | #define TC_EFT_ENABLE 4 | ||
960 | #define TC_EFT_DISABLE 5 | ||
961 | |||
962 | #define TC_FCE_ENABLE 8 | ||
963 | #define TC_FCE_OPTIONS 0 | ||
964 | #define TC_FCE_DEFAULT_RX_SIZE 2112 | ||
965 | #define TC_FCE_DEFAULT_TX_SIZE 2112 | ||
966 | #define TC_FCE_DISABLE 9 | ||
967 | #define TC_FCE_DISABLE_TRACE BIT_0 | ||
968 | |||
955 | /* MID Support ***************************************************************/ | 969 | /* MID Support ***************************************************************/ |
956 | 970 | ||
957 | #define MAX_MID_VPS 125 | 971 | #define MIN_MULTI_ID_FABRIC 64 /* Must be power-of-2. */ |
972 | #define MAX_MULTI_ID_FABRIC 256 /* ... */ | ||
973 | |||
974 | #define for_each_mapped_vp_idx(_ha, _idx) \ | ||
975 | for (_idx = find_next_bit((_ha)->vp_idx_map, \ | ||
976 | (_ha)->max_npiv_vports + 1, 1); \ | ||
977 | _idx <= (_ha)->max_npiv_vports; \ | ||
978 | _idx = find_next_bit((_ha)->vp_idx_map, \ | ||
979 | (_ha)->max_npiv_vports + 1, _idx + 1)) \ | ||
958 | 980 | ||
959 | struct mid_conf_entry_24xx { | 981 | struct mid_conf_entry_24xx { |
960 | uint16_t reserved_1; | 982 | uint16_t reserved_1; |
@@ -982,7 +1004,7 @@ struct mid_init_cb_24xx { | |||
982 | uint16_t count; | 1004 | uint16_t count; |
983 | uint16_t options; | 1005 | uint16_t options; |
984 | 1006 | ||
985 | struct mid_conf_entry_24xx entries[MAX_MID_VPS]; | 1007 | struct mid_conf_entry_24xx entries[MAX_MULTI_ID_FABRIC]; |
986 | }; | 1008 | }; |
987 | 1009 | ||
988 | 1010 | ||
@@ -1002,10 +1024,6 @@ struct mid_db_entry_24xx { | |||
1002 | uint8_t reserved_1; | 1024 | uint8_t reserved_1; |
1003 | }; | 1025 | }; |
1004 | 1026 | ||
1005 | struct mid_db_24xx { | ||
1006 | struct mid_db_entry_24xx entries[MAX_MID_VPS]; | ||
1007 | }; | ||
1008 | |||
1009 | /* | 1027 | /* |
1010 | * Virtual Fabric ID type definition. | 1028 | * Virtual Fabric ID type definition. |
1011 | */ | 1029 | */ |