hw-me.h 1.2 KB
Newer Older
T
Tomas Winkler 已提交
1
/*
2
 *
T
Tomas Winkler 已提交
3 4
 * Intel Management Engine Interface (Intel MEI) Linux driver
 * Copyright (c) 2003-2012, Intel Corporation.
5
 *
T
Tomas Winkler 已提交
6 7 8
 * 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.
9
 *
T
Tomas Winkler 已提交
10 11 12 13
 * 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.
14 15 16 17 18
 *
 */



T
Tomas Winkler 已提交
19 20
#ifndef _MEI_INTERFACE_H_
#define _MEI_INTERFACE_H_
21

T
Tomas Winkler 已提交
22
#include <linux/mei.h>
23
#include <linux/irqreturn.h>
T
Tomas Winkler 已提交
24
#include "mei_dev.h"
25
#include "client.h"
26

27 28 29 30 31 32 33
struct mei_me_hw {
	void __iomem *mem_addr;
	/*
	 * hw states of host and fw(ME)
	 */
	u32 host_hw_state;
	u32 me_hw_state;
34
	enum mei_pg_state pg_state;
35
};
36

37 38 39
#define to_me_hw(dev) (struct mei_me_hw *)((dev)->hw)

struct mei_device *mei_me_dev_init(struct pci_dev *pdev);
40

41 42 43
int mei_me_pg_set_sync(struct mei_device *dev);
int mei_me_pg_unset_sync(struct mei_device *dev);

44 45 46
irqreturn_t mei_me_irq_quick_handler(int irq, void *dev_id);
irqreturn_t mei_me_irq_thread_handler(int irq, void *dev_id);

T
Tomas Winkler 已提交
47
#endif /* _MEI_INTERFACE_H_ */