require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_IPMI_H_)) {
    eval 'sub _SYS_IPMI_H_ () {1;}' unless defined(&_SYS_IPMI_H_);
    eval 'sub IPMI_MAX_ADDR_SIZE () {0x20;}' unless defined(&IPMI_MAX_ADDR_SIZE);
    eval 'sub IPMI_MAX_RX () {1024;}' unless defined(&IPMI_MAX_RX);
    eval 'sub IPMI_BMC_SLAVE_ADDR () {0x20;}' unless defined(&IPMI_BMC_SLAVE_ADDR);
    eval 'sub IPMI_BMC_CHANNEL () {0xf;}' unless defined(&IPMI_BMC_CHANNEL);
    eval 'sub IPMI_BMC_SMS_LUN () {0x2;}' unless defined(&IPMI_BMC_SMS_LUN);
    eval 'sub IPMI_SYSTEM_INTERFACE_ADDR_TYPE () {0xc;}' unless defined(&IPMI_SYSTEM_INTERFACE_ADDR_TYPE);
    eval 'sub IPMI_IPMB_ADDR_TYPE () {0x1;}' unless defined(&IPMI_IPMB_ADDR_TYPE);
    eval 'sub IPMI_IPMB_BROADCAST_ADDR_TYPE () {0x41;}' unless defined(&IPMI_IPMB_BROADCAST_ADDR_TYPE);
    eval 'sub IPMI_RESPONSE_RECV_TYPE () {1;}' unless defined(&IPMI_RESPONSE_RECV_TYPE);
    eval 'sub IPMI_ASYNC_EVENT_RECV_TYPE () {2;}' unless defined(&IPMI_ASYNC_EVENT_RECV_TYPE);
    eval 'sub IPMI_CMD_RECV_TYPE () {3;}' unless defined(&IPMI_CMD_RECV_TYPE);
    eval 'sub IPMICTL_RECEIVE_MSG_TRUNC () { &_IOWR(ord(\'i\'), 11, \'struct ipmi_recv\');}' unless defined(&IPMICTL_RECEIVE_MSG_TRUNC);
    eval 'sub IPMICTL_RECEIVE_MSG () { &_IOWR(ord(\'i\'), 12, \'struct ipmi_recv\');}' unless defined(&IPMICTL_RECEIVE_MSG);
    eval 'sub IPMICTL_SEND_COMMAND () { &_IOW(ord(\'i\'), 13, \'struct ipmi_req\');}' unless defined(&IPMICTL_SEND_COMMAND);
    eval 'sub IPMICTL_REGISTER_FOR_CMD () { &_IOW(ord(\'i\'), 14, \'struct ipmi_cmdspec\');}' unless defined(&IPMICTL_REGISTER_FOR_CMD);
    eval 'sub IPMICTL_UNREGISTER_FOR_CMD () { &_IOW(ord(\'i\'), 15, \'struct ipmi_cmdspec\');}' unless defined(&IPMICTL_UNREGISTER_FOR_CMD);
    eval 'sub IPMICTL_SET_GETS_EVENTS_CMD () { &_IOW(ord(\'i\'), 16, \'int\');}' unless defined(&IPMICTL_SET_GETS_EVENTS_CMD);
    eval 'sub IPMICTL_SET_MY_ADDRESS_CMD () { &_IOW(ord(\'i\'), 17, \'unsigned int\');}' unless defined(&IPMICTL_SET_MY_ADDRESS_CMD);
    eval 'sub IPMICTL_GET_MY_ADDRESS_CMD () { &_IOR(ord(\'i\'), 18, \'unsigned int\');}' unless defined(&IPMICTL_GET_MY_ADDRESS_CMD);
    eval 'sub IPMICTL_SET_MY_LUN_CMD () { &_IOW(ord(\'i\'), 19, \'unsigned int\');}' unless defined(&IPMICTL_SET_MY_LUN_CMD);
    eval 'sub IPMICTL_GET_MY_LUN_CMD () { &_IOR(ord(\'i\'), 20, \'unsigned int\');}' unless defined(&IPMICTL_GET_MY_LUN_CMD);
}
1;
