Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_TOSHIBA_H |
| 8 | #define _UAPI_LINUX_TOSHIBA_H |
| 9 | #define TOSH_PROC "/proc/toshiba" |
| 10 | #define TOSH_DEVICE "/dev/toshiba" |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 11 | #define TOSHIBA_ACPI_PROC "/proc/acpi/toshiba" |
| 12 | #define TOSHIBA_ACPI_DEVICE "/dev/toshiba_acpi" |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 13 | typedef struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 14 | unsigned int eax; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 15 | unsigned int ebx __attribute__((packed)); |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 16 | unsigned int ecx __attribute__((packed)); |
| 17 | unsigned int edx __attribute__((packed)); |
| 18 | unsigned int esi __attribute__((packed)); |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 19 | unsigned int edi __attribute__((packed)); |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 20 | } SMMRegisters; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 21 | #define TOSH_SMM _IOWR('t', 0x90, SMMRegisters) |
| 22 | #define TOSHIBA_ACPI_SCI _IOWR('t', 0x91, SMMRegisters) |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 23 | #endif |