require '_h2ph_pre.ph';

unless(defined(&_GAMEPORT_H)) {
    eval 'sub _GAMEPORT_H () {1;}' unless defined(&_GAMEPORT_H);
    require 'linux/sched.ph';
    require 'linux/delay.ph';
    require 'asm/io.ph';
    if(defined( &CONFIG_INPUT_GAMEPORT) || defined( &CONFIG_INPUT_GAMEPORT_MODULE)) {
    } else {
    }
    eval 'sub GAMEPORT_MODE_DISABLED () {0;}' unless defined(&GAMEPORT_MODE_DISABLED);
    eval 'sub GAMEPORT_MODE_RAW () {1;}' unless defined(&GAMEPORT_MODE_RAW);
    eval 'sub GAMEPORT_MODE_COOKED () {2;}' unless defined(&GAMEPORT_MODE_COOKED);
    eval 'sub GAMEPORT_ID_VENDOR_ANALOG () {0x1;}' unless defined(&GAMEPORT_ID_VENDOR_ANALOG);
    eval 'sub GAMEPORT_ID_VENDOR_MADCATZ () {0x2;}' unless defined(&GAMEPORT_ID_VENDOR_MADCATZ);
    eval 'sub GAMEPORT_ID_VENDOR_LOGITECH () {0x3;}' unless defined(&GAMEPORT_ID_VENDOR_LOGITECH);
    eval 'sub GAMEPORT_ID_VENDOR_CREATIVE () {0x4;}' unless defined(&GAMEPORT_ID_VENDOR_CREATIVE);
    eval 'sub GAMEPORT_ID_VENDOR_GENIUS () {0x5;}' unless defined(&GAMEPORT_ID_VENDOR_GENIUS);
    eval 'sub GAMEPORT_ID_VENDOR_INTERACT () {0x6;}' unless defined(&GAMEPORT_ID_VENDOR_INTERACT);
    eval 'sub GAMEPORT_ID_VENDOR_MICROSOFT () {0x7;}' unless defined(&GAMEPORT_ID_VENDOR_MICROSOFT);
    eval 'sub GAMEPORT_ID_VENDOR_THRUSTMASTER () {0x8;}' unless defined(&GAMEPORT_ID_VENDOR_THRUSTMASTER);
    eval 'sub GAMEPORT_ID_VENDOR_GRAVIS () {0x9;}' unless defined(&GAMEPORT_ID_VENDOR_GRAVIS);
}
1;
