require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_PCI_ICHREG_H_)) {
    eval 'sub _DEV_PCI_ICHREG_H_ () {1;}' unless defined(&_DEV_PCI_ICHREG_H_);
    eval 'sub ICH_PMBASE () {0x40;}' unless defined(&ICH_PMBASE);
    eval 'sub ICH_ACPI_CNTL () {0x44;}' unless defined(&ICH_ACPI_CNTL);
    eval 'sub ICH_ACPI_CNTL_ACPI_EN () {(1<< 4);}' unless defined(&ICH_ACPI_CNTL_ACPI_EN);
    eval 'sub ICH_GEN_PMCON1 () {0xa0;}' unless defined(&ICH_GEN_PMCON1);
    eval 'sub ICH_GEN_PMCON1_SS_EN () {0x8;}' unless defined(&ICH_GEN_PMCON1_SS_EN);
    eval 'sub ICH_PM_TMR () {0x8;}' unless defined(&ICH_PM_TMR);
    eval 'sub ICH_PM_CNTL () {0x20;}' unless defined(&ICH_PM_CNTL);
    eval 'sub ICH_PM_ARB_DIS () {0x1;}' unless defined(&ICH_PM_ARB_DIS);
    eval 'sub ICH_PM_SS_CNTL () {0x50;}' unless defined(&ICH_PM_SS_CNTL);
    eval 'sub ICH_PM_SS_STATE_LOW () {0x1;}' unless defined(&ICH_PM_SS_STATE_LOW);
    eval 'sub ICH_PMSIZE () {128;}' unless defined(&ICH_PMSIZE);
    eval 'sub ICH_SMB_BASE () {0x20;}' unless defined(&ICH_SMB_BASE);
    eval 'sub ICH_SMB_HOSTC () {0x40;}' unless defined(&ICH_SMB_HOSTC);
    eval 'sub ICH_SMB_HOSTC_HSTEN () {(1<< 0);}' unless defined(&ICH_SMB_HOSTC_HSTEN);
    eval 'sub ICH_SMB_HOSTC_SMIEN () {(1<< 1);}' unless defined(&ICH_SMB_HOSTC_SMIEN);
    eval 'sub ICH_SMB_HOSTC_I2CEN () {(1<< 2);}' unless defined(&ICH_SMB_HOSTC_I2CEN);
    eval 'sub ICH_SMB_HS () {0x;}' unless defined(&ICH_SMB_HS);
    eval 'sub ICH_SMB_HS_BUSY () {(1<< 0);}' unless defined(&ICH_SMB_HS_BUSY);
    eval 'sub ICH_SMB_HS_INTR () {(1<< 1);}' unless defined(&ICH_SMB_HS_INTR);
    eval 'sub ICH_SMB_HS_DEVERR () {(1<< 2);}' unless defined(&ICH_SMB_HS_DEVERR);
    eval 'sub ICH_SMB_HS_BUSERR () {(1<< 3);}' unless defined(&ICH_SMB_HS_BUSERR);
    eval 'sub ICH_SMB_HS_FAILED () {(1<< 4);}' unless defined(&ICH_SMB_HS_FAILED);
    eval 'sub ICH_SMB_HS_SMBAL () {(1<< 5);}' unless defined(&ICH_SMB_HS_SMBAL);
    eval 'sub ICH_SMB_HS_INUSE () {(1<< 6);}' unless defined(&ICH_SMB_HS_INUSE);
    eval 'sub ICH_SMB_HS_BDONE () {(1<< 7);}' unless defined(&ICH_SMB_HS_BDONE);
    eval 'sub ICH_SMB_HS_BITS () {"\\020\\001BUSY\\002INTR\\003DEVERR\\004BUSERR\\005FAILED\\006SMBAL\\007INUSE\\010BDONE";}' unless defined(&ICH_SMB_HS_BITS);
    eval 'sub ICH_SMB_HC () {0x2;}' unless defined(&ICH_SMB_HC);
    eval 'sub ICH_SMB_HC_INTREN () {(1<< 0);}' unless defined(&ICH_SMB_HC_INTREN);
    eval 'sub ICH_SMB_HC_KILL () {(1<< 1);}' unless defined(&ICH_SMB_HC_KILL);
    eval 'sub ICH_SMB_HC_CMD_QUICK () {(0<< 2);}' unless defined(&ICH_SMB_HC_CMD_QUICK);
    eval 'sub ICH_SMB_HC_CMD_BYTE () {(1<< 2);}' unless defined(&ICH_SMB_HC_CMD_BYTE);
    eval 'sub ICH_SMB_HC_CMD_BDATA () {(2<< 2);}' unless defined(&ICH_SMB_HC_CMD_BDATA);
    eval 'sub ICH_SMB_HC_CMD_WDATA () {(3<< 2);}' unless defined(&ICH_SMB_HC_CMD_WDATA);
    eval 'sub ICH_SMB_HC_CMD_PCALL () {(4<< 2);}' unless defined(&ICH_SMB_HC_CMD_PCALL);
    eval 'sub ICH_SMB_HC_CMD_BLOCK () {(5<< 2);}' unless defined(&ICH_SMB_HC_CMD_BLOCK);
    eval 'sub ICH_SMB_HC_CMD_I2CREAD () {(6<< 2);}' unless defined(&ICH_SMB_HC_CMD_I2CREAD);
    eval 'sub ICH_SMB_HC_CMD_BLOCKP () {(7<< 2);}' unless defined(&ICH_SMB_HC_CMD_BLOCKP);
    eval 'sub ICH_SMB_HC_LASTB () {(1<< 5);}' unless defined(&ICH_SMB_HC_LASTB);
    eval 'sub ICH_SMB_HC_START () {(1<< 6);}' unless defined(&ICH_SMB_HC_START);
    eval 'sub ICH_SMB_HC_PECEN () {(1<< 7);}' unless defined(&ICH_SMB_HC_PECEN);
    eval 'sub ICH_SMB_HCMD () {0x3;}' unless defined(&ICH_SMB_HCMD);
    eval 'sub ICH_SMB_TXSLVA () {0x4;}' unless defined(&ICH_SMB_TXSLVA);
    eval 'sub ICH_SMB_TXSLVA_READ () {(1<< 0);}' unless defined(&ICH_SMB_TXSLVA_READ);
    eval 'sub ICH_SMB_TXSLVA_ADDR {
        my($x) = @_;
	    eval q(((($x) & 0x7f) << 1));
    }' unless defined(&ICH_SMB_TXSLVA_ADDR);
    eval 'sub ICH_SMB_HD0 () {0x5;}' unless defined(&ICH_SMB_HD0);
    eval 'sub ICH_SMB_HD1 () {0x6;}' unless defined(&ICH_SMB_HD1);
    eval 'sub ICH_SMB_HBDB () {0x7;}' unless defined(&ICH_SMB_HBDB);
    eval 'sub ICH_SMB_PEC () {0x8;}' unless defined(&ICH_SMB_PEC);
    eval 'sub ICH_SMB_RXSLVA () {0x9;}' unless defined(&ICH_SMB_RXSLVA);
    eval 'sub ICH_SMB_SD () {0xa;}' unless defined(&ICH_SMB_SD);
    eval 'sub ICH_SMB_SD_MSG0 {
        my($x) = @_;
	    eval q((($x) & 0xff));
    }' unless defined(&ICH_SMB_SD_MSG0);
    eval 'sub ICH_SMB_SD_MSG1 {
        my($x) = @_;
	    eval q((($x) >> 8));
    }' unless defined(&ICH_SMB_SD_MSG1);
    eval 'sub ICH_SMB_AS () {0xc;}' unless defined(&ICH_SMB_AS);
    eval 'sub ICH_SMB_AS_CRCE () {(1<< 0);}' unless defined(&ICH_SMB_AS_CRCE);
    eval 'sub ICH_SMB_AS_TCO () {(1<< 1);}' unless defined(&ICH_SMB_AS_TCO);
    eval 'sub ICH_SMB_AC () {0xd;}' unless defined(&ICH_SMB_AC);
    eval 'sub ICH_SMB_AC_AAC () {(1<< 0);}' unless defined(&ICH_SMB_AC_AAC);
    eval 'sub ICH_SMB_AC_E32B () {(1<< 1);}' unless defined(&ICH_SMB_AC_E32B);
    eval 'sub ICH_SMB_SMLPC () {0xe;}' unless defined(&ICH_SMB_SMLPC);
    eval 'sub ICH_SMB_SMLPC_LINK0 () {(1<< 0);}' unless defined(&ICH_SMB_SMLPC_LINK0);
    eval 'sub ICH_SMB_SMLPC_LINK1 () {(1<< 1);}' unless defined(&ICH_SMB_SMLPC_LINK1);
    eval 'sub ICH_SMB_SMLPC_CLKC () {(1<< 2);}' unless defined(&ICH_SMB_SMLPC_CLKC);
    eval 'sub ICH_SMB_SMBPC () {0xf;}' unless defined(&ICH_SMB_SMBPC);
    eval 'sub ICH_SMB_SMBPC_CLK () {(1<< 0);}' unless defined(&ICH_SMB_SMBPC_CLK);
    eval 'sub ICH_SMB_SMBPC_DATA () {(1<< 1);}' unless defined(&ICH_SMB_SMBPC_DATA);
    eval 'sub ICH_SMB_SMBPC_CLKC () {(1<< 2);}' unless defined(&ICH_SMB_SMBPC_CLKC);
    eval 'sub ICH_SMB_SS () {0x10;}' unless defined(&ICH_SMB_SS);
    eval 'sub ICH_SMB_SS_HN () {(1<< 0);}' unless defined(&ICH_SMB_SS_HN);
    eval 'sub ICH_SMB_SCMD () {0x11;}' unless defined(&ICH_SMB_SCMD);
    eval 'sub ICH_SMB_SCMD_INTREN () {(1<< 0);}' unless defined(&ICH_SMB_SCMD_INTREN);
    eval 'sub ICH_SMB_SCMD_WKEN () {(1<< 1);}' unless defined(&ICH_SMB_SCMD_WKEN);
    eval 'sub ICH_SMB_SCMD_SMBALDS () {(1<< 2);}' unless defined(&ICH_SMB_SCMD_SMBALDS);
    eval 'sub ICH_SMB_NDADDR () {0x14;}' unless defined(&ICH_SMB_NDADDR);
    eval 'sub ICH_SMB_NDADDR_ADDR {
        my($x) = @_;
	    eval q((($x) >> 1));
    }' unless defined(&ICH_SMB_NDADDR_ADDR);
    eval 'sub ICH_SMB_NDLOW () {0x16;}' unless defined(&ICH_SMB_NDLOW);
    eval 'sub ICH_SMB_NDHIGH () {0x17;}' unless defined(&ICH_SMB_NDHIGH);
    eval 'sub ICH_WDT_BASE () {0x10;}' unless defined(&ICH_WDT_BASE);
    eval 'sub ICH_WDT_CONF () {0x60;}' unless defined(&ICH_WDT_CONF);
    eval 'sub ICH_WDT_CONF_MASK () {0xffff;}' unless defined(&ICH_WDT_CONF_MASK);
    eval 'sub ICH_WDT_CONF_INT_MASK () {0x3;}' unless defined(&ICH_WDT_CONF_INT_MASK);
    eval 'sub ICH_WDT_CONF_INT_IRQ () {0x;}' unless defined(&ICH_WDT_CONF_INT_IRQ);
    eval 'sub ICH_WDT_CONF_INT_SMI () {0x2;}' unless defined(&ICH_WDT_CONF_INT_SMI);
    eval 'sub ICH_WDT_CONF_INT_DIS () {0x3;}' unless defined(&ICH_WDT_CONF_INT_DIS);
    eval 'sub ICH_WDT_CONF_PRE () {(1<< 2);}' unless defined(&ICH_WDT_CONF_PRE);
    eval 'sub ICH_WDT_CONF_OUTDIS () {(1<< 5);}' unless defined(&ICH_WDT_CONF_OUTDIS);
    eval 'sub ICH_WDT_LOCK () {0x68;}' unless defined(&ICH_WDT_LOCK);
    eval 'sub ICH_WDT_LOCK_LOCKED () {(1<< 0);}' unless defined(&ICH_WDT_LOCK_LOCKED);
    eval 'sub ICH_WDT_LOCK_ENABLED () {(1<< 1);}' unless defined(&ICH_WDT_LOCK_ENABLED);
    eval 'sub ICH_WDT_LOCK_FREERUN () {(1<< 2);}' unless defined(&ICH_WDT_LOCK_FREERUN);
    eval 'sub ICH_WDT_PRE1 () {0x;}' unless defined(&ICH_WDT_PRE1);
    eval 'sub ICH_WDT_PRE2 () {0x4;}' unless defined(&ICH_WDT_PRE2);
    eval 'sub ICH_WDT_GIS () {0x8;}' unless defined(&ICH_WDT_GIS);
    eval 'sub ICH_WDT_GIS_ACTIVE () {(1<< 0);}' unless defined(&ICH_WDT_GIS_ACTIVE);
    eval 'sub ICH_WDT_RELOAD () {0xc;}' unless defined(&ICH_WDT_RELOAD);
    eval 'sub ICH_WDT_RELOAD_RLD () {(1<< 8);}' unless defined(&ICH_WDT_RELOAD_RLD);
    eval 'sub ICH_WDT_RELOAD_TIMEOUT () {(1<< 9);}' unless defined(&ICH_WDT_RELOAD_TIMEOUT);
}
1;
