Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95480
b: refs/heads/master
c: 7a5bb99
h: refs/heads/master
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed Apr 22, 2008
1 parent ca982a6 commit cf1beca
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ba7d25c70699cdd3e06fc049d8884ee54b9d5db
refs/heads/master: 7a5bb9964512c5313af19310c6a3002ec54f7336
5 changes: 2 additions & 3 deletions trunk/drivers/acpi/utilities/utobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,8 @@ acpi_ut_get_simple_object_size(union acpi_operand_object *internal_object,
case ACPI_TYPE_PROCESSOR:
case ACPI_TYPE_POWER:

/*
* No extra data for these types
*/
/* No extra data for these types */

break;

case ACPI_TYPE_LOCAL_REFERENCE:
Expand Down
29 changes: 17 additions & 12 deletions trunk/include/acpi/actypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -639,46 +639,51 @@ typedef u8 acpi_adr_space_type;
/*
* External ACPI object definition
*/

/*
* Note: Type == ACPI_TYPE_ANY (0) is used to indicate a NULL package element
* or an unresolved named reference.
*/
union acpi_object {
acpi_object_type type; /* See definition of acpi_ns_type for values */
struct {
acpi_object_type type;
acpi_object_type type; /* ACPI_TYPE_INTEGER */
acpi_integer value; /* The actual number */
} integer;

struct {
acpi_object_type type;
acpi_object_type type; /* ACPI_TYPE_STRING */
u32 length; /* # of bytes in string, excluding trailing null */
char *pointer; /* points to the string value */
} string;

struct {
acpi_object_type type;
acpi_object_type type; /* ACPI_TYPE_BUFFER */
u32 length; /* # of bytes in buffer */
u8 *pointer; /* points to the buffer */
} buffer;

struct {
acpi_object_type type;
u32 fill1;
acpi_handle handle; /* object reference */
} reference;

struct {
acpi_object_type type;
acpi_object_type type; /* ACPI_TYPE_PACKAGE */
u32 count; /* # of elements in package */
union acpi_object *elements; /* Pointer to an array of ACPI_OBJECTs */
} package;

struct {
acpi_object_type type;
acpi_object_type type; /* ACPI_TYPE_LOCAL_REFERENCE */
acpi_object_type actual_type; /* Type associated with the Handle */
acpi_handle handle; /* object reference */
} reference;

struct {
acpi_object_type type; /* ACPI_TYPE_PROCESSOR */
u32 proc_id;
acpi_io_address pblk_address;
u32 pblk_length;
} processor;

struct {
acpi_object_type type;
acpi_object_type type; /* ACPI_TYPE_POWER */
u32 system_level;
u32 resource_order;
} power_resource;
Expand Down

0 comments on commit cf1beca

Please sign in to comment.