1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../contrib/dev/acpica \ 4 ${.CURDIR}/../../pci \ 5 ${.CURDIR}/../../dev/acpica \ 6 ${.CURDIR}/../../dev/acpica/Osd \ 7 ${.CURDIR}/../../${MACHINE_ARCH}/acpica 8 9KMOD= acpi 10 11# ACPI CA sources 12CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica 13SRCS+= dsfield.c dsmethod.c dsmthdat.c dsobject.c dsopcode.c dsutils.c 14SRCS+= dswexec.c dswload.c dswscope.c dswstate.c evevent.c evmisc.c evregion.c 15SRCS+= evrgnini.c evsci.c evxface.c evxfevnt.c evxfregn.c exconfig.c exconvrt.c 16SRCS+= excreate.c exdump.c exfield.c exfldio.c exmisc.c exmutex.c exnames.c 17SRCS+= exoparg1.c exoparg2.c exoparg3.c exoparg6.c exprep.c exregion.c 18SRCS+= exresnte.c exresolv.c exresop.c 19SRCS+= exstore.c exstoren.c exstorob.c exsystem.c exutils.c hwacpi.c 20SRCS+= hwgpe.c hwregs.c hwsleep.c hwtimer.c nsaccess.c nsalloc.c nsdump.c 21SRCS+= nseval.c nsinit.c nsload.c nsnames.c nsobject.c nssearch.c nsutils.c 22SRCS+= nswalk.c nsxfname.c nsxfobj.c psargs.c psfind.c psopcode.c psparse.c 23SRCS+= psscope.c pstree.c psutils.c pswalk.c psxface.c rsaddr.c rscalc.c 24SRCS+= rscreate.c rsdump.c rsio.c rsirq.c rslist.c rsmemory.c rsmisc.c 25SRCS+= rsutils.c rsxface.c tbconvrt.c tbget.c tbinstal.c tbutils.c tbxface.c 26SRCS+= tbxfroot.c utalloc.c utclib.c utcopy.c utdebug.c utdelete.c uteval.c 27SRCS+= utglobal.c utinit.c utmath.c utmisc.c utobject.c utxface.c 28 29# OSD layer 30SRCS+= acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c acpi_cpu.c 31SRCS+= acpi_ec.c acpi_lid.c acpi_pcib.c 32SRCS+= acpi_powerres.c acpi_resource.c acpi_thermal.c acpi_timer.c 33SRCS+= acpica_support.c 34SRCS+= OsdDebug.c 35SRCS+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c 36SRCS+= OsdStream.c OsdSynch.c OsdEnvironment.c 37SRCS+= opt_acpi.h opt_ddb.h 38SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h 39.if ACPI_NO_SEMAPHORES 40CFLAGS+=-DACPI_NO_SEMAPHORES 41.endif 42.if ACPI_MAX_THREADS 43CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS} 44.endif 45 46# Debugging support 47.if ACPI_DEBUG 48CFLAGS+=-DACPI_DEBUG 49SRCS+= dbcmds.c dbdisasm.c dbdisply.c dbexec.c dbfileio.c dbhistry.c 50SRCS+= dbinput.c dbstats.c dbutils.c dbxface.c 51opt_ddb.h: Makefile 52 echo '#define DDB 1' >opt_ddb.h 53.else 54opt_ddb.h: Makefile 55 echo '' >opt_ddb.h 56.endif 57 58# Machine-specific code such as sleep/wakeup 59SRCS+= acpi_machdep.c acpi_wakecode.h acpi_wakeup.c 60CLEANFILES+= acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin 61 62acpi_wakecode.h: acpi_wakecode.S 63 ${MAKE} -f ${.CURDIR}/../../${MACHINE_ARCH}/acpica/Makefile \ 64 MAKESRCPATH=${.CURDIR}/../../${MACHINE_ARCH}/acpica 65 66.include <bsd.kmod.mk> 67