c573e654b7
- Temporary fix a bug of Intel ACPI CA core code. - Add OS layer ACPI mutex support. This can be disabled by specifying option ACPI_NO_SEMAPHORES. - Add ACPI threading support. Now that we have a dedicate taskqueue for ACPI tasks and more ACPI task threads can be created by specifying option ACPI_MAX_THREADS. - Change acpi_EvaluateIntoBuffer() behavior slightly to reuse given caller's buffer unless AE_BUFFER_OVERFLOW occurs. Also CM battery's evaluations were changed to use acpi_EvaluateIntoBuffer(). - Add new utility function acpi_ConvertBufferToInteger(). - Add simple locking for CM battery and temperature updating. - Fix a minor problem on EC locking. - Make the thermal zone polling rate to be changeable. - Change minor things on AcpiOsSignal(); in ACPI_SIGNAL_FATAL case, entering Debugger is easier to investigate the problem rather than panic.
67 lines
2.5 KiB
Makefile
67 lines
2.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/dev/acpica \
|
|
${.CURDIR}/../../pci \
|
|
${.CURDIR}/../../dev/acpica \
|
|
${.CURDIR}/../../dev/acpica/Osd \
|
|
${.CURDIR}/../../${MACHINE_ARCH}/acpica
|
|
|
|
KMOD= acpi
|
|
|
|
# ACPI CA sources
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica
|
|
SRCS+= dsfield.c dsmethod.c dsmthdat.c dsobject.c dsopcode.c dsutils.c
|
|
SRCS+= dswexec.c dswload.c dswscope.c dswstate.c evevent.c evmisc.c evregion.c
|
|
SRCS+= evrgnini.c evsci.c evxface.c evxfevnt.c evxfregn.c exconfig.c exconvrt.c
|
|
SRCS+= excreate.c exdump.c exfield.c exfldio.c exmisc.c exmutex.c exnames.c
|
|
SRCS+= exoparg1.c exoparg2.c exoparg3.c exoparg6.c exprep.c exregion.c
|
|
SRCS+= exresnte.c exresolv.c exresop.c
|
|
SRCS+= exstore.c exstoren.c exstorob.c exsystem.c exutils.c hwacpi.c
|
|
SRCS+= hwgpe.c hwregs.c hwsleep.c hwtimer.c nsaccess.c nsalloc.c nsdump.c
|
|
SRCS+= nseval.c nsinit.c nsload.c nsnames.c nsobject.c nssearch.c nsutils.c
|
|
SRCS+= nswalk.c nsxfname.c nsxfobj.c psargs.c psfind.c psopcode.c psparse.c
|
|
SRCS+= psscope.c pstree.c psutils.c pswalk.c psxface.c rsaddr.c rscalc.c
|
|
SRCS+= rscreate.c rsdump.c rsio.c rsirq.c rslist.c rsmemory.c rsmisc.c
|
|
SRCS+= rsutils.c rsxface.c tbconvrt.c tbget.c tbinstal.c tbutils.c tbxface.c
|
|
SRCS+= tbxfroot.c utalloc.c utclib.c utcopy.c utdebug.c utdelete.c uteval.c
|
|
SRCS+= utglobal.c utinit.c utmath.c utmisc.c utobject.c utxface.c
|
|
|
|
# OSD layer
|
|
SRCS+= acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c acpi_cpu.c
|
|
SRCS+= acpi_ec.c acpi_lid.c acpi_pcib.c acpi_powerprofile.c
|
|
SRCS+= acpi_powerres.c acpi_resource.c acpi_thermal.c acpi_timer.c
|
|
SRCS+= acpica_support.c
|
|
SRCS+= OsdDebug.c
|
|
SRCS+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c
|
|
SRCS+= OsdStream.c OsdSynch.c OsdEnvironment.c
|
|
SRCS+= opt_acpi.h opt_ddb.h
|
|
SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h
|
|
.if ACPI_NO_SEMAPHORES
|
|
CFLAGS+=-DACPI_NO_SEMAPHORES
|
|
.endif
|
|
.if ACPI_MAX_THREADS
|
|
CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
|
|
.endif
|
|
|
|
# Debugging support
|
|
.if ACPI_DEBUG
|
|
CFLAGS+=-DACPI_DEBUG
|
|
SRCS+= dbcmds.c dbdisasm.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
|
|
SRCS+= dbinput.c dbstats.c dbutils.c dbxface.c
|
|
opt_ddb.h: Makefile
|
|
echo '#define DDB 1' >opt_ddb.h
|
|
.else
|
|
opt_ddb.h: Makefile
|
|
echo '' >opt_ddb.h
|
|
.endif
|
|
|
|
# Machine-specific code such as sleep/wakeup
|
|
SRCS+= acpi_machdep.c acpi_wakecode.h acpi_wakeup.c
|
|
CLEANFILES+= acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin
|
|
|
|
acpi_wakecode.h: acpi_wakecode.S
|
|
${MAKE} -f ${.CURDIR}/../../${MACHINE_ARCH}/acpica/Makefile \
|
|
MAKESRCPATH=${.CURDIR}/../../${MACHINE_ARCH}/acpica
|
|
|
|
.include <bsd.kmod.mk>
|