Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
osl.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/highmem.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/kmod.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/nmi.h>
#include <linux/acpi.h>
#include <linux/acpi_io.h>
#include <linux/efi.h>
#include <linux/ioport.h>
#include <linux/list.h>
#include <linux/jiffies.h>
#include <linux/semaphore.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <acpi/acpi.h>
#include <acpi/acpi_bus.h>
#include <acpi/processor.h>

Go to the source code of this file.

Data Structures

struct  acpi_os_dpc
 
struct  acpi_ioremap
 
struct  osi_linux
 
struct  osi_setup_entry
 

Macros

#define _COMPONENT   ACPI_OS_SERVICES
 
#define PREFIX   "ACPI: "
 
#define should_use_kmap(pfn)   page_is_ram(pfn)
 
#define ACPI_MAX_OVERRIDE_LEN   100
 
#define OSI_STRING_LENGTH_MAX   64 /* arbitrary */
 
#define OSI_STRING_ENTRIES_MAX   16 /* arbitrary */
 
#define ENFORCE_RESOURCES_STRICT   2
 
#define ENFORCE_RESOURCES_LAX   1
 
#define ENFORCE_RESOURCES_NO   0
 

Functions

 ACPI_MODULE_NAME ("osl")
 
 EXPORT_SYMBOL (kacpi_hotplug_wq)
 
 device_initcall (acpi_reserve_resources)
 
void acpi_os_printf (const char *fmt,...)
 
void acpi_os_vprintf (const char *fmt, va_list args)
 
acpi_physical_address __init acpi_os_get_root_pointer (void)
 
void __iomemacpi_os_get_iomem (acpi_physical_address phys, unsigned int size)
 
 EXPORT_SYMBOL_GPL (acpi_os_get_iomem)
 
void __iomem *__init_refok acpi_os_map_memory (acpi_physical_address phys, acpi_size size)
 
 EXPORT_SYMBOL_GPL (acpi_os_map_memory)
 
void __ref acpi_os_unmap_memory (void __iomem *virt, acpi_size size)
 
 EXPORT_SYMBOL_GPL (acpi_os_unmap_memory)
 
void __init early_acpi_os_unmap_memory (void __iomem *virt, acpi_size size)
 
int acpi_os_map_generic_address (struct acpi_generic_address *gas)
 
 EXPORT_SYMBOL (acpi_os_map_generic_address)
 
void acpi_os_unmap_generic_address (struct acpi_generic_address *gas)
 
 EXPORT_SYMBOL (acpi_os_unmap_generic_address)
 
acpi_status acpi_os_predefined_override (const struct acpi_predefined_names *init_val, acpi_string *new_val)
 
acpi_status acpi_os_table_override (struct acpi_table_header *existing_table, struct acpi_table_header **new_table)
 
acpi_status acpi_os_physical_table_override (struct acpi_table_header *existing_table, acpi_physical_address *new_address, u32 *new_table_length)
 
acpi_status acpi_os_install_interrupt_handler (u32 gsi, acpi_osd_handler handler, void *context)
 
acpi_status acpi_os_remove_interrupt_handler (u32 irq, acpi_osd_handler handler)
 
void acpi_os_sleep (u64 ms)
 
void acpi_os_stall (u32 us)
 
u64 acpi_os_get_timer (void)
 
acpi_status acpi_os_read_port (acpi_io_address port, u32 *value, u32 width)
 
 EXPORT_SYMBOL (acpi_os_read_port)
 
acpi_status acpi_os_write_port (acpi_io_address port, u32 value, u32 width)
 
 EXPORT_SYMBOL (acpi_os_write_port)
 
acpi_status acpi_os_read_memory (acpi_physical_address phys_addr, u64 *value, u32 width)
 
acpi_status acpi_os_write_memory (acpi_physical_address phys_addr, u64 value, u32 width)
 
acpi_status acpi_os_read_pci_configuration (struct acpi_pci_id *pci_id, u32 reg, u64 *value, u32 width)
 
acpi_status acpi_os_write_pci_configuration (struct acpi_pci_id *pci_id, u32 reg, u64 value, u32 width)
 
acpi_status acpi_os_execute (acpi_execute_type type, acpi_osd_exec_callback function, void *context)
 
 EXPORT_SYMBOL (acpi_os_execute)
 
acpi_status acpi_os_hotplug_execute (acpi_osd_exec_callback function, void *context)
 
void acpi_os_wait_events_complete (void)
 
 EXPORT_SYMBOL (acpi_os_wait_events_complete)
 
acpi_status acpi_os_create_semaphore (u32 max_units, u32 initial_units, acpi_handle *handle)
 
acpi_status acpi_os_delete_semaphore (acpi_handle handle)
 
acpi_status acpi_os_wait_semaphore (acpi_handle handle, u32 units, u16 timeout)
 
acpi_status acpi_os_signal_semaphore (acpi_handle handle, u32 units)
 
acpi_status acpi_os_signal (u32 function, void *info)
 
 __setup ("acpi_os_name=", acpi_os_name_setup)
 
void __init acpi_osi_setup (char *str)
 
void __init acpi_dmi_osi_linux (int enable, const struct dmi_system_id *d)
 
 __setup ("acpi_serialize", acpi_serialize_setup)
 
int acpi_check_resource_conflict (const struct resource *res)
 
 EXPORT_SYMBOL (acpi_check_resource_conflict)
 
int acpi_check_region (resource_size_t start, resource_size_t n, const char *name)
 
 EXPORT_SYMBOL (acpi_check_region)
 
int acpi_resources_are_enforced (void)
 
 EXPORT_SYMBOL (acpi_resources_are_enforced)
 
void acpi_os_delete_lock (acpi_spinlock handle)
 
acpi_cpu_flags acpi_os_acquire_lock (acpi_spinlock lockp)
 
void acpi_os_release_lock (acpi_spinlock lockp, acpi_cpu_flags flags)
 
acpi_status acpi_os_create_cache (char *name, u16 size, u16 depth, acpi_cache_t **cache)
 
acpi_status acpi_os_purge_cache (acpi_cache_t *cache)
 
acpi_status acpi_os_delete_cache (acpi_cache_t *cache)
 
acpi_status acpi_os_release_object (acpi_cache_t *cache, void *object)
 
acpi_status __init acpi_os_initialize (void)
 
acpi_status __init acpi_os_initialize1 (void)
 
acpi_status acpi_os_terminate (void)
 
acpi_status acpi_os_prepare_sleep (u8 sleep_state, u32 pm1a_control, u32 pm1b_control)
 
void acpi_os_set_prepare_sleep (int(*func)(u8 sleep_state, u32 pm1a_ctrl, u32 pm1b_ctrl))
 

Variables

struct workqueue_structkacpi_hotplug_wq
 

Macro Definition Documentation

#define _COMPONENT   ACPI_OS_SERVICES

Definition at line 56 of file osl.c.

#define ACPI_MAX_OVERRIDE_LEN   100

Definition at line 516 of file osl.c.

#define ENFORCE_RESOURCES_LAX   1

Definition at line 1332 of file osl.c.

#define ENFORCE_RESOURCES_NO   0

Definition at line 1333 of file osl.c.

#define ENFORCE_RESOURCES_STRICT   2

Definition at line 1331 of file osl.c.

#define OSI_STRING_ENTRIES_MAX   16 /* arbitrary */

Definition at line 1172 of file osl.c.

#define OSI_STRING_LENGTH_MAX   64 /* arbitrary */

Definition at line 1171 of file osl.c.

#define PREFIX   "ACPI: "

Definition at line 58 of file osl.c.

#define should_use_kmap (   pfn)    page_is_ram(pfn)

Definition at line 329 of file osl.c.

Function Documentation

__setup ( )
__setup ( "acpi_serialize"  ,
acpi_serialize_setup   
)
int acpi_check_region ( resource_size_t  start,
resource_size_t  n,
const char name 
)

Definition at line 1395 of file osl.c.

int acpi_check_resource_conflict ( const struct resource res)

Definition at line 1356 of file osl.c.

void __init acpi_dmi_osi_linux ( int  enable,
const struct dmi_system_id d 
)

Definition at line 1242 of file osl.c.

ACPI_MODULE_NAME ( "osl"  )
acpi_cpu_flags acpi_os_acquire_lock ( acpi_spinlock  lockp)

Definition at line 1432 of file osl.c.

acpi_status acpi_os_create_cache ( char name,
u16  size,
u16  depth,
acpi_cache_t **  cache 
)

Definition at line 1466 of file osl.c.

acpi_status acpi_os_create_semaphore ( u32  max_units,
u32  initial_units,
acpi_handle handle 
)

Definition at line 999 of file osl.c.

acpi_status acpi_os_delete_cache ( acpi_cache_t cache)

Definition at line 1506 of file osl.c.

void acpi_os_delete_lock ( acpi_spinlock  handle)

Definition at line 1421 of file osl.c.

acpi_status acpi_os_delete_semaphore ( acpi_handle  handle)

Definition at line 1025 of file osl.c.

acpi_status acpi_os_execute ( acpi_execute_type  type,
acpi_osd_exec_callback  function,
void context 
)

Definition at line 977 of file osl.c.

void __iomem* acpi_os_get_iomem ( acpi_physical_address  phys,
unsigned int  size 
)

Definition at line 298 of file osl.c.

acpi_physical_address __init acpi_os_get_root_pointer ( void  )

Definition at line 246 of file osl.c.

u64 acpi_os_get_timer ( void  )

Definition at line 657 of file osl.c.

acpi_status acpi_os_hotplug_execute ( acpi_osd_exec_callback  function,
void context 
)

Definition at line 984 of file osl.c.

acpi_status __init acpi_os_initialize ( void  )

Definition at line 1533 of file osl.c.

acpi_status __init acpi_os_initialize1 ( void  )

Definition at line 1543 of file osl.c.

acpi_status acpi_os_install_interrupt_handler ( u32  gsi,
acpi_osd_handler  handler,
void context 
)

Definition at line 585 of file osl.c.

int acpi_os_map_generic_address ( struct acpi_generic_address gas)

Definition at line 456 of file osl.c.

void __iomem* __init_refok acpi_os_map_memory ( acpi_physical_address  phys,
acpi_size  size 
)

Definition at line 360 of file osl.c.

acpi_status acpi_os_physical_table_override ( struct acpi_table_header existing_table,
acpi_physical_address *  new_address,
u32 new_table_length 
)

Definition at line 561 of file osl.c.

acpi_status acpi_os_predefined_override ( const struct acpi_predefined_names init_val,
acpi_string new_val 
)

Definition at line 521 of file osl.c.

acpi_status acpi_os_prepare_sleep ( u8  sleep_state,
u32  pm1a_control,
u32  pm1b_control 
)

Definition at line 1575 of file osl.c.

void acpi_os_printf ( const char fmt,
  ... 
)

Definition at line 211 of file osl.c.

acpi_status acpi_os_purge_cache ( acpi_cache_t cache)

Definition at line 1487 of file osl.c.

acpi_status acpi_os_read_memory ( acpi_physical_address  phys_addr,
u64 value,
u32  width 
)

Definition at line 730 of file osl.c.

acpi_status acpi_os_read_pci_configuration ( struct acpi_pci_id pci_id,
u32  reg,
u64 value,
u32  width 
)

Definition at line 831 of file osl.c.

acpi_status acpi_os_read_port ( acpi_io_address  port,
u32 value,
u32  width 
)

Definition at line 674 of file osl.c.

void acpi_os_release_lock ( acpi_spinlock  lockp,
acpi_cpu_flags  flags 
)

Definition at line 1443 of file osl.c.

acpi_status acpi_os_release_object ( acpi_cache_t cache,
void object 
)

Definition at line 1526 of file osl.c.

acpi_status acpi_os_remove_interrupt_handler ( u32  irq,
acpi_osd_handler  handler 
)

Definition at line 619 of file osl.c.

void acpi_os_set_prepare_sleep ( int(*)(u8 sleep_state, u32 pm1a_ctrl, u32 pm1b_ctrl)  func)

Definition at line 1590 of file osl.c.

acpi_status acpi_os_signal ( u32  function,
void info 
)

Definition at line 1124 of file osl.c.

acpi_status acpi_os_signal_semaphore ( acpi_handle  handle,
u32  units 
)

Definition at line 1086 of file osl.c.

void acpi_os_sleep ( u64  ms)

Definition at line 634 of file osl.c.

void acpi_os_stall ( u32  us)

Definition at line 639 of file osl.c.

acpi_status acpi_os_table_override ( struct acpi_table_header existing_table,
struct acpi_table_header **  new_table 
)

Definition at line 538 of file osl.c.

acpi_status acpi_os_terminate ( void  )

Definition at line 1556 of file osl.c.

void acpi_os_unmap_generic_address ( struct acpi_generic_address gas)

Definition at line 477 of file osl.c.

void __ref acpi_os_unmap_memory ( void __iomem virt,
acpi_size  size 
)

Definition at line 427 of file osl.c.

void acpi_os_vprintf ( const char fmt,
va_list  args 
)

Definition at line 219 of file osl.c.

void acpi_os_wait_events_complete ( void  )

Definition at line 990 of file osl.c.

acpi_status acpi_os_wait_semaphore ( acpi_handle  handle,
u32  units,
u16  timeout 
)

Definition at line 1044 of file osl.c.

acpi_status acpi_os_write_memory ( acpi_physical_address  phys_addr,
u64  value,
u32  width 
)

Definition at line 789 of file osl.c.

acpi_status acpi_os_write_pci_configuration ( struct acpi_pci_id pci_id,
u32  reg,
u64  value,
u32  width 
)

Definition at line 863 of file osl.c.

acpi_status acpi_os_write_port ( acpi_io_address  port,
u32  value,
u32  width 
)

Definition at line 697 of file osl.c.

void __init acpi_osi_setup ( char str)

Definition at line 1187 of file osl.c.

int acpi_resources_are_enforced ( void  )

Definition at line 1412 of file osl.c.

device_initcall ( acpi_reserve_resources  )
void __init early_acpi_os_unmap_memory ( void __iomem virt,
acpi_size  size 
)

Definition at line 450 of file osl.c.

EXPORT_SYMBOL ( kacpi_hotplug_wq  )
EXPORT_SYMBOL ( acpi_os_map_generic_address  )
EXPORT_SYMBOL ( acpi_os_unmap_generic_address  )
EXPORT_SYMBOL ( acpi_os_read_port  )
EXPORT_SYMBOL ( acpi_os_write_port  )
EXPORT_SYMBOL ( acpi_os_execute  )
EXPORT_SYMBOL ( acpi_os_wait_events_complete  )
EXPORT_SYMBOL ( acpi_check_resource_conflict  )
EXPORT_SYMBOL ( acpi_check_region  )
EXPORT_SYMBOL ( acpi_resources_are_enforced  )
EXPORT_SYMBOL_GPL ( acpi_os_get_iomem  )
EXPORT_SYMBOL_GPL ( acpi_os_map_memory  )
EXPORT_SYMBOL_GPL ( acpi_os_unmap_memory  )

Variable Documentation

struct workqueue_struct* kacpi_hotplug_wq

Definition at line 87 of file osl.c.