Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
apei-base.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/acpi.h>
#include <linux/acpi_io.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/kref.h>
#include <linux/rculist.h>
#include <linux/interrupt.h>
#include <linux/debugfs.h>
#include "apei-internal.h"

Go to the source code of this file.

Data Structures

struct  apei_res
 

Macros

#define APEI_PFX   "APEI: "
 
#define APEI_EXEC_PRESERVE_REGISTER   0x1
 

Typedefs

typedef int(* apei_exec_entry_func_t )(struct apei_exec_context *ctx, struct acpi_whea_header *entry, void *data)
 

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)
 
 EXPORT_SYMBOL_GPL (apei_exec_ctx_init)
 
int __apei_exec_read_register (struct acpi_whea_header *entry, u64 *val)
 
int apei_exec_read_register (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
 EXPORT_SYMBOL_GPL (apei_exec_read_register)
 
int apei_exec_read_register_value (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
 EXPORT_SYMBOL_GPL (apei_exec_read_register_value)
 
int __apei_exec_write_register (struct acpi_whea_header *entry, u64 val)
 
int apei_exec_write_register (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
 EXPORT_SYMBOL_GPL (apei_exec_write_register)
 
int apei_exec_write_register_value (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
 EXPORT_SYMBOL_GPL (apei_exec_write_register_value)
 
int apei_exec_noop (struct apei_exec_context *ctx, struct acpi_whea_header *entry)
 
 EXPORT_SYMBOL_GPL (apei_exec_noop)
 
int __apei_exec_run (struct apei_exec_context *ctx, u8 action, bool optional)
 
 EXPORT_SYMBOL_GPL (__apei_exec_run)
 
int apei_exec_pre_map_gars (struct apei_exec_context *ctx)
 
 EXPORT_SYMBOL_GPL (apei_exec_pre_map_gars)
 
int apei_exec_post_unmap_gars (struct apei_exec_context *ctx)
 
 EXPORT_SYMBOL_GPL (apei_exec_post_unmap_gars)
 
void apei_resources_fini (struct apei_resources *resources)
 
 EXPORT_SYMBOL_GPL (apei_resources_fini)
 
int apei_resources_add (struct apei_resources *resources, unsigned long start, unsigned long size, bool iomem)
 
 EXPORT_SYMBOL_GPL (apei_resources_add)
 
int apei_resources_sub (struct apei_resources *resources1, struct apei_resources *resources2)
 
 EXPORT_SYMBOL_GPL (apei_resources_sub)
 
int apei_resources_request (struct apei_resources *resources, const char *desc)
 
 EXPORT_SYMBOL_GPL (apei_resources_request)
 
void apei_resources_release (struct apei_resources *resources)
 
 EXPORT_SYMBOL_GPL (apei_resources_release)
 
int apei_map_generic_address (struct acpi_generic_address *reg)
 
 EXPORT_SYMBOL_GPL (apei_map_generic_address)
 
int apei_read (u64 *val, struct acpi_generic_address *reg)
 
 EXPORT_SYMBOL_GPL (apei_read)
 
int apei_write (u64 val, struct acpi_generic_address *reg)
 
 EXPORT_SYMBOL_GPL (apei_write)
 
int apei_exec_collect_resources (struct apei_exec_context *ctx, struct apei_resources *resources)
 
 EXPORT_SYMBOL_GPL (apei_exec_collect_resources)
 
struct dentryapei_get_debugfs_dir (void)
 
 EXPORT_SYMBOL_GPL (apei_get_debugfs_dir)
 
int apei_osc_setup (void)
 
 EXPORT_SYMBOL_GPL (apei_osc_setup)
 

Variables

struct apei_resources apei_resources_all
 

Macro Definition Documentation

#define APEI_EXEC_PRESERVE_REGISTER   0x1

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

#define APEI_PFX   "APEI: "

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

Typedef Documentation

typedef int(* apei_exec_entry_func_t)(struct apei_exec_context *ctx, struct acpi_whea_header *entry, void *data)

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

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_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.

EXPORT_SYMBOL_GPL ( apei_exec_ctx_init  )
EXPORT_SYMBOL_GPL ( apei_exec_read_register  )
EXPORT_SYMBOL_GPL ( apei_exec_read_register_value  )
EXPORT_SYMBOL_GPL ( apei_exec_write_register  )
EXPORT_SYMBOL_GPL ( apei_exec_write_register_value  )
EXPORT_SYMBOL_GPL ( apei_exec_noop  )
EXPORT_SYMBOL_GPL ( __apei_exec_run  )
EXPORT_SYMBOL_GPL ( apei_exec_pre_map_gars  )
EXPORT_SYMBOL_GPL ( apei_exec_post_unmap_gars  )
EXPORT_SYMBOL_GPL ( apei_resources_fini  )
EXPORT_SYMBOL_GPL ( apei_resources_add  )
EXPORT_SYMBOL_GPL ( apei_resources_sub  )
EXPORT_SYMBOL_GPL ( apei_resources_request  )
EXPORT_SYMBOL_GPL ( apei_resources_release  )
EXPORT_SYMBOL_GPL ( apei_map_generic_address  )
EXPORT_SYMBOL_GPL ( apei_read  )
EXPORT_SYMBOL_GPL ( apei_write  )
EXPORT_SYMBOL_GPL ( apei_exec_collect_resources  )
EXPORT_SYMBOL_GPL ( apei_get_debugfs_dir  )
EXPORT_SYMBOL_GPL ( apei_osc_setup  )

Variable Documentation

struct apei_resources apei_resources_all
Initial value:
= {
}

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