require '_h2ph_pre.ph';

unless(defined(&_HIDDEV_H)) {
    eval 'sub _HIDDEV_H () {1;}' unless defined(&_HIDDEV_H);
    eval 'sub HID_STRING_SIZE () {256;}' unless defined(&HID_STRING_SIZE);
    eval 'sub HID_REPORT_ID_UNKNOWN () {0xffffffff;}' unless defined(&HID_REPORT_ID_UNKNOWN);
    eval 'sub HID_REPORT_ID_FIRST () {0x100;}' unless defined(&HID_REPORT_ID_FIRST);
    eval 'sub HID_REPORT_ID_NEXT () {0x200;}' unless defined(&HID_REPORT_ID_NEXT);
    eval 'sub HID_REPORT_ID_MASK () {0xff;}' unless defined(&HID_REPORT_ID_MASK);
    eval 'sub HID_REPORT_ID_MAX () {0xff;}' unless defined(&HID_REPORT_ID_MAX);
    eval 'sub HID_REPORT_TYPE_INPUT () {1;}' unless defined(&HID_REPORT_TYPE_INPUT);
    eval 'sub HID_REPORT_TYPE_OUTPUT () {2;}' unless defined(&HID_REPORT_TYPE_OUTPUT);
    eval 'sub HID_REPORT_TYPE_FEATURE () {3;}' unless defined(&HID_REPORT_TYPE_FEATURE);
    eval 'sub HID_REPORT_TYPE_MIN () {1;}' unless defined(&HID_REPORT_TYPE_MIN);
    eval 'sub HID_REPORT_TYPE_MAX () {3;}' unless defined(&HID_REPORT_TYPE_MAX);
    eval 'sub HID_FIELD_CONSTANT () {0x1;}' unless defined(&HID_FIELD_CONSTANT);
    eval 'sub HID_FIELD_VARIABLE () {0x2;}' unless defined(&HID_FIELD_VARIABLE);
    eval 'sub HID_FIELD_RELATIVE () {0x4;}' unless defined(&HID_FIELD_RELATIVE);
    eval 'sub HID_FIELD_WRAP () {0x8;}' unless defined(&HID_FIELD_WRAP);
    eval 'sub HID_FIELD_NONLINEAR () {0x10;}' unless defined(&HID_FIELD_NONLINEAR);
    eval 'sub HID_FIELD_NO_PREFERRED () {0x20;}' unless defined(&HID_FIELD_NO_PREFERRED);
    eval 'sub HID_FIELD_NULL_STATE () {0x40;}' unless defined(&HID_FIELD_NULL_STATE);
    eval 'sub HID_FIELD_VOLATILE () {0x80;}' unless defined(&HID_FIELD_VOLATILE);
    eval 'sub HID_FIELD_BUFFERED_BYTE () {0x100;}' unless defined(&HID_FIELD_BUFFERED_BYTE);
    eval 'sub HID_VERSION () {0x10002;}' unless defined(&HID_VERSION);
    eval 'sub HIDIOCGVERSION () { &_IOR(ord(\'H\'), 0x1, \'int\');}' unless defined(&HIDIOCGVERSION);
    eval 'sub HIDIOCAPPLICATION () { &_IO(ord(\'H\'), 0x2);}' unless defined(&HIDIOCAPPLICATION);
    eval 'sub HIDIOCGDEVINFO () { &_IOR(ord(\'H\'), 0x3, \'struct hiddev_devinfo\');}' unless defined(&HIDIOCGDEVINFO);
    eval 'sub HIDIOCGSTRING () { &_IOR(ord(\'H\'), 0x4, \'struct hiddev_string_descriptor\');}' unless defined(&HIDIOCGSTRING);
    eval 'sub HIDIOCINITREPORT () { &_IO(ord(\'H\'), 0x5);}' unless defined(&HIDIOCINITREPORT);
    eval 'sub HIDIOCGNAME {
        local($len) = @_;
	    eval q( &_IOC( &_IOC_READ, ord(\'H\'), 0x6, $len));
    }' unless defined(&HIDIOCGNAME);
    eval 'sub HIDIOCGREPORT () { &_IOW(ord(\'H\'), 0x7, \'struct hiddev_report_info\');}' unless defined(&HIDIOCGREPORT);
    eval 'sub HIDIOCSREPORT () { &_IOW(ord(\'H\'), 0x8, \'struct hiddev_report_info\');}' unless defined(&HIDIOCSREPORT);
    eval 'sub HIDIOCGREPORTINFO () { &_IOWR(ord(\'H\'), 0x9, \'struct hiddev_report_info\');}' unless defined(&HIDIOCGREPORTINFO);
    eval 'sub HIDIOCGFIELDINFO () { &_IOWR(ord(\'H\'), 0xa, \'struct hiddev_field_info\');}' unless defined(&HIDIOCGFIELDINFO);
    eval 'sub HIDIOCGUSAGE () { &_IOWR(ord(\'H\'), 0xb, \'struct hiddev_usage_ref\');}' unless defined(&HIDIOCGUSAGE);
    eval 'sub HIDIOCSUSAGE () { &_IOW(ord(\'H\'), 0xc, \'struct hiddev_usage_ref\');}' unless defined(&HIDIOCSUSAGE);
    eval 'sub HIDIOCGUCODE () { &_IOWR(ord(\'H\'), 0xd, \'struct hiddev_usage_ref\');}' unless defined(&HIDIOCGUCODE);
}
1;
