require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_MYX_REG_H)) {
    eval 'sub _MYX_REG_H () {1;}' unless defined(&_MYX_REG_H);
    eval 'sub MYXBAR0 () { &PCI_MAPREG_START;}' unless defined(&MYXBAR0);
    eval 'sub MYX_NRXDESC () {256;}' unless defined(&MYX_NRXDESC);
    eval 'sub MYX_NTXDESC_MIN () {2;}' unless defined(&MYX_NTXDESC_MIN);
    eval 'sub MYX_IRQCOALDELAY () {30;}' unless defined(&MYX_IRQCOALDELAY);
    eval 'sub MYX_IRQDEASSERTWAIT () {1;}' unless defined(&MYX_IRQDEASSERTWAIT);
    eval 'sub MYX_MAX_MTU_SMALL () {( &ETHERMTU +  &ETHER_HDR_LEN + 4);}' unless defined(&MYX_MAX_MTU_SMALL);
    eval 'sub MYX_MAX_MTU_BIG () { &PAGE_SIZE;}' unless defined(&MYX_MAX_MTU_BIG);
    eval 'sub MYXALIGN_CMD () {64;}' unless defined(&MYXALIGN_CMD);
    eval 'sub MYXALIGN_DATA () { &PAGE_SIZE;}' unless defined(&MYXALIGN_DATA);
    eval 'sub MYX_ADDRHIGH {
        my($_v) = @_;
	    eval q(((( &u_int64_t)$_v >> 32) & 0xffffffff));
    }' unless defined(&MYX_ADDRHIGH);
    eval 'sub MYX_ADDRLOW {
        my($_v) = @_;
	    eval q((( &u_int64_t)$_v & 0xffffffff));
    }' unless defined(&MYX_ADDRLOW);
    eval 'sub MYX_SRAM () {0x;}' unless defined(&MYX_SRAM);
    eval 'sub MYX_SRAM_SIZE () {0x1dff00;}' unless defined(&MYX_SRAM_SIZE);
    eval 'sub MYX_HEADER_POS () {0x3c;}' unless defined(&MYX_HEADER_POS);
    eval 'sub MYX_HEADER_POS_SIZE () {0x4;}' unless defined(&MYX_HEADER_POS_SIZE);
    eval 'sub MYX_FW () {0x100000;}' unless defined(&MYX_FW);
    eval 'sub MYX_FW_BOOT () {0x100008;}' unless defined(&MYX_FW_BOOT);
    eval 'sub MYX_EEPROM () {0x1dfe00;}' unless defined(&MYX_EEPROM);
    eval 'sub MYX_EEPROM_SIZE () {0x100;}' unless defined(&MYX_EEPROM_SIZE);
    eval 'sub MYX_BOOT () {0xfc0000;}' unless defined(&MYX_BOOT);
    eval 'sub MYX_RDMA () {0xfc01c0;}' unless defined(&MYX_RDMA);
    eval 'sub MYX_CMD () {0xf80000;}' unless defined(&MYX_CMD);
    eval 'sub MYXFW_ALIGNED () {"myx-eth_z8e";}' unless defined(&MYXFW_ALIGNED);
    eval 'sub MYXFW_UNALIGNED () {"myx-ethp_z8e";}' unless defined(&MYXFW_UNALIGNED);
    eval 'sub MYXFW_TYPE_ETH () {0x45544820;}' unless defined(&MYXFW_TYPE_ETH);
    eval 'sub MYXFW_VER () {"1.4.";}' unless defined(&MYXFW_VER);
    eval 'sub MYXFW_MIN_LEN () {( &MYX_HEADER_POS +  &MYX_HEADER_POS_SIZE);}' unless defined(&MYXFW_MIN_LEN);
    eval 'sub MYXRDMA_ON () {1;}' unless defined(&MYXRDMA_ON);
    eval 'sub MYXRDMA_OFF () {0;}' unless defined(&MYXRDMA_OFF);
    eval 'sub MYXSTS_LINKDOWN () {0;}' unless defined(&MYXSTS_LINKDOWN);
    eval 'sub MYXSTS_LINKUP () {1;}' unless defined(&MYXSTS_LINKUP);
    eval 'sub MYXSTS_LINKMYRINET () {2;}' unless defined(&MYXSTS_LINKMYRINET);
    eval 'sub MYXSTS_LINKUNKNOWN () {3;}' unless defined(&MYXSTS_LINKUNKNOWN);
    eval 'sub MYXSTS_RDMAON () {1;}' unless defined(&MYXSTS_RDMAON);
    eval 'sub MYXSTS_RDMAOFF () {0;}' unless defined(&MYXSTS_RDMAOFF);
    eval 'sub MYXTXD_FLAGS_SMALL () {(1<<0);}' unless defined(&MYXTXD_FLAGS_SMALL);
    eval 'sub MYXTXD_FLAGS_FIRST () {(1<<1);}' unless defined(&MYXTXD_FLAGS_FIRST);
    eval 'sub MYXTXD_FLAGS_ALIGN_ODD () {(1<<2);}' unless defined(&MYXTXD_FLAGS_ALIGN_ODD);
    eval 'sub MYXTXD_FLAGS_CKSUM () {(1<<3);}' unless defined(&MYXTXD_FLAGS_CKSUM);
    eval 'sub MYXTXD_FLAGS_NO_TSO () {(1<<4);}' unless defined(&MYXTXD_FLAGS_NO_TSO);
    eval 'sub MYXTXD_FLAGS_TSO_HDR () {(1<<0);}' unless defined(&MYXTXD_FLAGS_TSO_HDR);
    eval 'sub MYXTXD_FLAGS_TSO_LAST () {(1<<3);}' unless defined(&MYXTXD_FLAGS_TSO_LAST);
    eval 'sub MYXTXD_FLAGS_TSO_CHOP () {(1<<4);}' unless defined(&MYXTXD_FLAGS_TSO_CHOP);
    eval 'sub MYXTXD_FLAGS_TSO_PLD () {(1<<5);}' unless defined(&MYXTXD_FLAGS_TSO_PLD);
    eval("sub MYXCMD_NONE () { 0; }") unless defined(&MYXCMD_NONE);
    eval("sub MYXCMD_RESET () { 1; }") unless defined(&MYXCMD_RESET);
    eval("sub MYXCMD_GET_VERSION () { 2; }") unless defined(&MYXCMD_GET_VERSION);
    eval("sub MYXCMD_SET_INTRQDMA () { 3; }") unless defined(&MYXCMD_SET_INTRQDMA);
    eval("sub MYXCMD_SET_BIGBUFSZ () { 4; }") unless defined(&MYXCMD_SET_BIGBUFSZ);
    eval("sub MYXCMD_SET_SMALLBUFSZ () { 5; }") unless defined(&MYXCMD_SET_SMALLBUFSZ);
    eval("sub MYXCMD_GET_TXRINGOFF () { 6; }") unless defined(&MYXCMD_GET_TXRINGOFF);
    eval("sub MYXCMD_GET_RXSMALLRINGOFF () { 7; }") unless defined(&MYXCMD_GET_RXSMALLRINGOFF);
    eval("sub MYXCMD_GET_RXBIGRINGOFF () { 8; }") unless defined(&MYXCMD_GET_RXBIGRINGOFF);
    eval("sub MYXCMD_GET_INTRACKOFF () { 9; }") unless defined(&MYXCMD_GET_INTRACKOFF);
    eval("sub MYXCMD_GET_INTRDEASSERTOFF () { 10; }") unless defined(&MYXCMD_GET_INTRDEASSERTOFF);
    eval("sub MYXCMD_GET_TXRINGSZ () { 11; }") unless defined(&MYXCMD_GET_TXRINGSZ);
    eval("sub MYXCMD_GET_RXRINGSZ () { 12; }") unless defined(&MYXCMD_GET_RXRINGSZ);
    eval("sub MYXCMD_SET_INTRQSZ () { 13; }") unless defined(&MYXCMD_SET_INTRQSZ);
    eval("sub MYXCMD_SET_IFUP () { 14; }") unless defined(&MYXCMD_SET_IFUP);
    eval("sub MYXCMD_SET_IFDOWN () { 15; }") unless defined(&MYXCMD_SET_IFDOWN);
    eval("sub MYXCMD_SET_MTU () { 16; }") unless defined(&MYXCMD_SET_MTU);
    eval("sub MYXCMD_GET_INTRCOALDELAYOFF () { 17; }") unless defined(&MYXCMD_GET_INTRCOALDELAYOFF);
    eval("sub MYXCMD_SET_STATSINTVL () { 18; }") unless defined(&MYXCMD_SET_STATSINTVL);
    eval("sub MYXCMD_SET_STATSDMA_OLD () { 19; }") unless defined(&MYXCMD_SET_STATSDMA_OLD);
    eval("sub MYXCMD_SET_PROMISC () { 20; }") unless defined(&MYXCMD_SET_PROMISC);
    eval("sub MYXCMD_UNSET_PROMISC () { 21; }") unless defined(&MYXCMD_UNSET_PROMISC);
    eval("sub MYXCMD_SET_LLADDR () { 22; }") unless defined(&MYXCMD_SET_LLADDR);
    eval("sub MYXCMD_SET_FC () { 23; }") unless defined(&MYXCMD_SET_FC);
    eval("sub MYXCMD_UNSET_FC () { 24; }") unless defined(&MYXCMD_UNSET_FC);
    eval("sub MYXCMD_FC_DEFAULT () { MYXCMD_SET_FC; }") unless defined(&MYXCMD_FC_DEFAULT);
    eval("sub MYXCMD_DMA_TEST () { 25; }") unless defined(&MYXCMD_DMA_TEST);
    eval("sub MYXCMD_SET_ALLMULTI () { 26; }") unless defined(&MYXCMD_SET_ALLMULTI);
    eval("sub MYXCMD_UNSET_ALLMULTI () { 27; }") unless defined(&MYXCMD_UNSET_ALLMULTI);
    eval("sub MYXCMD_SET_MCASTGROUP () { 28; }") unless defined(&MYXCMD_SET_MCASTGROUP);
    eval("sub MYXCMD_UNSET_MCASTGROUP () { 29; }") unless defined(&MYXCMD_UNSET_MCASTGROUP);
    eval("sub MYXCMD_UNSET_MCAST () { 30; }") unless defined(&MYXCMD_UNSET_MCAST);
    eval("sub MYXCMD_SET_STATSDMA () { 31; }") unless defined(&MYXCMD_SET_STATSDMA);
    eval("sub MYXCMD_UNALIGNED_DMA_TEST () { 32; }") unless defined(&MYXCMD_UNALIGNED_DMA_TEST);
    eval("sub MYXCMD_GET_UNALIGNED_STATUS () { 33; }") unless defined(&MYXCMD_GET_UNALIGNED_STATUS);
    eval("sub MYXCMD_MAX () { 34; }") unless defined(&MYXCMD_MAX);
    eval("sub MYXCMD_OK () { 0; }") unless defined(&MYXCMD_OK);
    eval("sub MYXCMD_UNKNOWN () { 1; }") unless defined(&MYXCMD_UNKNOWN);
    eval("sub MYXCMD_ERR_RANGE () { 2; }") unless defined(&MYXCMD_ERR_RANGE);
    eval("sub MYXCMD_ERR_BUSY () { 3; }") unless defined(&MYXCMD_ERR_BUSY);
    eval("sub MYXCMD_ERR_EMPTY () { 4; }") unless defined(&MYXCMD_ERR_EMPTY);
    eval("sub MYXCMD_ERR_CLOSED () { 5; }") unless defined(&MYXCMD_ERR_CLOSED);
    eval("sub MYXCMD_ERR_HASH () { 6; }") unless defined(&MYXCMD_ERR_HASH);
    eval("sub MYXCMD_ERR_BADPORT () { 7; }") unless defined(&MYXCMD_ERR_BADPORT);
    eval("sub MYXCMD_ERR_RES () { 8; }") unless defined(&MYXCMD_ERR_RES);
    eval("sub MYXCMD_ERR_MULTICAST () { 9; }") unless defined(&MYXCMD_ERR_MULTICAST);
    eval("sub MYXCMD_ERR_UNALIGNED () { 10; }") unless defined(&MYXCMD_ERR_UNALIGNED);
}
1;
