require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_APM_APMIO_H_)) {
    eval 'sub _DEV_APM_APMIO_H_ () {1;}' unless defined(&_DEV_APM_APMIO_H_);
    require 'sys/types.ph';
    require 'sys/ioccom.ph';
    eval 'sub APM_IOC_REJECT () { &_IOW(ord(\'A\'), 0, \'struct apm_event_info\');}' unless defined(&APM_IOC_REJECT);
    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);
    eval 'sub OAPM_IOC_GETPOWER () { &_IOR(ord(\'A\'), 3, \'struct apm_power_info\');}' unless defined(&OAPM_IOC_GETPOWER);
    eval 'sub APM_IOC_GETPOWER () { &_IOWR(ord(\'A\'), 3, \'struct apm_power_info\');}' unless defined(&APM_IOC_GETPOWER);
    eval 'sub APM_IOC_NEXTEVENT () { &_IOR(ord(\'A\'), 4, \'struct apm_event_info\');}' unless defined(&APM_IOC_NEXTEVENT);
    eval 'sub APM_IOC_DEV_CTL () { &_IOW(ord(\'A\'), 5, \'struct apm_ctl\');}' unless defined(&APM_IOC_DEV_CTL);
}
1;
