require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__MACHINE_PROM_H__)) {
    eval 'sub __MACHINE_PROM_H__ () {1;}' unless defined(&__MACHINE_PROM_H__);
    eval 'sub MVMEPROM_VECTOR () {496;}' unless defined(&MVMEPROM_VECTOR);
    eval 'sub MVMEPROM_INCHR () {0x;}' unless defined(&MVMEPROM_INCHR);
    eval 'sub MVMEPROM_INSTAT () {0x1;}' unless defined(&MVMEPROM_INSTAT);
    eval 'sub MVMEPROM_INLN () {0x2;}' unless defined(&MVMEPROM_INLN);
    eval 'sub MVMEPROM_READSTR () {0x3;}' unless defined(&MVMEPROM_READSTR);
    eval 'sub MVMEPROM_READLN () {0x4;}' unless defined(&MVMEPROM_READLN);
    eval 'sub MVMEPROM_DSKRD () {0x10;}' unless defined(&MVMEPROM_DSKRD);
    eval 'sub MVMEPROM_DSKWR () {0x11;}' unless defined(&MVMEPROM_DSKWR);
    eval 'sub MVMEPROM_DSKCFIG () {0x12;}' unless defined(&MVMEPROM_DSKCFIG);
    eval 'sub MVMEPROM_DSKFMT () {0x14;}' unless defined(&MVMEPROM_DSKFMT);
    eval 'sub MVMEPROM_DSKCTRL () {0x15;}' unless defined(&MVMEPROM_DSKCTRL);
    eval 'sub MVMEPROM_NETFOPEN () {0x1b;}' unless defined(&MVMEPROM_NETFOPEN);
    eval 'sub MVMEPROM_NETFREAD () {0x1c;}' unless defined(&MVMEPROM_NETFREAD);
    eval 'sub MVMEPROM_NETCTRL () {0x1d;}' unless defined(&MVMEPROM_NETCTRL);
    eval 'sub MVMEPROM_OUTCHR () {0x20;}' unless defined(&MVMEPROM_OUTCHR);
    eval 'sub MVMEPROM_OUTSTR () {0x21;}' unless defined(&MVMEPROM_OUTSTR);
    eval 'sub MVMEPROM_OUTSTRCRLF () {0x22;}' unless defined(&MVMEPROM_OUTSTRCRLF);
    eval 'sub MVMEPROM_WRITE () {0x23;}' unless defined(&MVMEPROM_WRITE);
    eval 'sub MVMEPROM_WRITELN () {0x24;}' unless defined(&MVMEPROM_WRITELN);
    eval 'sub MVMEPROM_OUTCRLF () {0x26;}' unless defined(&MVMEPROM_OUTCRLF);
    eval 'sub MVMEPROM_DELAY () {0x43;}' unless defined(&MVMEPROM_DELAY);
    eval 'sub MVMEPROM_RTC_RD () {0x53;}' unless defined(&MVMEPROM_RTC_RD);
    eval 'sub MVMEPROM_EXIT () {0x63;}' unless defined(&MVMEPROM_EXIT);
    eval 'sub MVMEPROM_GETBRDID () {0x70;}' unless defined(&MVMEPROM_GETBRDID);
    eval 'sub MVMEPROM_ENVIRON () {0x71;}' unless defined(&MVMEPROM_ENVIRON);
    eval 'sub MVMEPROM_FORKMPU () {0x100;}' unless defined(&MVMEPROM_FORKMPU);
    eval 'sub NETCTRLCMD_GETETHER () {1;}' unless defined(&NETCTRLCMD_GETETHER);
    eval 'sub ENVIRONCMD_WRITE () {1;}' unless defined(&ENVIRONCMD_WRITE);
    eval 'sub ENVIRONCMD_READ () {2;}' unless defined(&ENVIRONCMD_READ);
    eval 'sub ENVIRONTYPE_EOL () {0;}' unless defined(&ENVIRONTYPE_EOL);
    eval 'sub ENVIRONTYPE_START () {1;}' unless defined(&ENVIRONTYPE_START);
    eval 'sub ENVIRONTYPE_DISKBOOT () {2;}' unless defined(&ENVIRONTYPE_DISKBOOT);
    eval 'sub ENVIRONTYPE_ROMBOOT () {3;}' unless defined(&ENVIRONTYPE_ROMBOOT);
    eval 'sub ENVIRONTYPE_NETBOOT () {4;}' unless defined(&ENVIRONTYPE_NETBOOT);
    eval 'sub ENVIRONTYPE_MEMSIZE () {5;}' unless defined(&ENVIRONTYPE_MEMSIZE);
    eval 'sub FORKMPU_NOT_IDLE () {-1;}' unless defined(&FORKMPU_NOT_IDLE);
    eval 'sub FORKMPU_BAD_ADDRESS () {-2;}' unless defined(&FORKMPU_BAD_ADDRESS);
    eval 'sub FORKMPU_NO_MPU () {-3;}' unless defined(&FORKMPU_NO_MPU);
    unless(defined(&LOCORE)) {
	eval 'sub BUG_FILE_MARK () {0x80;}' unless defined(&BUG_FILE_MARK);
	eval 'sub IGNORE_FILENUM () {0x2;}' unless defined(&IGNORE_FILENUM);
	eval 'sub END_OF_FILE () {0x1;}' unless defined(&END_OF_FILE);
	eval 'sub MVMEPROM_BLOCK_SIZE () {256;}' unless defined(&MVMEPROM_BLOCK_SIZE);
    }
    unless(defined(&RB_NOSYM)) {
	eval 'sub RB_NOSYM () {0x4000;}' unless defined(&RB_NOSYM);
    }
}
1;
