Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
sfi_core.c File Reference
#include <linux/bootmem.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/acpi.h>
#include <linux/init.h>
#include <linux/sfi.h>
#include <linux/slab.h>
#include "sfi_core.h"

Go to the source code of this file.

Macros

#define KMSG_COMPONENT   "SFI"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define ON_SAME_PAGE(addr1, addr2)
 
#define TABLE_ON_PAGE(page, table, size)
 

Functions

 EXPORT_SYMBOL (sfi_disabled)
 
struct sfi_table_headersfi_map_table (u64 pa)
 
void sfi_unmap_table (struct sfi_table_header *th)
 
struct sfi_table_header *__ref sfi_check_table (u64 pa, struct sfi_table_key *key)
 
struct sfi_table_headersfi_get_table (struct sfi_table_key *key)
 
void sfi_put_table (struct sfi_table_header *th)
 
int sfi_table_parse (char *signature, char *oem_id, char *oem_table_id, sfi_table_handler handler)
 
 EXPORT_SYMBOL_GPL (sfi_table_parse)
 
struct sfi_table_attr __initsfi_sysfs_install_table (u64 pa)
 
void __init sfi_init (void)
 
void __init sfi_init_late (void)
 
 core_initcall (sfi_sysfs_init)
 

Variables

int sfi_disabled __read_mostly
 

Macro Definition Documentation

#define KMSG_COMPONENT   "SFI"

Definition at line 59 of file sfi_core.c.

#define ON_SAME_PAGE (   addr1,
  addr2 
)
Value:
(((unsigned long)(addr1) & PAGE_MASK) == \
((unsigned long)(addr2) & PAGE_MASK))

Definition at line 74 of file sfi_core.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 60 of file sfi_core.c.

#define TABLE_ON_PAGE (   page,
  table,
  size 
)
Value:
ON_SAME_PAGE(page, table + size))

Definition at line 77 of file sfi_core.c.

Function Documentation

core_initcall ( sfi_sysfs_init  )
EXPORT_SYMBOL ( sfi_disabled  )
EXPORT_SYMBOL_GPL ( sfi_table_parse  )
struct sfi_table_header* __ref sfi_check_table ( u64  pa,
struct sfi_table_key key 
)
read

Definition at line 231 of file sfi_core.c.

struct sfi_table_header* sfi_get_table ( struct sfi_table_key key)
read

Definition at line 259 of file sfi_core.c.

void __init sfi_init ( void  )

Definition at line 484 of file sfi_core.c.

void __init sfi_init_late ( void  )

Definition at line 500 of file sfi_core.c.

struct sfi_table_header* sfi_map_table ( u64  pa)
read

Definition at line 164 of file sfi_core.c.

void sfi_put_table ( struct sfi_table_header th)

Definition at line 274 of file sfi_core.c.

struct sfi_table_attr __init* sfi_sysfs_install_table ( u64  pa)
read

Definition at line 418 of file sfi_core.c.

int sfi_table_parse ( char signature,
char oem_id,
char oem_table_id,
sfi_table_handler  handler 
)

Definition at line 280 of file sfi_core.c.

void sfi_unmap_table ( struct sfi_table_header th)

Definition at line 192 of file sfi_core.c.

Variable Documentation

u32 sfi_use_ioremap __read_mostly

Definition at line 80 of file sfi_core.c.