| 
									
										
										
										
											2013-01-08 23:07:17 +02:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2012-12-25 19:06:02 +02:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2013-01-08 23:07:17 +02:00
										 |  |  |  * Intel Management Engine Interface (Intel MEI) Linux driver | 
					
						
							|  |  |  |  * Copyright (c) 2003-2012, Intel Corporation. | 
					
						
							| 
									
										
										
										
											2012-12-25 19:06:02 +02:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2013-01-08 23:07:17 +02:00
										 |  |  |  * This program is free software; you can redistribute it and/or modify it | 
					
						
							|  |  |  |  * under the terms and conditions of the GNU General Public License, | 
					
						
							|  |  |  |  * version 2, as published by the Free Software Foundation. | 
					
						
							| 
									
										
										
										
											2012-12-25 19:06:02 +02:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2013-01-08 23:07:17 +02:00
										 |  |  |  * This program is distributed in the hope it will be useful, but WITHOUT | 
					
						
							|  |  |  |  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | 
					
						
							|  |  |  |  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for | 
					
						
							|  |  |  |  * more details. | 
					
						
							| 
									
										
										
										
											2012-12-25 19:06:02 +02:00
										 |  |  |  * | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-01-08 23:07:17 +02:00
										 |  |  | #ifndef _MEI_INTERFACE_H_
 | 
					
						
							|  |  |  | #define _MEI_INTERFACE_H_
 | 
					
						
							| 
									
										
										
										
											2012-12-25 19:06:02 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-01-08 23:07:17 +02:00
										 |  |  | #include <linux/mei.h>
 | 
					
						
							|  |  |  | #include "mei_dev.h"
 | 
					
						
							| 
									
										
										
										
											2013-02-06 14:06:40 +02:00
										 |  |  | #include "client.h"
 | 
					
						
							| 
									
										
										
										
											2012-12-25 19:06:02 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-06 14:06:40 +02:00
										 |  |  | struct mei_me_hw { | 
					
						
							|  |  |  | 	void __iomem *mem_addr; | 
					
						
							|  |  |  | 	/*
 | 
					
						
							|  |  |  | 	 * hw states of host and fw(ME) | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	u32 host_hw_state; | 
					
						
							|  |  |  | 	u32 me_hw_state; | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2012-12-25 19:06:02 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-06 14:06:40 +02:00
										 |  |  | #define to_me_hw(dev) (struct mei_me_hw *)((dev)->hw)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct mei_device *mei_me_dev_init(struct pci_dev *pdev); | 
					
						
							| 
									
										
										
										
											2012-12-25 19:06:02 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-06 14:06:42 +02:00
										 |  |  | irqreturn_t mei_me_irq_quick_handler(int irq, void *dev_id); | 
					
						
							|  |  |  | irqreturn_t mei_me_irq_thread_handler(int irq, void *dev_id); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-01-08 23:07:17 +02:00
										 |  |  | #endif /* _MEI_INTERFACE_H_ */
 |