diff options
Diffstat (limited to 'include/acpi/acrestyp.h')
-rw-r--r-- | include/acpi/acrestyp.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/acpi/acrestyp.h b/include/acpi/acrestyp.h index 40349ae65464..cbf4bf977f75 100644 --- a/include/acpi/acrestyp.h +++ b/include/acpi/acrestyp.h | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2012, Intel Corp. | 8 | * Copyright (C) 2000 - 2013, Intel Corp. |
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 |
@@ -102,8 +102,11 @@ typedef u32 acpi_rsdesc_size; /* Max Resource Descriptor size is (Length+3) = (6 | |||
102 | 102 | ||
103 | #define ACPI_EXCLUSIVE (u8) 0x00 | 103 | #define ACPI_EXCLUSIVE (u8) 0x00 |
104 | #define ACPI_SHARED (u8) 0x01 | 104 | #define ACPI_SHARED (u8) 0x01 |
105 | #define ACPI_EXCLUSIVE_AND_WAKE (u8) 0x02 | 105 | |
106 | #define ACPI_SHARED_AND_WAKE (u8) 0x03 | 106 | /* Wake */ |
107 | |||
108 | #define ACPI_NOT_WAKE_CAPABLE (u8) 0x00 | ||
109 | #define ACPI_WAKE_CAPABLE (u8) 0x01 | ||
107 | 110 | ||
108 | /* | 111 | /* |
109 | * DMA Attributes | 112 | * DMA Attributes |
@@ -171,6 +174,7 @@ struct acpi_resource_irq { | |||
171 | u8 triggering; | 174 | u8 triggering; |
172 | u8 polarity; | 175 | u8 polarity; |
173 | u8 sharable; | 176 | u8 sharable; |
177 | u8 wake_capable; | ||
174 | u8 interrupt_count; | 178 | u8 interrupt_count; |
175 | u8 interrupts[1]; | 179 | u8 interrupts[1]; |
176 | }; | 180 | }; |
@@ -346,6 +350,7 @@ struct acpi_resource_extended_irq { | |||
346 | u8 triggering; | 350 | u8 triggering; |
347 | u8 polarity; | 351 | u8 polarity; |
348 | u8 sharable; | 352 | u8 sharable; |
353 | u8 wake_capable; | ||
349 | u8 interrupt_count; | 354 | u8 interrupt_count; |
350 | struct acpi_resource_source resource_source; | 355 | struct acpi_resource_source resource_source; |
351 | u32 interrupts[1]; | 356 | u32 interrupts[1]; |
@@ -365,6 +370,7 @@ struct acpi_resource_gpio { | |||
365 | u8 producer_consumer; /* For values, see Producer/Consumer above */ | 370 | u8 producer_consumer; /* For values, see Producer/Consumer above */ |
366 | u8 pin_config; | 371 | u8 pin_config; |
367 | u8 sharable; /* For values, see Interrupt Attributes above */ | 372 | u8 sharable; /* For values, see Interrupt Attributes above */ |
373 | u8 wake_capable; /* For values, see Interrupt Attributes above */ | ||
368 | u8 io_restriction; | 374 | u8 io_restriction; |
369 | u8 triggering; /* For values, see Interrupt Attributes above */ | 375 | u8 triggering; /* For values, see Interrupt Attributes above */ |
370 | u8 polarity; /* For values, see Interrupt Attributes above */ | 376 | u8 polarity; /* For values, see Interrupt Attributes above */ |
@@ -591,7 +597,10 @@ struct acpi_resource { | |||
591 | #define ACPI_RS_SIZE_MIN (u32) ACPI_ROUND_UP_TO_NATIVE_WORD (12) | 597 | #define ACPI_RS_SIZE_MIN (u32) ACPI_ROUND_UP_TO_NATIVE_WORD (12) |
592 | #define ACPI_RS_SIZE(type) (u32) (ACPI_RS_SIZE_NO_DATA + sizeof (type)) | 598 | #define ACPI_RS_SIZE(type) (u32) (ACPI_RS_SIZE_NO_DATA + sizeof (type)) |
593 | 599 | ||
594 | #define ACPI_NEXT_RESOURCE(res) (struct acpi_resource *)((u8 *) res + res->length) | 600 | /* Macro for walking resource templates with multiple descriptors */ |
601 | |||
602 | #define ACPI_NEXT_RESOURCE(res) \ | ||
603 | ACPI_ADD_PTR (struct acpi_resource, (res), (res)->length) | ||
595 | 604 | ||
596 | struct acpi_pci_routing_table { | 605 | struct acpi_pci_routing_table { |
597 | u32 length; | 606 | u32 length; |