require '_h2ph_pre.ph';

no warnings 'redefine';

require 'sys/types.ph';
eval("sub arc_SystemClass () { 0; }") unless defined(&arc_SystemClass);
eval("sub arc_ProcessorClass () { 1; }") unless defined(&arc_ProcessorClass);
eval("sub arc_CacheClass () { 2; }") unless defined(&arc_CacheClass);
eval("sub arc_AdapterClass () { 3; }") unless defined(&arc_AdapterClass);
eval("sub arc_ControllerClass () { 4; }") unless defined(&arc_ControllerClass);
eval("sub arc_PeripheralClass () { 5; }") unless defined(&arc_PeripheralClass);
eval("sub arc_MemoryClass () { 6; }") unless defined(&arc_MemoryClass);
eval("sub arc_System () { 0; }") unless defined(&arc_System);
eval("sub arc_CentralProcessor () { 1; }") unless defined(&arc_CentralProcessor);
eval("sub arc_FloatingPointProcessor () { 2; }") unless defined(&arc_FloatingPointProcessor);
eval("sub arc_PrimaryIcache () { 3; }") unless defined(&arc_PrimaryIcache);
eval("sub arc_PrimaryDcache () { 4; }") unless defined(&arc_PrimaryDcache);
eval("sub arc_SecondaryIcache () { 5; }") unless defined(&arc_SecondaryIcache);
eval("sub arc_SecondaryDcache () { 6; }") unless defined(&arc_SecondaryDcache);
eval("sub arc_SecondaryCache () { 7; }") unless defined(&arc_SecondaryCache);
eval("sub arc_EisaAdapter () { 8; }") unless defined(&arc_EisaAdapter);
eval("sub arc_TcAdapter () { 9; }") unless defined(&arc_TcAdapter);
eval("sub arc_ScsiAdapter () { 10; }") unless defined(&arc_ScsiAdapter);
eval("sub arc_DtiAdapter () { 11; }") unless defined(&arc_DtiAdapter);
eval("sub arc_MultiFunctionAdapter () { 12; }") unless defined(&arc_MultiFunctionAdapter);
eval("sub arc_DiskController () { 13; }") unless defined(&arc_DiskController);
eval("sub arc_TapeController () { 14; }") unless defined(&arc_TapeController);
eval("sub arc_CdromController () { 15; }") unless defined(&arc_CdromController);
eval("sub arc_WormController () { 16; }") unless defined(&arc_WormController);
eval("sub arc_SerialController () { 17; }") unless defined(&arc_SerialController);
eval("sub arc_NetworkController () { 18; }") unless defined(&arc_NetworkController);
eval("sub arc_DisplayController () { 19; }") unless defined(&arc_DisplayController);
eval("sub arc_ParallelController () { 20; }") unless defined(&arc_ParallelController);
eval("sub arc_PointerController () { 21; }") unless defined(&arc_PointerController);
eval("sub arc_KeyboardController () { 22; }") unless defined(&arc_KeyboardController);
eval("sub arc_AudioController () { 23; }") unless defined(&arc_AudioController);
eval("sub arc_OtherController () { 24; }") unless defined(&arc_OtherController);
eval("sub arc_DiskPeripheral () { 25; }") unless defined(&arc_DiskPeripheral);
eval("sub arc_FloppyDiskPeripheral () { 26; }") unless defined(&arc_FloppyDiskPeripheral);
eval("sub arc_TapePeripheral () { 27; }") unless defined(&arc_TapePeripheral);
eval("sub arc_ModemPeripheral () { 28; }") unless defined(&arc_ModemPeripheral);
eval("sub arc_MonitorPeripheral () { 29; }") unless defined(&arc_MonitorPeripheral);
eval("sub arc_PrinterPeripheral () { 30; }") unless defined(&arc_PrinterPeripheral);
eval("sub arc_PointerPeripheral () { 31; }") unless defined(&arc_PointerPeripheral);
eval("sub arc_KeyboardPeripheral () { 32; }") unless defined(&arc_KeyboardPeripheral);
eval("sub arc_TerminalPeripheral () { 33; }") unless defined(&arc_TerminalPeripheral);
eval("sub arc_OtherPeripheral () { 34; }") unless defined(&arc_OtherPeripheral);
eval("sub arc_LinePeripheral () { 35; }") unless defined(&arc_LinePeripheral);
eval("sub arc_NetworkPeripheral () { 36; }") unless defined(&arc_NetworkPeripheral);
eval("sub arc_SystemMemory () { 37; }") unless defined(&arc_SystemMemory);
eval("sub arc_ESUCCESS () { 0; }") unless defined(&arc_ESUCCESS);
eval("sub arc_E2BIG () { 1; }") unless defined(&arc_E2BIG);
eval("sub arc_EACCES () { 2; }") unless defined(&arc_EACCES);
eval("sub arc_EAGAIN () { 3; }") unless defined(&arc_EAGAIN);
eval("sub arc_EBADF () { 4; }") unless defined(&arc_EBADF);
eval("sub arc_EBUSY () { 5; }") unless defined(&arc_EBUSY);
eval("sub arc_EFAULT () { 6; }") unless defined(&arc_EFAULT);
eval("sub arc_EINVAL () { 7; }") unless defined(&arc_EINVAL);
eval("sub arc_EIO () { 8; }") unless defined(&arc_EIO);
eval("sub arc_EISDIR () { 9; }") unless defined(&arc_EISDIR);
eval("sub arc_EMFILE () { 10; }") unless defined(&arc_EMFILE);
eval("sub arc_EMLINK () { 11; }") unless defined(&arc_EMLINK);
eval("sub arc_ENAMETOOLONG () { 12; }") unless defined(&arc_ENAMETOOLONG);
eval("sub arc_ENODEV () { 13; }") unless defined(&arc_ENODEV);
eval("sub arc_ENOENT () { 14; }") unless defined(&arc_ENOENT);
eval("sub arc_ENOEXEC () { 15; }") unless defined(&arc_ENOEXEC);
eval("sub arc_ENOMEM () { 16; }") unless defined(&arc_ENOMEM);
eval("sub arc_ENOSPC () { 17; }") unless defined(&arc_ENOSPC);
eval("sub arc_ENOTDIR () { 18; }") unless defined(&arc_ENOTDIR);
eval("sub arc_ENOTTY () { 19; }") unless defined(&arc_ENOTTY);
eval("sub arc_ENXIO () { 20; }") unless defined(&arc_ENXIO);
eval("sub arc_EROFS () { 21; }") unless defined(&arc_EROFS);
if(defined(&__arc__)) {
    eval("sub ExeceptionBlock () { 0; }") unless defined(&ExeceptionBlock);
    eval("sub SystemParameterBlock () { 1; }") unless defined(&SystemParameterBlock);
    eval("sub FreeMemory () { 2; }") unless defined(&FreeMemory);
    eval("sub BadMemory () { 3; }") unless defined(&BadMemory);
    eval("sub LoadedProgram () { 4; }") unless defined(&LoadedProgram);
    eval("sub FirmwareTemporary () { 5; }") unless defined(&FirmwareTemporary);
    eval("sub FirmwarePermanent () { 6; }") unless defined(&FirmwarePermanent);
    eval("sub FreeContigous () { 7; }") unless defined(&FreeContigous);
}
if(defined(&__sgi__)) {
    eval("sub ExeceptionBlock () { 0; }") unless defined(&ExeceptionBlock);
    eval("sub SystemParameterBlock () { 1; }") unless defined(&SystemParameterBlock);
    eval("sub FreeContigous () { 2; }") unless defined(&FreeContigous);
    eval("sub FreeMemory () { 3; }") unless defined(&FreeMemory);
    eval("sub BadMemory () { 4; }") unless defined(&BadMemory);
    eval("sub LoadedProgram () { 5; }") unless defined(&LoadedProgram);
    eval("sub FirmwareTemporary () { 6; }") unless defined(&FirmwareTemporary);
    eval("sub FirmwarePermanent () { 7; }") unless defined(&FirmwarePermanent);
}
if(defined(&arc)) {
} else {
}
if(defined(&arc)) {
}
unless(defined(&ARC_PARAM_BLK_MAGIC)) {
    sub ARC_PARAM_BLK_MAGIC () {	0x53435241;}
}
unless(defined(&ARC_PARAM_BLK_MAGIC_BUG)) {
    sub ARC_PARAM_BLK_MAGIC_BUG () {	0x41524353;}
}
if(defined(&_LP64)) {
    eval 'sub ArcBiosBase32 () {(( &arc_param_blk_32_t *) 0xffffffff80001000);}' unless defined(&ArcBiosBase32);
    eval 'sub ArcBiosBase64 () {(( &arc_param_blk_64_t *) 0xffffffff80001000);}' unless defined(&ArcBiosBase64);
} else {
    eval 'sub ArcBiosBase32 () {(( &arc_param_blk_32_t *) 0x80001000);}' unless defined(&ArcBiosBase32);
    eval 'sub ArcBiosBase64 () {(( &arc_param_blk_64_t *) 0x80001000);}' unless defined(&ArcBiosBase64);
}
unless(defined(&ArcBios)) {
    sub ArcBios () {	( ($ArcBiosBase->{firmware_vect}));}
}
1;
