Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pnpbios.h File Reference

Go to the source code of this file.

Data Structures

struct  pnp_dev_node_info
 
struct  pnp_docking_station_info
 
struct  pnp_isa_config_struc
 
struct  escd_info_struc
 
struct  pnp_bios_node
 
union  pnp_bios_install_struct
 

Macros

#define PNP_SUCCESS   0x00
 
#define PNP_NOT_SET_STATICALLY   0x7f
 
#define PNP_UNKNOWN_FUNCTION   0x81
 
#define PNP_FUNCTION_NOT_SUPPORTED   0x82
 
#define PNP_INVALID_HANDLE   0x83
 
#define PNP_BAD_PARAMETER   0x84
 
#define PNP_SET_FAILED   0x85
 
#define PNP_EVENTS_NOT_PENDING   0x86
 
#define PNP_SYSTEM_NOT_DOCKED   0x87
 
#define PNP_NO_ISA_PNP_CARDS   0x88
 
#define PNP_UNABLE_TO_DETERMINE_DOCK_CAPABILITIES   0x89
 
#define PNP_CONFIG_CHANGE_FAILED_NO_BATTERY   0x8a
 
#define PNP_CONFIG_CHANGE_FAILED_RESOURCE_CONFLICT   0x8b
 
#define PNP_BUFFER_TOO_SMALL   0x8c
 
#define PNP_USE_ESCD_SUPPORT   0x8d
 
#define PNP_MESSAGE_NOT_SUPPORTED   0x8e
 
#define PNP_HARDWARE_ERROR   0x8f
 
#define ESCD_SUCCESS   0x00
 
#define ESCD_IO_ERROR_READING   0x55
 
#define ESCD_INVALID   0x56
 
#define ESCD_BUFFER_TOO_SMALL   0x59
 
#define ESCD_NVRAM_TOO_SMALL   0x5a
 
#define ESCD_FUNCTION_NOT_SUPPORTED   0x81
 
#define PNPEV_ABOUT_TO_CHANGE_CONFIG   0x0001
 
#define PNPEV_DOCK_CHANGED   0x0002
 
#define PNPEV_SYSTEM_DEVICE_CHANGED   0x0003
 
#define PNPEV_CONFIG_CHANGED_FAILED   0x0004
 
#define PNPEV_UNKNOWN_SYSTEM_EVENT   0xffff
 
#define PNPMSG_OK   0x00
 
#define PNPMSG_ABORT   0x01
 
#define PNPMSG_UNDOCK_DEFAULT_ACTION   0x40
 
#define PNPMSG_POWER_OFF   0x41
 
#define PNPMSG_PNP_OS_ACTIVE   0x42
 
#define PNPMSG_PNP_OS_INACTIVE   0x43
 
#define PNPBIOS_NO_DISABLE   0x0001
 
#define PNPBIOS_NO_CONFIG   0x0002
 
#define PNPBIOS_OUTPUT   0x0004
 
#define PNPBIOS_INPUT   0x0008
 
#define PNPBIOS_BOOTABLE   0x0010
 
#define PNPBIOS_DOCK   0x0020
 
#define PNPBIOS_REMOVABLE   0x0040
 
#define pnpbios_is_static(x)   (((x)->flags & 0x0100) == 0x0000)
 
#define pnpbios_is_dynamic(x)   ((x)->flags & 0x0080)
 
#define PNPMODE_STATIC   1
 
#define PNPMODE_DYNAMIC   0
 

Functions

int pnp_bios_dev_node_info (struct pnp_dev_node_info *data)
 
int pnp_bios_get_dev_node (u8 *nodenum, char config, struct pnp_bios_node *data)
 
int pnp_bios_set_dev_node (u8 nodenum, char config, struct pnp_bios_node *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)
 
int pnp_bios_dock_station_info (struct pnp_docking_station_info *data)
 
int pnp_bios_present (void)
 
int pnpbios_parse_data_stream (struct pnp_dev *dev, struct pnp_bios_node *node)
 
int pnpbios_read_resources_from_node (struct pnp_dev *dev, struct pnp_bios_node *node)
 
int pnpbios_write_resources_to_node (struct pnp_dev *dev, struct pnp_bios_node *node)
 
void pnpid32_to_pnpid (u32 id, char *str)
 
void pnpbios_print_status (const char *module, u16 status)
 
void pnpbios_calls_init (union pnp_bios_install_struct *header)
 

Variables

struct pnp_dev_node_info node_info
 
int pnpbios_dont_use_current_config
 

Macro Definition Documentation

#define ESCD_BUFFER_TOO_SMALL   0x59

Definition at line 51 of file pnpbios.h.

#define ESCD_FUNCTION_NOT_SUPPORTED   0x81

Definition at line 53 of file pnpbios.h.

#define ESCD_INVALID   0x56

Definition at line 50 of file pnpbios.h.

#define ESCD_IO_ERROR_READING   0x55

Definition at line 49 of file pnpbios.h.

#define ESCD_NVRAM_TOO_SMALL   0x5a

Definition at line 52 of file pnpbios.h.

#define ESCD_SUCCESS   0x00

Definition at line 48 of file pnpbios.h.

#define PNP_BAD_PARAMETER   0x84

Definition at line 35 of file pnpbios.h.

#define PNP_BUFFER_TOO_SMALL   0x8c

Definition at line 43 of file pnpbios.h.

#define PNP_CONFIG_CHANGE_FAILED_NO_BATTERY   0x8a

Definition at line 41 of file pnpbios.h.

#define PNP_CONFIG_CHANGE_FAILED_RESOURCE_CONFLICT   0x8b

Definition at line 42 of file pnpbios.h.

#define PNP_EVENTS_NOT_PENDING   0x86

Definition at line 37 of file pnpbios.h.

#define PNP_FUNCTION_NOT_SUPPORTED   0x82

Definition at line 33 of file pnpbios.h.

#define PNP_HARDWARE_ERROR   0x8f

Definition at line 46 of file pnpbios.h.

#define PNP_INVALID_HANDLE   0x83

Definition at line 34 of file pnpbios.h.

#define PNP_MESSAGE_NOT_SUPPORTED   0x8e

Definition at line 45 of file pnpbios.h.

#define PNP_NO_ISA_PNP_CARDS   0x88

Definition at line 39 of file pnpbios.h.

#define PNP_NOT_SET_STATICALLY   0x7f

Definition at line 31 of file pnpbios.h.

#define PNP_SET_FAILED   0x85

Definition at line 36 of file pnpbios.h.

#define PNP_SUCCESS   0x00

Definition at line 30 of file pnpbios.h.

#define PNP_SYSTEM_NOT_DOCKED   0x87

Definition at line 38 of file pnpbios.h.

#define PNP_UNABLE_TO_DETERMINE_DOCK_CAPABILITIES   0x89

Definition at line 40 of file pnpbios.h.

#define PNP_UNKNOWN_FUNCTION   0x81

Definition at line 32 of file pnpbios.h.

#define PNP_USE_ESCD_SUPPORT   0x8d

Definition at line 44 of file pnpbios.h.

#define PNPBIOS_BOOTABLE   0x0010

Definition at line 82 of file pnpbios.h.

#define PNPBIOS_DOCK   0x0020

Definition at line 83 of file pnpbios.h.

#define PNPBIOS_INPUT   0x0008

Definition at line 81 of file pnpbios.h.

#define pnpbios_is_dynamic (   x)    ((x)->flags & 0x0080)

Definition at line 86 of file pnpbios.h.

#define pnpbios_is_static (   x)    (((x)->flags & 0x0100) == 0x0000)

Definition at line 85 of file pnpbios.h.

#define PNPBIOS_NO_CONFIG   0x0002

Definition at line 79 of file pnpbios.h.

#define PNPBIOS_NO_DISABLE   0x0001

Definition at line 78 of file pnpbios.h.

#define PNPBIOS_OUTPUT   0x0004

Definition at line 80 of file pnpbios.h.

#define PNPBIOS_REMOVABLE   0x0040

Definition at line 84 of file pnpbios.h.

#define PNPEV_ABOUT_TO_CHANGE_CONFIG   0x0001

Definition at line 58 of file pnpbios.h.

#define PNPEV_CONFIG_CHANGED_FAILED   0x0004

Definition at line 61 of file pnpbios.h.

#define PNPEV_DOCK_CHANGED   0x0002

Definition at line 59 of file pnpbios.h.

#define PNPEV_SYSTEM_DEVICE_CHANGED   0x0003

Definition at line 60 of file pnpbios.h.

#define PNPEV_UNKNOWN_SYSTEM_EVENT   0xffff

Definition at line 62 of file pnpbios.h.

#define PNPMODE_DYNAMIC   0

Definition at line 92 of file pnpbios.h.

#define PNPMODE_STATIC   1

Definition at line 91 of file pnpbios.h.

#define PNPMSG_ABORT   0x01

Definition at line 69 of file pnpbios.h.

#define PNPMSG_OK   0x00

Definition at line 68 of file pnpbios.h.

#define PNPMSG_PNP_OS_ACTIVE   0x42

Definition at line 72 of file pnpbios.h.

#define PNPMSG_PNP_OS_INACTIVE   0x43

Definition at line 73 of file pnpbios.h.

#define PNPMSG_POWER_OFF   0x41

Definition at line 71 of file pnpbios.h.

#define PNPMSG_UNDOCK_DEFAULT_ACTION   0x40

Definition at line 70 of file pnpbios.h.

Function Documentation

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  config,
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_present ( void  )

Definition at line 81 of file core.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  config,
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.

int pnpbios_parse_data_stream ( struct pnp_dev dev,
struct pnp_bios_node node 
)

Definition at line 769 of file rsparser.c.

void pnpbios_print_status ( const char module,
u16  status 
)

Definition at line 152 of file bioscalls.c.

int pnpbios_read_resources_from_node ( struct pnp_dev dev,
struct pnp_bios_node node 
)

Definition at line 787 of file rsparser.c.

int pnpbios_write_resources_to_node ( struct pnp_dev dev,
struct pnp_bios_node node 
)

Definition at line 799 of file rsparser.c.

void pnpid32_to_pnpid ( u32  id,
char str 
)

Variable Documentation

Definition at line 86 of file core.c.

int pnpbios_dont_use_current_config

Definition at line 405 of file core.c.