diff options
Diffstat (limited to 'drivers/message/fusion/mptsas.h')
-rw-r--r-- | drivers/message/fusion/mptsas.h | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/drivers/message/fusion/mptsas.h b/drivers/message/fusion/mptsas.h index bf528a5b59b..9e0885a86d2 100644 --- a/drivers/message/fusion/mptsas.h +++ b/drivers/message/fusion/mptsas.h | |||
@@ -61,12 +61,30 @@ enum mptsas_hotplug_action { | |||
61 | MPTSAS_DEL_DEVICE, | 61 | MPTSAS_DEL_DEVICE, |
62 | MPTSAS_ADD_RAID, | 62 | MPTSAS_ADD_RAID, |
63 | MPTSAS_DEL_RAID, | 63 | MPTSAS_DEL_RAID, |
64 | MPTSAS_ADD_PHYSDISK, | ||
65 | MPTSAS_ADD_PHYSDISK_REPROBE, | ||
66 | MPTSAS_DEL_PHYSDISK, | ||
67 | MPTSAS_DEL_PHYSDISK_REPROBE, | ||
64 | MPTSAS_ADD_INACTIVE_VOLUME, | 68 | MPTSAS_ADD_INACTIVE_VOLUME, |
65 | MPTSAS_IGNORE_EVENT, | 69 | MPTSAS_IGNORE_EVENT, |
66 | }; | 70 | }; |
67 | 71 | ||
72 | struct mptsas_mapping{ | ||
73 | u8 id; | ||
74 | u8 channel; | ||
75 | }; | ||
76 | |||
77 | struct mptsas_device_info { | ||
78 | struct list_head list; | ||
79 | struct mptsas_mapping os; /* operating system mapping*/ | ||
80 | struct mptsas_mapping fw; /* firmware mapping */ | ||
81 | u64 sas_address; | ||
82 | u32 device_info; /* specific bits for devices */ | ||
83 | u16 slot; /* enclosure slot id */ | ||
84 | u64 enclosure_logical_id; /*enclosure address */ | ||
85 | }; | ||
86 | |||
68 | struct mptsas_hotplug_event { | 87 | struct mptsas_hotplug_event { |
69 | struct work_struct work; | ||
70 | MPT_ADAPTER *ioc; | 88 | MPT_ADAPTER *ioc; |
71 | enum mptsas_hotplug_action event_type; | 89 | enum mptsas_hotplug_action event_type; |
72 | u64 sas_address; | 90 | u64 sas_address; |
@@ -74,11 +92,18 @@ struct mptsas_hotplug_event { | |||
74 | u8 id; | 92 | u8 id; |
75 | u32 device_info; | 93 | u32 device_info; |
76 | u16 handle; | 94 | u16 handle; |
77 | u16 parent_handle; | ||
78 | u8 phy_id; | 95 | u8 phy_id; |
79 | u8 phys_disk_num_valid; /* hrc (hidden raid component) */ | ||
80 | u8 phys_disk_num; /* hrc - unique index*/ | 96 | u8 phys_disk_num; /* hrc - unique index*/ |
81 | u8 hidden_raid_component; /* hrc - don't expose*/ | 97 | struct scsi_device *sdev; |
98 | }; | ||
99 | |||
100 | struct fw_event_work { | ||
101 | struct list_head list; | ||
102 | struct delayed_work work; | ||
103 | MPT_ADAPTER *ioc; | ||
104 | u32 event; | ||
105 | u8 retries; | ||
106 | u8 event_data[1]; | ||
82 | }; | 107 | }; |
83 | 108 | ||
84 | struct mptsas_discovery_event { | 109 | struct mptsas_discovery_event { |