require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&AUE_UR_READREG)) {
    sub AUE_UR_READREG () {	0xf0;}
}
unless(defined(&AUE_UR_WRITEREG)) {
    sub AUE_UR_WRITEREG () {	0xf1;}
}
unless(defined(&AUE_CONFIG_NO)) {
    sub AUE_CONFIG_NO () {	1;}
}
unless(defined(&AUE_IFACE_IDX)) {
    sub AUE_IFACE_IDX () {	0;}
}
unless(defined(&AUE_ENDPT_RX)) {
    sub AUE_ENDPT_RX () {	0x;}
}
unless(defined(&AUE_ENDPT_TX)) {
    sub AUE_ENDPT_TX () {	0x1;}
}
unless(defined(&AUE_ENDPT_INTR)) {
    sub AUE_ENDPT_INTR () {	0x2;}
}
unless(defined(&AUE_ENDPT_MAX)) {
    sub AUE_ENDPT_MAX () {	0x3;}
}
unless(defined(&AUE_CTL0)) {
    sub AUE_CTL0 () {	0x;}
}
unless(defined(&AUE_CTL1)) {
    sub AUE_CTL1 () {	0x1;}
}
unless(defined(&AUE_CTL2)) {
    sub AUE_CTL2 () {	0x2;}
}
unless(defined(&AUE_MAR0)) {
    sub AUE_MAR0 () {	0x8;}
}
unless(defined(&AUE_MAR1)) {
    sub AUE_MAR1 () {	0x9;}
}
unless(defined(&AUE_MAR2)) {
    sub AUE_MAR2 () {	0xa;}
}
unless(defined(&AUE_MAR3)) {
    sub AUE_MAR3 () {	0xb;}
}
unless(defined(&AUE_MAR4)) {
    sub AUE_MAR4 () {	0xc;}
}
unless(defined(&AUE_MAR5)) {
    sub AUE_MAR5 () {	0xd;}
}
unless(defined(&AUE_MAR6)) {
    sub AUE_MAR6 () {	0xe;}
}
unless(defined(&AUE_MAR7)) {
    sub AUE_MAR7 () {	0xf;}
}
unless(defined(&AUE_MAR)) {
    sub AUE_MAR () {	 &AUE_MAR0;}
}
unless(defined(&AUE_PAR0)) {
    sub AUE_PAR0 () {	0x10;}
}
unless(defined(&AUE_PAR1)) {
    sub AUE_PAR1 () {	0x11;}
}
unless(defined(&AUE_PAR2)) {
    sub AUE_PAR2 () {	0x12;}
}
unless(defined(&AUE_PAR3)) {
    sub AUE_PAR3 () {	0x13;}
}
unless(defined(&AUE_PAR4)) {
    sub AUE_PAR4 () {	0x14;}
}
unless(defined(&AUE_PAR5)) {
    sub AUE_PAR5 () {	0x15;}
}
unless(defined(&AUE_PAR)) {
    sub AUE_PAR () {	 &AUE_PAR0;}
}
unless(defined(&AUE_PAUSE0)) {
    sub AUE_PAUSE0 () {	0x18;}
}
unless(defined(&AUE_PAUSE1)) {
    sub AUE_PAUSE1 () {	0x19;}
}
unless(defined(&AUE_PAUSE)) {
    sub AUE_PAUSE () {	 &AUE_PAUSE0;}
}
unless(defined(&AUE_RX_FLOWCTL_CNT)) {
    sub AUE_RX_FLOWCTL_CNT () {	0x1a;}
}
unless(defined(&AUE_RX_FLOWCTL_FIFO)) {
    sub AUE_RX_FLOWCTL_FIFO () {	0x1b;}
}
unless(defined(&AUE_REG_1D)) {
    sub AUE_REG_1D () {	0x1d;}
}
unless(defined(&AUE_EE_REG)) {
    sub AUE_EE_REG () {	0x20;}
}
unless(defined(&AUE_EE_DATA0)) {
    sub AUE_EE_DATA0 () {	0x21;}
}
unless(defined(&AUE_EE_DATA1)) {
    sub AUE_EE_DATA1 () {	0x22;}
}
unless(defined(&AUE_EE_DATA)) {
    sub AUE_EE_DATA () {	 &AUE_EE_DATA0;}
}
unless(defined(&AUE_EE_CTL)) {
    sub AUE_EE_CTL () {	0x23;}
}
unless(defined(&AUE_PHY_ADDR)) {
    sub AUE_PHY_ADDR () {	0x25;}
}
unless(defined(&AUE_PHY_DATA0)) {
    sub AUE_PHY_DATA0 () {	0x26;}
}
unless(defined(&AUE_PHY_DATA1)) {
    sub AUE_PHY_DATA1 () {	0x27;}
}
unless(defined(&AUE_PHY_DATA)) {
    sub AUE_PHY_DATA () {	 &AUE_PHY_DATA0;}
}
unless(defined(&AUE_PHY_CTL)) {
    sub AUE_PHY_CTL () {	0x28;}
}
unless(defined(&AUE_USB_STS)) {
    sub AUE_USB_STS () {	0x2a;}
}
unless(defined(&AUE_TXSTAT0)) {
    sub AUE_TXSTAT0 () {	0x2b;}
}
unless(defined(&AUE_TXSTAT1)) {
    sub AUE_TXSTAT1 () {	0x2c;}
}
unless(defined(&AUE_TXSTAT)) {
    sub AUE_TXSTAT () {	 &AUE_TXSTAT0;}
}
unless(defined(&AUE_RXSTAT)) {
    sub AUE_RXSTAT () {	0x2d;}
}
unless(defined(&AUE_PKTLOST0)) {
    sub AUE_PKTLOST0 () {	0x2e;}
}
unless(defined(&AUE_PKTLOST1)) {
    sub AUE_PKTLOST1 () {	0x2f;}
}
unless(defined(&AUE_PKTLOST)) {
    sub AUE_PKTLOST () {	 &AUE_PKTLOST0;}
}
unless(defined(&AUE_REG_7B)) {
    sub AUE_REG_7B () {	0x7b;}
}
unless(defined(&AUE_GPIO0)) {
    sub AUE_GPIO0 () {	0x7e;}
}
unless(defined(&AUE_GPIO1)) {
    sub AUE_GPIO1 () {	0x7f;}
}
unless(defined(&AUE_REG_81)) {
    sub AUE_REG_81 () {	0x81;}
}
unless(defined(&AUE_CTL0_INCLUDE_RXCRC)) {
    sub AUE_CTL0_INCLUDE_RXCRC () {	0x1;}
}
unless(defined(&AUE_CTL0_ALLMULTI)) {
    sub AUE_CTL0_ALLMULTI () {	0x2;}
}
unless(defined(&AUE_CTL0_STOP_BACKOFF)) {
    sub AUE_CTL0_STOP_BACKOFF () {	0x4;}
}
unless(defined(&AUE_CTL0_RXSTAT_APPEND)) {
    sub AUE_CTL0_RXSTAT_APPEND () {	0x8;}
}
unless(defined(&AUE_CTL0_WAKEON_ENB)) {
    sub AUE_CTL0_WAKEON_ENB () {	0x10;}
}
unless(defined(&AUE_CTL0_RXPAUSE_ENB)) {
    sub AUE_CTL0_RXPAUSE_ENB () {	0x20;}
}
unless(defined(&AUE_CTL0_RX_ENB)) {
    sub AUE_CTL0_RX_ENB () {	0x40;}
}
unless(defined(&AUE_CTL0_TX_ENB)) {
    sub AUE_CTL0_TX_ENB () {	0x80;}
}
unless(defined(&AUE_CTL1_HOMELAN)) {
    sub AUE_CTL1_HOMELAN () {	0x4;}
}
unless(defined(&AUE_CTL1_RESETMAC)) {
    sub AUE_CTL1_RESETMAC () {	0x8;}
}
unless(defined(&AUE_CTL1_SPEEDSEL)) {
    sub AUE_CTL1_SPEEDSEL () {	0x10;}
}
unless(defined(&AUE_CTL1_DUPLEX)) {
    sub AUE_CTL1_DUPLEX () {	0x20;}
}
unless(defined(&AUE_CTL1_DELAYHOME)) {
    sub AUE_CTL1_DELAYHOME () {	0x40;}
}
unless(defined(&AUE_CTL2_EP3_CLR)) {
    sub AUE_CTL2_EP3_CLR () {	0x1;}
}
unless(defined(&AUE_CTL2_RX_BADFRAMES)) {
    sub AUE_CTL2_RX_BADFRAMES () {	0x2;}
}
unless(defined(&AUE_CTL2_RX_PROMISC)) {
    sub AUE_CTL2_RX_PROMISC () {	0x4;}
}
unless(defined(&AUE_CTL2_LOOPBACK)) {
    sub AUE_CTL2_LOOPBACK () {	0x8;}
}
unless(defined(&AUE_CTL2_EEPROMWR_ENB)) {
    sub AUE_CTL2_EEPROMWR_ENB () {	0x10;}
}
unless(defined(&AUE_CTL2_EEPROM_LOAD)) {
    sub AUE_CTL2_EEPROM_LOAD () {	0x20;}
}
unless(defined(&AUE_EECTL_WRITE)) {
    sub AUE_EECTL_WRITE () {	0x1;}
}
unless(defined(&AUE_EECTL_READ)) {
    sub AUE_EECTL_READ () {	0x2;}
}
unless(defined(&AUE_EECTL_DONE)) {
    sub AUE_EECTL_DONE () {	0x4;}
}
unless(defined(&AUE_PHYCTL_PHYREG)) {
    sub AUE_PHYCTL_PHYREG () {	0x1f;}
}
unless(defined(&AUE_PHYCTL_WRITE)) {
    sub AUE_PHYCTL_WRITE () {	0x20;}
}
unless(defined(&AUE_PHYCTL_READ)) {
    sub AUE_PHYCTL_READ () {	0x40;}
}
unless(defined(&AUE_PHYCTL_DONE)) {
    sub AUE_PHYCTL_DONE () {	0x80;}
}
unless(defined(&AUE_USBSTS_SUSPEND)) {
    sub AUE_USBSTS_SUSPEND () {	0x1;}
}
unless(defined(&AUE_USBSTS_RESUME)) {
    sub AUE_USBSTS_RESUME () {	0x2;}
}
unless(defined(&AUE_TXSTAT0_JABTIMO)) {
    sub AUE_TXSTAT0_JABTIMO () {	0x4;}
}
unless(defined(&AUE_TXSTAT0_CARLOSS)) {
    sub AUE_TXSTAT0_CARLOSS () {	0x8;}
}
unless(defined(&AUE_TXSTAT0_NOCARRIER)) {
    sub AUE_TXSTAT0_NOCARRIER () {	0x10;}
}
unless(defined(&AUE_TXSTAT0_LATECOLL)) {
    sub AUE_TXSTAT0_LATECOLL () {	0x20;}
}
unless(defined(&AUE_TXSTAT0_EXCESSCOLL)) {
    sub AUE_TXSTAT0_EXCESSCOLL () {	0x40;}
}
unless(defined(&AUE_TXSTAT0_UNDERRUN)) {
    sub AUE_TXSTAT0_UNDERRUN () {	0x80;}
}
unless(defined(&AUE_TXSTAT1_PKTCNT)) {
    sub AUE_TXSTAT1_PKTCNT () {	0xf;}
}
unless(defined(&AUE_TXSTAT1_FIFO_EMPTY)) {
    sub AUE_TXSTAT1_FIFO_EMPTY () {	0x40;}
}
unless(defined(&AUE_TXSTAT1_FIFO_FULL)) {
    sub AUE_TXSTAT1_FIFO_FULL () {	0x80;}
}
unless(defined(&AUE_RXSTAT_OVERRUN)) {
    sub AUE_RXSTAT_OVERRUN () {	0x1;}
}
unless(defined(&AUE_RXSTAT_PAUSE)) {
    sub AUE_RXSTAT_PAUSE () {	0x2;}
}
unless(defined(&AUE_GPIO_IN0)) {
    sub AUE_GPIO_IN0 () {	0x1;}
}
unless(defined(&AUE_GPIO_OUT0)) {
    sub AUE_GPIO_OUT0 () {	0x2;}
}
unless(defined(&AUE_GPIO_SEL0)) {
    sub AUE_GPIO_SEL0 () {	0x4;}
}
unless(defined(&AUE_GPIO_IN1)) {
    sub AUE_GPIO_IN1 () {	0x8;}
}
unless(defined(&AUE_GPIO_OUT1)) {
    sub AUE_GPIO_OUT1 () {	0x10;}
}
unless(defined(&AUE_GPIO_SEL1)) {
    sub AUE_GPIO_SEL1 () {	0x20;}
}
unless(defined(&AUE_INTR_PKTLEN)) {
    sub AUE_INTR_PKTLEN () {	8;}
}
unless(defined(&AUE_RXSTAT_MCAST)) {
    sub AUE_RXSTAT_MCAST () {	0x1;}
}
unless(defined(&AUE_RXSTAT_GIANT)) {
    sub AUE_RXSTAT_GIANT () {	0x2;}
}
unless(defined(&AUE_RXSTAT_RUNT)) {
    sub AUE_RXSTAT_RUNT () {	0x4;}
}
unless(defined(&AUE_RXSTAT_CRCERR)) {
    sub AUE_RXSTAT_CRCERR () {	0x8;}
}
unless(defined(&AUE_RXSTAT_DRIBBLE)) {
    sub AUE_RXSTAT_DRIBBLE () {	0x10;}
}
unless(defined(&AUE_RXSTAT_MASK)) {
    sub AUE_RXSTAT_MASK () {	0x1e;}
}
unless(defined(&AUE_TX_LIST_CNT)) {
    sub AUE_TX_LIST_CNT () {	1;}
}
unless(defined(&AUE_RX_LIST_CNT)) {
    sub AUE_RX_LIST_CNT () {	1;}
}
if(defined( &__FreeBSD__)) {
    eval 'sub GET_IFP {
        my($sc) = @_;
	    eval q((($sc)-> ($arpcom->{ac_if})));
    }' unless defined(&GET_IFP);
    eval 'sub GET_MII {
        my($sc) = @_;
	    eval q(( &device_get_softc(($sc)-> &aue_miibus)));
    }' unless defined(&GET_MII);
}
 elsif(defined( &__NetBSD__)) {
    eval 'sub GET_IFP {
        my($sc) = @_;
	    eval q((($sc)-> ($aue_ec->{ec_if})));
    }' unless defined(&GET_IFP);
    eval 'sub GET_MII {
        my($sc) = @_;
	    eval q((($sc)-> &aue_mii));
    }' unless defined(&GET_MII);
}
 elsif(defined( &__OpenBSD__)) {
    eval 'sub GET_IFP {
        my($sc) = @_;
	    eval q((($sc)-> ($arpcom->{ac_if})));
    }' unless defined(&GET_IFP);
    eval 'sub GET_MII {
        my($sc) = @_;
	    eval q((($sc)-> &aue_mii));
    }' unless defined(&GET_MII);
}
unless(defined(&AUE_TIMEOUT)) {
    sub AUE_TIMEOUT () {	1000;}
}
unless(defined(&AUE_BUFSZ)) {
    sub AUE_BUFSZ () {	1536;}
}
unless(defined(&AUE_MIN_FRAMELEN)) {
    sub AUE_MIN_FRAMELEN () {	60;}
}
unless(defined(&AUE_TX_TIMEOUT)) {
    sub AUE_TX_TIMEOUT () {	10000;}
}
unless(defined(&AUE_INTR_INTERVAL)) {
    sub AUE_INTR_INTERVAL () {	100;}
}
1;
