require '_h2ph_pre.ph';

unless(defined(&PP_MAJOR)) {
    sub PP_MAJOR () {	99;}
}
unless(defined(&PP_IOCTL)) {
    sub PP_IOCTL () {	ord('p');}
}
unless(defined(&PPSETMODE)) {
    sub PPSETMODE () {	 &_IOW( &PP_IOCTL, 0x80, 'int');}
}
unless(defined(&PPRSTATUS)) {
    sub PPRSTATUS () {	 &_IOR( &PP_IOCTL, 0x81, 'unsigned char');}
}
unless(defined(&PPWSTATUS)) {
    sub PPWSTATUS () {	 &OBSOLETE__IOW( &PP_IOCTL, 0x82, 'unsigned char');}
}
unless(defined(&PPRCONTROL)) {
    sub PPRCONTROL () {	 &_IOR( &PP_IOCTL, 0x83, 'unsigned char');}
}
unless(defined(&PPWCONTROL)) {
    sub PPWCONTROL () {	 &_IOW( &PP_IOCTL, 0x84, 'unsigned char');}
}
unless(defined(&PPFCONTROL)) {
    sub PPFCONTROL () {	 &_IOW( &PP_IOCTL, 0x8e, 'struct ppdev_frob_struct');}
}
unless(defined(&PPRDATA)) {
    sub PPRDATA () {	 &_IOR( &PP_IOCTL, 0x85, 'unsigned char');}
}
unless(defined(&PPWDATA)) {
    sub PPWDATA () {	 &_IOW( &PP_IOCTL, 0x86, 'unsigned char');}
}
unless(defined(&PPRECONTROL)) {
    sub PPRECONTROL () {	 &OBSOLETE__IOR( &PP_IOCTL, 0x87, 'unsigned char');}
}
unless(defined(&PPWECONTROL)) {
    sub PPWECONTROL () {	 &OBSOLETE__IOW( &PP_IOCTL, 0x88, 'unsigned char');}
}
unless(defined(&PPRFIFO)) {
    sub PPRFIFO () {	 &OBSOLETE__IOR( &PP_IOCTL, 0x89, 'unsigned char');}
}
unless(defined(&PPWFIFO)) {
    sub PPWFIFO () {	 &OBSOLETE__IOW( &PP_IOCTL, 0x8a, 'unsigned char');}
}
unless(defined(&PPCLAIM)) {
    sub PPCLAIM () {	 &_IO( &PP_IOCTL, 0x8b);}
}
unless(defined(&PPRELEASE)) {
    sub PPRELEASE () {	 &_IO( &PP_IOCTL, 0x8c);}
}
unless(defined(&PPYIELD)) {
    sub PPYIELD () {	 &_IO( &PP_IOCTL, 0x8d);}
}
unless(defined(&PPEXCL)) {
    sub PPEXCL () {	 &_IO( &PP_IOCTL, 0x8f);}
}
unless(defined(&PPDATADIR)) {
    sub PPDATADIR () {	 &_IOW( &PP_IOCTL, 0x90, 'int');}
}
unless(defined(&PPNEGOT)) {
    sub PPNEGOT () {	 &_IOW( &PP_IOCTL, 0x91, 'int');}
}
unless(defined(&PPWCTLONIRQ)) {
    sub PPWCTLONIRQ () {	 &_IOW( &PP_IOCTL, 0x92, 'unsigned char');}
}
unless(defined(&PPCLRIRQ)) {
    sub PPCLRIRQ () {	 &_IOR( &PP_IOCTL, 0x93, 'int');}
}
unless(defined(&PPSETPHASE)) {
    sub PPSETPHASE () {	 &_IOW( &PP_IOCTL, 0x94, 'int');}
}
unless(defined(&PPGETTIME)) {
    sub PPGETTIME () {	 &_IOR( &PP_IOCTL, 0x95, 'struct timeval');}
}
unless(defined(&PPSETTIME)) {
    sub PPSETTIME () {	 &_IOW( &PP_IOCTL, 0x96, 'struct timeval');}
}
unless(defined(&PPGETMODES)) {
    sub PPGETMODES () {	 &_IOR( &PP_IOCTL, 0x97, 'unsigned int');}
}
unless(defined(&PPGETMODE)) {
    sub PPGETMODE () {	 &_IOR( &PP_IOCTL, 0x98, 'int');}
}
unless(defined(&PPGETPHASE)) {
    sub PPGETPHASE () {	 &_IOR( &PP_IOCTL, 0x99, 'int');}
}
unless(defined(&PPGETFLAGS)) {
    sub PPGETFLAGS () {	 &_IOR( &PP_IOCTL, 0x9a, 'int');}
}
unless(defined(&PPSETFLAGS)) {
    sub PPSETFLAGS () {	 &_IOW( &PP_IOCTL, 0x9b, 'int');}
}
unless(defined(&PP_FASTWRITE)) {
    sub PP_FASTWRITE () {	(1<<2);}
}
unless(defined(&PP_FASTREAD)) {
    sub PP_FASTREAD () {	(1<<3);}
}
unless(defined(&PP_W91284PIC)) {
    sub PP_W91284PIC () {	(1<<4);}
}
unless(defined(&PP_FLAGMASK)) {
    sub PP_FLAGMASK () {	( &PP_FASTWRITE |  &PP_FASTREAD |  &PP_W91284PIC);}
}
1;
