require '_h2ph_pre.ph';

unless(defined(&_MAC68K_VIAREG_H_)) {
    eval 'sub _MAC68K_VIAREG_H_ () {1;}' unless defined(&_MAC68K_VIAREG_H_);
    eval 'sub DA1I_vSCCWrReq () {0x80;}' unless defined(&DA1I_vSCCWrReq);
    eval 'sub DA1O_vPage2 () {0x40;}' unless defined(&DA1O_vPage2);
    eval 'sub DA1I_CPU_ID1 () {0x40;}' unless defined(&DA1I_CPU_ID1);
    eval 'sub DA1O_vHeadSel () {0x20;}' unless defined(&DA1O_vHeadSel);
    eval 'sub DA1O_vOverlay () {0x10;}' unless defined(&DA1O_vOverlay);
    eval 'sub DA1O_vSync () {0x08;}' unless defined(&DA1O_vSync);
    eval 'sub DA1O_RESERVED2 () {0x04;}' unless defined(&DA1O_RESERVED2);
    eval 'sub DA1O_RESERVED1 () {0x02;}' unless defined(&DA1O_RESERVED1);
    eval 'sub DA1O_RESERVED0 () {0x01;}' unless defined(&DA1O_RESERVED0);
    eval 'sub DB1I_Par_Err () {0x80;}' unless defined(&DB1I_Par_Err);
    eval 'sub DB1O_vSndEnb () {0x80;}' unless defined(&DB1O_vSndEnb);
    eval 'sub DB1O_Par_Enb () {0x40;}' unless defined(&DB1O_Par_Enb);
    eval 'sub DB1O_vFDesk2 () {0x20;}' unless defined(&DB1O_vFDesk2);
    eval 'sub DB1O_vFDesk1 () {0x10;}' unless defined(&DB1O_vFDesk1);
    eval 'sub DB1I_vFDBInt () {0x08;}' unless defined(&DB1I_vFDBInt);
    eval 'sub DB1O_rTCEnb () {0x04;}' unless defined(&DB1O_rTCEnb);
    eval 'sub DB1O_rTCCLK () {0x02;}' unless defined(&DB1O_rTCCLK);
    eval 'sub DB1O_rTCData () {0x01;}' unless defined(&DB1O_rTCData);
    eval 'sub DB1I_rTCData () {0x01;}' unless defined(&DB1I_rTCData);
    eval 'sub DA2O_v2Ram1 () {0x80;}' unless defined(&DA2O_v2Ram1);
    eval 'sub DA2O_v2Ram0 () {0x40;}' unless defined(&DA2O_v2Ram0);
    eval 'sub DA2I_v2IRQ0 () {0x40;}' unless defined(&DA2I_v2IRQ0);
    eval 'sub DA2I_v2IRQE () {0x20;}' unless defined(&DA2I_v2IRQE);
    eval 'sub DA2I_v2IRQD () {0x10;}' unless defined(&DA2I_v2IRQD);
    eval 'sub DA2I_v2IRQC () {0x08;}' unless defined(&DA2I_v2IRQC);
    eval 'sub DA2I_v2IRQB () {0x04;}' unless defined(&DA2I_v2IRQB);
    eval 'sub DA2I_v2IRQA () {0x02;}' unless defined(&DA2I_v2IRQA);
    eval 'sub DA2I_v2IRQ9 () {0x01;}' unless defined(&DA2I_v2IRQ9);
    eval 'sub DB2O_v2VBL () {0x80;}' unless defined(&DB2O_v2VBL);
    eval 'sub DB2O_Par_Test () {0x80;}' unless defined(&DB2O_Par_Test);
    eval 'sub DB2I_v2SNDEXT () {0x40;}' unless defined(&DB2I_v2SNDEXT);
    eval 'sub DB2I_v2TM0A () {0x20;}' unless defined(&DB2I_v2TM0A);
    eval 'sub DB2I_v2TM1A () {0x10;}' unless defined(&DB2I_v2TM1A);
    eval 'sub DB2I_vFC3 () {0x08;}' unless defined(&DB2I_vFC3);
    eval 'sub DB2O_vFC3 () {0x08;}' unless defined(&DB2O_vFC3);
    eval 'sub DB2O_v2PowerOff () {0x04;}' unless defined(&DB2O_v2PowerOff);
    eval 'sub DB2O_v2BusLk () {0x02;}' unless defined(&DB2O_v2BusLk);
    eval 'sub DB2O_vCDis () {0x01;}' unless defined(&DB2O_vCDis);
    eval 'sub DB2O_CEnable () {0x01;}' unless defined(&DB2O_CEnable);
    eval 'sub VIA1_T1 () {6;}' unless defined(&VIA1_T1);
    eval 'sub VIA1_T2 () {5;}' unless defined(&VIA1_T2);
    eval 'sub VIA1_ADBCLK () {4;}' unless defined(&VIA1_ADBCLK);
    eval 'sub VIA1_ADBDATA () {3;}' unless defined(&VIA1_ADBDATA);
    eval 'sub VIA1_ADBRDY () {2;}' unless defined(&VIA1_ADBRDY);
    eval 'sub VIA1_VBLNK () {1;}' unless defined(&VIA1_VBLNK);
    eval 'sub VIA1_ONESEC () {0;}' unless defined(&VIA1_ONESEC);
    eval 'sub V1IF_IRQ () {0x80;}' unless defined(&V1IF_IRQ);
    eval 'sub V1IF_T1 () {(1<<  &VIA1_T1);}' unless defined(&V1IF_T1);
    eval 'sub V1IF_T2 () {(1<<  &VIA1_T2);}' unless defined(&V1IF_T2);
    eval 'sub V1IF_ADBCLK () {(1<<  &VIA1_ADBCLK);}' unless defined(&V1IF_ADBCLK);
    eval 'sub V1IF_ADBDATA () {(1<<  &VIA1_ADBDATA);}' unless defined(&V1IF_ADBDATA);
    eval 'sub V1IF_ADBRDY () {(1<<  &VIA1_ADBRDY);}' unless defined(&V1IF_ADBRDY);
    eval 'sub V1IF_VBLNK () {(1<<  &VIA1_VBLNK);}' unless defined(&V1IF_VBLNK);
    eval 'sub V1IF_ONESEC () {(1<<  &VIA1_ONESEC);}' unless defined(&V1IF_ONESEC);
    eval 'sub VIA2_T1 () {6;}' unless defined(&VIA2_T1);
    eval 'sub VIA2_T2 () {5;}' unless defined(&VIA2_T2);
    eval 'sub VIA2_ASC () {4;}' unless defined(&VIA2_ASC);
    eval 'sub VIA2_SCSIIRQ () {3;}' unless defined(&VIA2_SCSIIRQ);
    eval 'sub VIA2_EXPIRQ () {2;}' unless defined(&VIA2_EXPIRQ);
    eval 'sub VIA2_SLOTINT () {1;}' unless defined(&VIA2_SLOTINT);
    eval 'sub VIA2_SCSIDRQ () {0;}' unless defined(&VIA2_SCSIDRQ);
    eval 'sub V2IF_IRQ () {0x80;}' unless defined(&V2IF_IRQ);
    eval 'sub V2IF_T1 () {(1<<  &VIA2_T1);}' unless defined(&V2IF_T1);
    eval 'sub V2IF_T2 () {(1<<  &VIA2_T2);}' unless defined(&V2IF_T2);
    eval 'sub V2IF_ASC () {(1<<  &VIA2_ASC);}' unless defined(&V2IF_ASC);
    eval 'sub V2IF_SCSIIRQ () {(1<<  &VIA2_SCSIIRQ);}' unless defined(&V2IF_SCSIIRQ);
    eval 'sub V2IF_EXPIRQ () {(1<<  &VIA2_EXPIRQ);}' unless defined(&V2IF_EXPIRQ);
    eval 'sub V2IF_SLOTINT () {(1<<  &VIA2_SLOTINT);}' unless defined(&V2IF_SLOTINT);
    eval 'sub V2IF_SCSIDRQ () {(1<<  &VIA2_SCSIDRQ);}' unless defined(&V2IF_SCSIDRQ);
    eval 'sub VIA1_INTS () {( &V1IF_T1 |  &V1IF_ADBRDY);}' unless defined(&VIA1_INTS);
    eval 'sub VIA2_INTS () {( &V2IF_T1 |  &V2IF_ASC |  &V2IF_SCSIIRQ |  &V2IF_SLOTINT |  &V2IF_SCSIDRQ);}' unless defined(&VIA2_INTS);
    eval 'sub RBV_INTS () {( &V2IF_T1 |  &V2IF_ASC |  &V2IF_SCSIIRQ |  &V2IF_SLOTINT |  &V2IF_SCSIDRQ |  &V1IF_ADBRDY);}' unless defined(&RBV_INTS);
    eval 'sub ACR_T1LATCH () {0x40;}' unless defined(&ACR_T1LATCH);
    eval 'sub VIA1_addr () { &Via1Base;}' unless defined(&VIA1_addr);
    eval 'sub VIA2OFF () {1;}' unless defined(&VIA2OFF);
    eval 'sub RBVOFF () {0x13;}' unless defined(&RBVOFF);
    eval 'sub VIA1 () {0;}' unless defined(&VIA1);
    eval 'sub vBufA () {0x1e00;}' unless defined(&vBufA);
    eval 'sub vBufB () {0;}' unless defined(&vBufB);
    eval 'sub vDirA () {0x0600;}' unless defined(&vDirA);
    eval 'sub vDirB () {0x0400;}' unless defined(&vDirB);
    eval 'sub vT1C () {0x0800;}' unless defined(&vT1C);
    eval 'sub vT1CH () {0x0a00;}' unless defined(&vT1CH);
    eval 'sub vT1L () {0x0c00;}' unless defined(&vT1L);
    eval 'sub vT1LH () {0x0e00;}' unless defined(&vT1LH);
    eval 'sub vT2C () {0x1000;}' unless defined(&vT2C);
    eval 'sub vT2CH () {0x1200;}' unless defined(&vT2CH);
    eval 'sub vSR () {0x1400;}' unless defined(&vSR);
    eval 'sub vACR () {0x1600;}' unless defined(&vACR);
    eval 'sub vPCR () {0x1800;}' unless defined(&vPCR);
    eval 'sub vIFR () {0x1a00;}' unless defined(&vIFR);
    eval 'sub vIER () {0x1c00;}' unless defined(&vIER);
    eval 'sub rBufB () {0;}' unless defined(&rBufB);
    eval 'sub rBufA () {2;}' unless defined(&rBufA);
    eval 'sub rIFR () {0x3;}' unless defined(&rIFR);
    eval 'sub rIER () {0x13;}' unless defined(&rIER);
    eval 'sub rMonitor () {0x10;}' unless defined(&rMonitor);
    eval 'sub rSlotInt () {0x12;}' unless defined(&rSlotInt);
    eval 'sub RBVDepthMask () {0x07;}' unless defined(&RBVDepthMask);
    eval 'sub RBVMonitorMask () {0x38;}' unless defined(&RBVMonitorMask);
    eval 'sub RBVOff () {0x40;}' unless defined(&RBVOff);
    eval 'sub RBVMonIDNone () {0x38;}' unless defined(&RBVMonIDNone);
    eval 'sub RBVMonIDOff () {0x0;}' unless defined(&RBVMonIDOff);
    eval 'sub RBVMonID15BWP () {0x08;}' unless defined(&RBVMonID15BWP);
    eval 'sub RBVMonIDRGB () {0x10;}' unless defined(&RBVMonIDRGB);
    eval 'sub RBVMonIDRGB15 () {0x28;}' unless defined(&RBVMonIDRGB15);
    eval 'sub RBVMonIDBW () {0x30;}' unless defined(&RBVMonIDBW);
    eval 'sub via_reg {
        local($v, $r) = @_;
	    eval q((*( &Via1Base+($v)*0x2000+($r))));
    }' unless defined(&via_reg);
    eval 'sub via2_reg {
        local($r) = @_;
	    eval q((*( &Via2Base+($r))));
    }' unless defined(&via2_reg);
    eval 'sub vDirA_ADBState () {0x30;}' unless defined(&vDirA_ADBState);
    if(defined(&_KERNEL)) {
    }
}
1;
