hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/acpi/acconfig.h
....@@ -3,7 +3,7 @@
33 *
44 * Name: acconfig.h - Global configuration constants
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -95,9 +95,9 @@
9595
9696 #define ACPI_DEFAULT_PAGE_SIZE 4096 /* Must be power of 2 */
9797
98
-/* owner_id tracking. 8 entries allows for 255 owner_ids */
98
+/* owner_id tracking. 128 entries allows for 4095 owner_ids */
9999
100
-#define ACPI_NUM_OWNERID_MASKS 8
100
+#define ACPI_NUM_OWNERID_MASKS 128
101101
102102 /* Size of the root table array is increased by this increment */
103103
....@@ -121,7 +121,7 @@
121121 *
122122 *****************************************************************************/
123123
124
-/* Method info (in WALK_STATE), containing local variables and argumetns */
124
+/* Method info (in WALK_STATE), containing local variables and arguments */
125125
126126 #define ACPI_METHOD_NUM_LOCALS 8
127127 #define ACPI_METHOD_MAX_LOCAL 7
....@@ -141,7 +141,7 @@
141141
142142 /*
143143 * 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
145145 * result_size and result_count (now u8).
146146 */
147147 #define ACPI_RESULTS_OBJ_NUM_MAX 255
....@@ -173,11 +173,20 @@
173173 #define ACPI_RSDP_CHECKSUM_LENGTH 20
174174 #define ACPI_RSDP_XCHECKSUM_LENGTH 36
175175
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 */
177181
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
181190
182191 /* _sx_d and _sx_w control methods */
183192