diff options
Diffstat (limited to 'include/acpi/actables.h')
-rw-r--r-- | include/acpi/actables.h | 106 |
1 files changed, 38 insertions, 68 deletions
diff --git a/include/acpi/actables.h b/include/acpi/actables.h index 4dbaf02fe526..2b9f46f9da4d 100644 --- a/include/acpi/actables.h +++ b/include/acpi/actables.h | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2006, R. Byron Moore | 8 | * Copyright (C) 2000 - 2007, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -44,105 +44,75 @@ | |||
44 | #ifndef __ACTABLES_H__ | 44 | #ifndef __ACTABLES_H__ |
45 | #define __ACTABLES_H__ | 45 | #define __ACTABLES_H__ |
46 | 46 | ||
47 | /* Used in acpi_tb_map_acpi_table for size parameter if table header is to be used */ | 47 | acpi_status acpi_allocate_root_table(u32 initial_table_count); |
48 | |||
49 | #define SIZE_IN_HEADER 0 | ||
50 | 48 | ||
51 | /* | 49 | /* |
52 | * tbconvrt - Table conversion routines | 50 | * tbfadt - FADT parse/convert/validate |
53 | */ | 51 | */ |
54 | acpi_status acpi_tb_convert_to_xsdt(struct acpi_table_desc *table_info); | 52 | void acpi_tb_parse_fadt(acpi_native_uint table_index, u8 flags); |
55 | |||
56 | acpi_status acpi_tb_convert_table_fadt(void); | ||
57 | 53 | ||
58 | acpi_status acpi_tb_build_common_facs(struct acpi_table_desc *table_info); | 54 | void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length); |
59 | |||
60 | u32 | ||
61 | acpi_tb_get_table_count(struct rsdp_descriptor *RSDP, | ||
62 | struct acpi_table_header *RSDT); | ||
63 | 55 | ||
64 | /* | 56 | /* |
65 | * tbget - Table "get" routines | 57 | * tbfind - find ACPI table |
66 | */ | 58 | */ |
67 | acpi_status | 59 | acpi_status |
68 | acpi_tb_get_table(struct acpi_pointer *address, | 60 | acpi_tb_find_table(char *signature, |
69 | struct acpi_table_desc *table_info); | 61 | char *oem_id, |
70 | 62 | char *oem_table_id, acpi_native_uint * table_index); | |
71 | acpi_status | ||
72 | acpi_tb_get_table_header(struct acpi_pointer *address, | ||
73 | struct acpi_table_header *return_header); | ||
74 | |||
75 | acpi_status | ||
76 | acpi_tb_get_table_body(struct acpi_pointer *address, | ||
77 | struct acpi_table_header *header, | ||
78 | struct acpi_table_desc *table_info); | ||
79 | |||
80 | acpi_status | ||
81 | acpi_tb_get_table_ptr(acpi_table_type table_type, | ||
82 | u32 instance, struct acpi_table_header **table_ptr_loc); | ||
83 | |||
84 | acpi_status acpi_tb_verify_rsdp(struct acpi_pointer *address); | ||
85 | |||
86 | void acpi_tb_get_rsdt_address(struct acpi_pointer *out_address); | ||
87 | |||
88 | acpi_status acpi_tb_validate_rsdt(struct acpi_table_header *table_ptr); | ||
89 | 63 | ||
90 | /* | 64 | /* |
91 | * tbgetall - get multiple required tables | 65 | * tbinstal - Table removal and deletion |
92 | */ | 66 | */ |
93 | acpi_status acpi_tb_get_required_tables(void); | 67 | acpi_status acpi_tb_resize_root_table_list(void); |
94 | 68 | ||
95 | /* | 69 | acpi_status acpi_tb_verify_table(struct acpi_table_desc *table_desc); |
96 | * tbinstall - Table installation | ||
97 | */ | ||
98 | acpi_status acpi_tb_install_table(struct acpi_table_desc *table_info); | ||
99 | 70 | ||
100 | acpi_status | 71 | acpi_status |
101 | acpi_tb_recognize_table(struct acpi_table_desc *table_info, u8 search_type); | 72 | acpi_tb_add_table(struct acpi_table_desc *table_desc, |
73 | acpi_native_uint * table_index); | ||
102 | 74 | ||
103 | acpi_status | 75 | acpi_status |
104 | acpi_tb_init_table_descriptor(acpi_table_type table_type, | 76 | acpi_tb_store_table(acpi_physical_address address, |
105 | struct acpi_table_desc *table_info); | 77 | struct acpi_table_header *table, |
78 | u32 length, u8 flags, acpi_native_uint * table_index); | ||
106 | 79 | ||
107 | /* | 80 | void acpi_tb_delete_table(struct acpi_table_desc *table_desc); |
108 | * tbremove - Table removal and deletion | ||
109 | */ | ||
110 | void acpi_tb_delete_all_tables(void); | ||
111 | 81 | ||
112 | void acpi_tb_delete_tables_by_type(acpi_table_type type); | 82 | void acpi_tb_terminate(void); |
113 | 83 | ||
114 | void acpi_tb_delete_single_table(struct acpi_table_desc *table_desc); | 84 | void acpi_tb_delete_namespace_by_owner(acpi_native_uint table_index); |
115 | 85 | ||
116 | struct acpi_table_desc *acpi_tb_uninstall_table(struct acpi_table_desc | 86 | acpi_status acpi_tb_allocate_owner_id(acpi_native_uint table_index); |
117 | *table_desc); | 87 | |
88 | acpi_status acpi_tb_release_owner_id(acpi_native_uint table_index); | ||
118 | 89 | ||
119 | /* | ||
120 | * tbxfroot - RSDP, RSDT utilities | ||
121 | */ | ||
122 | acpi_status | 90 | acpi_status |
123 | acpi_tb_find_table(char *signature, | 91 | acpi_tb_get_owner_id(acpi_native_uint table_index, acpi_owner_id * owner_id); |
124 | char *oem_id, | ||
125 | char *oem_table_id, struct acpi_table_header **table_ptr); | ||
126 | 92 | ||
127 | acpi_status acpi_tb_get_table_rsdt(void); | 93 | u8 acpi_tb_is_table_loaded(acpi_native_uint table_index); |
128 | 94 | ||
129 | acpi_status acpi_tb_validate_rsdp(struct rsdp_descriptor *rsdp); | 95 | void acpi_tb_set_table_loaded_flag(acpi_native_uint table_index, u8 is_loaded); |
130 | 96 | ||
131 | /* | 97 | /* |
132 | * tbutils - common table utilities | 98 | * tbutils - table manager utilities |
133 | */ | 99 | */ |
134 | acpi_status acpi_tb_is_table_installed(struct acpi_table_desc *new_table_desc); | 100 | u8 acpi_tb_tables_loaded(void); |
135 | 101 | ||
136 | acpi_status | 102 | void |
137 | acpi_tb_verify_table_checksum(struct acpi_table_header *table_header); | 103 | acpi_tb_print_table_header(acpi_physical_address address, |
104 | struct acpi_table_header *header); | ||
138 | 105 | ||
139 | u8 acpi_tb_sum_table(void *buffer, u32 length); | 106 | u8 acpi_tb_checksum(u8 * buffer, acpi_native_uint length); |
140 | 107 | ||
141 | u8 acpi_tb_generate_checksum(struct acpi_table_header *table); | 108 | acpi_status |
109 | acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length); | ||
142 | 110 | ||
143 | void acpi_tb_set_checksum(struct acpi_table_header *table); | 111 | void |
112 | acpi_tb_install_table(acpi_physical_address address, | ||
113 | u8 flags, char *signature, acpi_native_uint table_index); | ||
144 | 114 | ||
145 | acpi_status | 115 | acpi_status |
146 | acpi_tb_validate_table_header(struct acpi_table_header *table_header); | 116 | acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags); |
147 | 117 | ||
148 | #endif /* __ACTABLES_H__ */ | 118 | #endif /* __ACTABLES_H__ */ |