require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&LGE_MODE1)) {
    sub LGE_MODE1 () {	0x;}
}
unless(defined(&LGE_MODE2)) {
    sub LGE_MODE2 () {	0x4;}
}
unless(defined(&LGE_PPTXBUF_IDX)) {
    sub LGE_PPTXBUF_IDX () {	0x8;}
}
unless(defined(&LGE_PRODID)) {
    sub LGE_PRODID () {	0xc;}
}
unless(defined(&LGE_PPTXBUF_ADDR_LO)) {
    sub LGE_PPTXBUF_ADDR_LO () {	0x10;}
}
unless(defined(&LGE_PPTXBUF_ADDR_HI)) {
    sub LGE_PPTXBUF_ADDR_HI () {	0x14;}
}
unless(defined(&LGE_RSVD0)) {
    sub LGE_RSVD0 () {	0x18;}
}
unless(defined(&LGE_PPRXBUF_IDX)) {
    sub LGE_PPRXBUF_IDX () {	0x1c;}
}
unless(defined(&LGE_PPRXBUF_ADDR_LO)) {
    sub LGE_PPRXBUF_ADDR_LO () {	0x20;}
}
unless(defined(&LGE_PPRXBUF_ADDR_HI)) {
    sub LGE_PPRXBUF_ADDR_HI () {	0x24;}
}
unless(defined(&LGE_EECTL)) {
    sub LGE_EECTL () {	0x28;}
}
unless(defined(&LGE_CHIPSTS)) {
    sub LGE_CHIPSTS () {	0x2c;}
}
unless(defined(&LGE_TXDESC_ADDR_LO)) {
    sub LGE_TXDESC_ADDR_LO () {	0x30;}
}
unless(defined(&LGE_TXDESC_ADDR_HI)) {
    sub LGE_TXDESC_ADDR_HI () {	0x34;}
}
unless(defined(&LGE_RXDESC_ADDR_LO)) {
    sub LGE_RXDESC_ADDR_LO () {	0x38;}
}
unless(defined(&LGE_RXDESC_ADDR_HI)) {
    sub LGE_RXDESC_ADDR_HI () {	0x3c;}
}
unless(defined(&LGE_PPTXCTL)) {
    sub LGE_PPTXCTL () {	0x40;}
}
unless(defined(&LGE_PPRXCTL)) {
    sub LGE_PPRXCTL () {	0x44;}
}
unless(defined(&LGE_INTR_PERIOD)) {
    sub LGE_INTR_PERIOD () {	0x48;}
}
unless(defined(&LGE_TXFIFO_PKTCNT)) {
    sub LGE_TXFIFO_PKTCNT () {	0x4c;}
}
unless(defined(&LGE_TXFIFO_LOWAT)) {
    sub LGE_TXFIFO_LOWAT () {	0x50;}
}
unless(defined(&LGE_TXFIFO_FREEDWORDS)) {
    sub LGE_TXFIFO_FREEDWORDS () {	0x54;}
}
unless(defined(&LGE_TXFIFO_WRITE)) {
    sub LGE_TXFIFO_WRITE () {	0x58;}
}
unless(defined(&LGE_RSVD1)) {
    sub LGE_RSVD1 () {	0x5c;}
}
unless(defined(&LGE_RXFIFO_READ)) {
    sub LGE_RXFIFO_READ () {	0x60;}
}
unless(defined(&LGE_RSVD2)) {
    sub LGE_RSVD2 () {	0x64;}
}
unless(defined(&LGE_RXFIFO_DWORDCNT)) {
    sub LGE_RXFIFO_DWORDCNT () {	0x68;}
}
unless(defined(&LGE_RXFIFO_HIWAT)) {
    sub LGE_RXFIFO_HIWAT () {	0x6c;}
}
unless(defined(&LGE_RXFIFO_PKTCNT)) {
    sub LGE_RXFIFO_PKTCNT () {	0x70;}
}
unless(defined(&LGE_CMD)) {
    sub LGE_CMD () {	0x74;}
}
unless(defined(&LGE_IMR)) {
    sub LGE_IMR () {	0x78;}
}
unless(defined(&LGE_RSVD3)) {
    sub LGE_RSVD3 () {	0x7c;}
}
unless(defined(&LGE_ISR)) {
    sub LGE_ISR () {	0x80;}
}
unless(defined(&LGE_RSVD4)) {
    sub LGE_RSVD4 () {	0x84;}
}
unless(defined(&LGE_MAR0)) {
    sub LGE_MAR0 () {	0x88;}
}
unless(defined(&LGE_MAR1)) {
    sub LGE_MAR1 () {	0x8c;}
}
unless(defined(&LGE_LEDCFG0)) {
    sub LGE_LEDCFG0 () {	0x90;}
}
unless(defined(&LGE_LEDCFG1)) {
    sub LGE_LEDCFG1 () {	0x84;}
}
unless(defined(&LGE_LEDCFG2)) {
    sub LGE_LEDCFG2 () {	0x98;}
}
unless(defined(&LGE_LEDCFG3)) {
    sub LGE_LEDCFG3 () {	0x9c;}
}
unless(defined(&LGE_RSVD5)) {
    sub LGE_RSVD5 () {	0xa0;}
}
unless(defined(&LGE_EEDATA)) {
    sub LGE_EEDATA () {	0xa4;}
}
unless(defined(&LGE_PAR0)) {
    sub LGE_PAR0 () {	0xa8;}
}
unless(defined(&LGE_PAR1)) {
    sub LGE_PAR1 () {	0xac;}
}
unless(defined(&LGE_GMIICTL)) {
    sub LGE_GMIICTL () {	0xb0;}
}
unless(defined(&LGE_GMIIMODE)) {
    sub LGE_GMIIMODE () {	0xb4;}
}
unless(defined(&LGE_STATSIDX)) {
    sub LGE_STATSIDX () {	0xb8;}
}
unless(defined(&LGE_STATSVAL)) {
    sub LGE_STATSVAL () {	0xbc;}
}
unless(defined(&LGE_VLANCTL)) {
    sub LGE_VLANCTL () {	0xc0;}
}
unless(defined(&LGE_RSVD6)) {
    sub LGE_RSVD6 () {	0xc4;}
}
unless(defined(&LGE_RSVD7)) {
    sub LGE_RSVD7 () {	0xc8;}
}
unless(defined(&LGE_CMDSTS)) {
    sub LGE_CMDSTS () {	0xcc;}
}
unless(defined(&LGE_FLOWCTL_WAT)) {
    sub LGE_FLOWCTL_WAT () {	0xd0;}
}
unless(defined(&LGE_RSVD8)) {
    sub LGE_RSVD8 () {	0xd4;}
}
unless(defined(&LGE_RSVD9)) {
    sub LGE_RSVD9 () {	0xd8;}
}
unless(defined(&LGE_RSVD10)) {
    sub LGE_RSVD10 () {	0xdc;}
}
unless(defined(&LGE_RSVD11)) {
    sub LGE_RSVD11 () {	0xe0;}
}
unless(defined(&LGE_RSVD12)) {
    sub LGE_RSVD12 () {	0xe4;}
}
unless(defined(&LGE_TIMER0_CNT)) {
    sub LGE_TIMER0_CNT () {	0xe8;}
}
unless(defined(&LGE_TIMER0_INT)) {
    sub LGE_TIMER0_INT () {	0xec;}
}
unless(defined(&LGE_TIMER1_CNT)) {
    sub LGE_TIMER1_CNT () {	0xf0;}
}
unless(defined(&LGE_TIMER1_INT)) {
    sub LGE_TIMER1_INT () {	0xf4;}
}
unless(defined(&LGE_DBG_CMD)) {
    sub LGE_DBG_CMD () {	0xf8;}
}
unless(defined(&LGE_DBG_DATA)) {
    sub LGE_DBG_DATA () {	0xfc;}
}
unless(defined(&LGE_MODE1_SETRST_CTL0)) {
    sub LGE_MODE1_SETRST_CTL0 () {	0x1;}
}
unless(defined(&LGE_MODE1_SOFTRST)) {
    sub LGE_MODE1_SOFTRST () {	0x2;}
}
unless(defined(&LGE_MODE1_DEBTOD)) {
    sub LGE_MODE1_DEBTOD () {	0x4;}
}
unless(defined(&LGE_MODE1_TX_FLOWCTL)) {
    sub LGE_MODE1_TX_FLOWCTL () {	0x8;}
}
unless(defined(&LGE_MODE1_RXTXRIO)) {
    sub LGE_MODE1_RXTXRIO () {	0x10;}
}
unless(defined(&LGE_MODE1_GMIIPOLL)) {
    sub LGE_MODE1_GMIIPOLL () {	0x20;}
}
unless(defined(&LGE_MODE1_TXPAD)) {
    sub LGE_MODE1_TXPAD () {	0x40;}
}
unless(defined(&LGE_MODE1_RMVPAD)) {
    sub LGE_MODE1_RMVPAD () {	0x80;}
}
unless(defined(&LGE_MODE1_SETRST_CTL1)) {
    sub LGE_MODE1_SETRST_CTL1 () {	0x100;}
}
unless(defined(&LGE_MODE1_TX_ENB)) {
    sub LGE_MODE1_TX_ENB () {	0x200;}
}
unless(defined(&LGE_MODE1_RX_ENB)) {
    sub LGE_MODE1_RX_ENB () {	0x400;}
}
unless(defined(&LGE_MODE1_RX_MCAST)) {
    sub LGE_MODE1_RX_MCAST () {	0x800;}
}
unless(defined(&LGE_MODE1_RX_BCAST)) {
    sub LGE_MODE1_RX_BCAST () {	0x1000;}
}
unless(defined(&LGE_MODE1_RX_PROMISC)) {
    sub LGE_MODE1_RX_PROMISC () {	0x2000;}
}
unless(defined(&LGE_MODE1_RX_UCAST)) {
    sub LGE_MODE1_RX_UCAST () {	0x4000;}
}
unless(defined(&LGE_MODE1_RX_GIANTS)) {
    sub LGE_MODE1_RX_GIANTS () {	0x8000;}
}
unless(defined(&LGE_MODE1_SETRST_CTL2)) {
    sub LGE_MODE1_SETRST_CTL2 () {	0x10000;}
}
unless(defined(&LGE_MODE1_RX_CRC)) {
    sub LGE_MODE1_RX_CRC () {	0x20000;}
}
unless(defined(&LGE_MODE1_RX_ERRPKTS)) {
    sub LGE_MODE1_RX_ERRPKTS () {	0x40000;}
}
unless(defined(&LGE_MODE1_TX_CRC)) {
    sub LGE_MODE1_TX_CRC () {	0x80000;}
}
unless(defined(&LGE_MODE1_DEMDEN)) {
    sub LGE_MODE1_DEMDEN () {	0x100000;}
}
unless(defined(&LGE_MODE1_MPACK_ENB)) {
    sub LGE_MODE1_MPACK_ENB () {	0x200000;}
}
unless(defined(&LGE_MODE1_MPACK_BCAST)) {
    sub LGE_MODE1_MPACK_BCAST () {	0x400000;}
}
unless(defined(&LGE_MODE1_RX_FLOWCTL)) {
    sub LGE_MODE1_RX_FLOWCTL () {	0x800000;}
}
unless(defined(&LGE_MODE1_SETRST_CTL3)) {
    sub LGE_MODE1_SETRST_CTL3 () {	0x1000000;}
}
unless(defined(&LGE_MODE1_VLAN_RX)) {
    sub LGE_MODE1_VLAN_RX () {	0x2000000;}
}
unless(defined(&LGE_MODE1_VLAN_TX)) {
    sub LGE_MODE1_VLAN_TX () {	0x4000000;}
}
unless(defined(&LGE_MODE1_VLAN_STRIP)) {
    sub LGE_MODE1_VLAN_STRIP () {	0x8000000;}
}
unless(defined(&LGE_MODE1_VLAN_INSERT)) {
    sub LGE_MODE1_VLAN_INSERT () {	0x10000000;}
}
unless(defined(&LGE_MODE1_GPIO_CTL0)) {
    sub LGE_MODE1_GPIO_CTL0 () {	0x20000000;}
}
unless(defined(&LGE_MODE1_GPIO_CTL1)) {
    sub LGE_MODE1_GPIO_CTL1 () {	0x40000000;}
}
unless(defined(&LGE_MODE1_RX_LENCHK)) {
    sub LGE_MODE1_RX_LENCHK () {	0x80000000;}
}
unless(defined(&LGE_MODE2_LOOPBACK)) {
    sub LGE_MODE2_LOOPBACK () {	0xe0;}
}
unless(defined(&LGE_MODE2_RX_IPCSUM)) {
    sub LGE_MODE2_RX_IPCSUM () {	0x1000;}
}
unless(defined(&LGE_MODE2_RX_TCPCSUM)) {
    sub LGE_MODE2_RX_TCPCSUM () {	0x2000;}
}
unless(defined(&LGE_MODE2_RX_UDPCSUM)) {
    sub LGE_MODE2_RX_UDPCSUM () {	0x4000;}
}
unless(defined(&LGE_MODE2_RX_ERRCSUM)) {
    sub LGE_MODE2_RX_ERRCSUM () {	0x8000;}
}
unless(defined(&LGE_EECTL_HAVE_EEPROM)) {
    sub LGE_EECTL_HAVE_EEPROM () {	0x1;}
}
unless(defined(&LGE_EECTL_CMD_READ)) {
    sub LGE_EECTL_CMD_READ () {	0x2;}
}
unless(defined(&LGE_EECTL_CMD_WRITE)) {
    sub LGE_EECTL_CMD_WRITE () {	0x4;}
}
unless(defined(&LGE_EECTL_CSUMERR)) {
    sub LGE_EECTL_CSUMERR () {	0x10;}
}
unless(defined(&LGE_EECTL_MULTIACCESS)) {
    sub LGE_EECTL_MULTIACCESS () {	0x20;}
}
unless(defined(&LGE_EECTL_SINGLEACCESS)) {
    sub LGE_EECTL_SINGLEACCESS () {	0x40;}
}
unless(defined(&LGE_EECTL_ADDR)) {
    sub LGE_EECTL_ADDR () {	0x1f00;}
}
unless(defined(&LGE_EECTL_ROM_TIMING)) {
    sub LGE_EECTL_ROM_TIMING () {	0xf0000;}
}
unless(defined(&LGE_EECTL_HAVE_FLASH)) {
    sub LGE_EECTL_HAVE_FLASH () {	0x100000;}
}
unless(defined(&LGE_EECTL_WRITEFLASH)) {
    sub LGE_EECTL_WRITEFLASH () {	0x200000;}
}
unless(defined(&LGE_EE_NODEADDR_0)) {
    sub LGE_EE_NODEADDR_0 () {	0x12;}
}
unless(defined(&LGE_EE_NODEADDR_1)) {
    sub LGE_EE_NODEADDR_1 () {	0x13;}
}
unless(defined(&LGE_EE_NODEADDR_2)) {
    sub LGE_EE_NODEADDR_2 () {	0x10;}
}
unless(defined(&LGE_CHIPSTS_HAVETXSPC)) {
    sub LGE_CHIPSTS_HAVETXSPC () {	0x1;}
}
unless(defined(&LGE_CHIPSTS_HAVERXPKT)) {
    sub LGE_CHIPSTS_HAVERXPKT () {	0x2;}
}
unless(defined(&LGE_CHIPSTS_FLOWCTL_STS)) {
    sub LGE_CHIPSTS_FLOWCTL_STS () {	0x4;}
}
unless(defined(&LGE_CHIPSTS_GPIO_STS0)) {
    sub LGE_CHIPSTS_GPIO_STS0 () {	0x8;}
}
unless(defined(&LGE_CHIPSTS_GPIO_STS1)) {
    sub LGE_CHIPSTS_GPIO_STS1 () {	0x10;}
}
unless(defined(&LGE_CHIPSTS_TXIDLE)) {
    sub LGE_CHIPSTS_TXIDLE () {	0x20;}
}
unless(defined(&LGE_CHIPSTS_RXIDLE)) {
    sub LGE_CHIPSTS_RXIDLE () {	0x40;}
}
unless(defined(&LGE_PPTXCTL_BUFLEN)) {
    sub LGE_PPTXCTL_BUFLEN () {	0xffff;}
}
unless(defined(&LGE_PPTXCTL_BUFID)) {
    sub LGE_PPTXCTL_BUFID () {	0x3f0000;}
}
unless(defined(&LGE_PPTXCTL_WANTINTR)) {
    sub LGE_PPTXCTL_WANTINTR () {	0x1000000;}
}
unless(defined(&LGE_PPRXCTL_BUFLEN)) {
    sub LGE_PPRXCTL_BUFLEN () {	0xffff;}
}
unless(defined(&LGE_PPRXCTL_BUFID)) {
    sub LGE_PPRXCTL_BUFID () {	0x3f0000;}
}
unless(defined(&LGE_PPRXCTL_WANTINTR)) {
    sub LGE_PPRXCTL_WANTINTR () {	0x10000000;}
}
unless(defined(&LGE_CMD_SETRST_CTL0)) {
    sub LGE_CMD_SETRST_CTL0 () {	0x1;}
}
unless(defined(&LGE_CMD_STARTTX)) {
    sub LGE_CMD_STARTTX () {	0x2;}
}
unless(defined(&LGE_CMD_SKIP_RXPKT)) {
    sub LGE_CMD_SKIP_RXPKT () {	0x4;}
}
unless(defined(&LGE_CMD_DEL_INTREQ)) {
    sub LGE_CMD_DEL_INTREQ () {	0x8;}
}
unless(defined(&LGE_CMD_PER_INTREQ)) {
    sub LGE_CMD_PER_INTREQ () {	0x10;}
}
unless(defined(&LGE_CMD_TIMER0)) {
    sub LGE_CMD_TIMER0 () {	0x20;}
}
unless(defined(&LGE_CMD_TIMER1)) {
    sub LGE_CMD_TIMER1 () {	0x40;}
}
unless(defined(&LGE_IMR_SETRST_CTL0)) {
    sub LGE_IMR_SETRST_CTL0 () {	0x1;}
}
unless(defined(&LGE_IMR_TXCMDFIFO_EMPTY)) {
    sub LGE_IMR_TXCMDFIFO_EMPTY () {	0x2;}
}
unless(defined(&LGE_IMR_TXFIFO_WAT)) {
    sub LGE_IMR_TXFIFO_WAT () {	0x4;}
}
unless(defined(&LGE_IMR_TXDMA_DONE)) {
    sub LGE_IMR_TXDMA_DONE () {	0x8;}
}
unless(defined(&LGE_IMR_DELAYEDINTR)) {
    sub LGE_IMR_DELAYEDINTR () {	0x40;}
}
unless(defined(&LGE_IMR_INTR_ENB)) {
    sub LGE_IMR_INTR_ENB () {	0x80;}
}
unless(defined(&LGE_IMR_SETRST_CTL1)) {
    sub LGE_IMR_SETRST_CTL1 () {	0x100;}
}
unless(defined(&LGE_IMR_RXCMDFIFO_EMPTY)) {
    sub LGE_IMR_RXCMDFIFO_EMPTY () {	0x200;}
}
unless(defined(&LGE_IMR_RXFIFO_WAT)) {
    sub LGE_IMR_RXFIFO_WAT () {	0x400;}
}
unless(defined(&LGE_IMR_RX_DONE)) {
    sub LGE_IMR_RX_DONE () {	0x800;}
}
unless(defined(&LGE_IMR_RXDMA_DONE)) {
    sub LGE_IMR_RXDMA_DONE () {	0x1000;}
}
unless(defined(&LGE_IMR_PHY_INTR)) {
    sub LGE_IMR_PHY_INTR () {	0x2000;}
}
unless(defined(&LGE_IMR_MAGICPKT)) {
    sub LGE_IMR_MAGICPKT () {	0x4000;}
}
unless(defined(&LGE_IMR_SETRST_CTL2)) {
    sub LGE_IMR_SETRST_CTL2 () {	0x10000;}
}
unless(defined(&LGE_IMR_GPIO0)) {
    sub LGE_IMR_GPIO0 () {	0x20000;}
}
unless(defined(&LGE_IMR_GPIO1)) {
    sub LGE_IMR_GPIO1 () {	0x40000;}
}
unless(defined(&LGE_IMR_TIMER0)) {
    sub LGE_IMR_TIMER0 () {	0x80000;}
}
unless(defined(&LGE_IMR_TIMER1)) {
    sub LGE_IMR_TIMER1 () {	0x100000;}
}
unless(defined(&LGE_INTRS)) {
    sub LGE_INTRS () {	( &LGE_IMR_TXCMDFIFO_EMPTY| &LGE_IMR_TXDMA_DONE| &LGE_IMR_RX_DONE|  &LGE_IMR_RXCMDFIFO_EMPTY| &LGE_IMR_RXDMA_DONE| &LGE_IMR_PHY_INTR);}
}
unless(defined(&LGE_ISR_TXCMDFIFO_EMPTY)) {
    sub LGE_ISR_TXCMDFIFO_EMPTY () {	0x2;}
}
unless(defined(&LGE_ISR_TXFIFO_WAT)) {
    sub LGE_ISR_TXFIFO_WAT () {	0x4;}
}
unless(defined(&LGE_ISR_TXDMA_DONE)) {
    sub LGE_ISR_TXDMA_DONE () {	0x8;}
}
unless(defined(&LGE_ISR_DELAYEDINTR)) {
    sub LGE_ISR_DELAYEDINTR () {	0x40;}
}
unless(defined(&LGE_ISR_INTR_ENB)) {
    sub LGE_ISR_INTR_ENB () {	0x80;}
}
unless(defined(&LGE_ISR_RXCMDFIFO_EMPTY)) {
    sub LGE_ISR_RXCMDFIFO_EMPTY () {	0x200;}
}
unless(defined(&LGE_ISR_RXFIFO_WAT)) {
    sub LGE_ISR_RXFIFO_WAT () {	0x400;}
}
unless(defined(&LGE_ISR_RX_DONE)) {
    sub LGE_ISR_RX_DONE () {	0x800;}
}
unless(defined(&LGE_ISR_RXDMA_DONE)) {
    sub LGE_ISR_RXDMA_DONE () {	0x1000;}
}
unless(defined(&LGE_ISR_PHY_INTR)) {
    sub LGE_ISR_PHY_INTR () {	0x2000;}
}
unless(defined(&LGE_ISR_MAGICPKT)) {
    sub LGE_ISR_MAGICPKT () {	0x4000;}
}
unless(defined(&LGE_ISR_GPIO0)) {
    sub LGE_ISR_GPIO0 () {	0x20000;}
}
unless(defined(&LGE_ISR_GPIO1)) {
    sub LGE_ISR_GPIO1 () {	0x40000;}
}
unless(defined(&LGE_ISR_TIMER0)) {
    sub LGE_ISR_TIMER0 () {	0x80000;}
}
unless(defined(&LGE_ISR_TIMER1)) {
    sub LGE_ISR_TIMER1 () {	0x100000;}
}
unless(defined(&LGE_ISR_RXDMADONE_CNT)) {
    sub LGE_ISR_RXDMADONE_CNT () {	0xff000000;}
}
unless(defined(&LGE_RX_DMACNT)) {
    sub LGE_RX_DMACNT {
	my($x) = @_;
	eval q((($x &  &LGE_ISR_RXDMADONE_CNT) >> 24));
    }
}
unless(defined(&LGE_LED0CFG_ENABLE)) {
    sub LGE_LED0CFG_ENABLE () {	0x2;}
}
unless(defined(&LGE_LED0CFG_INPUT_POL)) {
    sub LGE_LED0CFG_INPUT_POL () {	0x4;}
}
unless(defined(&LGE_LED0CFG_PULSE_EXP)) {
    sub LGE_LED0CFG_PULSE_EXP () {	0x8;}
}
unless(defined(&LGE_LED0CFG_10MBPS)) {
    sub LGE_LED0CFG_10MBPS () {	0x10;}
}
unless(defined(&LGE_LED0CFG_100MBPS)) {
    sub LGE_LED0CFG_100MBPS () {	0x100;}
}
unless(defined(&LGE_LED0CFG_1000MBPS)) {
    sub LGE_LED0CFG_1000MBPS () {	0x200;}
}
unless(defined(&LGE_LED0CFG_FDX)) {
    sub LGE_LED0CFG_FDX () {	0x400;}
}
unless(defined(&LGE_LED0CFG_ANEG)) {
    sub LGE_LED0CFG_ANEG () {	0x800;}
}
unless(defined(&LGE_LED0CFG_LINKSTS)) {
    sub LGE_LED0CFG_LINKSTS () {	0x1000;}
}
unless(defined(&LGE_LED0CFG_RXMATCH)) {
    sub LGE_LED0CFG_RXMATCH () {	0x2000;}
}
unless(defined(&LGE_LED0CFG_TX)) {
    sub LGE_LED0CFG_TX () {	0x4000;}
}
unless(defined(&LGE_LED0CFG_RX)) {
    sub LGE_LED0CFG_RX () {	0x8000;}
}
unless(defined(&LGE_LED0CFG_JABBER)) {
    sub LGE_LED0CFG_JABBER () {	0x10000;}
}
unless(defined(&LGE_LED0CFG_COLLISION)) {
    sub LGE_LED0CFG_COLLISION () {	0x20000;}
}
unless(defined(&LGE_LED0CFG_CARRIER)) {
    sub LGE_LED0CFG_CARRIER () {	0x40000;}
}
unless(defined(&LGE_LED0CFG_LEDOUT)) {
    sub LGE_LED0CFG_LEDOUT () {	0x10000000;}
}
unless(defined(&LGE_LED1CFG_ENABLE)) {
    sub LGE_LED1CFG_ENABLE () {	0x2;}
}
unless(defined(&LGE_LED1CFG_INPUT_POL)) {
    sub LGE_LED1CFG_INPUT_POL () {	0x4;}
}
unless(defined(&LGE_LED1CFG_PULSE_EXP)) {
    sub LGE_LED1CFG_PULSE_EXP () {	0x8;}
}
unless(defined(&LGE_LED1CFG_10MBPS)) {
    sub LGE_LED1CFG_10MBPS () {	0x10;}
}
unless(defined(&LGE_LED1CFG_100MBPS)) {
    sub LGE_LED1CFG_100MBPS () {	0x100;}
}
unless(defined(&LGE_LED1CFG_1000MBPS)) {
    sub LGE_LED1CFG_1000MBPS () {	0x200;}
}
unless(defined(&LGE_LED1CFG_FDX)) {
    sub LGE_LED1CFG_FDX () {	0x400;}
}
unless(defined(&LGE_LED1CFG_ANEG)) {
    sub LGE_LED1CFG_ANEG () {	0x800;}
}
unless(defined(&LGE_LED1CFG_LINKSTS)) {
    sub LGE_LED1CFG_LINKSTS () {	0x1000;}
}
unless(defined(&LGE_LED1CFG_RXMATCH)) {
    sub LGE_LED1CFG_RXMATCH () {	0x2000;}
}
unless(defined(&LGE_LED1CFG_TX)) {
    sub LGE_LED1CFG_TX () {	0x4000;}
}
unless(defined(&LGE_LED1CFG_RX)) {
    sub LGE_LED1CFG_RX () {	0x8000;}
}
unless(defined(&LGE_LED1CFG_JABBER)) {
    sub LGE_LED1CFG_JABBER () {	0x10000;}
}
unless(defined(&LGE_LED1CFG_COLLISION)) {
    sub LGE_LED1CFG_COLLISION () {	0x20000;}
}
unless(defined(&LGE_LED1CFG_CARRIER)) {
    sub LGE_LED1CFG_CARRIER () {	0x40000;}
}
unless(defined(&LGE_LED1CFG_LEDOUT)) {
    sub LGE_LED1CFG_LEDOUT () {	0x10000000;}
}
unless(defined(&LGE_LED2CFG_ENABLE)) {
    sub LGE_LED2CFG_ENABLE () {	0x2;}
}
unless(defined(&LGE_LED2CFG_INPUT_POL)) {
    sub LGE_LED2CFG_INPUT_POL () {	0x4;}
}
unless(defined(&LGE_LED2CFG_PULSE_EXP)) {
    sub LGE_LED2CFG_PULSE_EXP () {	0x8;}
}
unless(defined(&LGE_LED2CFG_10MBPS)) {
    sub LGE_LED2CFG_10MBPS () {	0x10;}
}
unless(defined(&LGE_LED2CFG_100MBPS)) {
    sub LGE_LED2CFG_100MBPS () {	0x100;}
}
unless(defined(&LGE_LED2CFG_1000MBPS)) {
    sub LGE_LED2CFG_1000MBPS () {	0x200;}
}
unless(defined(&LGE_LED2CFG_FDX)) {
    sub LGE_LED2CFG_FDX () {	0x400;}
}
unless(defined(&LGE_LED2CFG_ANEG)) {
    sub LGE_LED2CFG_ANEG () {	0x800;}
}
unless(defined(&LGE_LED2CFG_LINKSTS)) {
    sub LGE_LED2CFG_LINKSTS () {	0x1000;}
}
unless(defined(&LGE_LED2CFG_RXMATCH)) {
    sub LGE_LED2CFG_RXMATCH () {	0x2000;}
}
unless(defined(&LGE_LED2CFG_TX)) {
    sub LGE_LED2CFG_TX () {	0x4000;}
}
unless(defined(&LGE_LED2CFG_RX)) {
    sub LGE_LED2CFG_RX () {	0x8000;}
}
unless(defined(&LGE_LED2CFG_JABBER)) {
    sub LGE_LED2CFG_JABBER () {	0x10000;}
}
unless(defined(&LGE_LED2CFG_COLLISION)) {
    sub LGE_LED2CFG_COLLISION () {	0x20000;}
}
unless(defined(&LGE_LED2CFG_CARRIER)) {
    sub LGE_LED2CFG_CARRIER () {	0x40000;}
}
unless(defined(&LGE_LED2CFG_LEDOUT)) {
    sub LGE_LED2CFG_LEDOUT () {	0x10000000;}
}
unless(defined(&LGE_GMIICTL_PHYREG)) {
    sub LGE_GMIICTL_PHYREG () {	0x1f;}
}
unless(defined(&LGE_GMIICTL_CMD)) {
    sub LGE_GMIICTL_CMD () {	0x80;}
}
unless(defined(&LGE_GMIICTL_PHYADDR)) {
    sub LGE_GMIICTL_PHYADDR () {	0x1f00;}
}
unless(defined(&LGE_GMIICTL_CMDBUSY)) {
    sub LGE_GMIICTL_CMDBUSY () {	0x8000;}
}
unless(defined(&LGE_GMIICTL_DATA)) {
    sub LGE_GMIICTL_DATA () {	0xffff0000;}
}
unless(defined(&LGE_GMIICMD_READ)) {
    sub LGE_GMIICMD_READ () {	0x;}
}
unless(defined(&LGE_GMIICMD_WRITE)) {
    sub LGE_GMIICMD_WRITE () {	0x80;}
}
unless(defined(&LGE_GMIIMODE_SPEED)) {
    sub LGE_GMIIMODE_SPEED () {	0x3;}
}
unless(defined(&LGE_GMIIMODE_FDX)) {
    sub LGE_GMIIMODE_FDX () {	0x4;}
}
unless(defined(&LGE_GMIIMODE_PROTSEL)) {
    sub LGE_GMIIMODE_PROTSEL () {	0x100;}
}
unless(defined(&LGE_GMIIMODE_PCSENH)) {
    sub LGE_GMIIMODE_PCSENH () {	0x200;}
}
unless(defined(&LGE_SPEED_10)) {
    sub LGE_SPEED_10 () {	0x;}
}
unless(defined(&LGE_SPEED_100)) {
    sub LGE_SPEED_100 () {	0x1;}
}
unless(defined(&LGE_SPEED_1000)) {
    sub LGE_SPEED_1000 () {	0x2;}
}
unless(defined(&LGE_VLANCTL_VLID)) {
    sub LGE_VLANCTL_VLID () {	0xfff;}
}
unless(defined(&LGE_VLANCTL_USERPRIO)) {
    sub LGE_VLANCTL_USERPRIO () {	0xe000;}
}
unless(defined(&LGE_VLANCTL_TCI_IDX)) {
    sub LGE_VLANCTL_TCI_IDX () {	0xd0000;}
}
unless(defined(&LGE_VLANCTL_TBLCMD)) {
    sub LGE_VLANCTL_TBLCMD () {	0x200000;}
}
unless(defined(&LGE_CMDSTS_TXDMADONE)) {
    sub LGE_CMDSTS_TXDMADONE () {	0xff;}
}
unless(defined(&LGE_CMDSTS_RXDMADONE)) {
    sub LGE_CMDSTS_RXDMADONE () {	0xff00;}
}
unless(defined(&LGE_CMDSTS_TXCMDFREE)) {
    sub LGE_CMDSTS_TXCMDFREE () {	0x3f0000;}
}
unless(defined(&LGE_CMDSTS_RXCMDFREE)) {
    sub LGE_CMDSTS_RXCMDFREE () {	0x3f000000;}
}
unless(defined(&LGE_TXDMADONE_8BIT)) {
    sub LGE_TXDMADONE_8BIT () {	 &LGE_CMDSTS;}
}
unless(defined(&LGE_RXDMADONE_8BIT)) {
    sub LGE_RXDMADONE_8BIT () {	( &LGE_CMDSTS + 1);}
}
unless(defined(&LGE_TXCMDFREE_8BIT)) {
    sub LGE_TXCMDFREE_8BIT () {	( &LGE_CMDSTS + 2);}
}
unless(defined(&LGE_RXCMDFREE_8BIT)) {
    sub LGE_RXCMDFREE_8BIT () {	( &LGE_CMDSTS + 3);}
}
unless(defined(&LGE_MAXCMDS)) {
    sub LGE_MAXCMDS () {	31;}
}
unless(defined(&LGE_STATS_TX_PKTS_OK)) {
    sub LGE_STATS_TX_PKTS_OK () {	0x;}
}
unless(defined(&LGE_STATS_SINGLE_COLL_PKTS)) {
    sub LGE_STATS_SINGLE_COLL_PKTS () {	0x1;}
}
unless(defined(&LGE_STATS_MULTI_COLL_PKTS)) {
    sub LGE_STATS_MULTI_COLL_PKTS () {	0x2;}
}
unless(defined(&LGE_STATS_RX_PKTS_OK)) {
    sub LGE_STATS_RX_PKTS_OK () {	0x3;}
}
unless(defined(&LGE_STATS_FCS_ERRS)) {
    sub LGE_STATS_FCS_ERRS () {	0x4;}
}
unless(defined(&LGE_STATS_ALIGN_ERRS)) {
    sub LGE_STATS_ALIGN_ERRS () {	0x5;}
}
unless(defined(&LGE_STATS_DROPPED_PKTS)) {
    sub LGE_STATS_DROPPED_PKTS () {	0x6;}
}
unless(defined(&LGE_STATS_RX_ERR_PKTS)) {
    sub LGE_STATS_RX_ERR_PKTS () {	0x7;}
}
unless(defined(&LGE_STATS_TX_ERR_PKTS)) {
    sub LGE_STATS_TX_ERR_PKTS () {	0x8;}
}
unless(defined(&LGE_STATS_LATE_COLLS)) {
    sub LGE_STATS_LATE_COLLS () {	0x9;}
}
unless(defined(&LGE_STATS_RX_RUNTS)) {
    sub LGE_STATS_RX_RUNTS () {	0xa;}
}
unless(defined(&LGE_STATS_RX_GIANTS)) {
    sub LGE_STATS_RX_GIANTS () {	0xb;}
}
unless(defined(&LGE_STATS_VLAN_PKTS_ACCEPT)) {
    sub LGE_STATS_VLAN_PKTS_ACCEPT () {	0xc;}
}
unless(defined(&LGE_STATS_VLAN_PKTS_REJECT)) {
    sub LGE_STATS_VLAN_PKTS_REJECT () {	0xd;}
}
unless(defined(&LGE_STATS_IP_CSUM_ERR)) {
    sub LGE_STATS_IP_CSUM_ERR () {	0xe;}
}
unless(defined(&LGE_STATS_UDP_CSUM_ERR)) {
    sub LGE_STATS_UDP_CSUM_ERR () {	0xf;}
}
unless(defined(&LGE_STATS_RANGELEN_ERRS)) {
    sub LGE_STATS_RANGELEN_ERRS () {	0x10;}
}
unless(defined(&LGE_STATS_TCP_CSUM_ERR)) {
    sub LGE_STATS_TCP_CSUM_ERR () {	0x11;}
}
unless(defined(&LGE_STATS_RSVD0)) {
    sub LGE_STATS_RSVD0 () {	0x12;}
}
unless(defined(&LGE_STATS_TX_EXCESS_COLLS)) {
    sub LGE_STATS_TX_EXCESS_COLLS () {	0x13;}
}
unless(defined(&LGE_STATS_RX_UCASTS)) {
    sub LGE_STATS_RX_UCASTS () {	0x14;}
}
unless(defined(&LGE_STATS_RX_MCASTS)) {
    sub LGE_STATS_RX_MCASTS () {	0x15;}
}
unless(defined(&LGE_STATS_RX_BCASTS)) {
    sub LGE_STATS_RX_BCASTS () {	0x16;}
}
unless(defined(&LGE_STATS_RX_PAUSE_PKTS)) {
    sub LGE_STATS_RX_PAUSE_PKTS () {	0x17;}
}
unless(defined(&LGE_STATS_TX_PAUSE_PKTS)) {
    sub LGE_STATS_TX_PAUSE_PKTS () {	0x18;}
}
unless(defined(&LGE_STATS_TX_PKTS_DEFERRED)) {
    sub LGE_STATS_TX_PKTS_DEFERRED () {	0x19;}
}
unless(defined(&LGE_STATS_TX_EXCESS_DEFER)) {
    sub LGE_STATS_TX_EXCESS_DEFER () {	0x1a;}
}
unless(defined(&LGE_STATS_CARRIER_SENSE_ERR)) {
    sub LGE_STATS_CARRIER_SENSE_ERR () {	0x1b;}
}
unless(defined(&lge_mbuf)) {
    sub lge_mbuf () {	 ($lge_u->{lge_mbuf});}
}
unless(defined(&LGE_RXCTL_BUFLEN)) {
    sub LGE_RXCTL_BUFLEN () {	0xffff;}
}
unless(defined(&LGE_RXCTL_FRAGCNT)) {
    sub LGE_RXCTL_FRAGCNT () {	0x1f0000;}
}
unless(defined(&LGE_RXCTL_LENERR)) {
    sub LGE_RXCTL_LENERR () {	0x400000;}
}
unless(defined(&LGE_RXCTL_UCAST)) {
    sub LGE_RXCTL_UCAST () {	0x800000;}
}
unless(defined(&LGR_RXCTL_BCAST)) {
    sub LGR_RXCTL_BCAST () {	0x1000000;}
}
unless(defined(&LGE_RXCTL_MCAST)) {
    sub LGE_RXCTL_MCAST () {	0x2000000;}
}
unless(defined(&LGE_RXCTL_GIANT)) {
    sub LGE_RXCTL_GIANT () {	0x4000000;}
}
unless(defined(&LGE_RXCTL_OFLOW)) {
    sub LGE_RXCTL_OFLOW () {	0x8000000;}
}
unless(defined(&LGE_RXCTL_CRCERR)) {
    sub LGE_RXCTL_CRCERR () {	0x10000000;}
}
unless(defined(&LGE_RXCTL_RUNT)) {
    sub LGE_RXCTL_RUNT () {	0x20000000;}
}
unless(defined(&LGE_RXCTL_ALGNERR)) {
    sub LGE_RXCTL_ALGNERR () {	0x40000000;}
}
unless(defined(&LGE_RXCTL_WANTINTR)) {
    sub LGE_RXCTL_WANTINTR () {	0x80000000;}
}
unless(defined(&LGE_RXCTL_ERRMASK)) {
    sub LGE_RXCTL_ERRMASK () {	( &LGE_RXCTL_LENERR| &LGE_RXCTL_OFLOW|  &LGE_RXCTL_CRCERR| &LGE_RXCTL_RUNT|  &LGE_RXCTL_ALGNERR);}
}
unless(defined(&LGE_RXSTS_VLTBIDX)) {
    sub LGE_RXSTS_VLTBIDX () {	0xf;}
}
unless(defined(&LGE_RXSTS_VLTBLHIT)) {
    sub LGE_RXSTS_VLTBLHIT () {	0x10;}
}
unless(defined(&LGE_RXSTS_IPCSUMERR)) {
    sub LGE_RXSTS_IPCSUMERR () {	0x100;}
}
unless(defined(&LGE_RXSTS_TCPCSUMERR)) {
    sub LGE_RXSTS_TCPCSUMERR () {	0x200;}
}
unless(defined(&LGE_RXSTS_UDPCSUMERR)) {
    sub LGE_RXSTS_UDPCSUMERR () {	0x400;}
}
unless(defined(&LGE_RXSTS_ISIP)) {
    sub LGE_RXSTS_ISIP () {	0x800;}
}
unless(defined(&LGE_RXSTS_ISTCP)) {
    sub LGE_RXSTS_ISTCP () {	0x1000;}
}
unless(defined(&LGE_RXSTS_ISUDP)) {
    sub LGE_RXSTS_ISUDP () {	0x2000;}
}
unless(defined(&LGE_TXCTL_BUFLEN)) {
    sub LGE_TXCTL_BUFLEN () {	0xffff;}
}
unless(defined(&LGE_TXCTL_FRAGCNT)) {
    sub LGE_TXCTL_FRAGCNT () {	0x1f0000;}
}
unless(defined(&LGE_TXCTL_VLTBIDX)) {
    sub LGE_TXCTL_VLTBIDX () {	0xf000000;}
}
unless(defined(&LGE_TXCTL_VLIS)) {
    sub LGE_TXCTL_VLIS () {	0x10000000;}
}
unless(defined(&LGE_TXCTL_WANTINTR)) {
    sub LGE_TXCTL_WANTINTR () {	0x80000000;}
}
unless(defined(&LGE_INC)) {
    sub LGE_INC {
	my($x, $y) = @_;
	eval q(($x) = ($x + 1) % $y);
    }
}
unless(defined(&LGE_FRAGCNT_1)) {
    sub LGE_FRAGCNT_1 () {	(1<<16);}
}
unless(defined(&LGE_FRAGCNT_10)) {
    sub LGE_FRAGCNT_10 () {	(10<<16);}
}
unless(defined(&LGE_FRAGCNT)) {
    sub LGE_FRAGCNT {
	my($x) = @_;
	eval q(($x<<16));
    }
}
unless(defined(&LGE_RXBYTES)) {
    sub LGE_RXBYTES {
	my($x) = @_;
	eval q(( ($x->{lge_ctl}) & 0xffff));
    }
}
unless(defined(&LGE_RXTAIL)) {
    sub LGE_RXTAIL {
	my($x) = @_;
	eval q(( ($x->{lge_ldata}->{lge_rx_list[$x}->{lge_cdata}->{lge_rx_prod]})));
    }
}
unless(defined(&LGE_RX_LIST_CNT)) {
    sub LGE_RX_LIST_CNT () {	64;}
}
unless(defined(&LGE_TX_LIST_CNT)) {
    sub LGE_TX_LIST_CNT () {	128;}
}
unless(defined(&LGE_MII_STARTDELIM)) {
    sub LGE_MII_STARTDELIM () {	0x1;}
}
unless(defined(&LGE_MII_READOP)) {
    sub LGE_MII_READOP () {	0x2;}
}
unless(defined(&LGE_MII_WRITEOP)) {
    sub LGE_MII_WRITEOP () {	0x1;}
}
unless(defined(&LGE_MII_TURNAROUND)) {
    sub LGE_MII_TURNAROUND () {	0x2;}
}
unless(defined(&LGE_JUMBO_FRAMELEN)) {
    sub LGE_JUMBO_FRAMELEN () {	9018;}
}
unless(defined(&LGE_JUMBO_MTU)) {
    sub LGE_JUMBO_MTU () {	( &LGE_JUMBO_FRAMELEN -  &ETHER_HDR_LEN -  &ETHER_CRC_LEN);}
}
unless(defined(&LGE_JSLOTS)) {
    sub LGE_JSLOTS () {	384;}
}
unless(defined(&LGE_JRAWLEN)) {
    sub LGE_JRAWLEN () {	( &LGE_JUMBO_FRAMELEN +  &ETHER_ALIGN);}
}
unless(defined(&LGE_JLEN)) {
    sub LGE_JLEN () {	( &LGE_JRAWLEN + ($sizeof{ &u_int64_t} - ( &LGE_JRAWLEN % $sizeof{ &u_int64_t})));}
}
unless(defined(&LGE_JPAGESZ)) {
    sub LGE_JPAGESZ () {	 &PAGE_SIZE;}
}
unless(defined(&LGE_RESID)) {
    sub LGE_RESID () {	( &LGE_JPAGESZ - ( &LGE_JLEN *  &LGE_JSLOTS) %  &LGE_JPAGESZ);}
}
unless(defined(&LGE_JMEM)) {
    sub LGE_JMEM () {	(( &LGE_JLEN *  &LGE_JSLOTS) +  &LGE_RESID);}
}
unless(defined(&CSR_WRITE_4)) {
    sub CSR_WRITE_4 {
	my($sc, $reg, $val) = @_;
	eval q( &bus_space_write_4( ($sc->{lge_btag}),  ($sc->{lge_bhandle}), $reg, $val));
    }
}
unless(defined(&CSR_READ_2)) {
    sub CSR_READ_2 {
	my($sc, $reg) = @_;
	eval q( &bus_space_read_2( ($sc->{lge_btag}),  ($sc->{lge_bhandle}), $reg));
    }
}
unless(defined(&CSR_WRITE_2)) {
    sub CSR_WRITE_2 {
	my($sc, $reg, $val) = @_;
	eval q( &bus_space_write_2( ($sc->{lge_btag}),  ($sc->{lge_bhandle}), $reg, $val));
    }
}
unless(defined(&CSR_READ_4)) {
    sub CSR_READ_4 {
	my($sc, $reg) = @_;
	eval q( &bus_space_read_4( ($sc->{lge_btag}),  ($sc->{lge_bhandle}), $reg));
    }
}
unless(defined(&CSR_WRITE_1)) {
    sub CSR_WRITE_1 {
	my($sc, $reg, $val) = @_;
	eval q( &bus_space_write_1( ($sc->{lge_btag}),  ($sc->{lge_bhandle}), $reg, $val));
    }
}
unless(defined(&CSR_READ_1)) {
    sub CSR_READ_1 {
	my($sc, $reg) = @_;
	eval q( &bus_space_read_1( ($sc->{lge_btag}),  ($sc->{lge_bhandle}), $reg));
    }
}
unless(defined(&LGE_TIMEOUT)) {
    sub LGE_TIMEOUT () {	1000;}
}
unless(defined(&LGE_MIN_FRAMELEN)) {
    sub LGE_MIN_FRAMELEN () {	60;}
}
unless(defined(&LGE_PCI_VENDOR_ID)) {
    sub LGE_PCI_VENDOR_ID () {	0x;}
}
unless(defined(&LGE_PCI_DEVICE_ID)) {
    sub LGE_PCI_DEVICE_ID () {	0x2;}
}
unless(defined(&LGE_PCI_COMMAND)) {
    sub LGE_PCI_COMMAND () {	0x4;}
}
unless(defined(&LGE_PCI_STATUS)) {
    sub LGE_PCI_STATUS () {	0x6;}
}
unless(defined(&LGE_PCI_REVID)) {
    sub LGE_PCI_REVID () {	0x8;}
}
unless(defined(&LGE_PCI_CLASSCODE)) {
    sub LGE_PCI_CLASSCODE () {	0x9;}
}
unless(defined(&LGE_PCI_CACHELEN)) {
    sub LGE_PCI_CACHELEN () {	0xc;}
}
unless(defined(&LGE_PCI_LATENCY_TIMER)) {
    sub LGE_PCI_LATENCY_TIMER () {	0xd;}
}
unless(defined(&LGE_PCI_HEADER_TYPE)) {
    sub LGE_PCI_HEADER_TYPE () {	0xe;}
}
unless(defined(&LGE_PCI_LOIO)) {
    sub LGE_PCI_LOIO () {	0x10;}
}
unless(defined(&LGE_PCI_LOMEM)) {
    sub LGE_PCI_LOMEM () {	0x14;}
}
unless(defined(&LGE_PCI_BIOSROM)) {
    sub LGE_PCI_BIOSROM () {	0x30;}
}
unless(defined(&LGE_PCI_INTLINE)) {
    sub LGE_PCI_INTLINE () {	0x3c;}
}
unless(defined(&LGE_PCI_INTPIN)) {
    sub LGE_PCI_INTPIN () {	0x3d;}
}
unless(defined(&LGE_PCI_MINGNT)) {
    sub LGE_PCI_MINGNT () {	0x3e;}
}
unless(defined(&LGE_PCI_MINLAT)) {
    sub LGE_PCI_MINLAT () {	0xf;}
}
unless(defined(&LGE_PCI_RESETOPT)) {
    sub LGE_PCI_RESETOPT () {	0x48;}
}
unless(defined(&LGE_PCI_EEPROM_DATA)) {
    sub LGE_PCI_EEPROM_DATA () {	0x4c;}
}
unless(defined(&LGE_PCI_CAPID)) {
    sub LGE_PCI_CAPID () {	0x50;}
}
unless(defined(&LGE_PCI_NEXTPTR)) {
    sub LGE_PCI_NEXTPTR () {	0x51;}
}
unless(defined(&LGE_PCI_PWRMGMTCAP)) {
    sub LGE_PCI_PWRMGMTCAP () {	0x52;}
}
unless(defined(&LGE_PCI_PWRMGMTCTRL)) {
    sub LGE_PCI_PWRMGMTCTRL () {	0x54;}
}
unless(defined(&LGE_PSTATE_MASK)) {
    sub LGE_PSTATE_MASK () {	0x3;}
}
unless(defined(&LGE_PSTATE_D0)) {
    sub LGE_PSTATE_D0 () {	0x;}
}
unless(defined(&LGE_PSTATE_D1)) {
    sub LGE_PSTATE_D1 () {	0x1;}
}
unless(defined(&LGE_PSTATE_D2)) {
    sub LGE_PSTATE_D2 () {	0x2;}
}
unless(defined(&LGE_PSTATE_D3)) {
    sub LGE_PSTATE_D3 () {	0x3;}
}
unless(defined(&LGE_PME_EN)) {
    sub LGE_PME_EN () {	0x10;}
}
unless(defined(&LGE_PME_STATUS)) {
    sub LGE_PME_STATUS () {	0x8000;}
}
if(defined(&__alpha__)) {
    undef(&vtophys) if defined(&vtophys);
    eval 'sub vtophys {
        my($va) = @_;
	    eval q( &alpha_XXX_dmamap(( &vaddr_t)$va));
    }' unless defined(&vtophys);
}
1;
