Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
acresrc.h File Reference
#include "amlresrc.h"

Go to the source code of this file.

Data Structures

struct  acpi_rsconvert_info
 
struct  acpi_rsdump_info
 
struct  acpi_vendor_walk_info
 

Macros

#define ACPI_RSC_COMPARE_AML_LENGTH   0
 
#define ACPI_RSC_COMPARE_VALUE   1
 
#define ACPI_RSC_TABLE_SIZE(d)   (sizeof (d) / sizeof (struct acpi_rsconvert_info))
 
#define ACPI_RS_OFFSET(f)   (u8) ACPI_OFFSET (struct acpi_resource,f)
 
#define AML_OFFSET(f)   (u8) ACPI_OFFSET (union aml_resource,f)
 

Typedefs

typedef struct acpi_rsconvert_info acpi_rsconvert_info
 
typedef struct acpi_rsdump_info acpi_rsdump_info
 

Enumerations

enum  ACPI_RSCONVERT_OPCODES {
  ACPI_RSC_INITGET = 0, ACPI_RSC_INITSET, ACPI_RSC_FLAGINIT, ACPI_RSC_1BITFLAG,
  ACPI_RSC_2BITFLAG, ACPI_RSC_3BITFLAG, ACPI_RSC_ADDRESS, ACPI_RSC_BITMASK,
  ACPI_RSC_BITMASK16, ACPI_RSC_COUNT, ACPI_RSC_COUNT16, ACPI_RSC_COUNT_GPIO_PIN,
  ACPI_RSC_COUNT_GPIO_RES, ACPI_RSC_COUNT_GPIO_VEN, ACPI_RSC_COUNT_SERIAL_RES, ACPI_RSC_COUNT_SERIAL_VEN,
  ACPI_RSC_DATA8, ACPI_RSC_EXIT_EQ, ACPI_RSC_EXIT_LE, ACPI_RSC_EXIT_NE,
  ACPI_RSC_LENGTH, ACPI_RSC_MOVE_GPIO_PIN, ACPI_RSC_MOVE_GPIO_RES, ACPI_RSC_MOVE_SERIAL_RES,
  ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RSC_MOVE8, ACPI_RSC_MOVE16, ACPI_RSC_MOVE32,
  ACPI_RSC_MOVE64, ACPI_RSC_SET8, ACPI_RSC_SOURCE, ACPI_RSC_SOURCEX
}
 
enum  ACPI_RSDUMP_OPCODES {
  ACPI_RSD_TITLE = 0, ACPI_RSD_1BITFLAG, ACPI_RSD_2BITFLAG, ACPI_RSD_3BITFLAG,
  ACPI_RSD_ADDRESS, ACPI_RSD_DWORDLIST, ACPI_RSD_LITERAL, ACPI_RSD_LONGLIST,
  ACPI_RSD_SHORTLIST, ACPI_RSD_SHORTLISTX, ACPI_RSD_SOURCE, ACPI_RSD_STRING,
  ACPI_RSD_UINT8, ACPI_RSD_UINT16, ACPI_RSD_UINT32, ACPI_RSD_UINT64,
  ACPI_RSD_WORDLIST
}
 

Functions

acpi_status acpi_rs_create_resource_list (union acpi_operand_object *aml_buffer, struct acpi_buffer *output_buffer)
 
acpi_status acpi_rs_create_aml_resources (struct acpi_resource *linked_list_buffer, struct acpi_buffer *output_buffer)
 
acpi_status acpi_rs_create_pci_routing_table (union acpi_operand_object *package_object, struct acpi_buffer *output_buffer)
 
acpi_status acpi_rs_get_prt_method_data (struct acpi_namespace_node *node, struct acpi_buffer *ret_buffer)
 
acpi_status acpi_rs_get_crs_method_data (struct acpi_namespace_node *node, struct acpi_buffer *ret_buffer)
 
acpi_status acpi_rs_get_prs_method_data (struct acpi_namespace_node *node, struct acpi_buffer *ret_buffer)
 
acpi_status acpi_rs_get_method_data (acpi_handle handle, char *path, struct acpi_buffer *ret_buffer)
 
acpi_status acpi_rs_set_srs_method_data (struct acpi_namespace_node *node, struct acpi_buffer *ret_buffer)
 
acpi_status acpi_rs_get_aei_method_data (struct acpi_namespace_node *node, struct acpi_buffer *ret_buffer)
 
acpi_status acpi_rs_get_list_length (u8 *aml_buffer, u32 aml_buffer_length, acpi_size *size_needed)
 
acpi_status acpi_rs_get_aml_length (struct acpi_resource *linked_list_buffer, acpi_size *size_needed)
 
acpi_status acpi_rs_get_pci_routing_table_length (union acpi_operand_object *package_object, acpi_size *buffer_size_needed)
 
acpi_status acpi_rs_convert_aml_to_resources (u8 *aml, u32 length, u32 offset, u8 resource_index, void **context)
 
acpi_status acpi_rs_convert_resources_to_aml (struct acpi_resource *resource, acpi_size aml_size_needed, u8 *output_buffer)
 
void acpi_rs_set_address_common (union aml_resource *aml, struct acpi_resource *resource)
 
u8 acpi_rs_get_address_common (struct acpi_resource *resource, union aml_resource *aml)
 
acpi_status acpi_rs_convert_aml_to_resource (struct acpi_resource *resource, union aml_resource *aml, struct acpi_rsconvert_info *info)
 
acpi_status acpi_rs_convert_resource_to_aml (struct acpi_resource *resource, union aml_resource *aml, struct acpi_rsconvert_info *info)
 
void acpi_rs_move_data (void *destination, void *source, u16 item_count, u8 move_type)
 
u8 acpi_rs_decode_bitmask (u16 mask, u8 *list)
 
u16 acpi_rs_encode_bitmask (u8 *list, u8 count)
 
acpi_rs_length acpi_rs_get_resource_source (acpi_rs_length resource_length, acpi_rs_length minimum_length, struct acpi_resource_source *resource_source, union aml_resource *aml, char *string_ptr)
 
acpi_rsdesc_size acpi_rs_set_resource_source (union aml_resource *aml, acpi_rs_length minimum_length, struct acpi_resource_source *resource_source)
 
void acpi_rs_set_resource_header (u8 descriptor_type, acpi_rsdesc_size total_length, union aml_resource *aml)
 
void acpi_rs_set_resource_length (acpi_rsdesc_size total_length, union aml_resource *aml)
 
void acpi_rs_dump_resource_list (struct acpi_resource *resource)
 
void acpi_rs_dump_irq_list (u8 *route_table)
 

Variables

const u8 acpi_gbl_aml_resource_sizes []
 
const u8 acpi_gbl_aml_resource_serial_bus_sizes []
 
struct acpi_rsconvert_infoacpi_gbl_set_resource_dispatch []
 
const u8 acpi_gbl_resource_struct_sizes []
 
const u8 acpi_gbl_resource_struct_serial_bus_sizes []
 
struct acpi_rsconvert_infoacpi_gbl_get_resource_dispatch []
 
struct acpi_rsconvert_infoacpi_gbl_convert_resource_serial_bus_dispatch []
 
struct acpi_rsconvert_info acpi_rs_convert_dma []
 
struct acpi_rsconvert_info acpi_rs_convert_end_dpf []
 
struct acpi_rsconvert_info acpi_rs_convert_io []
 
struct acpi_rsconvert_info acpi_rs_convert_fixed_io []
 
struct acpi_rsconvert_info acpi_rs_convert_end_tag []
 
struct acpi_rsconvert_info acpi_rs_convert_memory24 []
 
struct acpi_rsconvert_info acpi_rs_convert_generic_reg []
 
struct acpi_rsconvert_info acpi_rs_convert_memory32 []
 
struct acpi_rsconvert_info acpi_rs_convert_fixed_memory32 []
 
struct acpi_rsconvert_info acpi_rs_convert_address32 []
 
struct acpi_rsconvert_info acpi_rs_convert_address16 []
 
struct acpi_rsconvert_info acpi_rs_convert_ext_irq []
 
struct acpi_rsconvert_info acpi_rs_convert_address64 []
 
struct acpi_rsconvert_info acpi_rs_convert_ext_address64 []
 
struct acpi_rsconvert_info acpi_rs_convert_gpio []
 
struct acpi_rsconvert_info acpi_rs_convert_fixed_dma []
 
struct acpi_rsconvert_info acpi_rs_convert_i2c_serial_bus []
 
struct acpi_rsconvert_info acpi_rs_convert_spi_serial_bus []
 
struct acpi_rsconvert_info acpi_rs_convert_uart_serial_bus []
 
struct acpi_rsconvert_info acpi_rs_get_irq []
 
struct acpi_rsconvert_info acpi_rs_get_start_dpf []
 
struct acpi_rsconvert_info acpi_rs_get_vendor_small []
 
struct acpi_rsconvert_info acpi_rs_get_vendor_large []
 
struct acpi_rsconvert_info acpi_rs_set_irq []
 
struct acpi_rsconvert_info acpi_rs_set_start_dpf []
 
struct acpi_rsconvert_info acpi_rs_set_vendor []
 

Macro Definition Documentation

#define ACPI_RS_OFFSET (   f)    (u8) ACPI_OFFSET (struct acpi_resource,f)

Definition at line 118 of file acresrc.h.

#define ACPI_RSC_COMPARE_AML_LENGTH   0

Definition at line 113 of file acresrc.h.

#define ACPI_RSC_COMPARE_VALUE   1

Definition at line 114 of file acresrc.h.

#define ACPI_RSC_TABLE_SIZE (   d)    (sizeof (d) / sizeof (struct acpi_rsconvert_info))

Definition at line 116 of file acresrc.h.

#define AML_OFFSET (   f)    (u8) ACPI_OFFSET (union aml_resource,f)

Definition at line 119 of file acresrc.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
ACPI_RSC_INITGET 
ACPI_RSC_INITSET 
ACPI_RSC_FLAGINIT 
ACPI_RSC_1BITFLAG 
ACPI_RSC_2BITFLAG 
ACPI_RSC_3BITFLAG 
ACPI_RSC_ADDRESS 
ACPI_RSC_BITMASK 
ACPI_RSC_BITMASK16 
ACPI_RSC_COUNT 
ACPI_RSC_COUNT16 
ACPI_RSC_COUNT_GPIO_PIN 
ACPI_RSC_COUNT_GPIO_RES 
ACPI_RSC_COUNT_GPIO_VEN 
ACPI_RSC_COUNT_SERIAL_RES 
ACPI_RSC_COUNT_SERIAL_VEN 
ACPI_RSC_DATA8 
ACPI_RSC_EXIT_EQ 
ACPI_RSC_EXIT_LE 
ACPI_RSC_EXIT_NE 
ACPI_RSC_LENGTH 
ACPI_RSC_MOVE_GPIO_PIN 
ACPI_RSC_MOVE_GPIO_RES 
ACPI_RSC_MOVE_SERIAL_RES 
ACPI_RSC_MOVE_SERIAL_VEN 
ACPI_RSC_MOVE8 
ACPI_RSC_MOVE16 
ACPI_RSC_MOVE32 
ACPI_RSC_MOVE64 
ACPI_RSC_SET8 
ACPI_RSC_SOURCE 
ACPI_RSC_SOURCEX 

Definition at line 76 of file acresrc.h.

Enumerator:
ACPI_RSD_TITLE 
ACPI_RSD_1BITFLAG 
ACPI_RSD_2BITFLAG 
ACPI_RSD_3BITFLAG 
ACPI_RSD_ADDRESS 
ACPI_RSD_DWORDLIST 
ACPI_RSD_LITERAL 
ACPI_RSD_LONGLIST 
ACPI_RSD_SHORTLIST 
ACPI_RSD_SHORTLISTX 
ACPI_RSD_SOURCE 
ACPI_RSD_STRING 
ACPI_RSD_UINT8 
ACPI_RSD_UINT16 
ACPI_RSD_UINT32 
ACPI_RSD_UINT64 
ACPI_RSD_WORDLIST 

Definition at line 134 of file acresrc.h.

Function Documentation

acpi_status acpi_rs_convert_aml_to_resource ( struct acpi_resource resource,
union aml_resource aml,
struct acpi_rsconvert_info info 
)

Definition at line 71 of file rsmisc.c.

acpi_status acpi_rs_convert_aml_to_resources ( u8 aml,
u32  length,
u32  offset,
u8  resource_index,
void **  context 
)

Definition at line 66 of file rslist.c.

acpi_status acpi_rs_convert_resource_to_aml ( struct acpi_resource resource,
union aml_resource aml,
struct acpi_rsconvert_info info 
)

Definition at line 469 of file rsmisc.c.

acpi_status acpi_rs_convert_resources_to_aml ( struct acpi_resource resource,
acpi_size  aml_size_needed,
u8 output_buffer 
)

Definition at line 158 of file rslist.c.

acpi_status acpi_rs_create_aml_resources ( struct acpi_resource linked_list_buffer,
struct acpi_buffer output_buffer 
)

Definition at line 463 of file rscreate.c.

acpi_status acpi_rs_create_pci_routing_table ( union acpi_operand_object package_object,
struct acpi_buffer output_buffer 
)

Definition at line 211 of file rscreate.c.

acpi_status acpi_rs_create_resource_list ( union acpi_operand_object aml_buffer,
struct acpi_buffer output_buffer 
)

Definition at line 135 of file rscreate.c.

u8 acpi_rs_decode_bitmask ( u16  mask,
u8 list 
)

Definition at line 64 of file rsutils.c.

void acpi_rs_dump_irq_list ( u8 route_table)
void acpi_rs_dump_resource_list ( struct acpi_resource resource)
u16 acpi_rs_encode_bitmask ( u8 list,
u8  count 
)

Definition at line 98 of file rsutils.c.

u8 acpi_rs_get_address_common ( struct acpi_resource resource,
union aml_resource aml 
)

Definition at line 307 of file rsaddr.c.

acpi_status acpi_rs_get_aei_method_data ( struct acpi_namespace_node node,
struct acpi_buffer ret_buffer 
)

Definition at line 614 of file rsutils.c.

acpi_status acpi_rs_get_aml_length ( struct acpi_resource linked_list_buffer,
acpi_size *  size_needed 
)

Definition at line 188 of file rscalc.c.

acpi_status acpi_rs_get_crs_method_data ( struct acpi_namespace_node node,
struct acpi_buffer ret_buffer 
)

Definition at line 512 of file rsutils.c.

acpi_status acpi_rs_get_list_length ( u8 aml_buffer,
u32  aml_buffer_length,
acpi_size *  size_needed 
)

Definition at line 385 of file rscalc.c.

acpi_status acpi_rs_get_method_data ( acpi_handle  handle,
char path,
struct acpi_buffer ret_buffer 
)

Definition at line 665 of file rsutils.c.

acpi_status acpi_rs_get_pci_routing_table_length ( union acpi_operand_object package_object,
acpi_size *  buffer_size_needed 
)

Definition at line 585 of file rscalc.c.

acpi_status acpi_rs_get_prs_method_data ( struct acpi_namespace_node node,
struct acpi_buffer ret_buffer 
)
acpi_status acpi_rs_get_prt_method_data ( struct acpi_namespace_node node,
struct acpi_buffer ret_buffer 
)

Definition at line 463 of file rsutils.c.

acpi_rs_length acpi_rs_get_resource_source ( acpi_rs_length  resource_length,
acpi_rs_length  minimum_length,
struct acpi_resource_source resource_source,
union aml_resource aml,
char string_ptr 
)

Definition at line 316 of file rsutils.c.

void acpi_rs_move_data ( void destination,
void source,
u16  item_count,
u8  move_type 
)

Definition at line 132 of file rsutils.c.

void acpi_rs_set_address_common ( union aml_resource aml,
struct acpi_resource resource 
)

Definition at line 357 of file rsaddr.c.

void acpi_rs_set_resource_header ( u8  descriptor_type,
acpi_rsdesc_size  total_length,
union aml_resource aml 
)

Definition at line 249 of file rsutils.c.

void acpi_rs_set_resource_length ( acpi_rsdesc_size  total_length,
union aml_resource aml 
)

Definition at line 198 of file rsutils.c.

acpi_rsdesc_size acpi_rs_set_resource_source ( union aml_resource aml,
acpi_rs_length  minimum_length,
struct acpi_resource_source resource_source 
)

Definition at line 403 of file rsutils.c.

acpi_status acpi_rs_set_srs_method_data ( struct acpi_namespace_node node,
struct acpi_buffer ret_buffer 
)

Definition at line 717 of file rsutils.c.

Variable Documentation

const u8 acpi_gbl_aml_resource_serial_bus_sizes[]

Definition at line 238 of file rsinfo.c.

const u8 acpi_gbl_aml_resource_sizes[]

Definition at line 177 of file rsinfo.c.

struct acpi_rsconvert_info* acpi_gbl_convert_resource_serial_bus_dispatch[]

Definition at line 128 of file rsinfo.c.

struct acpi_rsconvert_info* acpi_gbl_get_resource_dispatch[]

Definition at line 87 of file rsinfo.c.

const u8 acpi_gbl_resource_struct_serial_bus_sizes[]

Definition at line 245 of file rsinfo.c.

const u8 acpi_gbl_resource_struct_sizes[]

Definition at line 200 of file rsinfo.c.

struct acpi_rsconvert_info* acpi_gbl_set_resource_dispatch[]

Definition at line 62 of file rsinfo.c.

struct acpi_rsconvert_info acpi_rs_convert_address16[]

Definition at line 56 of file rsaddr.c.

struct acpi_rsconvert_info acpi_rs_convert_address32[]

Definition at line 94 of file rsaddr.c.

struct acpi_rsconvert_info acpi_rs_convert_address64[]

Definition at line 132 of file rsaddr.c.

struct acpi_rsconvert_info acpi_rs_convert_dma[]

Definition at line 238 of file rsirq.c.

struct acpi_rsconvert_info acpi_rs_convert_end_dpf[]

Definition at line 152 of file rsio.c.

struct acpi_rsconvert_info acpi_rs_convert_end_tag[]

Definition at line 168 of file rsio.c.

struct acpi_rsconvert_info acpi_rs_convert_ext_address64[]

Definition at line 170 of file rsaddr.c.

struct acpi_rsconvert_info acpi_rs_convert_ext_irq[]

Definition at line 184 of file rsirq.c.

struct acpi_rsconvert_info acpi_rs_convert_fixed_dma[]

Definition at line 274 of file rsirq.c.

struct acpi_rsconvert_info acpi_rs_convert_fixed_io[]

Definition at line 92 of file rsio.c.

struct acpi_rsconvert_info acpi_rs_convert_fixed_memory32[]

Definition at line 120 of file rsmemory.c.

struct acpi_rsconvert_info acpi_rs_convert_generic_reg[]

Definition at line 120 of file rsio.c.

struct acpi_rsconvert_info acpi_rs_convert_gpio[]

Definition at line 56 of file rsserial.c.

struct acpi_rsconvert_info acpi_rs_convert_i2c_serial_bus[]

Definition at line 150 of file rsserial.c.

struct acpi_rsconvert_info acpi_rs_convert_io[]

Definition at line 56 of file rsio.c.

struct acpi_rsconvert_info acpi_rs_convert_memory24[]

Definition at line 56 of file rsmemory.c.

struct acpi_rsconvert_info acpi_rs_convert_memory32[]

Definition at line 88 of file rsmemory.c.

struct acpi_rsconvert_info acpi_rs_convert_spi_serial_bus[]

Definition at line 236 of file rsserial.c.

struct acpi_rsconvert_info acpi_rs_convert_uart_serial_bus[]

Definition at line 338 of file rsserial.c.

struct acpi_rsconvert_info acpi_rs_get_irq[]

Definition at line 56 of file rsirq.c.

struct acpi_rsconvert_info acpi_rs_get_start_dpf[]

Definition at line 189 of file rsio.c.

struct acpi_rsconvert_info acpi_rs_get_vendor_large[]

Definition at line 175 of file rsmemory.c.

struct acpi_rsconvert_info acpi_rs_get_vendor_small[]

Definition at line 150 of file rsmemory.c.

struct acpi_rsconvert_info acpi_rs_set_irq[]

Definition at line 104 of file rsirq.c.

struct acpi_rsconvert_info acpi_rs_set_start_dpf[]

Definition at line 229 of file rsio.c.

struct acpi_rsconvert_info acpi_rs_set_vendor[]

Definition at line 200 of file rsmemory.c.