require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&AD_VENDORID)) {
    sub AD_VENDORID () {	0x9004;}
}
unless(defined(&AD_DEVICEID_STARFIRE)) {
    sub AD_DEVICEID_STARFIRE () {	0x6915;}
}
unless(defined(&AD_SUBSYSID_62011_REV0)) {
    sub AD_SUBSYSID_62011_REV0 () {	0x8;}
}
unless(defined(&AD_SUBSYSID_62011_REV1)) {
    sub AD_SUBSYSID_62011_REV1 () {	0x9;}
}
unless(defined(&AD_SUBSYSID_62022)) {
    sub AD_SUBSYSID_62022 () {	0x10;}
}
unless(defined(&AD_SUBSYSID_62044)) {
    sub AD_SUBSYSID_62044 () {	0x18;}
}
unless(defined(&AD_SUBSYSID_62020)) {
    sub AD_SUBSYSID_62020 () {	0x20;}
}
unless(defined(&AD_SUBSYSID_69011)) {
    sub AD_SUBSYSID_69011 () {	0x28;}
}
unless(defined(&SF_RMAP_ROMADDR_BASE)) {
    sub SF_RMAP_ROMADDR_BASE () {	0x;}
}
unless(defined(&SF_RMAP_ROMADDR_MAX)) {
    sub SF_RMAP_ROMADDR_MAX () {	0x3ffff;}
}
unless(defined(&SF_RMAP_EXGPIO_BASE)) {
    sub SF_RMAP_EXGPIO_BASE () {	0x40000;}
}
unless(defined(&SF_RMAP_EXGPIO_MAX)) {
    sub SF_RMAP_EXGPIO_MAX () {	0x3ffff;}
}
unless(defined(&SF_RMAP_INTREG_BASE)) {
    sub SF_RMAP_INTREG_BASE () {	0x50000;}
}
unless(defined(&SF_RMAP_INTREG_MAX)) {
    sub SF_RMAP_INTREG_MAX () {	0x500ff;}
}
unless(defined(&SF_RMAP_GENREG_BASE)) {
    sub SF_RMAP_GENREG_BASE () {	0x50100;}
}
unless(defined(&SF_RMAP_GENREG_MAX)) {
    sub SF_RMAP_GENREG_MAX () {	0x5ffff;}
}
unless(defined(&SF_RMAP_FIFO_BASE)) {
    sub SF_RMAP_FIFO_BASE () {	0x60000;}
}
unless(defined(&SF_RMAP_FIFO_MAX)) {
    sub SF_RMAP_FIFO_MAX () {	0x6ffff;}
}
unless(defined(&SF_RMAP_STS_BASE)) {
    sub SF_RMAP_STS_BASE () {	0x70000;}
}
unless(defined(&SF_RMAP_STS_MAX)) {
    sub SF_RMAP_STS_MAX () {	0x70083;}
}
unless(defined(&SF_RMAP_RSVD_BASE)) {
    sub SF_RMAP_RSVD_BASE () {	0x70084;}
}
unless(defined(&SF_RMAP_RSVD_MAX)) {
    sub SF_RMAP_RSVD_MAX () {	0x7ffff;}
}
unless(defined(&SF_PCI_VENDOR_ID)) {
    sub SF_PCI_VENDOR_ID () {	0x;}
}
unless(defined(&SF_PCI_DEVICE_ID)) {
    sub SF_PCI_DEVICE_ID () {	0x2;}
}
unless(defined(&SF_PCI_COMMAND)) {
    sub SF_PCI_COMMAND () {	0x4;}
}
unless(defined(&SF_PCI_STATUS)) {
    sub SF_PCI_STATUS () {	0x6;}
}
unless(defined(&SF_PCI_REVID)) {
    sub SF_PCI_REVID () {	0x8;}
}
unless(defined(&SF_PCI_CLASSCODE)) {
    sub SF_PCI_CLASSCODE () {	0x9;}
}
unless(defined(&SF_PCI_CACHELEN)) {
    sub SF_PCI_CACHELEN () {	0xc;}
}
unless(defined(&SF_PCI_LATENCY_TIMER)) {
    sub SF_PCI_LATENCY_TIMER () {	0xd;}
}
unless(defined(&SF_PCI_HEADER_TYPE)) {
    sub SF_PCI_HEADER_TYPE () {	0xe;}
}
unless(defined(&SF_PCI_LOMEM)) {
    sub SF_PCI_LOMEM () {	0x10;}
}
unless(defined(&SF_PCI_LOIO)) {
    sub SF_PCI_LOIO () {	0x14;}
}
unless(defined(&SF_PCI_SUBVEN_ID)) {
    sub SF_PCI_SUBVEN_ID () {	0x2c;}
}
unless(defined(&SF_PCI_SYBSYS_ID)) {
    sub SF_PCI_SYBSYS_ID () {	0x2e;}
}
unless(defined(&SF_PCI_BIOSROM)) {
    sub SF_PCI_BIOSROM () {	0x30;}
}
unless(defined(&SF_PCI_INTLINE)) {
    sub SF_PCI_INTLINE () {	0x3c;}
}
unless(defined(&SF_PCI_INTPIN)) {
    sub SF_PCI_INTPIN () {	0x3d;}
}
unless(defined(&SF_PCI_MINGNT)) {
    sub SF_PCI_MINGNT () {	0x3e;}
}
unless(defined(&SF_PCI_MINLAT)) {
    sub SF_PCI_MINLAT () {	0x3f;}
}
unless(defined(&SF_PCI_DEVCFG)) {
    sub SF_PCI_DEVCFG () {	0x40;}
}
unless(defined(&SF_BACCTL)) {
    sub SF_BACCTL () {	0x44;}
}
unless(defined(&SF_PCI_MON1)) {
    sub SF_PCI_MON1 () {	0x48;}
}
unless(defined(&SF_PCI_MON2)) {
    sub SF_PCI_MON2 () {	0x4c;}
}
unless(defined(&SF_PCI_CAPID)) {
    sub SF_PCI_CAPID () {	0x50;}
}
unless(defined(&SF_PCI_NEXTPTR)) {
    sub SF_PCI_NEXTPTR () {	0x51;}
}
unless(defined(&SF_PCI_PWRMGMTCAP)) {
    sub SF_PCI_PWRMGMTCAP () {	0x52;}
}
unless(defined(&SF_PCI_PWRMGMTCTRL)) {
    sub SF_PCI_PWRMGMTCTRL () {	0x54;}
}
unless(defined(&SF_PCI_PME_EVENT)) {
    sub SF_PCI_PME_EVENT () {	0x58;}
}
unless(defined(&SF_PCI_EECTL)) {
    sub SF_PCI_EECTL () {	0x60;}
}
unless(defined(&SF_PCI_COMPLIANCE)) {
    sub SF_PCI_COMPLIANCE () {	0x64;}
}
unless(defined(&SF_INDIRECTIO_ADDR)) {
    sub SF_INDIRECTIO_ADDR () {	0x68;}
}
unless(defined(&SF_INDIRECTIO_DATA)) {
    sub SF_INDIRECTIO_DATA () {	0x6c;}
}
unless(defined(&SF_PCIDEVCFG_RESET)) {
    sub SF_PCIDEVCFG_RESET () {	0x1;}
}
unless(defined(&SF_PCIDEVCFG_FORCE64)) {
    sub SF_PCIDEVCFG_FORCE64 () {	0x2;}
}
unless(defined(&SF_PCIDEVCFG_SYSTEM64)) {
    sub SF_PCIDEVCFG_SYSTEM64 () {	0x4;}
}
unless(defined(&SF_PCIDEVCFG_RSVD0)) {
    sub SF_PCIDEVCFG_RSVD0 () {	0x8;}
}
unless(defined(&SF_PCIDEVCFG_INCR_INB)) {
    sub SF_PCIDEVCFG_INCR_INB () {	0x10;}
}
unless(defined(&SF_PCIDEVCFG_ABTONPERR)) {
    sub SF_PCIDEVCFG_ABTONPERR () {	0x20;}
}
unless(defined(&SF_PCIDEVCFG_STPONPERR)) {
    sub SF_PCIDEVCFG_STPONPERR () {	0x40;}
}
unless(defined(&SF_PCIDEVCFG_MR_ENB)) {
    sub SF_PCIDEVCFG_MR_ENB () {	0x80;}
}
unless(defined(&SF_PCIDEVCFG_FIFOTHR)) {
    sub SF_PCIDEVCFG_FIFOTHR () {	0xf00;}
}
unless(defined(&SF_PCIDEVCFG_STPONCA)) {
    sub SF_PCIDEVCFG_STPONCA () {	0x1000;}
}
unless(defined(&SF_PCIDEVCFG_PCIMEN)) {
    sub SF_PCIDEVCFG_PCIMEN () {	0x2000;}
}
unless(defined(&SF_PCIDEVCFG_LATSTP)) {
    sub SF_PCIDEVCFG_LATSTP () {	0x4000;}
}
unless(defined(&SF_PCIDEVCFG_BYTE_ENB)) {
    sub SF_PCIDEVCFG_BYTE_ENB () {	0x8000;}
}
unless(defined(&SF_PCIDEVCFG_EECSWIDTH)) {
    sub SF_PCIDEVCFG_EECSWIDTH () {	0x70000;}
}
unless(defined(&SF_PCIDEVCFG_STPMWCA)) {
    sub SF_PCIDEVCFG_STPMWCA () {	0x80000;}
}
unless(defined(&SF_PCIDEVCFG_REGCSWIDTH)) {
    sub SF_PCIDEVCFG_REGCSWIDTH () {	0x700000;}
}
unless(defined(&SF_PCIDEVCFG_INTR_ENB)) {
    sub SF_PCIDEVCFG_INTR_ENB () {	0x800000;}
}
unless(defined(&SF_PCIDEVCFG_DPR_ENB)) {
    sub SF_PCIDEVCFG_DPR_ENB () {	0x1000000;}
}
unless(defined(&SF_PCIDEVCFG_RSVD1)) {
    sub SF_PCIDEVCFG_RSVD1 () {	0x2000000;}
}
unless(defined(&SF_PCIDEVCFG_RSVD2)) {
    sub SF_PCIDEVCFG_RSVD2 () {	0x4000000;}
}
unless(defined(&SF_PCIDEVCFG_STA_ENB)) {
    sub SF_PCIDEVCFG_STA_ENB () {	0x8000000;}
}
unless(defined(&SF_PCIDEVCFG_RTA_ENB)) {
    sub SF_PCIDEVCFG_RTA_ENB () {	0x10000000;}
}
unless(defined(&SF_PCIDEVCFG_RMA_ENB)) {
    sub SF_PCIDEVCFG_RMA_ENB () {	0x20000000;}
}
unless(defined(&SF_PCIDEVCFG_SSE_ENB)) {
    sub SF_PCIDEVCFG_SSE_ENB () {	0x40000000;}
}
unless(defined(&SF_PCIDEVCFG_DPE_ENB)) {
    sub SF_PCIDEVCFG_DPE_ENB () {	0x80000000;}
}
unless(defined(&SF_BACCTL_BACDMA_ENB)) {
    sub SF_BACCTL_BACDMA_ENB () {	0x1;}
}
unless(defined(&SF_BACCTL_PREFER_RXDMA)) {
    sub SF_BACCTL_PREFER_RXDMA () {	0x2;}
}
unless(defined(&SF_BACCTL_PREFER_TXDMA)) {
    sub SF_BACCTL_PREFER_TXDMA () {	0x4;}
}
unless(defined(&SF_BACCTL_SINGLE_DMA)) {
    sub SF_BACCTL_SINGLE_DMA () {	0x8;}
}
unless(defined(&SF_BACCTL_SWAPMODE_DATA)) {
    sub SF_BACCTL_SWAPMODE_DATA () {	0x30;}
}
unless(defined(&SF_BACCTL_SWAPMODE_DESC)) {
    sub SF_BACCTL_SWAPMODE_DESC () {	0xc0;}
}
unless(defined(&SF_SWAPMODE_LE)) {
    sub SF_SWAPMODE_LE () {	0x;}
}
unless(defined(&SF_SWAPMODE_BE)) {
    sub SF_SWAPMODE_BE () {	0x10;}
}
unless(defined(&SF_PSTATE_MASK)) {
    sub SF_PSTATE_MASK () {	0x3;}
}
unless(defined(&SF_PSTATE_D0)) {
    sub SF_PSTATE_D0 () {	0x;}
}
unless(defined(&SF_PSTATE_D1)) {
    sub SF_PSTATE_D1 () {	0x1;}
}
unless(defined(&SF_PSTATE_D2)) {
    sub SF_PSTATE_D2 () {	0x2;}
}
unless(defined(&SF_PSTATE_D3)) {
    sub SF_PSTATE_D3 () {	0x3;}
}
unless(defined(&SF_PME_EN)) {
    sub SF_PME_EN () {	0x10;}
}
unless(defined(&SF_PME_STATUS)) {
    sub SF_PME_STATUS () {	0x8000;}
}
unless(defined(&SF_GEN_ETH_CTL)) {
    sub SF_GEN_ETH_CTL () {	0x70;}
}
unless(defined(&SF_TIMER_CTL)) {
    sub SF_TIMER_CTL () {	0x74;}
}
unless(defined(&SF_CURTIME)) {
    sub SF_CURTIME () {	0x78;}
}
unless(defined(&SF_ISR)) {
    sub SF_ISR () {	0x80;}
}
unless(defined(&SF_ISR_SHADOW)) {
    sub SF_ISR_SHADOW () {	0x84;}
}
unless(defined(&SF_IMR)) {
    sub SF_IMR () {	0x88;}
}
unless(defined(&SF_GPIO)) {
    sub SF_GPIO () {	0x8c;}
}
unless(defined(&SF_TXDQ_CTL)) {
    sub SF_TXDQ_CTL () {	0x90;}
}
unless(defined(&SF_TXDQ_ADDR_HIPRIO)) {
    sub SF_TXDQ_ADDR_HIPRIO () {	0x94;}
}
unless(defined(&SF_TXDQ_ADDR_LOPRIO)) {
    sub SF_TXDQ_ADDR_LOPRIO () {	0x98;}
}
unless(defined(&SF_TXDQ_ADDR_HIADDR)) {
    sub SF_TXDQ_ADDR_HIADDR () {	0x9c;}
}
unless(defined(&SF_TXDQ_PRODIDX)) {
    sub SF_TXDQ_PRODIDX () {	0xa0;}
}
unless(defined(&SF_TXDQ_CONSIDX)) {
    sub SF_TXDQ_CONSIDX () {	0xa4;}
}
unless(defined(&SF_TXDMA_STS1)) {
    sub SF_TXDMA_STS1 () {	0xa8;}
}
unless(defined(&SF_TXDMA_STS2)) {
    sub SF_TXDMA_STS2 () {	0xac;}
}
unless(defined(&SF_TX_FRAMCTL)) {
    sub SF_TX_FRAMCTL () {	0xb0;}
}
unless(defined(&SF_TXCQ_ADDR_HI)) {
    sub SF_TXCQ_ADDR_HI () {	0xb4;}
}
unless(defined(&SF_TXCQ_CTL)) {
    sub SF_TXCQ_CTL () {	0xb8;}
}
unless(defined(&SF_RXCQ_CTL_1)) {
    sub SF_RXCQ_CTL_1 () {	0xbc;}
}
unless(defined(&SF_RXCQ_CTL_2)) {
    sub SF_RXCQ_CTL_2 () {	0xc0;}
}
unless(defined(&SF_CQ_CONSIDX)) {
    sub SF_CQ_CONSIDX () {	0xc4;}
}
unless(defined(&SF_CQ_PRODIDX)) {
    sub SF_CQ_PRODIDX () {	0xc8;}
}
unless(defined(&SF_CQ_RXQ2)) {
    sub SF_CQ_RXQ2 () {	0xcc;}
}
unless(defined(&SF_RXDMA_CTL)) {
    sub SF_RXDMA_CTL () {	0xd0;}
}
unless(defined(&SF_RXDQ_CTL_1)) {
    sub SF_RXDQ_CTL_1 () {	0xd4;}
}
unless(defined(&SF_RXDQ_CTL_2)) {
    sub SF_RXDQ_CTL_2 () {	0xd8;}
}
unless(defined(&SF_RXDQ_ADDR_HIADDR)) {
    sub SF_RXDQ_ADDR_HIADDR () {	0xdc;}
}
unless(defined(&SF_RXDQ_ADDR_Q1)) {
    sub SF_RXDQ_ADDR_Q1 () {	0xe0;}
}
unless(defined(&SF_RXDQ_ADDR_Q2)) {
    sub SF_RXDQ_ADDR_Q2 () {	0xe4;}
}
unless(defined(&SF_RXDQ_PTR_Q1)) {
    sub SF_RXDQ_PTR_Q1 () {	0xe8;}
}
unless(defined(&SF_RXDQ_PTR_Q2)) {
    sub SF_RXDQ_PTR_Q2 () {	0xec;}
}
unless(defined(&SF_RXDMA_STS)) {
    sub SF_RXDMA_STS () {	0xf0;}
}
unless(defined(&SF_RXFILT)) {
    sub SF_RXFILT () {	0xf4;}
}
unless(defined(&SF_RX_FRAMETEST_OUT)) {
    sub SF_RX_FRAMETEST_OUT () {	0xf8;}
}
unless(defined(&SF_ETHCTL_RX_ENB)) {
    sub SF_ETHCTL_RX_ENB () {	0x1;}
}
unless(defined(&SF_ETHCTL_TX_ENB)) {
    sub SF_ETHCTL_TX_ENB () {	0x2;}
}
unless(defined(&SF_ETHCTL_RXDMA_ENB)) {
    sub SF_ETHCTL_RXDMA_ENB () {	0x4;}
}
unless(defined(&SF_ETHCTL_TXDMA_ENB)) {
    sub SF_ETHCTL_TXDMA_ENB () {	0x8;}
}
unless(defined(&SF_ETHCTL_RXGFP_ENB)) {
    sub SF_ETHCTL_RXGFP_ENB () {	0x10;}
}
unless(defined(&SF_ETHCTL_TXGFP_ENB)) {
    sub SF_ETHCTL_TXGFP_ENB () {	0x20;}
}
unless(defined(&SF_ETHCTL_SOFTINTR)) {
    sub SF_ETHCTL_SOFTINTR () {	0x800;}
}
unless(defined(&SF_TIMER_IMASK_INTERVAL)) {
    sub SF_TIMER_IMASK_INTERVAL () {	0x1f;}
}
unless(defined(&SF_TIMER_IMASK_MODE)) {
    sub SF_TIMER_IMASK_MODE () {	0x60;}
}
unless(defined(&SF_TIMER_SMALLFRAME_BYP)) {
    sub SF_TIMER_SMALLFRAME_BYP () {	0x100;}
}
unless(defined(&SF_TIMER_SMALLRX_FRAME)) {
    sub SF_TIMER_SMALLRX_FRAME () {	0x600;}
}
unless(defined(&SF_TIMER_TIMES_TEN)) {
    sub SF_TIMER_TIMES_TEN () {	0x800;}
}
unless(defined(&SF_TIMER_RXHIPRIO_BYP)) {
    sub SF_TIMER_RXHIPRIO_BYP () {	0x1000;}
}
unless(defined(&SF_TIMER_TX_DMADONE_DLY)) {
    sub SF_TIMER_TX_DMADONE_DLY () {	0x2000;}
}
unless(defined(&SF_TIMER_TX_QDONE_DLY)) {
    sub SF_TIMER_TX_QDONE_DLY () {	0x4000;}
}
unless(defined(&SF_TIMER_TX_FRDONE_DLY)) {
    sub SF_TIMER_TX_FRDONE_DLY () {	0x8000;}
}
unless(defined(&SF_TIMER_GENTIMER)) {
    sub SF_TIMER_GENTIMER () {	0xff0000;}
}
unless(defined(&SF_TIMER_ONESHOT)) {
    sub SF_TIMER_ONESHOT () {	0x1000000;}
}
unless(defined(&SF_TIMER_GENTIMER_RES)) {
    sub SF_TIMER_GENTIMER_RES () {	0x2000000;}
}
unless(defined(&SF_TIMER_TIMEST_RES)) {
    sub SF_TIMER_TIMEST_RES () {	0x4000000;}
}
unless(defined(&SF_TIMER_RXQ2DONE_DLY)) {
    sub SF_TIMER_RXQ2DONE_DLY () {	0x10000000;}
}
unless(defined(&SF_TIMER_EARLYRX2_DLY)) {
    sub SF_TIMER_EARLYRX2_DLY () {	0x20000000;}
}
unless(defined(&SF_TIMER_RXQ1DONE_DLY)) {
    sub SF_TIMER_RXQ1DONE_DLY () {	0x40000000;}
}
unless(defined(&SF_TIMER_EARLYRX1_DLY)) {
    sub SF_TIMER_EARLYRX1_DLY () {	0x80000000;}
}
unless(defined(&SF_ISR_PCIINT_ASSERTED)) {
    sub SF_ISR_PCIINT_ASSERTED () {	0x1;}
}
unless(defined(&SF_ISR_GFP_TX)) {
    sub SF_ISR_GFP_TX () {	0x2;}
}
unless(defined(&SF_ISR_GFP_RX)) {
    sub SF_ISR_GFP_RX () {	0x4;}
}
unless(defined(&SF_ISR_TX_BADID_HIPRIO)) {
    sub SF_ISR_TX_BADID_HIPRIO () {	0x8;}
}
unless(defined(&SF_ISR_TX_BADID_LOPRIO)) {
    sub SF_ISR_TX_BADID_LOPRIO () {	0x10;}
}
unless(defined(&SF_ISR_NO_TX_CSUM)) {
    sub SF_ISR_NO_TX_CSUM () {	0x20;}
}
unless(defined(&SF_ISR_RXDQ2_NOBUFS)) {
    sub SF_ISR_RXDQ2_NOBUFS () {	0x40;}
}
unless(defined(&SF_ISR_RXGFP_NORESP)) {
    sub SF_ISR_RXGFP_NORESP () {	0x80;}
}
unless(defined(&SF_ISR_RXDQ1_DMADONE)) {
    sub SF_ISR_RXDQ1_DMADONE () {	0x100;}
}
unless(defined(&SF_ISR_RXDQ2_DMADONE)) {
    sub SF_ISR_RXDQ2_DMADONE () {	0x200;}
}
unless(defined(&SF_ISR_RXDQ1_EARLY)) {
    sub SF_ISR_RXDQ1_EARLY () {	0x400;}
}
unless(defined(&SF_ISR_RXDQ2_EARLY)) {
    sub SF_ISR_RXDQ2_EARLY () {	0x800;}
}
unless(defined(&SF_ISR_TX_QUEUEDONE)) {
    sub SF_ISR_TX_QUEUEDONE () {	0x1000;}
}
unless(defined(&SF_ISR_TX_DMADONE)) {
    sub SF_ISR_TX_DMADONE () {	0x2000;}
}
unless(defined(&SF_ISR_TX_TXDONE)) {
    sub SF_ISR_TX_TXDONE () {	0x4000;}
}
unless(defined(&SF_ISR_NORMALINTR)) {
    sub SF_ISR_NORMALINTR () {	0x8000;}
}
unless(defined(&SF_ISR_RXDQ1_NOBUFS)) {
    sub SF_ISR_RXDQ1_NOBUFS () {	0x10000;}
}
unless(defined(&SF_ISR_RXCQ2_NOBUFS)) {
    sub SF_ISR_RXCQ2_NOBUFS () {	0x20000;}
}
unless(defined(&SF_ISR_TX_LOFIFO)) {
    sub SF_ISR_TX_LOFIFO () {	0x40000;}
}
unless(defined(&SF_ISR_DMAERR)) {
    sub SF_ISR_DMAERR () {	0x80000;}
}
unless(defined(&SF_ISR_PCIINT)) {
    sub SF_ISR_PCIINT () {	0x100000;}
}
unless(defined(&SF_ISR_TXCQ_NOBUFS)) {
    sub SF_ISR_TXCQ_NOBUFS () {	0x200000;}
}
unless(defined(&SF_ISR_RXCQ1_NOBUFS)) {
    sub SF_ISR_RXCQ1_NOBUFS () {	0x400000;}
}
unless(defined(&SF_ISR_SOFTINTR)) {
    sub SF_ISR_SOFTINTR () {	0x800000;}
}
unless(defined(&SF_ISR_GENTIMER)) {
    sub SF_ISR_GENTIMER () {	0x1000000;}
}
unless(defined(&SF_ISR_ABNORMALINTR)) {
    sub SF_ISR_ABNORMALINTR () {	0x2000000;}
}
unless(defined(&SF_ISR_RSVD0)) {
    sub SF_ISR_RSVD0 () {	0x4000000;}
}
unless(defined(&SF_ISR_STATSOFLOW)) {
    sub SF_ISR_STATSOFLOW () {	0x8000000;}
}
unless(defined(&SF_ISR_GPIO)) {
    sub SF_ISR_GPIO () {	0xf0000000;}
}
unless(defined(&SF_SISR_PCIINT_ASSERTED)) {
    sub SF_SISR_PCIINT_ASSERTED () {	0x1;}
}
unless(defined(&SF_SISR_GFP_TX)) {
    sub SF_SISR_GFP_TX () {	0x2;}
}
unless(defined(&SF_SISR_GFP_RX)) {
    sub SF_SISR_GFP_RX () {	0x4;}
}
unless(defined(&SF_SISR_TX_BADID_HIPRIO)) {
    sub SF_SISR_TX_BADID_HIPRIO () {	0x8;}
}
unless(defined(&SF_SISR_TX_BADID_LOPRIO)) {
    sub SF_SISR_TX_BADID_LOPRIO () {	0x10;}
}
unless(defined(&SF_SISR_NO_TX_CSUM)) {
    sub SF_SISR_NO_TX_CSUM () {	0x20;}
}
unless(defined(&SF_SISR_RXDQ2_NOBUFS)) {
    sub SF_SISR_RXDQ2_NOBUFS () {	0x40;}
}
unless(defined(&SF_SISR_RXGFP_NORESP)) {
    sub SF_SISR_RXGFP_NORESP () {	0x80;}
}
unless(defined(&SF_SISR_RXDQ1_DMADONE)) {
    sub SF_SISR_RXDQ1_DMADONE () {	0x100;}
}
unless(defined(&SF_SISR_RXDQ2_DMADONE)) {
    sub SF_SISR_RXDQ2_DMADONE () {	0x200;}
}
unless(defined(&SF_SISR_RXDQ1_EARLY)) {
    sub SF_SISR_RXDQ1_EARLY () {	0x400;}
}
unless(defined(&SF_SISR_RXDQ2_EARLY)) {
    sub SF_SISR_RXDQ2_EARLY () {	0x800;}
}
unless(defined(&SF_SISR_TX_QUEUEDONE)) {
    sub SF_SISR_TX_QUEUEDONE () {	0x1000;}
}
unless(defined(&SF_SISR_TX_DMADONE)) {
    sub SF_SISR_TX_DMADONE () {	0x2000;}
}
unless(defined(&SF_SISR_TX_TXDONE)) {
    sub SF_SISR_TX_TXDONE () {	0x4000;}
}
unless(defined(&SF_SISR_NORMALINTR)) {
    sub SF_SISR_NORMALINTR () {	0x8000;}
}
unless(defined(&SF_SISR_RXDQ1_NOBUFS)) {
    sub SF_SISR_RXDQ1_NOBUFS () {	0x10000;}
}
unless(defined(&SF_SISR_RXCQ2_NOBUFS)) {
    sub SF_SISR_RXCQ2_NOBUFS () {	0x20000;}
}
unless(defined(&SF_SISR_TX_LOFIFO)) {
    sub SF_SISR_TX_LOFIFO () {	0x40000;}
}
unless(defined(&SF_SISR_DMAERR)) {
    sub SF_SISR_DMAERR () {	0x80000;}
}
unless(defined(&SF_SISR_PCIINT)) {
    sub SF_SISR_PCIINT () {	0x100000;}
}
unless(defined(&SF_SISR_TXCQ_NOBUFS)) {
    sub SF_SISR_TXCQ_NOBUFS () {	0x200000;}
}
unless(defined(&SF_SISR_RXCQ1_NOBUFS)) {
    sub SF_SISR_RXCQ1_NOBUFS () {	0x400000;}
}
unless(defined(&SF_SISR_SOFTINTR)) {
    sub SF_SISR_SOFTINTR () {	0x800000;}
}
unless(defined(&SF_SISR_GENTIMER)) {
    sub SF_SISR_GENTIMER () {	0x1000000;}
}
unless(defined(&SF_SISR_ABNORMALINTR)) {
    sub SF_SISR_ABNORMALINTR () {	0x2000000;}
}
unless(defined(&SF_SISR_RSVD0)) {
    sub SF_SISR_RSVD0 () {	0x4000000;}
}
unless(defined(&SF_SISR_STATSOFLOW)) {
    sub SF_SISR_STATSOFLOW () {	0x8000000;}
}
unless(defined(&SF_SISR_GPIO)) {
    sub SF_SISR_GPIO () {	0xf0000000;}
}
unless(defined(&SF_IMR_PCIINT_ASSERTED)) {
    sub SF_IMR_PCIINT_ASSERTED () {	0x1;}
}
unless(defined(&SF_IMR_GFP_TX)) {
    sub SF_IMR_GFP_TX () {	0x2;}
}
unless(defined(&SF_IMR_GFP_RX)) {
    sub SF_IMR_GFP_RX () {	0x4;}
}
unless(defined(&SF_IMR_TX_BADID_HIPRIO)) {
    sub SF_IMR_TX_BADID_HIPRIO () {	0x8;}
}
unless(defined(&SF_IMR_TX_BADID_LOPRIO)) {
    sub SF_IMR_TX_BADID_LOPRIO () {	0x10;}
}
unless(defined(&SF_IMR_NO_TX_CSUM)) {
    sub SF_IMR_NO_TX_CSUM () {	0x20;}
}
unless(defined(&SF_IMR_RXDQ2_NOBUFS)) {
    sub SF_IMR_RXDQ2_NOBUFS () {	0x40;}
}
unless(defined(&SF_IMR_RXGFP_NORESP)) {
    sub SF_IMR_RXGFP_NORESP () {	0x80;}
}
unless(defined(&SF_IMR_RXDQ1_DMADONE)) {
    sub SF_IMR_RXDQ1_DMADONE () {	0x100;}
}
unless(defined(&SF_IMR_RXDQ2_DMADONE)) {
    sub SF_IMR_RXDQ2_DMADONE () {	0x200;}
}
unless(defined(&SF_IMR_RXDQ1_EARLY)) {
    sub SF_IMR_RXDQ1_EARLY () {	0x400;}
}
unless(defined(&SF_IMR_RXDQ2_EARLY)) {
    sub SF_IMR_RXDQ2_EARLY () {	0x800;}
}
unless(defined(&SF_IMR_TX_QUEUEDONE)) {
    sub SF_IMR_TX_QUEUEDONE () {	0x1000;}
}
unless(defined(&SF_IMR_TX_DMADONE)) {
    sub SF_IMR_TX_DMADONE () {	0x2000;}
}
unless(defined(&SF_IMR_TX_TXDONE)) {
    sub SF_IMR_TX_TXDONE () {	0x4000;}
}
unless(defined(&SF_IMR_NORMALINTR)) {
    sub SF_IMR_NORMALINTR () {	0x8000;}
}
unless(defined(&SF_IMR_RXDQ1_NOBUFS)) {
    sub SF_IMR_RXDQ1_NOBUFS () {	0x10000;}
}
unless(defined(&SF_IMR_RXCQ2_NOBUFS)) {
    sub SF_IMR_RXCQ2_NOBUFS () {	0x20000;}
}
unless(defined(&SF_IMR_TX_LOFIFO)) {
    sub SF_IMR_TX_LOFIFO () {	0x40000;}
}
unless(defined(&SF_IMR_DMAERR)) {
    sub SF_IMR_DMAERR () {	0x80000;}
}
unless(defined(&SF_IMR_PCIINT)) {
    sub SF_IMR_PCIINT () {	0x100000;}
}
unless(defined(&SF_IMR_TXCQ_NOBUFS)) {
    sub SF_IMR_TXCQ_NOBUFS () {	0x200000;}
}
unless(defined(&SF_IMR_RXCQ1_NOBUFS)) {
    sub SF_IMR_RXCQ1_NOBUFS () {	0x400000;}
}
unless(defined(&SF_IMR_SOFTINTR)) {
    sub SF_IMR_SOFTINTR () {	0x800000;}
}
unless(defined(&SF_IMR_GENTIMER)) {
    sub SF_IMR_GENTIMER () {	0x1000000;}
}
unless(defined(&SF_IMR_ABNORMALINTR)) {
    sub SF_IMR_ABNORMALINTR () {	0x2000000;}
}
unless(defined(&SF_IMR_RSVD0)) {
    sub SF_IMR_RSVD0 () {	0x4000000;}
}
unless(defined(&SF_IMR_STATSOFLOW)) {
    sub SF_IMR_STATSOFLOW () {	0x8000000;}
}
unless(defined(&SF_IMR_GPIO)) {
    sub SF_IMR_GPIO () {	0xf0000000;}
}
unless(defined(&SF_INTRS)) {
    sub SF_INTRS () {	( &SF_IMR_RXDQ2_NOBUFS| &SF_IMR_RXDQ1_DMADONE| &SF_IMR_RXDQ2_DMADONE|  &SF_IMR_TX_TXDONE| &SF_IMR_RXDQ1_NOBUFS| &SF_IMR_RXDQ2_DMADONE|  &SF_IMR_NORMALINTR| &SF_IMR_ABNORMALINTR| &SF_IMR_TXCQ_NOBUFS|  &SF_IMR_RXCQ1_NOBUFS| &SF_IMR_RXCQ2_NOBUFS| &SF_IMR_STATSOFLOW|  &SF_IMR_TX_LOFIFO);}
}
unless(defined(&SF_TXDQCTL_DESCTYPE)) {
    sub SF_TXDQCTL_DESCTYPE () {	0x7;}
}
unless(defined(&SF_TXDQCTL_NODMACMP)) {
    sub SF_TXDQCTL_NODMACMP () {	0x8;}
}
unless(defined(&SF_TXDQCTL_MINSPACE)) {
    sub SF_TXDQCTL_MINSPACE () {	0x70;}
}
unless(defined(&SF_TXDQCTL_64BITADDR)) {
    sub SF_TXDQCTL_64BITADDR () {	0x80;}
}
unless(defined(&SF_TXDQCTL_BURSTLEN)) {
    sub SF_TXDQCTL_BURSTLEN () {	0x3f00;}
}
unless(defined(&SF_TXDQCTL_SKIPLEN)) {
    sub SF_TXDQCTL_SKIPLEN () {	0x1f0000;}
}
unless(defined(&SF_TXDQCTL_HIPRIOTHRESH)) {
    sub SF_TXDQCTL_HIPRIOTHRESH () {	0xff000000;}
}
unless(defined(&SF_TXBUFDESC_TYPE0)) {
    sub SF_TXBUFDESC_TYPE0 () {	0x;}
}
unless(defined(&SF_TXBUFDESC_TYPE1)) {
    sub SF_TXBUFDESC_TYPE1 () {	0x1;}
}
unless(defined(&SF_TXBUFDESC_TYPE2)) {
    sub SF_TXBUFDESC_TYPE2 () {	0x2;}
}
unless(defined(&SF_TXBUFDESC_TYPE3)) {
    sub SF_TXBUFDESC_TYPE3 () {	0x3;}
}
unless(defined(&SF_TXBUFDESC_TYPE4)) {
    sub SF_TXBUFDESC_TYPE4 () {	0x4;}
}
unless(defined(&SF_TXMINSPACE_UNLIMIT)) {
    sub SF_TXMINSPACE_UNLIMIT () {	0x;}
}
unless(defined(&SF_TXMINSPACE_32BYTES)) {
    sub SF_TXMINSPACE_32BYTES () {	0x10;}
}
unless(defined(&SF_TXMINSPACE_64BYTES)) {
    sub SF_TXMINSPACE_64BYTES () {	0x20;}
}
unless(defined(&SF_TXMINSPACE_128BYTES)) {
    sub SF_TXMINSPACE_128BYTES () {	0x30;}
}
unless(defined(&SF_TXMINSPACE_256BYTES)) {
    sub SF_TXMINSPACE_256BYTES () {	0x40;}
}
unless(defined(&SF_TXSKIPLEN_0BYTES)) {
    sub SF_TXSKIPLEN_0BYTES () {	0x;}
}
unless(defined(&SF_TXSKIPLEN_8BYTES)) {
    sub SF_TXSKIPLEN_8BYTES () {	0x10000;}
}
unless(defined(&SF_TXSKIPLEN_16BYTES)) {
    sub SF_TXSKIPLEN_16BYTES () {	0x20000;}
}
unless(defined(&SF_TXSKIPLEN_24BYTES)) {
    sub SF_TXSKIPLEN_24BYTES () {	0x30000;}
}
unless(defined(&SF_TXSKIPLEN_32BYTES)) {
    sub SF_TXSKIPLEN_32BYTES () {	0x40000;}
}
unless(defined(&SF_TXFRMCTL_TXTHRESH)) {
    sub SF_TXFRMCTL_TXTHRESH () {	0xff;}
}
unless(defined(&SF_TXFRMCTL_CPLAFTERTX)) {
    sub SF_TXFRMCTL_CPLAFTERTX () {	0x100;}
}
unless(defined(&SF_TXFRMCRL_DEBUG)) {
    sub SF_TXFRMCRL_DEBUG () {	0xfe00;}
}
unless(defined(&SF_TXFRMCTL_STATUS)) {
    sub SF_TXFRMCTL_STATUS () {	0x1ff0000;}
}
unless(defined(&SF_TXFRMCTL_MAC_TXIF)) {
    sub SF_TXFRMCTL_MAC_TXIF () {	0xfe000000;}
}
unless(defined(&SF_TXCQ_THRESH)) {
    sub SF_TXCQ_THRESH () {	0xf;}
}
unless(defined(&SF_TXCQ_COMMON)) {
    sub SF_TXCQ_COMMON () {	0x10;}
}
unless(defined(&SF_TXCQ_SIZE)) {
    sub SF_TXCQ_SIZE () {	0x20;}
}
unless(defined(&SF_TXCQ_WRITEENB)) {
    sub SF_TXCQ_WRITEENB () {	0x40;}
}
unless(defined(&SF_TXCQ_USE_64BIT)) {
    sub SF_TXCQ_USE_64BIT () {	0x80;}
}
unless(defined(&SF_TXCQ_ADDR)) {
    sub SF_TXCQ_ADDR () {	0xffffff00;}
}
unless(defined(&SF_RXCQ_THRESH)) {
    sub SF_RXCQ_THRESH () {	0xf;}
}
unless(defined(&SF_RXCQ_TYPE)) {
    sub SF_RXCQ_TYPE () {	0x30;}
}
unless(defined(&SF_RXCQ_WRITEENB)) {
    sub SF_RXCQ_WRITEENB () {	0x40;}
}
unless(defined(&SF_RXCQ_USE_64BIT)) {
    sub SF_RXCQ_USE_64BIT () {	0x80;}
}
unless(defined(&SF_RXCQ_ADDR)) {
    sub SF_RXCQ_ADDR () {	0xffffff00;}
}
unless(defined(&SF_RXCQTYPE_0)) {
    sub SF_RXCQTYPE_0 () {	0x;}
}
unless(defined(&SF_RXCQTYPE_1)) {
    sub SF_RXCQTYPE_1 () {	0x10;}
}
unless(defined(&SF_RXCQTYPE_2)) {
    sub SF_RXCQTYPE_2 () {	0x20;}
}
unless(defined(&SF_RXCQTYPE_3)) {
    sub SF_RXCQTYPE_3 () {	0x30;}
}
unless(defined(&SF_TXDQ_PRODIDX_LOPRIO)) {
    sub SF_TXDQ_PRODIDX_LOPRIO () {	0x7ff;}
}
unless(defined(&SF_TXDQ_PRODIDX_HIPRIO)) {
    sub SF_TXDQ_PRODIDX_HIPRIO () {	0x7ff0000;}
}
unless(defined(&SF_TXDQ_CONSIDX_LOPRIO)) {
    sub SF_TXDQ_CONSIDX_LOPRIO () {	0x7ff;}
}
unless(defined(&SF_TXDQ_CONSIDX_HIPRIO)) {
    sub SF_TXDQ_CONSIDX_HIPRIO () {	0x7ff0000;}
}
unless(defined(&SF_CQ_CONSIDX_RXQ1)) {
    sub SF_CQ_CONSIDX_RXQ1 () {	0x3ff;}
}
unless(defined(&SF_CQ_CONSIDX_RXTHRMODE)) {
    sub SF_CQ_CONSIDX_RXTHRMODE () {	0x8000;}
}
unless(defined(&SF_CQ_CONSIDX_TXQ)) {
    sub SF_CQ_CONSIDX_TXQ () {	0x3ff0000;}
}
unless(defined(&SF_CQ_CONSIDX_TXTHRMODE)) {
    sub SF_CQ_CONSIDX_TXTHRMODE () {	0x80000000;}
}
unless(defined(&SF_CQ_PRODIDX_RXQ1)) {
    sub SF_CQ_PRODIDX_RXQ1 () {	0x3ff;}
}
unless(defined(&SF_CQ_PRODIDX_TXQ)) {
    sub SF_CQ_PRODIDX_TXQ () {	0x3ff0000;}
}
unless(defined(&SF_CQ_RXQ2_CONSIDX)) {
    sub SF_CQ_RXQ2_CONSIDX () {	0x3ff;}
}
unless(defined(&SF_CQ_RXQ2_RXTHRMODE)) {
    sub SF_CQ_RXQ2_RXTHRMODE () {	0x8000;}
}
unless(defined(&SF_CQ_RXQ2_PRODIDX)) {
    sub SF_CQ_RXQ2_PRODIDX () {	0x3ff0000;}
}
unless(defined(&SF_CQ_RXTHRMODE_INT_ON)) {
    sub SF_CQ_RXTHRMODE_INT_ON () {	0x8000;}
}
unless(defined(&SF_CQ_RXTHRMODE_INT_OFF)) {
    sub SF_CQ_RXTHRMODE_INT_OFF () {	0x;}
}
unless(defined(&SF_CQ_TXTHRMODE_INT_ON)) {
    sub SF_CQ_TXTHRMODE_INT_ON () {	0x80000000;}
}
unless(defined(&SF_CQ_TXTHRMODE_INT_OFF)) {
    sub SF_CQ_TXTHRMODE_INT_OFF () {	0x;}
}
unless(defined(&SF_IDX_LO)) {
    sub SF_IDX_LO {
	local($x) = @_;
	eval q((($x) & 0x7ff));
    }
}
unless(defined(&SF_IDX_HI)) {
    sub SF_IDX_HI {
	local($x) = @_;
	eval q(((($x) >> 16) & 0x7ff));
    }
}
unless(defined(&SF_RXDMA_BURSTSIZE)) {
    sub SF_RXDMA_BURSTSIZE () {	0x7f;}
}
unless(defined(&SF_RXDMA_FPTESTMODE)) {
    sub SF_RXDMA_FPTESTMODE () {	0x80;}
}
unless(defined(&SF_RXDMA_HIPRIOTHRESH)) {
    sub SF_RXDMA_HIPRIOTHRESH () {	0xf00;}
}
unless(defined(&SF_RXDMA_RXEARLYTHRESH)) {
    sub SF_RXDMA_RXEARLYTHRESH () {	0x1f000;}
}
unless(defined(&SF_RXDMA_DMACRC)) {
    sub SF_RXDMA_DMACRC () {	0x40000;}
}
unless(defined(&SF_RXDMA_USEBKUPQUEUE)) {
    sub SF_RXDMA_USEBKUPQUEUE () {	0x80000;}
}
unless(defined(&SF_RXDMA_QUEUEMODE)) {
    sub SF_RXDMA_QUEUEMODE () {	0x700000;}
}
unless(defined(&SF_RXDMA_RXCQ2_ON)) {
    sub SF_RXDMA_RXCQ2_ON () {	0x800000;}
}
unless(defined(&SF_RXDMA_CSUMMODE)) {
    sub SF_RXDMA_CSUMMODE () {	0x3000000;}
}
unless(defined(&SF_RXDMA_DMAPAUSEPKTS)) {
    sub SF_RXDMA_DMAPAUSEPKTS () {	0x4000000;}
}
unless(defined(&SF_RXDMA_DMACTLPKTS)) {
    sub SF_RXDMA_DMACTLPKTS () {	0x8000000;}
}
unless(defined(&SF_RXDMA_DMACRXERRPKTS)) {
    sub SF_RXDMA_DMACRXERRPKTS () {	0x10000000;}
}
unless(defined(&SF_RXDMA_DMABADPKTS)) {
    sub SF_RXDMA_DMABADPKTS () {	0x20000000;}
}
unless(defined(&SF_RXDMA_DMARUNTS)) {
    sub SF_RXDMA_DMARUNTS () {	0x40000000;}
}
unless(defined(&SF_RXDMA_REPORTBADPKTS)) {
    sub SF_RXDMA_REPORTBADPKTS () {	0x80000000;}
}
unless(defined(&SF_RXDQMODE_Q1ONLY)) {
    sub SF_RXDQMODE_Q1ONLY () {	0x100000;}
}
unless(defined(&SF_RXDQMODE_Q2_ON_FP)) {
    sub SF_RXDQMODE_Q2_ON_FP () {	0x200000;}
}
unless(defined(&SF_RXDQMODE_Q2_ON_SHORT)) {
    sub SF_RXDQMODE_Q2_ON_SHORT () {	0x300000;}
}
unless(defined(&SF_RXDQMODE_Q2_ON_PRIO)) {
    sub SF_RXDQMODE_Q2_ON_PRIO () {	0x400000;}
}
unless(defined(&SF_RXDQMODE_SPLITHDR)) {
    sub SF_RXDQMODE_SPLITHDR () {	0x500000;}
}
unless(defined(&SF_RXCSUMMODE_IGNORE)) {
    sub SF_RXCSUMMODE_IGNORE () {	0x;}
}
unless(defined(&SF_RXCSUMMODE_REJECT_BAD_TCP)) {
    sub SF_RXCSUMMODE_REJECT_BAD_TCP () {	0x1000000;}
}
unless(defined(&SF_RXCSUMMODE_REJECT_BAD_TCPUDP)) {
    sub SF_RXCSUMMODE_REJECT_BAD_TCPUDP () {	0x2000000;}
}
unless(defined(&SF_RXCSUMMODE_RSVD)) {
    sub SF_RXCSUMMODE_RSVD () {	0x3000000;}
}
unless(defined(&SF_RXDQCTL_MINDESCTHR)) {
    sub SF_RXDQCTL_MINDESCTHR () {	0x7f;}
}
unless(defined(&SF_RXDQCTL_Q1_WE)) {
    sub SF_RXDQCTL_Q1_WE () {	0x80;}
}
unless(defined(&SF_RXDQCTL_DESCSPACE)) {
    sub SF_RXDQCTL_DESCSPACE () {	0x700;}
}
unless(defined(&SF_RXDQCTL_64BITDADDR)) {
    sub SF_RXDQCTL_64BITDADDR () {	0x800;}
}
unless(defined(&SF_RXDQCTL_64BITBADDR)) {
    sub SF_RXDQCTL_64BITBADDR () {	0x1000;}
}
unless(defined(&SF_RXDQCTL_VARIABLE)) {
    sub SF_RXDQCTL_VARIABLE () {	0x2000;}
}
unless(defined(&SF_RXDQCTL_ENTRIES)) {
    sub SF_RXDQCTL_ENTRIES () {	0x4000;}
}
unless(defined(&SF_RXDQCTL_PREFETCH)) {
    sub SF_RXDQCTL_PREFETCH () {	0x8000;}
}
unless(defined(&SF_RXDQCTL_BUFLEN)) {
    sub SF_RXDQCTL_BUFLEN () {	0xffff0000;}
}
unless(defined(&SF_DESCSPACE_4BYTES)) {
    sub SF_DESCSPACE_4BYTES () {	0x;}
}
unless(defined(&SF_DESCSPACE_8BYTES)) {
    sub SF_DESCSPACE_8BYTES () {	0x100;}
}
unless(defined(&SF_DESCSPACE_16BYTES)) {
    sub SF_DESCSPACE_16BYTES () {	0x200;}
}
unless(defined(&SF_DESCSPACE_32BYTES)) {
    sub SF_DESCSPACE_32BYTES () {	0x300;}
}
unless(defined(&SF_DESCSPACE_64BYTES)) {
    sub SF_DESCSPACE_64BYTES () {	0x400;}
}
unless(defined(&SF_DESCSPACE_128_BYTES)) {
    sub SF_DESCSPACE_128_BYTES () {	0x500;}
}
unless(defined(&SF_RXDQ_PRODIDX)) {
    sub SF_RXDQ_PRODIDX () {	0x7ff;}
}
unless(defined(&SF_RXDQ_CONSIDX)) {
    sub SF_RXDQ_CONSIDX () {	0x7ff0000;}
}
unless(defined(&SF_RXFILT_PROMISC)) {
    sub SF_RXFILT_PROMISC () {	0x1;}
}
unless(defined(&SF_RXFILT_ALLMULTI)) {
    sub SF_RXFILT_ALLMULTI () {	0x2;}
}
unless(defined(&SF_RXFILT_BROAD)) {
    sub SF_RXFILT_BROAD () {	0x4;}
}
unless(defined(&SF_RXFILT_HASHPRIO)) {
    sub SF_RXFILT_HASHPRIO () {	0x8;}
}
unless(defined(&SF_RXFILT_HASHMODE)) {
    sub SF_RXFILT_HASHMODE () {	0x30;}
}
unless(defined(&SF_RXFILT_PERFMODE)) {
    sub SF_RXFILT_PERFMODE () {	0xc0;}
}
unless(defined(&SF_RXFILT_VLANMODE)) {
    sub SF_RXFILT_VLANMODE () {	0x300;}
}
unless(defined(&SF_RXFILT_WAKEMODE)) {
    sub SF_RXFILT_WAKEMODE () {	0xc00;}
}
unless(defined(&SF_RXFILT_MULTI_NOBROAD)) {
    sub SF_RXFILT_MULTI_NOBROAD () {	0x1000;}
}
unless(defined(&SF_RXFILT_MIN_VLANPRIO)) {
    sub SF_RXFILT_MIN_VLANPRIO () {	0xe000;}
}
unless(defined(&SF_RXFILT_PEFECTPRIO)) {
    sub SF_RXFILT_PEFECTPRIO () {	0xffff0000;}
}
unless(defined(&SF_HASHMODE_OFF)) {
    sub SF_HASHMODE_OFF () {	0x;}
}
unless(defined(&SF_HASHMODE_WITHVLAN)) {
    sub SF_HASHMODE_WITHVLAN () {	0x10;}
}
unless(defined(&SF_HASHMODE_ANYVLAN)) {
    sub SF_HASHMODE_ANYVLAN () {	0x20;}
}
unless(defined(&SF_HASHMODE_ANY)) {
    sub SF_HASHMODE_ANY () {	0x30;}
}
unless(defined(&SF_PERFMODE_OFF)) {
    sub SF_PERFMODE_OFF () {	0x;}
}
unless(defined(&SF_PERFMODE_NORMAL)) {
    sub SF_PERFMODE_NORMAL () {	0x40;}
}
unless(defined(&SF_PERFMODE_INVERSE)) {
    sub SF_PERFMODE_INVERSE () {	0x80;}
}
unless(defined(&SF_PERFMODE_VLAN)) {
    sub SF_PERFMODE_VLAN () {	0xc0;}
}
unless(defined(&SF_VLANMODE_OFF)) {
    sub SF_VLANMODE_OFF () {	0x;}
}
unless(defined(&SF_VLANMODE_NOSTRIP)) {
    sub SF_VLANMODE_NOSTRIP () {	0x100;}
}
unless(defined(&SF_VLANMODE_STRIP)) {
    sub SF_VLANMODE_STRIP () {	0x200;}
}
unless(defined(&SF_VLANMODE_RSVD)) {
    sub SF_VLANMODE_RSVD () {	0x300;}
}
unless(defined(&SF_WAKEMODE_OFF)) {
    sub SF_WAKEMODE_OFF () {	0x;}
}
unless(defined(&SF_WAKEMODE_FILTER)) {
    sub SF_WAKEMODE_FILTER () {	0x400;}
}
unless(defined(&SF_WAKEMODE_FP)) {
    sub SF_WAKEMODE_FP () {	0x800;}
}
unless(defined(&SF_WAKEMODE_HIPRIO)) {
    sub SF_WAKEMODE_HIPRIO () {	0xc00;}
}
unless(defined(&SF_PCI_TARGSTAT)) {
    sub SF_PCI_TARGSTAT () {	0x100;}
}
unless(defined(&SF_PCI_MASTSTAT1)) {
    sub SF_PCI_MASTSTAT1 () {	0x104;}
}
unless(defined(&SF_PCI_MASTSTAT2)) {
    sub SF_PCI_MASTSTAT2 () {	0x108;}
}
unless(defined(&SF_PCI_DMAHOSTADDR_LO)) {
    sub SF_PCI_DMAHOSTADDR_LO () {	0x10c;}
}
unless(defined(&SF_BAC_DMADIAG0)) {
    sub SF_BAC_DMADIAG0 () {	0x110;}
}
unless(defined(&SF_BAC_DMADIAG1)) {
    sub SF_BAC_DMADIAG1 () {	0x114;}
}
unless(defined(&SF_BAC_DMADIAG2)) {
    sub SF_BAC_DMADIAG2 () {	0x118;}
}
unless(defined(&SF_BAC_DMADIAG3)) {
    sub SF_BAC_DMADIAG3 () {	0x11c;}
}
unless(defined(&SF_PAR0)) {
    sub SF_PAR0 () {	0x120;}
}
unless(defined(&SF_PAR1)) {
    sub SF_PAR1 () {	0x124;}
}
unless(defined(&SF_PCICB_FUNCEVENT)) {
    sub SF_PCICB_FUNCEVENT () {	0x130;}
}
unless(defined(&SF_PCICB_FUNCEVENT_MASK)) {
    sub SF_PCICB_FUNCEVENT_MASK () {	0x134;}
}
unless(defined(&SF_PCICB_FUNCSTATE)) {
    sub SF_PCICB_FUNCSTATE () {	0x138;}
}
unless(defined(&SF_PCICB_FUNCFORCE)) {
    sub SF_PCICB_FUNCFORCE () {	0x13c;}
}
unless(defined(&SF_EEADDR_BASE)) {
    sub SF_EEADDR_BASE () {	0x1000;}
}
unless(defined(&SF_EEADDR_MAX)) {
    sub SF_EEADDR_MAX () {	0x1fff;}
}
unless(defined(&SF_EE_NODEADDR)) {
    sub SF_EE_NODEADDR () {	14;}
}
unless(defined(&SF_MIIADDR_BASE)) {
    sub SF_MIIADDR_BASE () {	0x2000;}
}
unless(defined(&SF_MIIADDR_MAX)) {
    sub SF_MIIADDR_MAX () {	0x3fff;}
}
unless(defined(&SF_MII_BLOCKS)) {
    sub SF_MII_BLOCKS () {	32;}
}
unless(defined(&SF_MII_DATAVALID)) {
    sub SF_MII_DATAVALID () {	0x80000000;}
}
unless(defined(&SF_MII_BUSY)) {
    sub SF_MII_BUSY () {	0x40000000;}
}
unless(defined(&SF_MII_DATAPORT)) {
    sub SF_MII_DATAPORT () {	0xffff;}
}
unless(defined(&SF_PHY_REG)) {
    sub SF_PHY_REG {
	local($phy, $reg) = @_;
	eval q(( &SF_MIIADDR_BASE + ($phy *  &SF_MII_BLOCKS * $sizeof{ &u_int32_t}) + ($reg * $sizeof{ &u_int32_t})));
    }
}
unless(defined(&SF_TESTMODE)) {
    sub SF_TESTMODE () {	0x4000;}
}
unless(defined(&SF_RX_FRAMEPROC_CTL)) {
    sub SF_RX_FRAMEPROC_CTL () {	0x4004;}
}
unless(defined(&SF_TX_FRAMEPROC_CTL)) {
    sub SF_TX_FRAMEPROC_CTL () {	0x4008;}
}
unless(defined(&SF_MACCFG_1)) {
    sub SF_MACCFG_1 () {	0x5000;}
}
unless(defined(&SF_MACCFG_2)) {
    sub SF_MACCFG_2 () {	0x5004;}
}
unless(defined(&SF_BKTOBKIPG)) {
    sub SF_BKTOBKIPG () {	0x5008;}
}
unless(defined(&SF_NONBKTOBKIPG)) {
    sub SF_NONBKTOBKIPG () {	0x500c;}
}
unless(defined(&SF_COLRETRY)) {
    sub SF_COLRETRY () {	0x5010;}
}
unless(defined(&SF_MAXLEN)) {
    sub SF_MAXLEN () {	0x5014;}
}
unless(defined(&SF_TXNIBBLECNT)) {
    sub SF_TXNIBBLECNT () {	0x5018;}
}
unless(defined(&SF_TXBYTECNT)) {
    sub SF_TXBYTECNT () {	0x501c;}
}
unless(defined(&SF_RETXCNT)) {
    sub SF_RETXCNT () {	0x5020;}
}
unless(defined(&SF_RANDNUM)) {
    sub SF_RANDNUM () {	0x5024;}
}
unless(defined(&SF_RANDNUM_MASK)) {
    sub SF_RANDNUM_MASK () {	0x5028;}
}
unless(defined(&SF_TOTALTXCNT)) {
    sub SF_TOTALTXCNT () {	0x5034;}
}
unless(defined(&SF_RXBYTECNT)) {
    sub SF_RXBYTECNT () {	0x5040;}
}
unless(defined(&SF_TXPAUSETIMER)) {
    sub SF_TXPAUSETIMER () {	0x5060;}
}
unless(defined(&SF_VLANTYPE)) {
    sub SF_VLANTYPE () {	0x5064;}
}
unless(defined(&SF_MIISTATUS)) {
    sub SF_MIISTATUS () {	0x5070;}
}
unless(defined(&SF_MACCFG1_HUGEFRAMES)) {
    sub SF_MACCFG1_HUGEFRAMES () {	0x1;}
}
unless(defined(&SF_MACCFG1_FULLDUPLEX)) {
    sub SF_MACCFG1_FULLDUPLEX () {	0x2;}
}
unless(defined(&SF_MACCFG1_AUTOPAD)) {
    sub SF_MACCFG1_AUTOPAD () {	0x4;}
}
unless(defined(&SF_MACCFG1_HDJAM)) {
    sub SF_MACCFG1_HDJAM () {	0x8;}
}
unless(defined(&SF_MACCFG1_DELAYCRC)) {
    sub SF_MACCFG1_DELAYCRC () {	0x10;}
}
unless(defined(&SF_MACCFG1_NOBACKOFF)) {
    sub SF_MACCFG1_NOBACKOFF () {	0x20;}
}
unless(defined(&SF_MACCFG1_LENGTHCHECK)) {
    sub SF_MACCFG1_LENGTHCHECK () {	0x40;}
}
unless(defined(&SF_MACCFG1_PUREPREAMBLE)) {
    sub SF_MACCFG1_PUREPREAMBLE () {	0x80;}
}
unless(defined(&SF_MACCFG1_PASSALLRX)) {
    sub SF_MACCFG1_PASSALLRX () {	0x100;}
}
unless(defined(&SF_MACCFG1_PREAM_DETCNT)) {
    sub SF_MACCFG1_PREAM_DETCNT () {	0x200;}
}
unless(defined(&SF_MACCFG1_RX_FLOWENB)) {
    sub SF_MACCFG1_RX_FLOWENB () {	0x400;}
}
unless(defined(&SF_MACCFG1_TX_FLOWENB)) {
    sub SF_MACCFG1_TX_FLOWENB () {	0x800;}
}
unless(defined(&SF_MACCFG1_TESTMODE)) {
    sub SF_MACCFG1_TESTMODE () {	0x3000;}
}
unless(defined(&SF_MACCFG1_MIILOOPBK)) {
    sub SF_MACCFG1_MIILOOPBK () {	0x4000;}
}
unless(defined(&SF_MACCFG1_SOFTRESET)) {
    sub SF_MACCFG1_SOFTRESET () {	0x8000;}
}
unless(defined(&SF_IPGT_FDX)) {
    sub SF_IPGT_FDX () {	0x15;}
}
unless(defined(&SF_IPGT_HDX)) {
    sub SF_IPGT_HDX () {	0x11;}
}
unless(defined(&SF_RXFILT_PERFECT_BASE)) {
    sub SF_RXFILT_PERFECT_BASE () {	0x6000;}
}
unless(defined(&SF_RXFILT_PERFECT_MAX)) {
    sub SF_RXFILT_PERFECT_MAX () {	0x60ff;}
}
unless(defined(&SF_RXFILT_PERFECT_SKIP)) {
    sub SF_RXFILT_PERFECT_SKIP () {	0x10;}
}
unless(defined(&SF_RXFILT_PERFECT_CNT)) {
    sub SF_RXFILT_PERFECT_CNT () {	0x10;}
}
unless(defined(&SF_RXFILT_HASH_BASE)) {
    sub SF_RXFILT_HASH_BASE () {	0x6100;}
}
unless(defined(&SF_RXFILT_HASH_MAX)) {
    sub SF_RXFILT_HASH_MAX () {	0x62ff;}
}
unless(defined(&SF_RXFILT_HASH_SKIP)) {
    sub SF_RXFILT_HASH_SKIP () {	0x10;}
}
unless(defined(&SF_RXFILT_HASH_CNT)) {
    sub SF_RXFILT_HASH_CNT () {	0x1f;}
}
unless(defined(&SF_RXFILT_HASH_ADDROFF)) {
    sub SF_RXFILT_HASH_ADDROFF () {	0x;}
}
unless(defined(&SF_RXFILT_HASH_PRIOOFF)) {
    sub SF_RXFILT_HASH_PRIOOFF () {	0x4;}
}
unless(defined(&SF_RXFILT_HASH_VLANOFF)) {
    sub SF_RXFILT_HASH_VLANOFF () {	0x8;}
}
unless(defined(&SF_STATS_BASE)) {
    sub SF_STATS_BASE () {	0x7000;}
}
unless(defined(&SF_STATS_END)) {
    sub SF_STATS_END () {	0x7fff;}
}
unless(defined(&SF_RX_MINSPACING)) {
    sub SF_RX_MINSPACING () {	8;}
}
unless(defined(&SF_RX_DLIST_CNT)) {
    sub SF_RX_DLIST_CNT () {	256;}
}
unless(defined(&SF_RX_CLIST_CNT)) {
    sub SF_RX_CLIST_CNT () {	1024;}
}
unless(defined(&SF_RX_HOSTADDR)) {
    sub SF_RX_HOSTADDR {
	local($x) = @_;
	eval q(((($x) >> 2) & 0x3fffffff));
    }
}
if(defined(&__i386__)) {
}
if(defined(&__i386__)) {
}
unless(defined(&SF_RXSTAT1_QUEUE)) {
    sub SF_RXSTAT1_QUEUE () {	0x1;}
}
unless(defined(&SF_RXSTAT1_FIFOFULL)) {
    sub SF_RXSTAT1_FIFOFULL () {	0x2;}
}
unless(defined(&SF_RXSTAT1_OK)) {
    sub SF_RXSTAT1_OK () {	0x4;}
}
unless(defined(&SF_RXSTAT2_FRAMETYPE)) {
    sub SF_RXSTAT2_FRAMETYPE () {	0x7;}
}
unless(defined(&SF_RXSTAT2_UDP)) {
    sub SF_RXSTAT2_UDP () {	0x8;}
}
unless(defined(&SF_RXSTAT2_TCP)) {
    sub SF_RXSTAT2_TCP () {	0x10;}
}
unless(defined(&SF_RXSTAT2_FRAG)) {
    sub SF_RXSTAT2_FRAG () {	0x20;}
}
unless(defined(&SF_RXSTAT2_PCSUM_OK)) {
    sub SF_RXSTAT2_PCSUM_OK () {	0x40;}
}
unless(defined(&SF_RXSTAT2_CSUM_BAD)) {
    sub SF_RXSTAT2_CSUM_BAD () {	0x80;}
}
unless(defined(&SF_RXSTAT2_CSUM_OK)) {
    sub SF_RXSTAT2_CSUM_OK () {	0x100;}
}
unless(defined(&SF_RXSTAT2_VLAN)) {
    sub SF_RXSTAT2_VLAN () {	0x200;}
}
unless(defined(&SF_RXSTAT2_BADRXCODE)) {
    sub SF_RXSTAT2_BADRXCODE () {	0x400;}
}
unless(defined(&SF_RXSTAT2_DRIBBLE)) {
    sub SF_RXSTAT2_DRIBBLE () {	0x800;}
}
unless(defined(&SF_RXSTAT2_ISL_CRCERR)) {
    sub SF_RXSTAT2_ISL_CRCERR () {	0x1000;}
}
unless(defined(&SF_RXSTAT2_CRCERR)) {
    sub SF_RXSTAT2_CRCERR () {	0x2000;}
}
unless(defined(&SF_RXSTAT2_HASH)) {
    sub SF_RXSTAT2_HASH () {	0x4000;}
}
unless(defined(&SF_RXSTAT2_PERFECT)) {
    sub SF_RXSTAT2_PERFECT () {	0x8000;}
}
unless(defined(&SF_RXSTAT3_TRAILER)) {
    sub SF_RXSTAT3_TRAILER () {	0x1;}
}
unless(defined(&SF_RXSTAT3_HEADER)) {
    sub SF_RXSTAT3_HEADER () {	0x2;}
}
unless(defined(&SF_RXSTAT3_CONTROL)) {
    sub SF_RXSTAT3_CONTROL () {	0x4;}
}
unless(defined(&SF_RXSTAT3_PAUSE)) {
    sub SF_RXSTAT3_PAUSE () {	0x8;}
}
unless(defined(&SF_RXSTAT3_ISL)) {
    sub SF_RXSTAT3_ISL () {	0x10;}
}
unless(defined(&SF_TX_BUFDESC_ID)) {
    sub SF_TX_BUFDESC_ID () {	0xb;}
}
unless(defined(&SF_MAXFRAGS)) {
    sub SF_MAXFRAGS () {	14;}
}
unless(defined(&SF_TX_MINSPACING)) {
    sub SF_TX_MINSPACING () {	128;}
}
unless(defined(&SF_TX_DLIST_CNT)) {
    sub SF_TX_DLIST_CNT () {	128;}
}
unless(defined(&SF_TX_DLIST_SIZE)) {
    sub SF_TX_DLIST_SIZE () {	16384;}
}
unless(defined(&SF_TX_SKIPLEN)) {
    sub SF_TX_SKIPLEN () {	1;}
}
unless(defined(&SF_TX_CLIST_CNT)) {
    sub SF_TX_CLIST_CNT () {	1024;}
}
if(defined(&__i386__)) {
}
if(defined(&__i386__)) {
}
if(defined(&__i386__)) {
}
if(defined(&__i386__)) {
}
unless(defined(&SF_TXCMPTYPE_DMA)) {
    sub SF_TXCMPTYPE_DMA () {	0x4;}
}
unless(defined(&SF_TXCMPTYPE_TX)) {
    sub SF_TXCMPTYPE_TX () {	0x5;}
}
unless(defined(&SF_TXSTAT_CRCERR)) {
    sub SF_TXSTAT_CRCERR () {	0x1;}
}
unless(defined(&SF_TXSTAT_LENCHECKERR)) {
    sub SF_TXSTAT_LENCHECKERR () {	0x2;}
}
unless(defined(&SF_TXSTAT_LENRANGEERR)) {
    sub SF_TXSTAT_LENRANGEERR () {	0x4;}
}
unless(defined(&SF_TXSTAT_TX_OK)) {
    sub SF_TXSTAT_TX_OK () {	0x8;}
}
unless(defined(&SF_TXSTAT_TX_DEFERED)) {
    sub SF_TXSTAT_TX_DEFERED () {	0x10;}
}
unless(defined(&SF_TXSTAT_EXCESS_DEFER)) {
    sub SF_TXSTAT_EXCESS_DEFER () {	0x20;}
}
unless(defined(&SF_TXSTAT_EXCESS_COLL)) {
    sub SF_TXSTAT_EXCESS_COLL () {	0x40;}
}
unless(defined(&SF_TXSTAT_LATE_COLL)) {
    sub SF_TXSTAT_LATE_COLL () {	0x80;}
}
unless(defined(&SF_TXSTAT_TOOBIG)) {
    sub SF_TXSTAT_TOOBIG () {	0x100;}
}
unless(defined(&SF_TXSTAT_TX_UNDERRUN)) {
    sub SF_TXSTAT_TX_UNDERRUN () {	0x200;}
}
unless(defined(&SF_TXSTAT_CTLFRAME_OK)) {
    sub SF_TXSTAT_CTLFRAME_OK () {	0x400;}
}
unless(defined(&SF_TXSTAT_PAUSEFRAME_OK)) {
    sub SF_TXSTAT_PAUSEFRAME_OK () {	0x800;}
}
unless(defined(&SF_TXSTAT_PAUSED)) {
    sub SF_TXSTAT_PAUSED () {	0x1000;}
}
unless(defined(&CSR_WRITE_4)) {
    sub CSR_WRITE_4 {
	local($sc, $reg, $val) = @_;
	eval q( &bus_space_write_4( ($sc->{sf_btag}),  ($sc->{sf_bhandle}), $reg, $val));
    }
}
unless(defined(&CSR_READ_4)) {
    sub CSR_READ_4 {
	local($sc, $reg) = @_;
	eval q( &bus_space_read_4( ($sc->{sf_btag}),  ($sc->{sf_bhandle}), $reg));
    }
}
unless(defined(&CSR_READ_1)) {
    sub CSR_READ_1 {
	local($sc, $reg) = @_;
	eval q( &bus_space_read_1( ($sc->{sf_btag}),  ($sc->{sf_bhandle}), $reg));
    }
}
unless(defined(&SF_INC)) {
    sub SF_INC {
	local($x, $y) = @_;
	eval q(($x) = ($x + 1) % $y);
    }
}
if(defined(&notdef)) {
}
unless(defined(&SF_TIMEOUT)) {
    sub SF_TIMEOUT () {	1000;}
}
if(defined(&__alpha__)) {
    undef(&vtophys) if defined(&vtophys);
    eval 'sub vtophys {
        local($va) = @_;
	    eval q( &alpha_XXX_dmamap(( &vaddr_t)$va));
    }' unless defined(&vtophys);
}
1;
