Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20384
b: refs/heads/master
c: 9cc1cfb
h: refs/heads/master
v: v3
  • Loading branch information
Moore, Eric authored and unknown committed Feb 4, 2006
1 parent 3a5280c commit 07ea00d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 096f7a2a094af3007937d6fd21560e28dca0994d
refs/heads/master: 9cc1cfbc67d77164f5b612fcf833460eca4d81e9
8 changes: 5 additions & 3 deletions trunk/drivers/message/fusion/mptctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,9 @@ mptctl_getiocinfo (unsigned long arg, unsigned int data_size)
/* Fill in the data and return the structure to the calling
* program
*/
if (ioc->bus_type == FC)
if (ioc->bus_type == SAS)
karg->adapterType = MPT_IOCTL_INTERFACE_SAS;
else if (ioc->bus_type == FC)
karg->adapterType = MPT_IOCTL_INTERFACE_FC;
else
karg->adapterType = MPT_IOCTL_INTERFACE_SCSI;
Expand Down Expand Up @@ -2391,7 +2393,7 @@ mptctl_hp_hostinfo(unsigned long arg, unsigned int data_size)

karg.base_io_addr = pci_resource_start(pdev, 0);

if (ioc->bus_type == FC)
if ((ioc->bus_type == SAS) || (ioc->bus_type == FC))
karg.bus_phys_width = HP_BUS_WIDTH_UNK;
else
karg.bus_phys_width = HP_BUS_WIDTH_16;
Expand Down Expand Up @@ -2480,7 +2482,7 @@ mptctl_hp_targetinfo(unsigned long arg)

/* There is nothing to do for FCP parts.
*/
if (ioc->bus_type == FC)
if ((ioc->bus_type == SAS) || (ioc->bus_type == FC))
return 0;

if ((ioc->spi_data.sdp0length == 0) || (ioc->sh == NULL))
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/message/fusion/mptctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,10 @@ struct mpt_ioctl_pci_info2 {
* Read only.
* Data starts at offset 0xC
*/
#define MPT_IOCTL_INTERFACE_FC (0x01)
#define MPT_IOCTL_INTERFACE_SCSI (0x00)
#define MPT_IOCTL_INTERFACE_FC (0x01)
#define MPT_IOCTL_INTERFACE_FC_IP (0x02)
#define MPT_IOCTL_INTERFACE_SAS (0x03)
#define MPT_IOCTL_VERSION_LENGTH (32)

struct mpt_ioctl_iocinfo {
Expand Down

0 comments on commit 07ea00d

Please sign in to comment.