diff options
author | Christoph Hellwig <hch@lst.de> | 2005-08-18 10:26:15 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-09-04 20:48:06 -0400 |
commit | 69218ee5186aded6c78e12e083e073d000ff2e9b (patch) | |
tree | 6dfd357efa1a17fa3c845570c722185b568423f0 /drivers/message/fusion/mptctl.c | |
parent | 1ff927306e08b356d764e605eff7c50079550bd2 (diff) |
[SCSI] fusion: extended config header support
Acked by: Moore, Eric Dean <Eric.Moore@lsil.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
-rw-r--r-- | drivers/message/fusion/mptctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index 05ea5944c487..e63a3fd6b706 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c | |||
@@ -2324,7 +2324,7 @@ mptctl_hp_hostinfo(unsigned long arg, unsigned int data_size) | |||
2324 | hdr.PageLength = 0; | 2324 | hdr.PageLength = 0; |
2325 | hdr.PageNumber = 0; | 2325 | hdr.PageNumber = 0; |
2326 | hdr.PageType = MPI_CONFIG_PAGETYPE_MANUFACTURING; | 2326 | hdr.PageType = MPI_CONFIG_PAGETYPE_MANUFACTURING; |
2327 | cfg.hdr = &hdr; | 2327 | cfg.cfghdr.hdr = &hdr; |
2328 | cfg.physAddr = -1; | 2328 | cfg.physAddr = -1; |
2329 | cfg.pageAddr = 0; | 2329 | cfg.pageAddr = 0; |
2330 | cfg.action = MPI_CONFIG_ACTION_PAGE_HEADER; | 2330 | cfg.action = MPI_CONFIG_ACTION_PAGE_HEADER; |
@@ -2333,7 +2333,7 @@ mptctl_hp_hostinfo(unsigned long arg, unsigned int data_size) | |||
2333 | 2333 | ||
2334 | strncpy(karg.serial_number, " ", 24); | 2334 | strncpy(karg.serial_number, " ", 24); |
2335 | if (mpt_config(ioc, &cfg) == 0) { | 2335 | if (mpt_config(ioc, &cfg) == 0) { |
2336 | if (cfg.hdr->PageLength > 0) { | 2336 | if (cfg.cfghdr.hdr->PageLength > 0) { |
2337 | /* Issue the second config page request */ | 2337 | /* Issue the second config page request */ |
2338 | cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT; | 2338 | cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT; |
2339 | 2339 | ||
@@ -2479,7 +2479,7 @@ mptctl_hp_targetinfo(unsigned long arg) | |||
2479 | hdr.PageNumber = 0; | 2479 | hdr.PageNumber = 0; |
2480 | hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE; | 2480 | hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE; |
2481 | 2481 | ||
2482 | cfg.hdr = &hdr; | 2482 | cfg.cfghdr.hdr = &hdr; |
2483 | cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT; | 2483 | cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT; |
2484 | cfg.dir = 0; | 2484 | cfg.dir = 0; |
2485 | cfg.timeout = 0; | 2485 | cfg.timeout = 0; |
@@ -2527,15 +2527,15 @@ mptctl_hp_targetinfo(unsigned long arg) | |||
2527 | hdr.PageNumber = 3; | 2527 | hdr.PageNumber = 3; |
2528 | hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE; | 2528 | hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE; |
2529 | 2529 | ||
2530 | cfg.hdr = &hdr; | 2530 | cfg.cfghdr.hdr = &hdr; |
2531 | cfg.action = MPI_CONFIG_ACTION_PAGE_HEADER; | 2531 | cfg.action = MPI_CONFIG_ACTION_PAGE_HEADER; |
2532 | cfg.dir = 0; | 2532 | cfg.dir = 0; |
2533 | cfg.timeout = 0; | 2533 | cfg.timeout = 0; |
2534 | cfg.physAddr = -1; | 2534 | cfg.physAddr = -1; |
2535 | if ((mpt_config(ioc, &cfg) == 0) && (cfg.hdr->PageLength > 0)) { | 2535 | if ((mpt_config(ioc, &cfg) == 0) && (cfg.cfghdr.hdr->PageLength > 0)) { |
2536 | /* Issue the second config page request */ | 2536 | /* Issue the second config page request */ |
2537 | cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT; | 2537 | cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT; |
2538 | data_sz = (int) cfg.hdr->PageLength * 4; | 2538 | data_sz = (int) cfg.cfghdr.hdr->PageLength * 4; |
2539 | pg3_alloc = (SCSIDevicePage3_t *) pci_alloc_consistent( | 2539 | pg3_alloc = (SCSIDevicePage3_t *) pci_alloc_consistent( |
2540 | ioc->pcidev, data_sz, &page_dma); | 2540 | ioc->pcidev, data_sz, &page_dma); |
2541 | if (pg3_alloc) { | 2541 | if (pg3_alloc) { |