require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_IOCTL_)) {
    require 'sys/ioctl.ph';
}
unless(defined(&BPP_BLOCK)) {
    sub BPP_BLOCK () {	-1;}
}
unless(defined(&BPP_NOBLOCK)) {
    sub BPP_NOBLOCK () {	0;}
}
unless(defined(&BPP_BURST)) {
    sub BPP_BURST () {	1024;}
}
unless(defined(&BPP_TIMEOUT)) {
    sub BPP_TIMEOUT () {	 &BPP_BLOCK;}
}
unless(defined(&BPP_DELAY)) {
    sub BPP_DELAY () {	10;}
}
unless(defined(&BPP_BURST_MIN)) {
    sub BPP_BURST_MIN () {	1;}
}
unless(defined(&BPP_BURST_MAX)) {
    sub BPP_BURST_MAX () {	1024;}
}
unless(defined(&BPP_DELAY_MIN)) {
    sub BPP_DELAY_MIN () {	0;}
}
unless(defined(&BPP_DELAY_MAX)) {
    sub BPP_DELAY_MAX () {	30000;}
}
unless(defined(&BPP_BUSY)) {
    sub BPP_BUSY () {	(1<<0);}
}
unless(defined(&BPP_PAPER)) {
    sub BPP_PAPER () {	(1<<1);}
}
unless(defined(&BPPIOCSPARAM)) {
    sub BPPIOCSPARAM () {	 &_IOW(ord('P'), 0x1, 'struct bpp_param');}
}
unless(defined(&BPPIOCGPARAM)) {
    sub BPPIOCGPARAM () {	 &_IOR(ord('P'), 0x2, 'struct bpp_param');}
}
unless(defined(&BPPIOCGSTAT)) {
    sub BPPIOCGSTAT () {	 &_IOR(ord('P'), 0x4, 'int');}
}
1;
