require '_h2ph_pre.ph';

no warnings 'redefine';

require 'machine/hil_machdep.ph';
unless(defined(&HIL_BUSY)) {
    sub HIL_BUSY () {	0x2;}
}
unless(defined(&HIL_DATA_RDY)) {
    sub HIL_DATA_RDY () {	0x1;}
}
unless(defined(&HIL_POLLDATA)) {
    sub HIL_POLLDATA () {	0x10;}
}
unless(defined(&HIL_COMMAND)) {
    sub HIL_COMMAND () {	0x8;}
}
unless(defined(&HIL_ERROR)) {
    sub HIL_ERROR () {	0x80;}
}
unless(defined(&HIL_RECONFIG)) {
    sub HIL_RECONFIG () {	0x80;}
}
unless(defined(&HIL_UNPLUGGED)) {
    sub HIL_UNPLUGGED () {	0x84;}
}
unless(defined(&HIL_SSHIFT)) {
    sub HIL_SSHIFT () {	4;}
}
unless(defined(&HIL_SMASK)) {
    sub HIL_SMASK () {	0xf;}
}
unless(defined(&HIL_DEVMASK)) {
    sub HIL_DEVMASK () {	0x7;}
}
unless(defined(&HIL_68K)) {
    sub HIL_68K () {	0x4;}
}
unless(defined(&HIL_STATUS)) {
    sub HIL_STATUS () {	0x5;}
}
unless(defined(&HIL_DATA)) {
    sub HIL_DATA () {	0x6;}
}
unless(defined(&HIL_CTRLSHIFT)) {
    sub HIL_CTRLSHIFT () {	0x8;}
}
unless(defined(&HIL_CTRL)) {
    sub HIL_CTRL () {	0x9;}
}
unless(defined(&HIL_SHIFT)) {
    sub HIL_SHIFT () {	0xa;}
}
unless(defined(&HIL_KEY)) {
    sub HIL_KEY () {	0xb;}
}
unless(defined(&HIL_IDENTIFY)) {
    sub HIL_IDENTIFY () {	0x3;}
}
unless(defined(&HIL_READTIME)) {
    sub HIL_READTIME () {	0x13;}
}
unless(defined(&HIL_RNAME)) {
    sub HIL_RNAME () {	0x30;}
}
unless(defined(&HIL_RSTATUS)) {
    sub HIL_RSTATUS () {	0x31;}
}
unless(defined(&HIL_DESCRIBE)) {
    sub HIL_DESCRIBE () {	0x32;}
}
unless(defined(&HIL_SECURITY)) {
    sub HIL_SECURITY () {	0x33;}
}
unless(defined(&HIL_DKR)) {
    sub HIL_DKR () {	0x3d;}
}
unless(defined(&HIL_ER1)) {
    sub HIL_ER1 () {	0x3e;}
}
unless(defined(&HIL_ER2)) {
    sub HIL_ER2 () {	0x3f;}
}
unless(defined(&HIL_PROMPT1)) {
    sub HIL_PROMPT1 () {	0x40;}
}
unless(defined(&HIL_PROMPT2)) {
    sub HIL_PROMPT2 () {	0x41;}
}
unless(defined(&HIL_PROMPT3)) {
    sub HIL_PROMPT3 () {	0x42;}
}
unless(defined(&HIL_PROMPT4)) {
    sub HIL_PROMPT4 () {	0x43;}
}
unless(defined(&HIL_PROMPT5)) {
    sub HIL_PROMPT5 () {	0x44;}
}
unless(defined(&HIL_PROMPT6)) {
    sub HIL_PROMPT6 () {	0x45;}
}
unless(defined(&HIL_PROMPT7)) {
    sub HIL_PROMPT7 () {	0x46;}
}
unless(defined(&HIL_PROMPT)) {
    sub HIL_PROMPT () {	0x47;}
}
unless(defined(&HIL_ACK1)) {
    sub HIL_ACK1 () {	0x48;}
}
unless(defined(&HIL_ACK2)) {
    sub HIL_ACK2 () {	0x49;}
}
unless(defined(&HIL_ACK3)) {
    sub HIL_ACK3 () {	0x4a;}
}
unless(defined(&HIL_ACK4)) {
    sub HIL_ACK4 () {	0x4b;}
}
unless(defined(&HIL_ACK5)) {
    sub HIL_ACK5 () {	0x4c;}
}
unless(defined(&HIL_ACK6)) {
    sub HIL_ACK6 () {	0x4d;}
}
unless(defined(&HIL_ACK7)) {
    sub HIL_ACK7 () {	0x4e;}
}
unless(defined(&HIL_ACK)) {
    sub HIL_ACK () {	0x4f;}
}
unless(defined(&HIL_INTON)) {
    sub HIL_INTON () {	0x5c;}
}
unless(defined(&HIL_INTOFF)) {
    sub HIL_INTOFF () {	0x5d;}
}
unless(defined(&HIL_SETARD)) {
    sub HIL_SETARD () {	0xa0;}
}
unless(defined(&HIL_SETARR)) {
    sub HIL_SETARR () {	0xa2;}
}
unless(defined(&HIL_SETTONE)) {
    sub HIL_SETTONE () {	0xa3;}
}
unless(defined(&HIL_CNMT)) {
    sub HIL_CNMT () {	0xb2;}
}
unless(defined(&HIL_TRIGGER)) {
    sub HIL_TRIGGER () {	0xc5;}
}
unless(defined(&HIL_STARTCMD)) {
    sub HIL_STARTCMD () {	0xe0;}
}
unless(defined(&HIL_TIMEOUT)) {
    sub HIL_TIMEOUT () {	0xfe;}
}
unless(defined(&HIL_READBUSY)) {
    sub HIL_READBUSY () {	0x2;}
}
unless(defined(&HIL_READKBDLANG)) {
    sub HIL_READKBDLANG () {	0x12;}
}
unless(defined(&HIL_WRITEKBDSADR)) {
    sub HIL_WRITEKBDSADR () {	0xe9;}
}
unless(defined(&HIL_WRITELPSTAT)) {
    sub HIL_WRITELPSTAT () {	0xea;}
}
unless(defined(&HIL_WRITELPCTRL)) {
    sub HIL_WRITELPCTRL () {	0xeb;}
}
unless(defined(&HIL_READKBDSADR)) {
    sub HIL_READKBDSADR () {	0xf9;}
}
unless(defined(&HIL_READLPSTAT)) {
    sub HIL_READLPSTAT () {	0xfa;}
}
unless(defined(&HIL_READLPCTRL)) {
    sub HIL_READLPCTRL () {	0xfb;}
}
unless(defined(&BSY_LOOPBUSY)) {
    sub BSY_LOOPBUSY () {	0x4;}
}
unless(defined(&LPC_AUTOPOLL)) {
    sub LPC_AUTOPOLL () {	0x1;}
}
unless(defined(&LPC_NOERROR)) {
    sub LPC_NOERROR () {	0x2;}
}
unless(defined(&LPC_NORECONF)) {
    sub LPC_NORECONF () {	0x4;}
}
unless(defined(&LPC_KBDCOOK)) {
    sub LPC_KBDCOOK () {	0x10;}
}
unless(defined(&LPC_RECONF)) {
    sub LPC_RECONF () {	0x80;}
}
unless(defined(&LPS_DEVMASK)) {
    sub LPS_DEVMASK () {	0x7;}
}
unless(defined(&LPS_CONFGOOD)) {
    sub LPS_CONFGOOD () {	0x8;}
}
unless(defined(&LPS_CONFFAIL)) {
    sub LPS_CONFFAIL () {	0x80;}
}
unless(defined(&HIL_MOUSEDATA)) {
    sub HIL_MOUSEDATA () {	0x2;}
}
unless(defined(&HIL_KBDDATA)) {
    sub HIL_KBDDATA () {	0x70;}
}
unless(defined(&HIL_MOUSEMOTION)) {
    sub HIL_MOUSEMOTION () {	0x2;}
}
unless(defined(&HIL_TABLET)) {
    sub HIL_TABLET () {	0x2;}
}
unless(defined(&HIL_KNOBBOX)) {
    sub HIL_KNOBBOX () {	0x3;}
}
unless(defined(&HIL_KBDBUTTON)) {
    sub HIL_KBDBUTTON () {	0x40;}
}
unless(defined(&HIL_MOUSEBUTTON)) {
    sub HIL_MOUSEBUTTON () {	0x40;}
}
unless(defined(&HIL_BUTTONBOX)) {
    sub HIL_BUTTONBOX () {	0x60;}
}
unless(defined(&HILSCBIT)) {
    sub HILSCBIT () {	0x4;}
}
unless(defined(&ar_format)) {
    sub ar_format {
	my($x) = @_;
	eval q(~(($x - 10) / 10));
    }
}
unless(defined(&KBD_ARD)) {
    sub KBD_ARD () {	400;}
}
unless(defined(&KBD_ARR)) {
    sub KBD_ARR () {	60;}
}
unless(defined(&HIL_ABSOLUTE)) {
    sub HIL_ABSOLUTE () {	0x40;}
}
unless(defined(&HIL_16_BITS)) {
    sub HIL_16_BITS () {	0x20;}
}
unless(defined(&HIL_IOB)) {
    sub HIL_IOB () {	0x10;}
}
unless(defined(&HIL_AXMASK)) {
    sub HIL_AXMASK () {	0x3;}
}
unless(defined(&HILIOB_PROMPT)) {
    sub HILIOB_PROMPT () {	0x80;}
}
unless(defined(&HILIOB_PMASK)) {
    sub HILIOB_PMASK () {	0x70;}
}
unless(defined(&HILIOB_PIO)) {
    sub HILIOB_PIO () {	0x8;}
}
unless(defined(&HILIOB_BMASK)) {
    sub HILIOB_BMASK () {	0x7;}
}
1;
