.. | .. |
---|
3 | 3 | * |
---|
4 | 4 | * Name: acconfig.h - Global configuration constants |
---|
5 | 5 | * |
---|
6 | | - * Copyright (C) 2000 - 2018, Intel Corp. |
---|
| 6 | + * Copyright (C) 2000 - 2020, Intel Corp. |
---|
7 | 7 | * |
---|
8 | 8 | *****************************************************************************/ |
---|
9 | 9 | |
---|
.. | .. |
---|
95 | 95 | |
---|
96 | 96 | #define ACPI_DEFAULT_PAGE_SIZE 4096 /* Must be power of 2 */ |
---|
97 | 97 | |
---|
98 | | -/* owner_id tracking. 8 entries allows for 255 owner_ids */ |
---|
| 98 | +/* owner_id tracking. 128 entries allows for 4095 owner_ids */ |
---|
99 | 99 | |
---|
100 | | -#define ACPI_NUM_OWNERID_MASKS 8 |
---|
| 100 | +#define ACPI_NUM_OWNERID_MASKS 128 |
---|
101 | 101 | |
---|
102 | 102 | /* Size of the root table array is increased by this increment */ |
---|
103 | 103 | |
---|
.. | .. |
---|
121 | 121 | * |
---|
122 | 122 | *****************************************************************************/ |
---|
123 | 123 | |
---|
124 | | -/* Method info (in WALK_STATE), containing local variables and argumetns */ |
---|
| 124 | +/* Method info (in WALK_STATE), containing local variables and arguments */ |
---|
125 | 125 | |
---|
126 | 126 | #define ACPI_METHOD_NUM_LOCALS 8 |
---|
127 | 127 | #define ACPI_METHOD_MAX_LOCAL 7 |
---|
.. | .. |
---|
141 | 141 | |
---|
142 | 142 | /* |
---|
143 | 143 | * Maximal number of elements the Result Stack can contain, |
---|
144 | | - * it may be an arbitray value not exceeding the types of |
---|
| 144 | + * it may be an arbitrary value not exceeding the types of |
---|
145 | 145 | * result_size and result_count (now u8). |
---|
146 | 146 | */ |
---|
147 | 147 | #define ACPI_RESULTS_OBJ_NUM_MAX 255 |
---|
.. | .. |
---|
173 | 173 | #define ACPI_RSDP_CHECKSUM_LENGTH 20 |
---|
174 | 174 | #define ACPI_RSDP_XCHECKSUM_LENGTH 36 |
---|
175 | 175 | |
---|
176 | | -/* SMBus, GSBus and IPMI bidirectional buffer size */ |
---|
| 176 | +/* |
---|
| 177 | + * SMBus, GSBus and IPMI buffer sizes. All have a 2-byte header, |
---|
| 178 | + * containing both Status and Length. |
---|
| 179 | + */ |
---|
| 180 | +#define ACPI_SERIAL_HEADER_SIZE 2 /* Common for below. Status and Length fields */ |
---|
177 | 181 | |
---|
178 | | -#define ACPI_SMBUS_BUFFER_SIZE 34 |
---|
179 | | -#define ACPI_GSBUS_BUFFER_SIZE 34 |
---|
180 | | -#define ACPI_IPMI_BUFFER_SIZE 66 |
---|
| 182 | +#define ACPI_SMBUS_DATA_SIZE 32 |
---|
| 183 | +#define ACPI_SMBUS_BUFFER_SIZE ACPI_SERIAL_HEADER_SIZE + ACPI_SMBUS_DATA_SIZE |
---|
| 184 | + |
---|
| 185 | +#define ACPI_IPMI_DATA_SIZE 64 |
---|
| 186 | +#define ACPI_IPMI_BUFFER_SIZE ACPI_SERIAL_HEADER_SIZE + ACPI_IPMI_DATA_SIZE |
---|
| 187 | + |
---|
| 188 | +#define ACPI_MAX_GSBUS_DATA_SIZE 255 |
---|
| 189 | +#define ACPI_MAX_GSBUS_BUFFER_SIZE ACPI_SERIAL_HEADER_SIZE + ACPI_MAX_GSBUS_DATA_SIZE |
---|
181 | 190 | |
---|
182 | 191 | /* _sx_d and _sx_w control methods */ |
---|
183 | 192 | |
---|