require '_h2ph_pre.ph';

no warnings qw(redefine misc);

require 'sys/ioctl.ph';
eval 'sub MBPP_BLOCK () {-1;}' unless defined(&MBPP_BLOCK);
eval 'sub MBPP_NOBLOCK () {0;}' unless defined(&MBPP_NOBLOCK);
eval 'sub MBPP_BURST () {1024;}' unless defined(&MBPP_BURST);
eval 'sub MBPP_TIMEOUT () { &MBPP_BLOCK;}' unless defined(&MBPP_TIMEOUT);
eval 'sub MBPP_DELAY () {10;}' unless defined(&MBPP_DELAY);
eval 'sub MBPP_BURST_MIN () {1;}' unless defined(&MBPP_BURST_MIN);
eval 'sub MBPP_BURST_MAX () {1024;}' unless defined(&MBPP_BURST_MAX);
eval 'sub MBPP_DELAY_MIN () {0;}' unless defined(&MBPP_DELAY_MIN);
eval 'sub MBPP_DELAY_MAX () {30000;}' unless defined(&MBPP_DELAY_MAX);
eval 'sub MBPP_BUSY () {(1<<0);}' unless defined(&MBPP_BUSY);
eval 'sub MBPP_PAPER () {(1<<1);}' unless defined(&MBPP_PAPER);
eval 'sub MBPPIOCSPARAM () { &_IOW(ord(\'P\'), 0x1, \'struct mbpp_param\');}' unless defined(&MBPPIOCSPARAM);
eval 'sub MBPPIOCGPARAM () { &_IOR(ord(\'P\'), 0x2, \'struct mbpp_param\');}' unless defined(&MBPPIOCGPARAM);
eval 'sub MBPPIOCGSTAT () { &_IOR(ord(\'P\'), 0x4, \'int\');}' unless defined(&MBPPIOCGSTAT);
1;
