diff options
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 2 | ||||
-rw-r--r-- | include/acpi/acpi_drivers.h | 3 | ||||
-rw-r--r-- | include/acpi/acpi_hest.h | 12 | ||||
-rw-r--r-- | include/acpi/apei.h | 34 | ||||
-rw-r--r-- | include/acpi/atomicio.h | 10 | ||||
-rw-r--r-- | include/acpi/hed.h | 18 | ||||
-rw-r--r-- | include/acpi/processor.h | 13 | ||||
-rw-r--r-- | include/acpi/video.h | 16 |
8 files changed, 80 insertions, 28 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 7bf83ddf82e0..baacd98e7cc6 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -373,7 +373,7 @@ struct acpi_pci_root { | |||
373 | struct acpi_pci_id id; | 373 | struct acpi_pci_id id; |
374 | struct pci_bus *bus; | 374 | struct pci_bus *bus; |
375 | u16 segment; | 375 | u16 segment; |
376 | u8 bus_nr; | 376 | struct resource secondary; /* downstream bus range */ |
377 | 377 | ||
378 | u32 osc_support_set; /* _OSC state of support bits */ | 378 | u32 osc_support_set; /* _OSC state of support bits */ |
379 | u32 osc_control_set; /* _OSC state of control bits */ | 379 | u32 osc_control_set; /* _OSC state of control bits */ |
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 4f7b44866b76..23d78b4d088b 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -104,8 +104,7 @@ int acpi_pci_bind_root(struct acpi_device *device); | |||
104 | 104 | ||
105 | /* Arch-defined function to add a bus to the system */ | 105 | /* Arch-defined function to add a bus to the system */ |
106 | 106 | ||
107 | struct pci_bus *pci_acpi_scan_root(struct acpi_device *device, int domain, | 107 | struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root); |
108 | int bus); | ||
109 | void pci_acpi_crs_quirks(void); | 108 | void pci_acpi_crs_quirks(void); |
110 | 109 | ||
111 | /* -------------------------------------------------------------------------- | 110 | /* -------------------------------------------------------------------------- |
diff --git a/include/acpi/acpi_hest.h b/include/acpi/acpi_hest.h deleted file mode 100644 index 63194d03cb2d..000000000000 --- a/include/acpi/acpi_hest.h +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | #ifndef __ACPI_HEST_H | ||
2 | #define __ACPI_HEST_H | ||
3 | |||
4 | #include <linux/pci.h> | ||
5 | |||
6 | #ifdef CONFIG_ACPI | ||
7 | extern int acpi_hest_firmware_first_pci(struct pci_dev *pci); | ||
8 | #else | ||
9 | static inline int acpi_hest_firmware_first_pci(struct pci_dev *pci) { return 0; } | ||
10 | #endif | ||
11 | |||
12 | #endif | ||
diff --git a/include/acpi/apei.h b/include/acpi/apei.h new file mode 100644 index 000000000000..b3365025ff8d --- /dev/null +++ b/include/acpi/apei.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * apei.h - ACPI Platform Error Interface | ||
3 | */ | ||
4 | |||
5 | #ifndef ACPI_APEI_H | ||
6 | #define ACPI_APEI_H | ||
7 | |||
8 | #include <linux/acpi.h> | ||
9 | #include <linux/cper.h> | ||
10 | #include <asm/ioctls.h> | ||
11 | |||
12 | #define APEI_ERST_INVALID_RECORD_ID 0xffffffffffffffffULL | ||
13 | |||
14 | #define APEI_ERST_CLEAR_RECORD _IOW('E', 1, u64) | ||
15 | #define APEI_ERST_GET_RECORD_COUNT _IOR('E', 2, u32) | ||
16 | |||
17 | #ifdef __KERNEL__ | ||
18 | |||
19 | extern int hest_disable; | ||
20 | extern int erst_disable; | ||
21 | |||
22 | typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data); | ||
23 | int apei_hest_parse(apei_hest_func_t func, void *data); | ||
24 | |||
25 | int erst_write(const struct cper_record_header *record); | ||
26 | ssize_t erst_get_record_count(void); | ||
27 | int erst_get_next_record_id(u64 *record_id); | ||
28 | ssize_t erst_read(u64 record_id, struct cper_record_header *record, | ||
29 | size_t buflen); | ||
30 | ssize_t erst_read_next(struct cper_record_header *record, size_t buflen); | ||
31 | int erst_clear(u64 record_id); | ||
32 | |||
33 | #endif | ||
34 | #endif | ||
diff --git a/include/acpi/atomicio.h b/include/acpi/atomicio.h new file mode 100644 index 000000000000..8b9fb4b0b9ce --- /dev/null +++ b/include/acpi/atomicio.h | |||
@@ -0,0 +1,10 @@ | |||
1 | #ifndef ACPI_ATOMIC_IO_H | ||
2 | #define ACPI_ATOMIC_IO_H | ||
3 | |||
4 | int acpi_pre_map_gar(struct acpi_generic_address *reg); | ||
5 | int acpi_post_unmap_gar(struct acpi_generic_address *reg); | ||
6 | |||
7 | int acpi_atomic_read(u64 *val, struct acpi_generic_address *reg); | ||
8 | int acpi_atomic_write(u64 val, struct acpi_generic_address *reg); | ||
9 | |||
10 | #endif | ||
diff --git a/include/acpi/hed.h b/include/acpi/hed.h new file mode 100644 index 000000000000..46e1249b70cc --- /dev/null +++ b/include/acpi/hed.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * hed.h - ACPI Hardware Error Device | ||
3 | * | ||
4 | * Copyright (C) 2009, Intel Corp. | ||
5 | * Author: Huang Ying <ying.huang@intel.com> | ||
6 | * | ||
7 | * This file is released under the GPLv2. | ||
8 | */ | ||
9 | |||
10 | #ifndef ACPI_HED_H | ||
11 | #define ACPI_HED_H | ||
12 | |||
13 | #include <linux/notifier.h> | ||
14 | |||
15 | int register_acpi_hed_notifier(struct notifier_block *nb); | ||
16 | void unregister_acpi_hed_notifier(struct notifier_block *nb); | ||
17 | |||
18 | #endif | ||
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 86825ddbe14e..da565a48240e 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h | |||
@@ -52,17 +52,6 @@ struct acpi_power_register { | |||
52 | u64 address; | 52 | u64 address; |
53 | } __attribute__ ((packed)); | 53 | } __attribute__ ((packed)); |
54 | 54 | ||
55 | struct acpi_processor_cx_policy { | ||
56 | u32 count; | ||
57 | struct acpi_processor_cx *state; | ||
58 | struct { | ||
59 | u32 time; | ||
60 | u32 ticks; | ||
61 | u32 count; | ||
62 | u32 bm; | ||
63 | } threshold; | ||
64 | }; | ||
65 | |||
66 | struct acpi_processor_cx { | 55 | struct acpi_processor_cx { |
67 | u8 valid; | 56 | u8 valid; |
68 | u8 type; | 57 | u8 type; |
@@ -74,8 +63,6 @@ struct acpi_processor_cx { | |||
74 | u32 power; | 63 | u32 power; |
75 | u32 usage; | 64 | u32 usage; |
76 | u64 time; | 65 | u64 time; |
77 | struct acpi_processor_cx_policy promotion; | ||
78 | struct acpi_processor_cx_policy demotion; | ||
79 | char desc[ACPI_CX_DESC_LEN]; | 66 | char desc[ACPI_CX_DESC_LEN]; |
80 | }; | 67 | }; |
81 | 68 | ||
diff --git a/include/acpi/video.h b/include/acpi/video.h index cf7be3dd157b..551793c9b6e8 100644 --- a/include/acpi/video.h +++ b/include/acpi/video.h | |||
@@ -1,12 +1,28 @@ | |||
1 | #ifndef __ACPI_VIDEO_H | 1 | #ifndef __ACPI_VIDEO_H |
2 | #define __ACPI_VIDEO_H | 2 | #define __ACPI_VIDEO_H |
3 | 3 | ||
4 | #define ACPI_VIDEO_DISPLAY_CRT 1 | ||
5 | #define ACPI_VIDEO_DISPLAY_TV 2 | ||
6 | #define ACPI_VIDEO_DISPLAY_DVI 3 | ||
7 | #define ACPI_VIDEO_DISPLAY_LCD 4 | ||
8 | |||
9 | #define ACPI_VIDEO_DISPLAY_LEGACY_MONITOR 0x0100 | ||
10 | #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL 0x0110 | ||
11 | #define ACPI_VIDEO_DISPLAY_LEGACY_TV 0x0200 | ||
12 | |||
4 | #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE) | 13 | #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE) |
5 | extern int acpi_video_register(void); | 14 | extern int acpi_video_register(void); |
6 | extern void acpi_video_unregister(void); | 15 | extern void acpi_video_unregister(void); |
16 | extern int acpi_video_get_edid(struct acpi_device *device, int type, | ||
17 | int device_id, void **edid); | ||
7 | #else | 18 | #else |
8 | static inline int acpi_video_register(void) { return 0; } | 19 | static inline int acpi_video_register(void) { return 0; } |
9 | static inline void acpi_video_unregister(void) { return; } | 20 | static inline void acpi_video_unregister(void) { return; } |
21 | static inline int acpi_video_get_edid(struct acpi_device *device, int type, | ||
22 | int device_id, void **edid) | ||
23 | { | ||
24 | return -ENODEV; | ||
25 | } | ||
10 | #endif | 26 | #endif |
11 | 27 | ||
12 | #endif | 28 | #endif |