45 #include <linux/export.h>
50 #define _COMPONENT ACPI_HARDWARE
152 address, return_value,
159 width = reg->bit_width;
165 address, &value, width);
169 *return_value =
value;
171 if (reg->bit_width == 64) {
176 (address + 4), &value, 32);
180 *return_value |= ((
u64)value << 32);
185 "Read: %8.8X%8.8X width %2d from %8.8X%8.8X (%s)\n",
228 address, value, reg->bit_width);
234 width = reg->bit_width;
246 if (reg->bit_width == 64) {
257 "Wrote: %8.8X%8.8X width %2d to %8.8X%8.8X (%s)\n",
267 #if (!ACPI_REDUCED_HARDWARE)
322 "BitReg %X, ParentReg %X, Actual %8.8X, ReturnValue %8.8X\n",
324 register_value, value));
326 *return_value =
value;
385 goto unlock_and_exit;
416 if (register_value) {
424 "BitReg %X, ParentReg %X, Value %8.8X, Actual %8.8X\n",
479 "%s while evaluating SleepState [%s]\n",
498 "Sleep State return object is not a Package"));
511 "Sleep State return package does not have at least two elements"));
522 "Sleep State return package elements are not both Integers "
525 package.elements[0]),
527 package.elements[1])));
540 "While evaluating SleepState [%s], bad Sleep object %p type %s",