blob: 80bd829fbd9ac4f39332a5053cecbce31ff485da [file] [log] [blame]
Tomas Winkler9dc64d62013-01-08 23:07:17 +02001/*
2 *
Tomas Winkler66ef5ea2012-12-25 19:06:02 +02003 * Intel Management Engine Interface (Intel MEI) Linux driver
Tomas Winkler9dc64d62013-01-08 23:07:17 +02004 * Copyright (c) 2003-2012, Intel Corporation.
Tomas Winkler66ef5ea2012-12-25 19:06:02 +02005 *
Tomas Winkler9dc64d62013-01-08 23:07:17 +02006 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
Tomas Winkler66ef5ea2012-12-25 19:06:02 +02009 *
Tomas Winkler9dc64d62013-01-08 23:07:17 +020010 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
Tomas Winkler66ef5ea2012-12-25 19:06:02 +020014 *
Tomas Winkler66ef5ea2012-12-25 19:06:02 +020015 */
16
Tomas Winkler66ef5ea2012-12-25 19:06:02 +020017
18
Tomas Winkler9dc64d62013-01-08 23:07:17 +020019#ifndef _MEI_INTERFACE_H_
20#define _MEI_INTERFACE_H_
21
22#include <linux/mei.h>
23#include "mei_dev.h"
Tomas Winkler52c34562013-02-06 14:06:40 +020024#include "client.h"
Tomas Winkler66ef5ea2012-12-25 19:06:02 +020025
Tomas Winkler52c34562013-02-06 14:06:40 +020026struct mei_me_hw {
27 void __iomem *mem_addr;
28 /*
29 * hw states of host and fw(ME)
30 */
31 u32 host_hw_state;
32 u32 me_hw_state;
33};
Tomas Winkler66ef5ea2012-12-25 19:06:02 +020034
Tomas Winkler52c34562013-02-06 14:06:40 +020035#define to_me_hw(dev) (struct mei_me_hw *)((dev)->hw)
36
37struct mei_device *mei_me_dev_init(struct pci_dev *pdev);
Tomas Winkler66ef5ea2012-12-25 19:06:02 +020038
Tomas Winkler06ecd642013-02-06 14:06:42 +020039irqreturn_t mei_me_irq_quick_handler(int irq, void *dev_id);
40irqreturn_t mei_me_irq_thread_handler(int irq, void *dev_id);
41
Tomas Winkler9dc64d62013-01-08 23:07:17 +020042#endif /* _MEI_INTERFACE_H_ */