require '_h2ph_pre.ph';

unless(defined(&_EM_H_DEFINED_)) {
    eval 'sub _EM_H_DEFINED_ () {1;}' unless defined(&_EM_H_DEFINED_);
    require 'dev/pci/if_em_hw.ph';
    eval 'sub MAX_TXD () {256;}' unless defined(&MAX_TXD);
    eval 'sub MAX_RXD () {256;}' unless defined(&MAX_RXD);
    eval 'sub TX_CLEANUP_THRESHOLD () { &MAX_TXD / 8;}' unless defined(&TX_CLEANUP_THRESHOLD);
    eval 'sub TIDV () {128;}' unless defined(&TIDV);
    eval 'sub RIDV () {28;}' unless defined(&RIDV);
    eval 'sub DO_AUTO_NEG () {1;}' unless defined(&DO_AUTO_NEG);
    eval 'sub WAIT_FOR_AUTO_NEG_DEFAULT () {1;}' unless defined(&WAIT_FOR_AUTO_NEG_DEFAULT);
    eval 'sub AUTONEG_ADV_DEFAULT () {( &ADVERTISE_10_HALF |  &ADVERTISE_10_FULL |  &ADVERTISE_100_HALF |  &ADVERTISE_100_FULL |  &ADVERTISE_1000_FULL);}' unless defined(&AUTONEG_ADV_DEFAULT);
    eval 'sub EM_REPORT_TX_EARLY () {2;}' unless defined(&EM_REPORT_TX_EARLY);
    eval 'sub EM_CHECKSUM_FEATURES () {( &CSUM_TCP |  &CSUM_UDP);}' unless defined(&EM_CHECKSUM_FEATURES);
    eval 'sub EM_MAX_INTR () {3;}' unless defined(&EM_MAX_INTR);
    eval 'sub EM_TX_TIMEOUT () {5;}' unless defined(&EM_TX_TIMEOUT);
    eval 'sub EM_VENDOR_ID () {0x8086;}' unless defined(&EM_VENDOR_ID);
    eval 'sub EM_MMBA () {0x10;}' unless defined(&EM_MMBA);
    eval 'sub EM_ROUNDUP {
        local($size, $unit) = @_;
	    eval q(((($size) + ($unit) - 1) & ~(($unit) - 1)));
    }' unless defined(&EM_ROUNDUP);
    eval 'sub EM_JUMBO_PBA () {0x28;}' unless defined(&EM_JUMBO_PBA);
    eval 'sub EM_DEFAULT_PBA () {0x30;}' unless defined(&EM_DEFAULT_PBA);
    eval 'sub IOCTL_CMD_TYPE () {\'u_long\';}' unless defined(&IOCTL_CMD_TYPE);
    eval 'sub MAX_NUM_MULTICAST_ADDRESSES () {128;}' unless defined(&MAX_NUM_MULTICAST_ADDRESSES);
    eval 'sub PCI_ANY_ID () {(~0);}' unless defined(&PCI_ANY_ID);
    eval 'sub ETHER_ALIGN () {2;}' unless defined(&ETHER_ALIGN);
    eval 'sub QTAG_TYPE () {0x8100;}' unless defined(&QTAG_TYPE);
    eval 'sub DEBUG_INIT () {0;}' unless defined(&DEBUG_INIT);
    eval 'sub DEBUG_IOCTL () {0;}' unless defined(&DEBUG_IOCTL);
    eval 'sub DEBUG_HW () {0;}' unless defined(&DEBUG_HW);
    eval 'sub INIT_DEBUGOUT {
        local($S) = @_;
	    eval q( &if  &printf($S \\"\\\\n\\"));
    }' unless defined(&INIT_DEBUGOUT);
    eval 'sub INIT_DEBUGOUT1 {
        local($S, $A) = @_;
	    eval q( &if  &printf($S \\"\\\\n\\", $A));
    }' unless defined(&INIT_DEBUGOUT1);
    eval 'sub INIT_DEBUGOUT2 {
        local($S, $A, $B) = @_;
	    eval q( &if  &printf($S \\"\\\\n\\", $A, $B));
    }' unless defined(&INIT_DEBUGOUT2);
    eval 'sub IOCTL_DEBUGOUT {
        local($S) = @_;
	    eval q( &if  &printf($S \\"\\\\n\\"));
    }' unless defined(&IOCTL_DEBUGOUT);
    eval 'sub IOCTL_DEBUGOUT1 {
        local($S, $A) = @_;
	    eval q( &if  &printf($S \\"\\\\n\\", $A));
    }' unless defined(&IOCTL_DEBUGOUT1);
    eval 'sub IOCTL_DEBUGOUT2 {
        local($S, $A, $B) = @_;
	    eval q( &if  &printf($S \\"\\\\n\\", $A, $B));
    }' unless defined(&IOCTL_DEBUGOUT2);
    eval 'sub HW_DEBUGOUT {
        local($S) = @_;
	    eval q( &if  &printf($S \\"\\\\n\\"));
    }' unless defined(&HW_DEBUGOUT);
    eval 'sub HW_DEBUGOUT1 {
        local($S, $A) = @_;
	    eval q( &if  &printf($S \\"\\\\n\\", $A));
    }' unless defined(&HW_DEBUGOUT1);
    eval 'sub HW_DEBUGOUT2 {
        local($S, $A, $B) = @_;
	    eval q( &if  &printf($S \\"\\\\n\\", $A, $B));
    }' unless defined(&HW_DEBUGOUT2);
    eval 'sub EM_RXBUFFER_2048 () {2048;}' unless defined(&EM_RXBUFFER_2048);
    eval 'sub EM_RXBUFFER_4096 () {4096;}' unless defined(&EM_RXBUFFER_4096);
    eval 'sub EM_RXBUFFER_8192 () {8192;}' unless defined(&EM_RXBUFFER_8192);
    eval 'sub EM_RXBUFFER_16384 () {16384;}' unless defined(&EM_RXBUFFER_16384);
    eval("sub OFFLOAD_NONE () { 0; }") unless defined(&OFFLOAD_NONE);
    eval("sub OFFLOAD_TCP_IP () { 1; }") unless defined(&OFFLOAD_TCP_IP);
    eval("sub OFFLOAD_UDP_IP () { 2; }") unless defined(&OFFLOAD_UDP_IP);
    if(defined(&DBG_STATS)) {
    }
}
1;
