diff options
author | Eric Moore <eric.moore@lsi.com> | 2007-01-29 11:42:20 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-02-02 21:48:49 -0500 |
commit | 793955f549c710a1b0c18f823d5d710840747b15 (patch) | |
tree | ef85a09c1d90404a83f95b35d6fd717c421a4e5b /drivers/message/fusion/mptbase.h | |
parent | 502c62f17aa7daa78d5da963305251b872885ff9 (diff) |
[SCSI] fusion - Greater than 255 target and lun support
Add support for greater than 255 target and luns.
Kill the hd->Target[] field, and change all references
of bus_id/target_id, to channel/id.
Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptbase.h')
-rw-r--r-- | drivers/message/fusion/mptbase.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/message/fusion/mptbase.h b/drivers/message/fusion/mptbase.h index e316708f76bd..f82a817de81f 100644 --- a/drivers/message/fusion/mptbase.h +++ b/drivers/message/fusion/mptbase.h | |||
@@ -334,8 +334,8 @@ typedef struct _VirtTarget { | |||
334 | struct scsi_target *starget; | 334 | struct scsi_target *starget; |
335 | u8 tflags; | 335 | u8 tflags; |
336 | u8 ioc_id; | 336 | u8 ioc_id; |
337 | u8 target_id; | 337 | u8 id; |
338 | u8 bus_id; | 338 | u8 channel; |
339 | u8 minSyncFactor; /* 0xFF is async */ | 339 | u8 minSyncFactor; /* 0xFF is async */ |
340 | u8 maxOffset; /* 0 if async */ | 340 | u8 maxOffset; /* 0 if async */ |
341 | u8 maxWidth; /* 0 if narrow, 1 if wide */ | 341 | u8 maxWidth; /* 0 if narrow, 1 if wide */ |
@@ -344,13 +344,12 @@ typedef struct _VirtTarget { | |||
344 | u8 type; /* byte 0 of Inquiry data */ | 344 | u8 type; /* byte 0 of Inquiry data */ |
345 | u8 deleted; /* target in process of being removed */ | 345 | u8 deleted; /* target in process of being removed */ |
346 | u32 num_luns; | 346 | u32 num_luns; |
347 | u32 luns[8]; /* Max LUNs is 256 */ | ||
348 | } VirtTarget; | 347 | } VirtTarget; |
349 | 348 | ||
350 | typedef struct _VirtDevice { | 349 | typedef struct _VirtDevice { |
351 | VirtTarget *vtarget; | 350 | VirtTarget *vtarget; |
352 | u8 configured_lun; | 351 | u8 configured_lun; |
353 | u32 lun; | 352 | int lun; |
354 | } VirtDevice; | 353 | } VirtDevice; |
355 | 354 | ||
356 | /* | 355 | /* |
@@ -412,7 +411,7 @@ typedef struct _MPT_IOCTL { | |||
412 | u8 rsvd; | 411 | u8 rsvd; |
413 | u8 status; /* current command status */ | 412 | u8 status; /* current command status */ |
414 | u8 reset; /* 1 if bus reset allowed */ | 413 | u8 reset; /* 1 if bus reset allowed */ |
415 | u8 target; /* target for reset */ | 414 | u8 id; /* target for reset */ |
416 | struct mutex ioctl_mutex; | 415 | struct mutex ioctl_mutex; |
417 | } MPT_IOCTL; | 416 | } MPT_IOCTL; |
418 | 417 | ||
@@ -528,6 +527,8 @@ typedef struct _MPT_ADAPTER | |||
528 | u32 mem_phys; /* == f4020000 (mmap) */ | 527 | u32 mem_phys; /* == f4020000 (mmap) */ |
529 | u32 pio_mem_phys; /* Programmed IO (downloadboot) */ | 528 | u32 pio_mem_phys; /* Programmed IO (downloadboot) */ |
530 | int mem_size; /* mmap memory size */ | 529 | int mem_size; /* mmap memory size */ |
530 | int number_of_buses; | ||
531 | int devices_per_bus; | ||
531 | int alloc_total; | 532 | int alloc_total; |
532 | u32 last_state; | 533 | u32 last_state; |
533 | int active; | 534 | int active; |
@@ -957,7 +958,6 @@ typedef struct _MPT_SCSI_HOST { | |||
957 | int port; | 958 | int port; |
958 | u32 pad0; | 959 | u32 pad0; |
959 | struct scsi_cmnd **ScsiLookup; | 960 | struct scsi_cmnd **ScsiLookup; |
960 | VirtTarget **Targets; | ||
961 | MPT_LOCAL_REPLY *pLocal; /* used for internal commands */ | 961 | MPT_LOCAL_REPLY *pLocal; /* used for internal commands */ |
962 | struct timer_list timer; | 962 | struct timer_list timer; |
963 | /* Pool of memory for holding SCpnts before doing | 963 | /* Pool of memory for holding SCpnts before doing |