require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_ACPI_ACPIREG_H_)) {
    eval 'sub _DEV_ACPI_ACPIREG_H_ () {1;}' unless defined(&_DEV_ACPI_ACPIREG_H_);
    eval 'sub RSDP_SIG () {"RSD PTR ";}' unless defined(&RSDP_SIG);
    eval 'sub rsdp_signaturee () { ($rsdp1->{signature});}' unless defined(&rsdp_signaturee);
    eval 'sub rsdp_checksum () { ($rsdp1->{checksum});}' unless defined(&rsdp_checksum);
    eval 'sub rsdp_oemid () { ($rsdp1->{oemid});}' unless defined(&rsdp_oemid);
    eval 'sub rsdp_revision () { ($rsdp1->{revision});}' unless defined(&rsdp_revision);
    eval 'sub rsdp_rsdt () { ($rsdp1->{rsdt});}' unless defined(&rsdp_rsdt);
    eval 'sub hdr_signature () { ($hdr->{signature});}' unless defined(&hdr_signature);
    eval 'sub hdr_length () { ($hdr->{length});}' unless defined(&hdr_length);
    eval 'sub hdr_revision () { ($hdr->{revision});}' unless defined(&hdr_revision);
    eval 'sub hdr_checksum () { ($hdr->{checksum});}' unless defined(&hdr_checksum);
    eval 'sub hdr_oemid () { ($hdr->{oemid});}' unless defined(&hdr_oemid);
    eval 'sub hdr_oemtableid () { ($hdr->{oemtableid});}' unless defined(&hdr_oemtableid);
    eval 'sub hdr_oemrevision () { ($hdr->{oemrevision});}' unless defined(&hdr_oemrevision);
    eval 'sub hdr_aslcompilerid () { ($hdr->{aslcompilerid});}' unless defined(&hdr_aslcompilerid);
    eval 'sub hdr_aslcompilerrevision () { ($hdr->{aslcompilerrevision});}' unless defined(&hdr_aslcompilerrevision);
    eval 'sub RSDT_SIG () {"RSDT";}' unless defined(&RSDT_SIG);
    eval 'sub XSDT_SIG () {"XSDT";}' unless defined(&XSDT_SIG);
    eval 'sub GAS_SYSTEM_MEMORY () {0;}' unless defined(&GAS_SYSTEM_MEMORY);
    eval 'sub GAS_SYSTEM_IOSPACE () {1;}' unless defined(&GAS_SYSTEM_IOSPACE);
    eval 'sub GAS_PCI_CFG_SPACE () {2;}' unless defined(&GAS_PCI_CFG_SPACE);
    eval 'sub GAS_EMBEDDED () {3;}' unless defined(&GAS_EMBEDDED);
    eval 'sub GAS_SMBUS () {4;}' unless defined(&GAS_SMBUS);
    eval 'sub GAS_FUNCTIONAL_FIXED () {127;}' unless defined(&GAS_FUNCTIONAL_FIXED);
    eval 'sub GAS_ACCESS_UNDEFINED () {0;}' unless defined(&GAS_ACCESS_UNDEFINED);
    eval 'sub GAS_ACCESS_BYTE () {1;}' unless defined(&GAS_ACCESS_BYTE);
    eval 'sub GAS_ACCESS_WORD () {2;}' unless defined(&GAS_ACCESS_WORD);
    eval 'sub GAS_ACCESS_DWORD () {3;}' unless defined(&GAS_ACCESS_DWORD);
    eval 'sub GAS_ACCESS_QWORD () {4;}' unless defined(&GAS_ACCESS_QWORD);
    eval 'sub FADT_SIG () {"FACP";}' unless defined(&FADT_SIG);
    eval 'sub FADT_INT_DUAL_PIC () {0;}' unless defined(&FADT_INT_DUAL_PIC);
    eval 'sub FADT_INT_MULTI_APIC () {1;}' unless defined(&FADT_INT_MULTI_APIC);
    eval 'sub FADT_PM_UNSPEC () {0;}' unless defined(&FADT_PM_UNSPEC);
    eval 'sub FADT_PM_DESKTOP () {1;}' unless defined(&FADT_PM_DESKTOP);
    eval 'sub FADT_PM_MOBILE () {2;}' unless defined(&FADT_PM_MOBILE);
    eval 'sub FADT_PM_WORKSTATION () {3;}' unless defined(&FADT_PM_WORKSTATION);
    eval 'sub FADT_PM_ENT_SERVER () {4;}' unless defined(&FADT_PM_ENT_SERVER);
    eval 'sub FADT_PM_SOHO_SERVER () {5;}' unless defined(&FADT_PM_SOHO_SERVER);
    eval 'sub FADT_PM_APPLIANCE () {6;}' unless defined(&FADT_PM_APPLIANCE);
    eval 'sub FADT_PM_PERF_SERVER () {7;}' unless defined(&FADT_PM_PERF_SERVER);
    eval 'sub FADT_LEGACY_DEVICES () {0x1;}' unless defined(&FADT_LEGACY_DEVICES);
    eval 'sub FADT_i8042 () {0x2;}' unless defined(&FADT_i8042);
    eval 'sub FADT_NO_VGA () {0x4;}' unless defined(&FADT_NO_VGA);
    eval 'sub FADT_WBINVD () {0x1;}' unless defined(&FADT_WBINVD);
    eval 'sub FADT_WBINVD_FLUSH () {0x2;}' unless defined(&FADT_WBINVD_FLUSH);
    eval 'sub FADT_PROC_C1 () {0x4;}' unless defined(&FADT_PROC_C1);
    eval 'sub FADT_P_LVL2_UP () {0x8;}' unless defined(&FADT_P_LVL2_UP);
    eval 'sub FADT_PWR_BUTTON () {0x10;}' unless defined(&FADT_PWR_BUTTON);
    eval 'sub FADT_SLP_BUTTON () {0x20;}' unless defined(&FADT_SLP_BUTTON);
    eval 'sub FADT_FIX_RTC () {0x40;}' unless defined(&FADT_FIX_RTC);
    eval 'sub FADT_RTC_S4 () {0x80;}' unless defined(&FADT_RTC_S4);
    eval 'sub FADT_TMR_VAL_EXT () {0x100;}' unless defined(&FADT_TMR_VAL_EXT);
    eval 'sub FADT_DCK_CAP () {0x200;}' unless defined(&FADT_DCK_CAP);
    eval 'sub FADT_RESET_REG_SUP () {0x400;}' unless defined(&FADT_RESET_REG_SUP);
    eval 'sub FADT_SEALED_CASE () {0x800;}' unless defined(&FADT_SEALED_CASE);
    eval 'sub FADT_HEADLESS () {0x1000;}' unless defined(&FADT_HEADLESS);
    eval 'sub FADT_CPU_SW_SLP () {0x2000;}' unless defined(&FADT_CPU_SW_SLP);
    eval 'sub FADT_PCI_EXP_WAK () {0x4000;}' unless defined(&FADT_PCI_EXP_WAK);
    eval 'sub FADT_USE_PLATFORM_CLOCK () {0x8000;}' unless defined(&FADT_USE_PLATFORM_CLOCK);
    eval 'sub FADT_S4_RTC_STS_VALID () {0x10000;}' unless defined(&FADT_S4_RTC_STS_VALID);
    eval 'sub FADT_REMOTE_POWER_ON_CAPABLE () {0x20000;}' unless defined(&FADT_REMOTE_POWER_ON_CAPABLE);
    eval 'sub FADT_FORCE_APIC_CLUSTER_MODEL () {0x40000;}' unless defined(&FADT_FORCE_APIC_CLUSTER_MODEL);
    eval 'sub FADT_FORCE_APIC_PHYS_DEST_MODE () {0x80000;}' unless defined(&FADT_FORCE_APIC_PHYS_DEST_MODE);
    eval 'sub DSDT_SIG () {"DSDT";}' unless defined(&DSDT_SIG);
    eval 'sub SSDT_SIG () {"SSDT";}' unless defined(&SSDT_SIG);
    eval 'sub PSDT_SIG () {"PSDT";}' unless defined(&PSDT_SIG);
    eval 'sub MADT_SIG () {"APIC";}' unless defined(&MADT_SIG);
    eval 'sub ACPI_APIC_PCAT_COMPAT () {0x1;}' unless defined(&ACPI_APIC_PCAT_COMPAT);
    eval 'sub ACPI_MADT_LAPIC () {0;}' unless defined(&ACPI_MADT_LAPIC);
    eval 'sub ACPI_PROC_ENABLE () {0x1;}' unless defined(&ACPI_PROC_ENABLE);
    eval 'sub ACPI_MADT_IOAPIC () {1;}' unless defined(&ACPI_MADT_IOAPIC);
    eval 'sub ACPI_MADT_OVERRIDE () {2;}' unless defined(&ACPI_MADT_OVERRIDE);
    eval 'sub ACPI_OVERRIDE_BUS_ISA () {0;}' unless defined(&ACPI_OVERRIDE_BUS_ISA);
    eval 'sub ACPI_OVERRIDE_POLARITY_BITS () {0x3;}' unless defined(&ACPI_OVERRIDE_POLARITY_BITS);
    eval 'sub ACPI_OVERRIDE_POLARITY_BUS () {0x;}' unless defined(&ACPI_OVERRIDE_POLARITY_BUS);
    eval 'sub ACPI_OVERRIDE_POLARITY_HIGH () {0x1;}' unless defined(&ACPI_OVERRIDE_POLARITY_HIGH);
    eval 'sub ACPI_OVERRIDE_POLARITY_LOW () {0x3;}' unless defined(&ACPI_OVERRIDE_POLARITY_LOW);
    eval 'sub ACPI_OVERRIDE_TRIGGER_BITS () {0xc;}' unless defined(&ACPI_OVERRIDE_TRIGGER_BITS);
    eval 'sub ACPI_OVERRIDE_TRIGGER_BUS () {0x;}' unless defined(&ACPI_OVERRIDE_TRIGGER_BUS);
    eval 'sub ACPI_OVERRIDE_TRIGGER_EDGE () {0x4;}' unless defined(&ACPI_OVERRIDE_TRIGGER_EDGE);
    eval 'sub ACPI_OVERRIDE_TRIGGER_LEVEL () {0xc;}' unless defined(&ACPI_OVERRIDE_TRIGGER_LEVEL);
    eval 'sub ACPI_MADT_NMI () {3;}' unless defined(&ACPI_MADT_NMI);
    eval 'sub ACPI_MADT_LAPIC_NMI () {4;}' unless defined(&ACPI_MADT_LAPIC_NMI);
    eval 'sub ACPI_MADT_LAPIC_OVERRIDE () {5;}' unless defined(&ACPI_MADT_LAPIC_OVERRIDE);
    eval 'sub ACPI_MADT_IO_SAPIC () {6;}' unless defined(&ACPI_MADT_IO_SAPIC);
    eval 'sub ACPI_MADT_LOCAL_SAPIC () {7;}' unless defined(&ACPI_MADT_LOCAL_SAPIC);
    eval 'sub ACPI_MADT_PLATFORM_INT () {8;}' unless defined(&ACPI_MADT_PLATFORM_INT);
    eval 'sub ACPI_MADT_PLATFORM_PMI () {1;}' unless defined(&ACPI_MADT_PLATFORM_PMI);
    eval 'sub ACPI_MADT_PLATFORM_INIT () {2;}' unless defined(&ACPI_MADT_PLATFORM_INIT);
    eval 'sub ACPI_MADT_PLATFORM_CORR_ERROR () {3;}' unless defined(&ACPI_MADT_PLATFORM_CORR_ERROR);
    eval 'sub ACPI_MADT_PLATFORM_CPEI () {0x1;}' unless defined(&ACPI_MADT_PLATFORM_CPEI);
    eval 'sub SBST_SIG () {"SBST";}' unless defined(&SBST_SIG);
    eval 'sub ECDT_SIG () {"ECDT";}' unless defined(&ECDT_SIG);
    eval 'sub SRAT_SIG () {"SRAT";}' unless defined(&SRAT_SIG);
    eval 'sub SLIT_SIG () {"SLIT";}' unless defined(&SLIT_SIG);
    eval 'sub HPET_SIG () {"HPET";}' unless defined(&HPET_SIG);
    eval 'sub FACS_SIG () {"FACS";}' unless defined(&FACS_SIG);
    eval 'sub FACS_LOCK_PENDING () {0x1;}' unless defined(&FACS_LOCK_PENDING);
    eval 'sub FACS_LOCK_OWNED () {0x2;}' unless defined(&FACS_LOCK_OWNED);
    eval 'sub FACS_S4BIOS_F () {0x1;}' unless defined(&FACS_S4BIOS_F);
    eval 'sub ACPI_FREQUENCY () {3579545;}' unless defined(&ACPI_FREQUENCY);
    eval 'sub ACPI_PCI_BUS {
        my($addr) = @_;
	    eval q(( &u_int16_t)(($addr) >> 48));
    }' unless defined(&ACPI_PCI_BUS);
    eval 'sub ACPI_PCI_DEV {
        my($addr) = @_;
	    eval q(( &u_int16_t)(($addr) >> 32));
    }' unless defined(&ACPI_PCI_DEV);
    eval 'sub ACPI_PCI_FN {
        my($addr) = @_;
	    eval q(( &u_int16_t)(($addr) >> 16));
    }' unless defined(&ACPI_PCI_FN);
    eval 'sub ACPI_PCI_REG {
        my($addr) = @_;
	    eval q(( &u_int16_t)($addr));
    }' unless defined(&ACPI_PCI_REG);
    eval 'sub ACPI_PCI_ADDR {
        my($b,$d,$f,$r) = @_;
	    eval q((( &u_int64_t)($b)<<48 | ( &u_int64_t)($d)<<32 | ($f)<<16 | ($r)));
    }' unless defined(&ACPI_PCI_ADDR);
    eval 'sub ACPI_PM1_STATUS () {0x;}' unless defined(&ACPI_PM1_STATUS);
    eval 'sub ACPI_PM1_TMR_STS () {0x1;}' unless defined(&ACPI_PM1_TMR_STS);
    eval 'sub ACPI_PM1_BM_STS () {0x10;}' unless defined(&ACPI_PM1_BM_STS);
    eval 'sub ACPI_PM1_GBL_STS () {0x20;}' unless defined(&ACPI_PM1_GBL_STS);
    eval 'sub ACPI_PM1_PWRBTN_STS () {0x100;}' unless defined(&ACPI_PM1_PWRBTN_STS);
    eval 'sub ACPI_PM1_SLPBTN_STS () {0x200;}' unless defined(&ACPI_PM1_SLPBTN_STS);
    eval 'sub ACPI_PM1_RTC_STS () {0x400;}' unless defined(&ACPI_PM1_RTC_STS);
    eval 'sub ACPI_PM1_PCIEXP_WAKE_STS () {0x4000;}' unless defined(&ACPI_PM1_PCIEXP_WAKE_STS);
    eval 'sub ACPI_PM1_WAK_STS () {0x8000;}' unless defined(&ACPI_PM1_WAK_STS);
    eval 'sub ACPI_PM1_ENABLE () {0x2;}' unless defined(&ACPI_PM1_ENABLE);
    eval 'sub ACPI_PM1_TMR_EN () {0x1;}' unless defined(&ACPI_PM1_TMR_EN);
    eval 'sub ACPI_PM1_GBL_EN () {0x20;}' unless defined(&ACPI_PM1_GBL_EN);
    eval 'sub ACPI_PM1_PWRBTN_EN () {0x100;}' unless defined(&ACPI_PM1_PWRBTN_EN);
    eval 'sub ACPI_PM1_SLPBTN_EN () {0x200;}' unless defined(&ACPI_PM1_SLPBTN_EN);
    eval 'sub ACPI_PM1_RTC_EN () {0x400;}' unless defined(&ACPI_PM1_RTC_EN);
    eval 'sub ACPI_PM1_PCIEXP_WAKE_DIS () {0x4000;}' unless defined(&ACPI_PM1_PCIEXP_WAKE_DIS);
    eval 'sub ACPI_PM1_CONTROL () {0x;}' unless defined(&ACPI_PM1_CONTROL);
    eval 'sub ACPI_PM1_SCI_EN () {0x1;}' unless defined(&ACPI_PM1_SCI_EN);
    eval 'sub ACPI_PM1_BM_RLD () {0x2;}' unless defined(&ACPI_PM1_BM_RLD);
    eval 'sub ACPI_PM1_GBL_RLS () {0x4;}' unless defined(&ACPI_PM1_GBL_RLS);
    eval 'sub ACPI_PM1_SLP_TYPX {
        my($x) = @_;
	    eval q((($x) << 10));
    }' unless defined(&ACPI_PM1_SLP_TYPX);
    eval 'sub ACPI_PM1_SLP_TYPX_MASK () {0x1c00;}' unless defined(&ACPI_PM1_SLP_TYPX_MASK);
    eval 'sub ACPI_PM1_SLP_EN () {0x2000;}' unless defined(&ACPI_PM1_SLP_EN);
    eval 'sub ACPI_STATE_S0 () {0;}' unless defined(&ACPI_STATE_S0);
    eval 'sub ACPI_STATE_S1 () {1;}' unless defined(&ACPI_STATE_S1);
    eval 'sub ACPI_STATE_S2 () {2;}' unless defined(&ACPI_STATE_S2);
    eval 'sub ACPI_STATE_S3 () {3;}' unless defined(&ACPI_STATE_S3);
    eval 'sub ACPI_STATE_S4 () {4;}' unless defined(&ACPI_STATE_S4);
    eval 'sub ACPI_STATE_S5 () {5;}' unless defined(&ACPI_STATE_S5);
    eval 'sub ACPI_DEV_TIM () {"PNP0100";}' unless defined(&ACPI_DEV_TIM);
    eval 'sub ACPI_DEV_ACPI () {"PNP0C08";}' unless defined(&ACPI_DEV_ACPI);
    eval 'sub ACPI_DEV_PCIB () {"PNP0A03";}' unless defined(&ACPI_DEV_PCIB);
    eval 'sub ACPI_DEV_GISAB () {"PNP0A05";}' unless defined(&ACPI_DEV_GISAB);
    eval 'sub ACPI_DEV_EIOB () {"PNP0A06";}' unless defined(&ACPI_DEV_EIOB);
    eval 'sub ACPI_DEV_MR () {"PNP0C02";}' unless defined(&ACPI_DEV_MR);
    eval 'sub ACPI_DEV_NPROC () {"PNP0C04";}' unless defined(&ACPI_DEV_NPROC);
    eval 'sub ACPI_DEV_CS () {"PNP0C08";}' unless defined(&ACPI_DEV_CS);
    eval 'sub ACPI_DEV_ECD () {"PNP0C09";}' unless defined(&ACPI_DEV_ECD);
    eval 'sub ACPI_DEV_CMB () {"PNP0C0A";}' unless defined(&ACPI_DEV_CMB);
    eval 'sub ACPI_DEV_FAN () {"PNP0C0B";}' unless defined(&ACPI_DEV_FAN);
    eval 'sub ACPI_DEV_PBD () {"PNP0C0C";}' unless defined(&ACPI_DEV_PBD);
    eval 'sub ACPI_DEV_LD () {"PNP0C0D";}' unless defined(&ACPI_DEV_LD);
    eval 'sub ACPI_DEV_SBD () {"PNP0C0E";}' unless defined(&ACPI_DEV_SBD);
    eval 'sub ACPI_DEV_PILD () {"PNP0C0F";}' unless defined(&ACPI_DEV_PILD);
    eval 'sub ACPI_DEV_MEMD () {"PNP0C80";}' unless defined(&ACPI_DEV_MEMD);
    eval 'sub ACPI_DEV_SHC () {"ACPI0001";}' unless defined(&ACPI_DEV_SHC);
    eval 'sub ACPI_DEV_SMS1 () {"ACPI0002";}' unless defined(&ACPI_DEV_SMS1);
    eval 'sub ACPI_DEV_AC () {"ACPI0003";}' unless defined(&ACPI_DEV_AC);
    eval 'sub ACPI_DEV_MD () {"ACPI0004";}' unless defined(&ACPI_DEV_MD);
    eval 'sub ACPI_DEV_SMS2 () {"ACPI0005";}' unless defined(&ACPI_DEV_SMS2);
    eval 'sub ACPI_DEV_GBD () {"ACPI0006";}' unless defined(&ACPI_DEV_GBD);
    eval 'sub ACPI_DEV_PD () {"ACPI0007";}' unless defined(&ACPI_DEV_PD);
    eval 'sub ACPI_DEV_ALSD () {"ACPI0008";}' unless defined(&ACPI_DEV_ALSD);
    eval 'sub ACPI_DEV_IOXA () {"ACPI0009";}' unless defined(&ACPI_DEV_IOXA);
    eval 'sub ACPI_DEV_IOA () {"ACPI000A";}' unless defined(&ACPI_DEV_IOA);
    eval 'sub ACPI_DEV_IOSA () {"ACPI000B";}' unless defined(&ACPI_DEV_IOSA);
    eval 'sub ACPI_DEV_THZ () {"THERMALZONE";}' unless defined(&ACPI_DEV_THZ);
    eval 'sub ACPI_DEV_FFB () {"FIXEDBUTTON";}' unless defined(&ACPI_DEV_FFB);
}
1;
