diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-07-08 02:06:53 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-08 12:22:25 (GMT) |
commit | 7824f44ecfef4f05caaa8f9536c523b8d645f102 (patch) | |
tree | 320c0c30a153123fb69e84bff660c18d5ebb241f /include/acpi/actypes.h | |
parent | 83b80bace4bdfc61abd16ca6ad0a51734a0f57f0 (diff) | |
download | linux-7824f44ecfef4f05caaa8f9536c523b8d645f102.tar.xz |
ACPICA: OSL: Add portable file IO to improve portability
This patch adds portable file IO to generic OSL to improve the portability
of the applications.
A portable application may use different file IO interfaces than the
standard C library ones. This patch thus introduces an abstract file IO
layer into the generic OSL.
Note that this patch does not introduce users of such interfaces, further
patches should introduce users one by one carefully with build tests
performed. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/actypes.h')
-rw-r--r-- | include/acpi/actypes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 19b26bb..5480209 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h @@ -1244,4 +1244,13 @@ struct acpi_memory_list { #define ACPI_OSI_WIN_7 0x0B #define ACPI_OSI_WIN_8 0x0C +/* Definitions of file IO */ + +#define ACPI_FILE_READING 0x01 +#define ACPI_FILE_WRITING 0x02 +#define ACPI_FILE_BINARY 0x04 + +#define ACPI_FILE_BEGIN 0x01 +#define ACPI_FILE_END 0x02 + #endif /* __ACTYPES_H__ */ |