diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/linux/toshiba.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'include/linux/toshiba.h')
-rw-r--r-- | include/linux/toshiba.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/linux/toshiba.h b/include/linux/toshiba.h index 915c3bb164a..772dedbc3a2 100644 --- a/include/linux/toshiba.h +++ b/include/linux/toshiba.h | |||
@@ -16,10 +16,25 @@ | |||
16 | * General Public License for more details. | 16 | * General Public License for more details. |
17 | * | 17 | * |
18 | */ | 18 | */ |
19 | |||
19 | #ifndef _LINUX_TOSHIBA_H | 20 | #ifndef _LINUX_TOSHIBA_H |
20 | #define _LINUX_TOSHIBA_H | 21 | #define _LINUX_TOSHIBA_H |
21 | 22 | ||
22 | #include <uapi/linux/toshiba.h> | 23 | #define TOSH_PROC "/proc/toshiba" |
24 | #define TOSH_DEVICE "/dev/toshiba" | ||
25 | #define TOSH_SMM _IOWR('t', 0x90, int) /* broken: meant 24 bytes */ | ||
26 | |||
27 | typedef struct { | ||
28 | unsigned int eax; | ||
29 | unsigned int ebx __attribute__ ((packed)); | ||
30 | unsigned int ecx __attribute__ ((packed)); | ||
31 | unsigned int edx __attribute__ ((packed)); | ||
32 | unsigned int esi __attribute__ ((packed)); | ||
33 | unsigned int edi __attribute__ ((packed)); | ||
34 | } SMMRegisters; | ||
23 | 35 | ||
36 | #ifdef __KERNEL__ | ||
24 | int tosh_smm(SMMRegisters *regs); | 37 | int tosh_smm(SMMRegisters *regs); |
38 | #endif /* __KERNEL__ */ | ||
39 | |||
25 | #endif | 40 | #endif |