acpi/pstate: Fix the long standing P-State detection problem on Intel CPUs
[dragonfly.git] / sys / dev / acpica5 / Makefile
CommitLineData
5ed44076 1# $FreeBSD: src/sys/modules/acpi/acpi/Makefile,v 1.3 2004/01/08 16:38:32 njl Exp $
e1eeedd0
YT
2
3CONTRIBDIR= ${SYSDIR}/${ACPICA_DIR}
67b2a2c8
YT
4
5SYSDIR?= ${.CURDIR}/../..
ebfbd8eb 6.if ACPI_DEBUG_LOCKS || ACPI_DEBUG_MEMMAP || ACPI_DEBUG_CACHE
e1eeedd0
YT
7CFLAGS+= -I${.OBJDIR}/include
8.if ACPI_DEBUG_LOCKS
9CFLAGS+= -DACPI_DEBUG_LOCKS=1
10.endif
11.if ACPI_DEBUG_MEMMAP
12CFLAGS+= -DACPI_DEBUG_MEMMAP=1
13.endif
ebfbd8eb
YT
14.if ACPI_DEBUG_CACHE
15CFLAGS+= -DACPI_DEBUG_CACHE=1
16.endif
e1eeedd0
YT
17.endif
18
67b2a2c8
YT
19.include "Makefile.inc"
20
e1eeedd0
YT
21.PATH: ${.OBJDIR} \
22 ${.OBJDIR}/include \
23 ${SYSDIR}/${OSACPI_MD_DIR} \
0955fd91 24 ${SYSDIR}/platform/${MACHINE_PLATFORM}/isa \
f6571408
YT
25 ${SYSDIR}/bus/pci \
26 ${.CURDIR}/Osd \
27 ${.CURDIR} \
28 ${ACPICA_KERN_PATHS}
5ed44076
MD
29
30KMOD = acpi
31
32# ACPI CA sources
7b19b178
SW
33SRCS+= dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
34SRCS+= dbinput.c dbstats.c dbutils.c dbxface.c
29bac728 35SRCS+= dbmethod.c dbnames.c
7b19b178
SW
36SRCS+= dmbuffer.c dmnames.c dmobject.c dmopcode.c dmresrc.c dmresrcl.c
37SRCS+= dmresrcs.c dmutils.c dmwalk.c
5ed44076
MD
38SRCS+= dsfield.c dsinit.c dsmethod.c dsmthdat.c
39SRCS+= dsobject.c dsopcode.c dsutils.c dswexec.c dswload.c
29bac728 40SRCS+= dswscope.c dswstate.c dsargs.c dscontrol.c dswload2.c
4efc8147 41SRCS+= evevent.c evgpe.c evgpeblk.c evgpeinit.c evgpeutil.c evxfgpe.c
5ed44076
MD
42SRCS+= evmisc.c evregion.c evrgnini.c evsci.c evxface.c
43SRCS+= evxfevnt.c evxfregn.c exconfig.c exconvrt.c excreate.c
44SRCS+= exdump.c exfield.c exfldio.c exmisc.c exmutex.c
45SRCS+= exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c
46SRCS+= exprep.c exregion.c exresnte.c exresolv.c exresop.c
29bac728
MA
47SRCS+= exstore.c exstoren.c exstorob.c exsystem.c exutils.c exdebug.c
48SRCS+= hwacpi.c hwgpe.c hwregs.c hwsleep.c hwtimer.c hwvalid.c hwxface.c hwpci.c
49SRCS+= nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c nsrepair.c nsrepair2.c
da42c799 50SRCS+= nsload.c nsnames.c nsobject.c nsparse.c nssearch.c nspredef.c
5ed44076 51SRCS+= nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
e1eeedd0 52SRCS+= psargs.c psloop.c psopcode.c psparse.c psscope.c
5ed44076 53SRCS+= pstree.c psutils.c pswalk.c psxface.c
e1eeedd0 54SRCS+= rsaddr.c rscalc.c rscreate.c rsdump.c rsinfo.c rsio.c
5ed44076 55SRCS+= rsirq.c rslist.c rsmemory.c rsmisc.c rsutils.c
e1eeedd0
YT
56SRCS+= rsxface.c tbfadt.c tbfind.c tbinstal.c
57SRCS+= tbutils.c tbxface.c tbxfroot.c utalloc.c
da42c799 58SRCS+= utclib.c utcopy.c utdebug.c utdelete.c uteval.c utlock.c
e1eeedd0 59SRCS+= utglobal.c utinit.c utmath.c utmisc.c utmutex.c utobject.c
29bac728 60SRCS+= utresrc.c utstate.c utxface.c utdecode.c utids.c utosi.c utxferror.c
5ed44076
MD
61
62# OSD layer
63#
cc6e2b6e 64SRCS+= acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c
c3a2c0df 65SRCS+= acpi_cpu.c acpi_cpu_cstate.c acpi_cpu_pstate.c
5ed44076 66SRCS+= acpi_ec.c acpi_isab.c acpi_lid.c
e34b79bf
JS
67SRCS+= acpi_package.c
68# The PCI part of ACPI5 doesn't work with the current infrastructure
e20af2f4
AP
69SRCS+= acpi_pci.c acpi_pcib.c acpi_pcib_acpi.c acpi_pcib_pci.c
70SRCS+= acpi_pci_link.c
e34b79bf 71SRCS+= acpi_powerres.c acpi_resource.c acpi_thermal.c
bea6e278 72SRCS+= acpi_timer.c acpi_hpet.c acpi_if.c
5ed44076 73SRCS+= OsdDebug.c
c2fc6c5c 74SRCS+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c
5ed44076
MD
75SRCS+= OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c
76SRCS+= opt_acpi.h opt_bus.h opt_ddb.h
b4f6cb38 77SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h acpi_if.h acpi_wmi_if.h
676159d4 78MFILES = kern/device_if.m kern/bus_if.m bus/pci/pci_if.m bus/pci/pcib_if.m
b4f6cb38 79MFILES+= bus/isa/isa_if.m dev/acpica5/acpi_if.m dev/acpica5/acpi_wmi_if.m
5ed44076 80
5ed44076
MD
81.if ACPI_NO_SEMAPHORES
82CFLAGS+=-DACPI_NO_SEMAPHORES
83.endif
84.if ACPI_DEBUG
85CFLAGS+=-DACPI_DEBUG
5ed44076
MD
86opt_ddb.h: Makefile
87 echo "#define DDB 1" > ${.TARGET}
88.else
89opt_ddb.h: Makefile
90 echo -n > ${.TARGET}
91.endif
e1eeedd0
YT
92.if ACPI_USE_LOCAL_CACHE
93CFLAGS+= -DACPI_USE_LOCAL_CACHE
94SRCS+= utcache.c
95.else
96SRCS+= OsdCache.c
97.endif
5ed44076 98
7b46b972
SZ
99# Machine-specific code for P-State
100SRCS+= acpi_pstate_machdep.c
47cf4819
SZ
101# Machine-specific code for CPU
102SRCS+= acpi_cpu_machdep.c
5ed44076 103# Machine-specific code such as sleep/wakeup
e774ca6d 104SRCS+= acpi_machdep.c acpi_wakecode.h
01082ef8 105SRCS+= acpi_wakeup.c
b2b3ffcd 106.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
99e3d339
MD
107# APIC enumerators
108#SRCS+= madt.c
109SRCS+= pmtimer.c
49e48b8a 110.endif
5ed44076
MD
111CLEANFILES+= acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin ${DBSRC}
112CLEANFILES+= platform/acenv.h
113
114acpi_wakecode.h: acpi_wakecode.S
f6571408
YT
115 ${MAKE} -f ${SYSDIR}/${OSACPI_MD_DIR}/Makefile \
116 MAKESRCPATH=${SYSDIR}/${OSACPI_MD_DIR}
5ed44076 117
f2769fb5
SW
118SUBDIR= acpi_asus acpi_fujitsu acpi_panasonic acpi_sony acpi_thinkpad acpi_toshiba acpi_video aibs
119#SUBDIR+=acpi_hp
5ed44076 120
c34dd8ac 121.include <bsd.kmod.mk>