diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2013-02-06 07:06:40 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-06 14:23:14 -0500 |
commit | 52c34561415b420301f1580413a9d1891d079494 (patch) | |
tree | cef4f13fd27d9ff22670af73a98d6adc879ba573 /drivers/misc/mei/mei_dev.h | |
parent | 2703d4b2e673cc240ad06d79d131fd1d0f77d65d (diff) |
mei: initial extract of ME hw specifics from mei_device
This is initial step of move the ME hw specifics
out of mei_device structure into mei_me_hw
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/mei_dev.h')
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 3b2bca386e5a..bb759fd9ee4a 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
@@ -235,18 +235,13 @@ struct mei_device { | |||
235 | struct list_head file_list; | 235 | struct list_head file_list; |
236 | long open_handle_count; | 236 | long open_handle_count; |
237 | 237 | ||
238 | void __iomem *mem_addr; | ||
239 | /* | 238 | /* |
240 | * lock for the device | 239 | * lock for the device |
241 | */ | 240 | */ |
242 | struct mutex device_lock; /* device lock */ | 241 | struct mutex device_lock; /* device lock */ |
243 | struct delayed_work timer_work; /* MEI timer delayed work (timeouts) */ | 242 | struct delayed_work timer_work; /* MEI timer delayed work (timeouts) */ |
244 | bool recvd_msg; | 243 | bool recvd_msg; |
245 | /* | 244 | |
246 | * hw states of host and fw(ME) | ||
247 | */ | ||
248 | u32 host_hw_state; | ||
249 | u32 me_hw_state; | ||
250 | u8 hbuf_depth; | 245 | u8 hbuf_depth; |
251 | /* | 246 | /* |
252 | * waiting queue for receive message from FW | 247 | * waiting queue for receive message from FW |
@@ -311,6 +306,7 @@ struct mei_device { | |||
311 | bool iamthif_canceled; | 306 | bool iamthif_canceled; |
312 | 307 | ||
313 | struct work_struct init_work; | 308 | struct work_struct init_work; |
309 | char hw[0] __aligned(sizeof(void *)); | ||
314 | }; | 310 | }; |
315 | 311 | ||
316 | static inline unsigned long mei_secs_to_jiffies(unsigned long sec) | 312 | static inline unsigned long mei_secs_to_jiffies(unsigned long sec) |
@@ -322,7 +318,7 @@ static inline unsigned long mei_secs_to_jiffies(unsigned long sec) | |||
322 | /* | 318 | /* |
323 | * mei init function prototypes | 319 | * mei init function prototypes |
324 | */ | 320 | */ |
325 | struct mei_device *mei_device_init(struct pci_dev *pdev); | 321 | void mei_device_init(struct mei_device *dev); |
326 | void mei_reset(struct mei_device *dev, int interrupts); | 322 | void mei_reset(struct mei_device *dev, int interrupts); |
327 | int mei_hw_init(struct mei_device *dev); | 323 | int mei_hw_init(struct mei_device *dev); |
328 | 324 | ||