aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mxm-wmi.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-12-05 21:43:33 -0500
committerDave Airlie <airlied@redhat.com>2011-05-03 23:38:33 -0400
commit99b38b4acc0d7dbbab443273577cff60080fcfad (patch)
treef9eea8812d35db76e80d56489c4c0cab18032910 /include/linux/mxm-wmi.h
parentd4a3b10c16a1bdb09483233bd7aeac684ccc160a (diff)
platform/x86: add MXM WMI driver.
MXM is a laptop graphics card form-factor + interface specification, this adds an initial stub driver to talk to the MXM WMI interface. The only method used is the MUX switching method needed to do switchable graphics on the nvidia chipsets. Signed-off-by: Dave Airlie <airlied@redhat.com> Acked-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'include/linux/mxm-wmi.h')
-rw-r--r--include/linux/mxm-wmi.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/linux/mxm-wmi.h b/include/linux/mxm-wmi.h
new file mode 100644
index 000000000000..51359c0718bf
--- /dev/null
+++ b/include/linux/mxm-wmi.h
@@ -0,0 +1,32 @@
1/*
2 * MXM WMI driver
3 *
4 * Copyright(C) 2010 Red Hat.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21#ifndef MXM_WMI_H
22#define MXM_WMI_H
23
24/* discrete adapters */
25#define MXM_MXDS_ADAPTER_0 0x0
26#define MXM_MXDS_ADAPTER_1 0x0
27/* integrated adapter */
28#define MXM_MXDS_ADAPTER_IGD 0x10
29int mxm_wmi_call_mxds(int adapter);
30bool mxm_wmi_supported(void);
31
32#endif