Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
apei-internal.h File Reference
#include <linux/cper.h>
#include <linux/acpi.h>
#include <linux/acpi_io.h>

Go to the source code of this file.

Data Structures

struct  apei_exec_ins_type
 
struct  apei_exec_context
 
struct  apei_resources
 

Macros

#define APEI_EXEC_INS_ACCESS_REGISTER   0x0001
 
#define APEI_EXEC_SET_IP   1
 
#define apei_estatus_for_each_section(estatus, section)
 

Typedefs

typedef int(* apei_exec_ins_func_t )(struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 

Functions

void apei_exec_ctx_init (struct apei_exec_context *ctx, struct apei_exec_ins_type *ins_table, u32 instructions, struct acpi_whea_header *action_table, u32 entries)
 
int __apei_exec_run (struct apei_exec_context *ctx, u8 action, bool optional)
 
int apei_map_generic_address (struct acpi_generic_address *reg)
 
int apei_read (u64 *val, struct acpi_generic_address *reg)
 
int apei_write (u64 val, struct acpi_generic_address *reg)
 
int __apei_exec_read_register (struct acpi_whea_header *entry, u64 *val)
 
int __apei_exec_write_register (struct acpi_whea_header *entry, u64 val)
 
int apei_exec_read_register (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
int apei_exec_read_register_value (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
int apei_exec_write_register (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
int apei_exec_write_register_value (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
int apei_exec_noop (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
int apei_exec_pre_map_gars (struct apei_exec_context *ctx)
 
int apei_exec_post_unmap_gars (struct apei_exec_context *ctx)
 
void apei_resources_fini (struct apei_resources *resources)
 
int apei_resources_add (struct apei_resources *resources, unsigned long start, unsigned long size, bool iomem)
 
int apei_resources_sub (struct apei_resources *resources1, struct apei_resources *resources2)
 
int apei_resources_request (struct apei_resources *resources, const char *desc)
 
void apei_resources_release (struct apei_resources *resources)
 
int apei_exec_collect_resources (struct apei_exec_context *ctx, struct apei_resources *resources)
 
struct dentryapei_get_debugfs_dir (void)
 
void apei_estatus_print (const char *pfx, const struct acpi_hest_generic_status *estatus)
 
int apei_estatus_check_header (const struct acpi_hest_generic_status *estatus)
 
int apei_estatus_check (const struct acpi_hest_generic_status *estatus)
 
int apei_osc_setup (void)
 

Macro Definition Documentation

#define apei_estatus_for_each_section (   estatus,
  section 
)
Value:
for (section = (struct acpi_hest_generic_data *)(estatus + 1); \
(void *)section - (void *)estatus < estatus->data_length; \
section = (void *)(section+1) + section->error_data_length)

Definition at line 124 of file apei-internal.h.

#define APEI_EXEC_INS_ACCESS_REGISTER   0x0001

Definition at line 18 of file apei-internal.h.

#define APEI_EXEC_SET_IP   1

Definition at line 71 of file apei-internal.h.

Typedef Documentation

typedef int(* apei_exec_ins_func_t)(struct apei_exec_context *ctx, struct acpi_whea_header *entry)

Definition at line 15 of file apei-internal.h.

Function Documentation

int __apei_exec_read_register ( struct acpi_whea_header entry,
u64 val 
)

Definition at line 69 of file apei-base.c.

int __apei_exec_run ( struct apei_exec_context ctx,
u8  action,
bool  optional 
)

Definition at line 160 of file apei-base.c.

int __apei_exec_write_register ( struct acpi_whea_header entry,
u64  val 
)

Definition at line 111 of file apei-base.c.

int apei_estatus_check ( const struct acpi_hest_generic_status estatus)

Definition at line 384 of file cper.c.

int apei_estatus_check_header ( const struct acpi_hest_generic_status estatus)

Definition at line 371 of file cper.c.

void apei_estatus_print ( const char pfx,
const struct acpi_hest_generic_status estatus 
)

Definition at line 347 of file cper.c.

int apei_exec_collect_resources ( struct apei_exec_context ctx,
struct apei_resources resources 
)

Definition at line 727 of file apei-base.c.

void apei_exec_ctx_init ( struct apei_exec_context ctx,
struct apei_exec_ins_type ins_table,
u32  instructions,
struct acpi_whea_header action_table,
u32  entries 
)

Definition at line 56 of file apei-base.c.

int apei_exec_noop ( struct apei_exec_context ctx,
struct acpi_whea_header entry 
)

Definition at line 149 of file apei-base.c.

int apei_exec_post_unmap_gars ( struct apei_exec_context ctx)

Definition at line 285 of file apei-base.c.

int apei_exec_pre_map_gars ( struct apei_exec_context ctx)

Definition at line 255 of file apei-base.c.

int apei_exec_read_register ( struct apei_exec_context ctx,
struct acpi_whea_header entry 
)

Definition at line 82 of file apei-base.c.

int apei_exec_read_register_value ( struct apei_exec_context ctx,
struct acpi_whea_header entry 
)

Definition at line 97 of file apei-base.c.

int apei_exec_write_register ( struct apei_exec_context ctx,
struct acpi_whea_header entry 
)

Definition at line 130 of file apei-base.c.

int apei_exec_write_register_value ( struct apei_exec_context ctx,
struct acpi_whea_header entry 
)

Definition at line 137 of file apei-base.c.

struct dentry* apei_get_debugfs_dir ( void  )
read

Definition at line 735 of file apei-base.c.

int apei_map_generic_address ( struct acpi_generic_address reg)

Definition at line 614 of file apei-base.c.

int apei_osc_setup ( void  )

Definition at line 746 of file apei-base.c.

int apei_read ( u64 val,
struct acpi_generic_address reg 
)

Definition at line 628 of file apei-base.c.

int apei_resources_add ( struct apei_resources resources,
unsigned long  start,
unsigned long  size,
bool  iomem 
)

Definition at line 424 of file apei-base.c.

void apei_resources_fini ( struct apei_resources resources)

Definition at line 395 of file apei-base.c.

void apei_resources_release ( struct apei_resources resources)

Definition at line 545 of file apei-base.c.

int apei_resources_request ( struct apei_resources resources,
const char desc 
)

Definition at line 468 of file apei-base.c.

int apei_resources_sub ( struct apei_resources resources1,
struct apei_resources resources2 
)

Definition at line 440 of file apei-base.c.

int apei_write ( u64  val,
struct acpi_generic_address reg 
)

Definition at line 662 of file apei-base.c.