require '_h2ph_pre.ph';

unless(defined(&_LINUX_PNP_BIOS_H)) {
    eval 'sub _LINUX_PNP_BIOS_H () {1;}' unless defined(&_LINUX_PNP_BIOS_H);
    require 'linux/types.ph';
    require 'linux/pci.ph';
    eval 'sub PNP_SUCCESS () {0x;}' unless defined(&PNP_SUCCESS);
    eval 'sub PNP_NOT_SET_STATICALLY () {0x7f;}' unless defined(&PNP_NOT_SET_STATICALLY);
    eval 'sub PNP_UNKNOWN_FUNCTION () {0x81;}' unless defined(&PNP_UNKNOWN_FUNCTION);
    eval 'sub PNP_FUNCTION_NOT_SUPPORTED () {0x82;}' unless defined(&PNP_FUNCTION_NOT_SUPPORTED);
    eval 'sub PNP_INVALID_HANDLE () {0x83;}' unless defined(&PNP_INVALID_HANDLE);
    eval 'sub PNP_BAD_PARAMETER () {0x84;}' unless defined(&PNP_BAD_PARAMETER);
    eval 'sub PNP_SET_FAILED () {0x85;}' unless defined(&PNP_SET_FAILED);
    eval 'sub PNP_EVENTS_NOT_PENDING () {0x86;}' unless defined(&PNP_EVENTS_NOT_PENDING);
    eval 'sub PNP_SYSTEM_NOT_DOCKED () {0x87;}' unless defined(&PNP_SYSTEM_NOT_DOCKED);
    eval 'sub PNP_NO_ISA_PNP_CARDS () {0x88;}' unless defined(&PNP_NO_ISA_PNP_CARDS);
    eval 'sub PNP_UNABLE_TO_DETERMINE_DOCK_CAPABILITIES () {0x89;}' unless defined(&PNP_UNABLE_TO_DETERMINE_DOCK_CAPABILITIES);
    eval 'sub PNP_CONFIG_CHANGE_FAILED_NO_BATTERY () {0x8a;}' unless defined(&PNP_CONFIG_CHANGE_FAILED_NO_BATTERY);
    eval 'sub PNP_CONFIG_CHANGE_FAILED_RESOURCE_CONFLICT () {0x8b;}' unless defined(&PNP_CONFIG_CHANGE_FAILED_RESOURCE_CONFLICT);
    eval 'sub PNP_BUFFER_TOO_SMALL () {0x8c;}' unless defined(&PNP_BUFFER_TOO_SMALL);
    eval 'sub PNP_USE_ESCD_SUPPORT () {0x8d;}' unless defined(&PNP_USE_ESCD_SUPPORT);
    eval 'sub PNP_MESSAGE_NOT_SUPPORTED () {0x8e;}' unless defined(&PNP_MESSAGE_NOT_SUPPORTED);
    eval 'sub PNP_HARDWARE_ERROR () {0x8f;}' unless defined(&PNP_HARDWARE_ERROR);
    eval 'sub ESCD_SUCCESS () {0x;}' unless defined(&ESCD_SUCCESS);
    eval 'sub ESCD_IO_ERROR_READING () {0x55;}' unless defined(&ESCD_IO_ERROR_READING);
    eval 'sub ESCD_INVALID () {0x56;}' unless defined(&ESCD_INVALID);
    eval 'sub ESCD_BUFFER_TOO_SMALL () {0x59;}' unless defined(&ESCD_BUFFER_TOO_SMALL);
    eval 'sub ESCD_NVRAM_TOO_SMALL () {0x5a;}' unless defined(&ESCD_NVRAM_TOO_SMALL);
    eval 'sub ESCD_FUNCTION_NOT_SUPPORTED () {0x81;}' unless defined(&ESCD_FUNCTION_NOT_SUPPORTED);
    eval 'sub PNPEV_ABOUT_TO_CHANGE_CONFIG () {0x1;}' unless defined(&PNPEV_ABOUT_TO_CHANGE_CONFIG);
    eval 'sub PNPEV_DOCK_CHANGED () {0x2;}' unless defined(&PNPEV_DOCK_CHANGED);
    eval 'sub PNPEV_SYSTEM_DEVICE_CHANGED () {0x3;}' unless defined(&PNPEV_SYSTEM_DEVICE_CHANGED);
    eval 'sub PNPEV_CONFIG_CHANGED_FAILED () {0x4;}' unless defined(&PNPEV_CONFIG_CHANGED_FAILED);
    eval 'sub PNPEV_UNKNOWN_SYSTEM_EVENT () {0xffff;}' unless defined(&PNPEV_UNKNOWN_SYSTEM_EVENT);
    eval 'sub PNPMSG_OK () {0x;}' unless defined(&PNPMSG_OK);
    eval 'sub PNPMSG_ABORT () {0x1;}' unless defined(&PNPMSG_ABORT);
    eval 'sub PNPMSG_UNDOCK_DEFAULT_ACTION () {0x40;}' unless defined(&PNPMSG_UNDOCK_DEFAULT_ACTION);
    eval 'sub PNPMSG_POWER_OFF () {0x41;}' unless defined(&PNPMSG_POWER_OFF);
    eval 'sub PNPMSG_PNP_OS_ACTIVE () {0x42;}' unless defined(&PNPMSG_PNP_OS_ACTIVE);
    eval 'sub PNPMSG_PNP_OS_INACTIVE () {0x43;}' unless defined(&PNPMSG_PNP_OS_INACTIVE);
}
1;
