require '_h2ph_pre.ph';

unless(defined(&__ADB_H)) {
    eval 'sub __ADB_H () {1;}' unless defined(&__ADB_H);
    eval 'sub ADB_BUSRESET () {0;}' unless defined(&ADB_BUSRESET);
    eval 'sub ADB_FLUSH {
        local($id) = @_;
	    eval q((0x1 | (($id) << 4)));
    }' unless defined(&ADB_FLUSH);
    eval 'sub ADB_WRITEREG {
        local($id, $reg) = @_;
	    eval q((0x8 | ($reg) | (($id) << 4)));
    }' unless defined(&ADB_WRITEREG);
    eval 'sub ADB_READREG {
        local($id, $reg) = @_;
	    eval q((0xc | ($reg) | (($id) << 4)));
    }' unless defined(&ADB_READREG);
    eval 'sub ADB_DONGLE () {1;}' unless defined(&ADB_DONGLE);
    eval 'sub ADB_KEYBOARD () {2;}' unless defined(&ADB_KEYBOARD);
    eval 'sub ADB_MOUSE () {3;}' unless defined(&ADB_MOUSE);
    eval 'sub ADB_TABLET () {4;}' unless defined(&ADB_TABLET);
    eval 'sub ADB_MODEM () {5;}' unless defined(&ADB_MODEM);
    eval 'sub ADB_MISC () {7;}' unless defined(&ADB_MISC);
    eval 'sub ADB_RET_OK () {0;}' unless defined(&ADB_RET_OK);
    eval 'sub ADB_RET_TIMEOUT () {3;}' unless defined(&ADB_RET_TIMEOUT);
    eval 'sub ADB_PACKET () {0;}' unless defined(&ADB_PACKET);
    eval 'sub CUDA_PACKET () {1;}' unless defined(&CUDA_PACKET);
    eval 'sub ERROR_PACKET () {2;}' unless defined(&ERROR_PACKET);
    eval 'sub TIMER_PACKET () {3;}' unless defined(&TIMER_PACKET);
    eval 'sub POWER_PACKET () {4;}' unless defined(&POWER_PACKET);
    eval 'sub MACIIC_PACKET () {5;}' unless defined(&MACIIC_PACKET);
    eval 'sub PMU_PACKET () {6;}' unless defined(&PMU_PACKET);
}
1;
