require '_h2ph_pre.ph';

unless(defined(&_LINUX_APM_H)) {
    eval 'sub _LINUX_APM_H () {1;}' unless defined(&_LINUX_APM_H);
    eval 'sub APM_STATE_READY () {0x;}' unless defined(&APM_STATE_READY);
    eval 'sub APM_STATE_STANDBY () {0x1;}' unless defined(&APM_STATE_STANDBY);
    eval 'sub APM_STATE_SUSPEND () {0x2;}' unless defined(&APM_STATE_SUSPEND);
    eval 'sub APM_STATE_OFF () {0x3;}' unless defined(&APM_STATE_OFF);
    eval 'sub APM_STATE_BUSY () {0x4;}' unless defined(&APM_STATE_BUSY);
    eval 'sub APM_STATE_REJECT () {0x5;}' unless defined(&APM_STATE_REJECT);
    eval 'sub APM_STATE_OEM_SYS () {0x20;}' unless defined(&APM_STATE_OEM_SYS);
    eval 'sub APM_STATE_OEM_DEV () {0x40;}' unless defined(&APM_STATE_OEM_DEV);
    eval 'sub APM_STATE_DISABLE () {0x;}' unless defined(&APM_STATE_DISABLE);
    eval 'sub APM_STATE_ENABLE () {0x1;}' unless defined(&APM_STATE_ENABLE);
    eval 'sub APM_STATE_DISENGAGE () {0x;}' unless defined(&APM_STATE_DISENGAGE);
    eval 'sub APM_STATE_ENGAGE () {0x1;}' unless defined(&APM_STATE_ENGAGE);
    eval 'sub APM_SYS_STANDBY () {0x1;}' unless defined(&APM_SYS_STANDBY);
    eval 'sub APM_SYS_SUSPEND () {0x2;}' unless defined(&APM_SYS_SUSPEND);
    eval 'sub APM_NORMAL_RESUME () {0x3;}' unless defined(&APM_NORMAL_RESUME);
    eval 'sub APM_CRITICAL_RESUME () {0x4;}' unless defined(&APM_CRITICAL_RESUME);
    eval 'sub APM_LOW_BATTERY () {0x5;}' unless defined(&APM_LOW_BATTERY);
    eval 'sub APM_POWER_STATUS_CHANGE () {0x6;}' unless defined(&APM_POWER_STATUS_CHANGE);
    eval 'sub APM_UPDATE_TIME () {0x7;}' unless defined(&APM_UPDATE_TIME);
    eval 'sub APM_CRITICAL_SUSPEND () {0x8;}' unless defined(&APM_CRITICAL_SUSPEND);
    eval 'sub APM_USER_STANDBY () {0x9;}' unless defined(&APM_USER_STANDBY);
    eval 'sub APM_USER_SUSPEND () {0xa;}' unless defined(&APM_USER_SUSPEND);
    eval 'sub APM_STANDBY_RESUME () {0xb;}' unless defined(&APM_STANDBY_RESUME);
    eval 'sub APM_CAPABILITY_CHANGE () {0xc;}' unless defined(&APM_CAPABILITY_CHANGE);
    eval 'sub APM_SUCCESS () {0x;}' unless defined(&APM_SUCCESS);
    eval 'sub APM_DISABLED () {0x1;}' unless defined(&APM_DISABLED);
    eval 'sub APM_CONNECTED () {0x2;}' unless defined(&APM_CONNECTED);
    eval 'sub APM_NOT_CONNECTED () {0x3;}' unless defined(&APM_NOT_CONNECTED);
    eval 'sub APM_16_CONNECTED () {0x5;}' unless defined(&APM_16_CONNECTED);
    eval 'sub APM_16_UNSUPPORTED () {0x6;}' unless defined(&APM_16_UNSUPPORTED);
    eval 'sub APM_32_CONNECTED () {0x7;}' unless defined(&APM_32_CONNECTED);
    eval 'sub APM_32_UNSUPPORTED () {0x8;}' unless defined(&APM_32_UNSUPPORTED);
    eval 'sub APM_BAD_DEVICE () {0x9;}' unless defined(&APM_BAD_DEVICE);
    eval 'sub APM_BAD_PARAM () {0xa;}' unless defined(&APM_BAD_PARAM);
    eval 'sub APM_NOT_ENGAGED () {0xb;}' unless defined(&APM_NOT_ENGAGED);
    eval 'sub APM_BAD_FUNCTION () {0xc;}' unless defined(&APM_BAD_FUNCTION);
    eval 'sub APM_RESUME_DISABLED () {0xd;}' unless defined(&APM_RESUME_DISABLED);
    eval 'sub APM_NO_ERROR () {0x53;}' unless defined(&APM_NO_ERROR);
    eval 'sub APM_BAD_STATE () {0x60;}' unless defined(&APM_BAD_STATE);
    eval 'sub APM_NO_EVENTS () {0x80;}' unless defined(&APM_NO_EVENTS);
    eval 'sub APM_NOT_PRESENT () {0x86;}' unless defined(&APM_NOT_PRESENT);
    eval 'sub APM_DEVICE_BIOS () {0x;}' unless defined(&APM_DEVICE_BIOS);
    eval 'sub APM_DEVICE_ALL () {0x1;}' unless defined(&APM_DEVICE_ALL);
    eval 'sub APM_DEVICE_DISPLAY () {0x100;}' unless defined(&APM_DEVICE_DISPLAY);
    eval 'sub APM_DEVICE_STORAGE () {0x200;}' unless defined(&APM_DEVICE_STORAGE);
    eval 'sub APM_DEVICE_PARALLEL () {0x300;}' unless defined(&APM_DEVICE_PARALLEL);
    eval 'sub APM_DEVICE_SERIAL () {0x400;}' unless defined(&APM_DEVICE_SERIAL);
    eval 'sub APM_DEVICE_NETWORK () {0x500;}' unless defined(&APM_DEVICE_NETWORK);
    eval 'sub APM_DEVICE_PCMCIA () {0x600;}' unless defined(&APM_DEVICE_PCMCIA);
    eval 'sub APM_DEVICE_BATTERY () {0x8000;}' unless defined(&APM_DEVICE_BATTERY);
    eval 'sub APM_DEVICE_OEM () {0xe000;}' unless defined(&APM_DEVICE_OEM);
    eval 'sub APM_DEVICE_OLD_ALL () {0xffff;}' unless defined(&APM_DEVICE_OLD_ALL);
    eval 'sub APM_DEVICE_CLASS () {0xff;}' unless defined(&APM_DEVICE_CLASS);
    eval 'sub APM_DEVICE_MASK () {0xff00;}' unless defined(&APM_DEVICE_MASK);
    eval 'sub APM_MAX_BATTERIES () {2;}' unless defined(&APM_MAX_BATTERIES);
    eval 'sub APM_CAP_GLOBAL_STANDBY () {0x1;}' unless defined(&APM_CAP_GLOBAL_STANDBY);
    eval 'sub APM_CAP_GLOBAL_SUSPEND () {0x2;}' unless defined(&APM_CAP_GLOBAL_SUSPEND);
    eval 'sub APM_CAP_RESUME_STANDBY_TIMER () {0x4;}' unless defined(&APM_CAP_RESUME_STANDBY_TIMER);
    eval 'sub APM_CAP_RESUME_SUSPEND_TIMER () {0x8;}' unless defined(&APM_CAP_RESUME_SUSPEND_TIMER);
    eval 'sub APM_CAP_RESUME_STANDBY_RING () {0x10;}' unless defined(&APM_CAP_RESUME_STANDBY_RING);
    eval 'sub APM_CAP_RESUME_SUSPEND_RING () {0x20;}' unless defined(&APM_CAP_RESUME_SUSPEND_RING);
    eval 'sub APM_CAP_RESUME_STANDBY_PCMCIA () {0x40;}' unless defined(&APM_CAP_RESUME_STANDBY_PCMCIA);
    eval 'sub APM_CAP_RESUME_SUSPEND_PCMCIA () {0x80;}' unless defined(&APM_CAP_RESUME_SUSPEND_PCMCIA);
    require 'linux/ioctl.ph';
    eval 'sub APM_IOC_STANDBY () { &_IO(ord(\'A\'), 1);}' unless defined(&APM_IOC_STANDBY);
    eval 'sub APM_IOC_SUSPEND () { &_IO(ord(\'A\'), 2);}' unless defined(&APM_IOC_SUSPEND);
}
1;
