Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
bioscalls.c File Reference
#include <linux/types.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/linkage.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/pnp.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/kmod.h>
#include <linux/completion.h>
#include <linux/spinlock.h>
#include <asm/page.h>
#include <asm/desc.h>
#include <asm/byteorder.h>
#include "pnpbios.h"

Go to the source code of this file.

Macros

#define Q2_SET_SEL(cpu, selname, address, size)
 
#define PNP_GET_NUM_SYS_DEV_NODES   0x00
 
#define PNP_GET_SYS_DEV_NODE   0x01
 
#define PNP_SET_SYS_DEV_NODE   0x02
 
#define PNP_GET_EVENT   0x03
 
#define PNP_SEND_MESSAGE   0x04
 
#define PNP_GET_DOCKING_STATION_INFORMATION   0x05
 
#define PNP_SET_STATIC_ALLOCED_RES_INFO   0x09
 
#define PNP_GET_STATIC_ALLOCED_RES_INFO   0x0a
 
#define PNP_GET_APM_ID_TABLE   0x0b
 
#define PNP_GET_PNP_ISA_CONFIG_STRUC   0x40
 
#define PNP_GET_ESCD_INFO   0x41
 
#define PNP_READ_ESCD   0x42
 
#define PNP_WRITE_ESCD   0x43
 

Functions

asmlinkage void pnp_bios_callfunc (void)
 
 __asm__ (".text \n"__ALIGN_STR"\n""pnp_bios_callfunc:\n"" pushl %edx \n"" pushl %ecx \n"" pushl %ebx \n"" pushl %eax \n"" lcallw *pnp_bios_callpoint\n"" addl $16, %esp \n"" lret \n"".previous \n")
 
void pnpbios_print_status (const char *module, u16 status)
 
int pnp_bios_dev_node_info (struct pnp_dev_node_info *data)
 
int pnp_bios_get_dev_node (u8 *nodenum, char boot, struct pnp_bios_node *data)
 
int pnp_bios_set_dev_node (u8 nodenum, char boot, struct pnp_bios_node *data)
 
int pnp_bios_dock_station_info (struct pnp_docking_station_info *data)
 
int pnp_bios_get_stat_res (char *info)
 
int pnp_bios_isapnp_config (struct pnp_isa_config_struc *data)
 
int pnp_bios_escd_info (struct escd_info_struc *data)
 
int pnp_bios_read_escd (char *data, u32 nvram_base)
 
void pnpbios_calls_init (union pnp_bios_install_struct *header)
 

Variables

u32 pnp_bios_fault_esp
 
u32 pnp_bios_fault_eip
 
u32 pnp_bios_is_utter_crap = 0
 

Macro Definition Documentation

#define PNP_GET_APM_ID_TABLE   0x0b

Definition at line 243 of file bioscalls.c.

#define PNP_GET_DOCKING_STATION_INFORMATION   0x05

Definition at line 240 of file bioscalls.c.

#define PNP_GET_ESCD_INFO   0x41

Definition at line 245 of file bioscalls.c.

#define PNP_GET_EVENT   0x03

Definition at line 238 of file bioscalls.c.

#define PNP_GET_NUM_SYS_DEV_NODES   0x00

Definition at line 235 of file bioscalls.c.

#define PNP_GET_PNP_ISA_CONFIG_STRUC   0x40

Definition at line 244 of file bioscalls.c.

#define PNP_GET_STATIC_ALLOCED_RES_INFO   0x0a

Definition at line 242 of file bioscalls.c.

#define PNP_GET_SYS_DEV_NODE   0x01

Definition at line 236 of file bioscalls.c.

#define PNP_READ_ESCD   0x42

Definition at line 246 of file bioscalls.c.

#define PNP_SEND_MESSAGE   0x04

Definition at line 239 of file bioscalls.c.

#define PNP_SET_STATIC_ALLOCED_RES_INFO   0x09

Definition at line 241 of file bioscalls.c.

#define PNP_SET_SYS_DEV_NODE   0x02

Definition at line 237 of file bioscalls.c.

#define PNP_WRITE_ESCD   0x43

Definition at line 247 of file bioscalls.c.

#define Q2_SET_SEL (   cpu,
  selname,
  address,
  size 
)
Value:
do { \
struct desc_struct *gdt = get_cpu_gdt_table((cpu)); \
set_desc_base(&gdt[(selname) >> 3], (u32)(address)); \
set_desc_limit(&gdt[(selname) >> 3], (size) - 1); \
} while(0)

Definition at line 54 of file bioscalls.c.

Function Documentation

__asm__ ( ".text \n"__ALIGN_STR"\n""pnp_bios_callfunc:\n"" pushl %edx \n"" pushl %ecx \n"" pushl %ebx \n"" pushl %eax \n"" lcallw *pnp_bios_callpoint\n"" addl  $16,
%esp\n""lret\n"".previous\n  
)
asmlinkage void pnp_bios_callfunc ( void  )
int pnp_bios_dev_node_info ( struct pnp_dev_node_info data)

Definition at line 265 of file bioscalls.c.

int pnp_bios_dock_station_info ( struct pnp_docking_station_info data)

Definition at line 357 of file bioscalls.c.

int pnp_bios_escd_info ( struct escd_info_struc data)

Definition at line 435 of file bioscalls.c.

int pnp_bios_get_dev_node ( u8 nodenum,
char  boot,
struct pnp_bios_node data 
)

Definition at line 306 of file bioscalls.c.

int pnp_bios_get_stat_res ( char info)

Definition at line 385 of file bioscalls.c.

int pnp_bios_isapnp_config ( struct pnp_isa_config_struc data)

Definition at line 410 of file bioscalls.c.

int pnp_bios_read_escd ( char data,
u32  nvram_base 
)

Definition at line 460 of file bioscalls.c.

int pnp_bios_set_dev_node ( u8  nodenum,
char  boot,
struct pnp_bios_node data 
)

Definition at line 337 of file bioscalls.c.

void pnpbios_calls_init ( union pnp_bios_install_struct header)

Definition at line 470 of file bioscalls.c.

void pnpbios_print_status ( const char module,
u16  status 
)

Definition at line 152 of file bioscalls.c.

Variable Documentation

Definition at line 25 of file bioscalls.c.

u32 pnp_bios_fault_eip

Definition at line 70 of file bioscalls.c.

u32 pnp_bios_fault_esp

Definition at line 69 of file bioscalls.c.

u32 pnp_bios_is_utter_crap = 0

Definition at line 71 of file bioscalls.c.

u16 segment

Definition at line 26 of file bioscalls.c.