head	1.52;
access;
symbols
	RELENG_8_4:1.50.0.2
	RELENG_9_1_0_RELEASE:1.42.2.1.4.2
	RELENG_9_1:1.42.2.1.0.4
	RELENG_9_1_BP:1.42.2.1
	RELENG_8_3_0_RELEASE:1.23.2.5.4.1
	RELENG_8_3:1.23.2.5.0.4
	RELENG_8_3_BP:1.23.2.5
	RELENG_9_0_0_RELEASE:1.42.2.1.2.1
	RELENG_9_0:1.42.2.1.0.2
	RELENG_9_0_BP:1.42.2.1
	RELENG_9:1.42.0.2
	RELENG_9_BP:1.42
	RELENG_7_4_0_RELEASE:1.19.2.1.4.1
	RELENG_8_2_0_RELEASE:1.23.2.5.2.1
	RELENG_7_4:1.19.2.1.0.4
	RELENG_7_4_BP:1.19.2.1
	RELENG_8_2:1.23.2.5.0.2
	RELENG_8_2_BP:1.23.2.5
	RELENG_8_1_0_RELEASE:1.23.2.3.2.1
	RELENG_8_1:1.23.2.3.0.2
	RELENG_8_1_BP:1.23.2.3
	RELENG_7_3_0_RELEASE:1.19.2.1.2.1
	RELENG_7_3:1.19.2.1.0.2
	RELENG_7_3_BP:1.19.2.1
	RELENG_8_0_0_RELEASE:1.23.2.1.2.1
	RELENG_8_0:1.23.2.1.0.2
	RELENG_8_0_BP:1.23.2.1
	RELENG_8:1.23.0.2
	RELENG_8_BP:1.23
	RELENG_7_2_0_RELEASE:1.19.8.1
	RELENG_7_2:1.19.0.8
	RELENG_7_2_BP:1.19
	RELENG_7_1_0_RELEASE:1.19.6.1
	RELENG_6_4_0_RELEASE:1.11.2.4.4.1
	RELENG_7_1:1.19.0.6
	RELENG_7_1_BP:1.19
	RELENG_6_4:1.11.2.4.0.4
	RELENG_6_4_BP:1.11.2.4
	RELENG_7_0_0_RELEASE:1.19
	RELENG_6_3_0_RELEASE:1.11.2.4
	RELENG_7_0:1.19.0.4
	RELENG_7_0_BP:1.19
	RELENG_6_3:1.11.2.4.0.2
	RELENG_6_3_BP:1.11.2.4
	RELENG_7:1.19.0.2
	RELENG_7_BP:1.19
	RELENG_6_2_0_RELEASE:1.11.2.2
	RELENG_6_2:1.11.2.2.0.4
	RELENG_6_2_BP:1.11.2.2
	RELENG_5_5_0_RELEASE:1.8.2.2
	RELENG_5_5:1.8.2.2.0.2
	RELENG_5_5_BP:1.8.2.2
	RELENG_6_1_0_RELEASE:1.11.2.2
	RELENG_6_1:1.11.2.2.0.2
	RELENG_6_1_BP:1.11.2.2
	RELENG_6_0_0_RELEASE:1.11
	RELENG_6_0:1.11.0.4
	RELENG_6_0_BP:1.11
	RELENG_6:1.11.0.2
	RELENG_6_BP:1.11
	RELENG_5_4_0_RELEASE:1.8.2.1
	RELENG_5_4:1.8.2.1.0.2
	RELENG_5_4_BP:1.8.2.1
	RELENG_5_3_0_RELEASE:1.8
	RELENG_5_3:1.8.0.4
	RELENG_5_3_BP:1.8
	RELENG_5:1.8.0.2
	RELENG_5_BP:1.8;
locks; strict;
comment	@# @;


1.52
date	2013.05.21.00.36.48;	author svnexp;	state Exp;
branches;
next	1.51;

1.51
date	2013.04.20.00.38.15;	author svnexp;	state Exp;
branches;
next	1.50;

1.50
date	2013.02.16.00.42.05;	author svnexp;	state Exp;
branches
	1.50.2.1;
next	1.49;

1.49
date	2012.11.20.21.14.14;	author svnexp;	state Exp;
branches;
next	1.48;

1.48
date	2012.11.17.01.52.52;	author svnexp;	state Exp;
branches;
next	1.47;

1.47
date	2012.08.16.20.54.52;	author jkim;	state Exp;
branches;
next	1.46;

1.46
date	2012.07.11.23.18.35;	author jkim;	state Exp;
branches;
next	1.45;

1.45
date	2012.02.16.22.59.29;	author jkim;	state Exp;
branches;
next	1.44;

1.44
date	2012.01.11.23.06.37;	author jkim;	state Exp;
branches;
next	1.43;

1.43
date	2011.11.28.23.36.48;	author jkim;	state Exp;
branches;
next	1.42;

1.42
date	2011.04.15.18.34.27;	author jkim;	state Exp;
branches
	1.42.2.1;
next	1.41;

1.41
date	2011.02.12.01.03.15;	author jkim;	state Exp;
branches;
next	1.40;

1.40
date	2010.12.15.23.48.45;	author jkim;	state Exp;
branches;
next	1.39;

1.39
date	2010.11.12.21.11.49;	author jkim;	state Exp;
branches;
next	1.38;

1.38
date	2010.11.12.20.55.14;	author jkim;	state Exp;
branches;
next	1.37;

1.37
date	2010.11.10.01.29.56;	author jkim;	state Exp;
branches;
next	1.36;

1.36
date	2010.11.08.20.57.02;	author jhb;	state Exp;
branches;
next	1.35;

1.35
date	2010.10.14.23.31.58;	author jkim;	state Exp;
branches;
next	1.34;

1.34
date	2010.09.16.20.08.00;	author jkim;	state Exp;
branches;
next	1.33;

1.33
date	2010.08.23.06.13.29;	author imp;	state Exp;
branches;
next	1.32;

1.32
date	2010.08.06.23.11.19;	author jkim;	state Exp;
branches;
next	1.31;

1.31
date	2010.07.13.16.57.52;	author jkim;	state Exp;
branches;
next	1.30;

1.30
date	2010.07.12.21.08.35;	author jkim;	state Exp;
branches;
next	1.29;

1.29
date	2010.04.28.22.25.27;	author jkim;	state Exp;
branches;
next	1.28;

1.28
date	2010.03.08.19.40.31;	author jkim;	state Exp;
branches;
next	1.27;

1.27
date	2010.03.08.18.40.22;	author jkim;	state Exp;
branches;
next	1.26;

1.26
date	2009.11.16.21.53.56;	author jkim;	state Exp;
branches;
next	1.25;

1.25
date	2009.10.01.20.56.15;	author jkim;	state Exp;
branches;
next	1.24;

1.24
date	2009.09.11.22.49.34;	author jkim;	state Exp;
branches;
next	1.23;

1.23
date	2009.06.16.23.02.46;	author jkim;	state Exp;
branches
	1.23.2.1;
next	1.22;

1.22
date	2009.06.16.23.00.26;	author jkim;	state Exp;
branches;
next	1.21;

1.21
date	2009.06.05.18.44.36;	author jkim;	state Exp;
branches;
next	1.20;

1.20
date	2009.02.12.14.44.15;	author n_hibma;	state Exp;
branches;
next	1.19;

1.19
date	2007.09.24.16.59.06;	author njl;	state Exp;
branches
	1.19.2.1
	1.19.6.1
	1.19.8.1;
next	1.18;

1.18
date	2007.03.22.18.16.43;	author jkim;	state Exp;
branches;
next	1.17;

1.17
date	2006.12.18.05.54.50;	author takawata;	state Exp;
branches;
next	1.16;

1.16
date	2006.05.30.09.38.53;	author ru;	state Exp;
branches;
next	1.15;

1.15
date	2005.11.01.22.44.08;	author jkim;	state Exp;
branches;
next	1.14;

1.14
date	2005.10.31.21.40.40;	author phk;	state Exp;
branches;
next	1.13;

1.13
date	2005.10.23.00.22.02;	author njl;	state Exp;
branches;
next	1.12;

1.12
date	2005.10.14.23.30.06;	author yar;	state Exp;
branches;
next	1.11;

1.11
date	2005.05.09.07.26.16;	author marks;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	2005.04.22.09.53.03;	author iedowse;	state Exp;
branches;
next	1.9;

1.9
date	2005.02.24.20.48.06;	author njl;	state Exp;
branches;
next	1.8;

1.8
date	2004.07.01.04.14.55;	author marks;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	2004.06.30.04.47.31;	author njl;	state Exp;
branches;
next	1.6;

1.6
date	2004.06.29.18.59.00;	author njl;	state Exp;
branches;
next	1.5;

1.5
date	2004.04.21.02.16.07;	author njl;	state Exp;
branches;
next	1.4;

1.4
date	2004.02.28.19.51.44;	author njl;	state Exp;
branches;
next	1.3;

1.3
date	2004.01.08.16.38.32;	author njl;	state Exp;
branches;
next	1.2;

1.2
date	2003.12.29.09.15.48;	author bde;	state Exp;
branches;
next	1.1;

1.1
date	2003.12.24.03.49.38;	author njl;	state Exp;
branches;
next	;

1.50.2.1
date	2013.02.16.00.42.05;	author svnexp;	state dead;
branches;
next	1.50.2.2;

1.50.2.2
date	2013.03.28.13.05.18;	author svnexp;	state Exp;
branches;
next	;

1.42.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.42.2.1.2.1
	1.42.2.1.4.1;
next	1.42.2.2;

1.42.2.2
date	2012.11.17.11.37.16;	author svnexp;	state Exp;
branches;
next	;

1.42.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.42.2.1.2.2;

1.42.2.1.2.2
date	2012.11.17.08.37.12;	author svnexp;	state Exp;
branches;
next	;

1.42.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.42.2.1.4.2;

1.42.2.1.4.2
date	2012.11.17.08.48.03;	author svnexp;	state Exp;
branches;
next	;

1.23.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.23.2.1.2.1;
next	1.23.2.2;

1.23.2.2
date	2010.02.06.12.03.25;	author avg;	state Exp;
branches;
next	1.23.2.3;

1.23.2.3
date	2010.04.26.20.55.03;	author jkim;	state Exp;
branches
	1.23.2.3.2.1;
next	1.23.2.4;

1.23.2.4
date	2010.07.20.20.15.32;	author jkim;	state Exp;
branches;
next	1.23.2.5;

1.23.2.5
date	2010.11.19.14.26.45;	author avg;	state Exp;
branches
	1.23.2.5.2.1
	1.23.2.5.4.1;
next	1.23.2.6;

1.23.2.6
date	2012.11.17.10.36.55;	author svnexp;	state Exp;
branches;
next	;

1.23.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.23.2.3.2.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.23.2.5.2.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.23.2.5.4.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.23.2.5.4.2;

1.23.2.5.4.2
date	2012.11.17.08.25.32;	author svnexp;	state Exp;
branches;
next	;

1.19.2.1
date	2009.06.15.20.12.27;	author n_hibma;	state Exp;
branches
	1.19.2.1.2.1
	1.19.2.1.4.1;
next	1.19.2.2;

1.19.2.2
date	2012.11.17.08.06.43;	author svnexp;	state Exp;
branches;
next	;

1.19.2.1.2.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.19.2.1.4.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.19.2.1.4.2;

1.19.2.1.4.2
date	2012.11.17.08.17.26;	author svnexp;	state Exp;
branches;
next	;

1.19.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.19.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.11.2.1
date	2005.11.05.23.55.56;	author njl;	state Exp;
branches;
next	1.11.2.2;

1.11.2.2
date	2006.02.10.00.37.57;	author yar;	state Exp;
branches;
next	1.11.2.3;

1.11.2.3
date	2007.03.24.16.00.44;	author njl;	state Exp;
branches;
next	1.11.2.4;

1.11.2.4
date	2007.06.28.21.23.56;	author njl;	state Exp;
branches
	1.11.2.4.4.1;
next	1.11.2.5;

1.11.2.5
date	2012.11.17.07.44.14;	author svnexp;	state Exp;
branches;
next	;

1.11.2.4.4.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.8.2.1
date	2005.02.25.21.45.55;	author njl;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	2005.07.21.08.50.26;	author bruno;	state Exp;
branches;
next	;


desc
@@


1.52
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/250838
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/sys/modules/acpi/acpi/Makefile 250838 2013-05-20 23:52:49Z jkim $

.if !defined(FORCE_BUILD)
.error "The ACPI module is deprecated, set FORCE_BUILD to force it"
.endif

.if ${MACHINE_CPUARCH} == "ia64"
.error "ACPI can only be compiled into the kernel on the ia64 platform"
.endif

.if ${MACHINE} != "amd64" && ${MACHINE} != "i386"
.error "The ACPI module is only for amd64 and i386"
.endif

.PATH:	${.CURDIR}/../../../contrib/dev/acpica/components/debugger \
	${.CURDIR}/../../../contrib/dev/acpica/components/disassembler \
	${.CURDIR}/../../../contrib/dev/acpica/components/dispatcher \
	${.CURDIR}/../../../contrib/dev/acpica/components/events \
	${.CURDIR}/../../../contrib/dev/acpica/components/executer \
	${.CURDIR}/../../../contrib/dev/acpica/components/hardware \
	${.CURDIR}/../../../contrib/dev/acpica/components/namespace \
	${.CURDIR}/../../../contrib/dev/acpica/components/parser \
	${.CURDIR}/../../../contrib/dev/acpica/components/resources \
	${.CURDIR}/../../../contrib/dev/acpica/components/tables \
	${.CURDIR}/../../../contrib/dev/acpica/components/utilities \
	${.CURDIR}/../../../pci \
	${.CURDIR}/../../../dev/acpica \
	${.CURDIR}/../../../dev/acpica/Osd \
	${.CURDIR}/../../../${MACHINE_CPUARCH}/acpica \
	${.CURDIR}/../../../x86/acpica

KMOD=	acpi

# ACPI CA sources
SRCS=	dbcmds.c dbconvert.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
SRCS+=	dbinput.c dbmethod.c dbnames.c dbstats.c dbutils.c dbxface.c
SRCS+=	dmbuffer.c dmdeferred.c dmnames.c dmopcode.c dmobject.c dmresrc.c
SRCS+=	dmresrcl.c dmresrcl2.c dmresrcs.c dmutils.c dmwalk.c
SRCS+=	dsargs.c dscontrol.c dsfield.c dsinit.c dsmethod.c dsmthdat.c
SRCS+=	dsobject.c dsopcode.c dsutils.c dswexec.c dswload.c dswload2.c
SRCS+=	dswscope.c dswstate.c
SRCS+=	evevent.c evglock.c evgpe.c evgpeblk.c evgpeinit.c evgpeutil.c
SRCS+=	evhandler.c evmisc.c evregion.c evrgnini.c evsci.c evxface.c
SRCS+=	evxfevnt.c evxfgpe.c evxfregn.c
SRCS+=	exconfig.c exconvrt.c excreate.c exdebug.c exdump.c exfield.c
SRCS+=	exfldio.c exmisc.c exmutex.c exnames.c exoparg1.c exoparg2.c
SRCS+=	exoparg3.c exoparg6.c exprep.c exregion.c exresnte.c exresolv.c
SRCS+=	exresop.c exstore.c exstoren.c exstorob.c exsystem.c exutils.c
SRCS+=	hwacpi.c hwesleep.c hwgpe.c hwpci.c hwregs.c hwsleep.c hwtimer.c
SRCS+=	hwvalid.c hwxface.c hwxfsleep.c
SRCS+=	nsaccess.c nsalloc.c nsarguments.c nsconvert.c nsdump.c nseval.c
SRCS+=	nsinit.c nsload.c nsnames.c nsobject.c nsparse.c nspredef.c nsprepkg.c
SRCS+=	nsrepair.c nsrepair2.c nssearch.c nsutils.c nswalk.c nsxfeval.c
SRCS+=	nsxfname.c nsxfobj.c
SRCS+=	psargs.c psloop.c psobject.c psopcode.c psopinfo.c psparse.c
SRCS+=	psscope.c pstree.c psutils.c pswalk.c psxface.c
SRCS+=	rsaddr.c rscalc.c rscreate.c rsdump.c rsdumpinfo.c rsinfo.c rsio.c
SRCS+=	rsirq.c rslist.c rsmemory.c rsmisc.c rsserial.c rsutils.c rsxface.c
SRCS+=	tbfadt.c tbfind.c tbinstal.c tbprint.c tbutils.c tbxface.c tbxfload.c
SRCS+=	tbxfroot.c
SRCS+=	utaddress.c utalloc.c utbuffer.c utcache.c utcopy.c utdebug.c
SRCS+=	utdecode.c utdelete.c uterror.c uteval.c utexcep.c utglobal.c utids.c
SRCS+=	utinit.c utlock.c utmath.c utmisc.c utmutex.c utobject.c utosi.c
SRCS+=	utownerid.c utpredef.c utresrc.c utstate.c utstring.c utxface.c
SRCS+=	utxferror.c utxfinit.c
#SRCS+=	utxfmutex.c

# OSPM layer and core hardware drivers
SRCS+=	acpi.c acpi_button.c acpi_isab.c acpi_package.c acpi_pci.c acpi_pcib.c
SRCS+=	acpi_pcib_acpi.c acpi_pcib_pci.c acpi_powerres.c acpi_quirk.c
SRCS+=	acpi_resource.c acpi_timer.c acpi_pci_link.c acpi_thermal.c

# ACPI hardware drivers, mostly used for mobile systems.
SRCS+=	acpi_acad.c acpi_battery.c acpi_cmbat.c acpi_cpu.c acpi_ec.c
SRCS+=	acpi_hpet.c acpi_lid.c acpi_perf.c acpi_smbat.c acpi_throttle.c

# OSD layer
SRCS+=	OsdDebug.c
SRCS+=	OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c OsdStream.c
SRCS+=	OsdSynch.c OsdTable.c OsdEnvironment.c
SRCS+=	opt_acpi.h opt_bus.h opt_ddb.h acpi_if.h acpi_quirks.h bus_if.h
SRCS+=	cpufreq_if.h device_if.h isa_if.h pci_if.h pcib_if.h

# XXX ACPI should not depend on the following headers but this is currently
# needed for the build of assym.s.
# This obviously needs a better and more structural fix.
SRCS+=	opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h opt_hwpmc_hooks.h

.if !defined(KERNBUILDDIR)
.if KTR
CFLAGS+=-DKTR
.endif
.if SMP
CFLAGS+=-DSMP
.endif
.if ACPI_MAX_TASKS
CFLAGS+=-DACPI_MAX_TASKS=${ACPI_MAX_TASKS}
.endif
.if ACPI_MAX_THREADS
CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
.endif
.if ACPI_DEBUG
CFLAGS+=-DACPI_DEBUG
opt_ddb.h: Makefile
	echo "#define DDB 1" > ${.TARGET}
.else
opt_ddb.h: Makefile
	echo -n > ${.TARGET}
.endif
.endif

# Machine-specific code such as sleep/wakeup
SRCS+=	acpi_apm.c acpi_machdep.c acpi_wakecode.h acpi_wakedata.h acpi_wakeup.c
SRCS+=	assym.s madt.c
CLEANFILES+=acpi_wakecode.bin acpi_wakecode.h acpi_wakecode.o acpi_wakedata.h

SRCS+=	opt_global.h

.include <bsd.kmod.mk>

acpi_wakecode.o: acpi_wakecode.S assym.s
	${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} ${CLANG_NO_IAS} \
	    ${WERROR} ${.IMPSRC}
acpi_wakecode.bin: acpi_wakecode.o
	objcopy -S -O binary acpi_wakecode.o ${.TARGET}
acpi_wakecode.h: acpi_wakecode.bin
	file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > \
	    ${.TARGET}
acpi_wakedata.h: acpi_wakecode.o
	${NM} -n --defined-only acpi_wakecode.o | \
	    while read offset dummy what; do \
	    echo "#define	$${what}	0x$${offset}"; \
	    done > ${.TARGET}
@


1.51
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249663
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/acpi/acpi/Makefile 249663 2013-04-19 23:49:34Z jkim $
d35 1
a35 1
SRCS+=	dbcmds.c dbconvert.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
d59 7
a65 5
SRCS+=	tbfadt.c tbfind.c tbinstal.c tbutils.c tbxface.c tbxfload.c tbxfroot.c
SRCS+=	utaddress.c utalloc.c utcache.c utcopy.c utdebug.c utdecode.c
SRCS+=	utdelete.c uteval.c utexcep.c utglobal.c utids.c utinit.c utlock.c
SRCS+=	utmath.c utmisc.c utmutex.c utobject.c utosi.c utownerid.c utpredef.c
SRCS+=	utresrc.c utstate.c utstring.c utxface.c utxferror.c utxfinit.c
@


1.50
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/246849
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/acpi/acpi/Makefile 246849 2013-02-15 20:36:28Z jkim $
d51 4
a54 4
SRCS+=	nsaccess.c nsalloc.c nsconvert.c nsdump.c nseval.c nsinit.c nsload.c
SRCS+=	nsnames.c nsobject.c nsparse.c nspredef.c nsprepkg.c nsrepair.c
SRCS+=	nsrepair2.c nssearch.c nsutils.c nswalk.c nsxfeval.c nsxfname.c
SRCS+=	nsxfobj.c
d62 2
a63 2
SRCS+=	utmath.c utmisc.c utmutex.c utobject.c utosi.c utownerid.c utresrc.c
SRCS+=	utstate.c utstring.c utxface.c utxferror.c utxfinit.c
@


1.50.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:05:18 +0000
@
text
@d1 131
@


1.50.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 127
# $FreeBSD: releng/8.4/sys/modules/acpi/acpi/Makefile 215521 2010-11-19 14:26:45Z avg $

.if ${MACHINE_ARCH} == "ia64"
.error "ACPI can only be compiled into the kernel on the ia64 platform"
.endif

.if ${MACHINE} != "amd64" && ${MACHINE} != "i386"
.error "The ACPI module is only for amd64 and i386"
.endif

.PATH:	${.CURDIR}/../../../contrib/dev/acpica/debugger \
	${.CURDIR}/../../../contrib/dev/acpica/disassembler \
	${.CURDIR}/../../../contrib/dev/acpica/dispatcher \
	${.CURDIR}/../../../contrib/dev/acpica/events \
	${.CURDIR}/../../../contrib/dev/acpica/executer \
	${.CURDIR}/../../../contrib/dev/acpica/hardware \
	${.CURDIR}/../../../contrib/dev/acpica/namespace \
	${.CURDIR}/../../../contrib/dev/acpica/parser \
	${.CURDIR}/../../../contrib/dev/acpica/resources \
	${.CURDIR}/../../../contrib/dev/acpica/tables \
	${.CURDIR}/../../../contrib/dev/acpica/utilities \
	${.CURDIR}/../../../pci \
	${.CURDIR}/../../../dev/acpica \
	${.CURDIR}/../../../dev/acpica/Osd \
	${.CURDIR}/../../../${MACHINE_ARCH}/acpica

KMOD=	acpi

# ACPI CA sources
SRCS+=	dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c dbinput.c dbstats.c
SRCS+=	dbutils.c dbxface.c
SRCS+=	dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c
SRCS+=	dmresrcs.c dmutils.c dmwalk.c
SRCS+=	dsfield.c dsinit.c dsmethod.c dsmthdat.c dsobject.c dsopcode.c
SRCS+=	dsutils.c dswexec.c dswload.c dswscope.c dswstate.c
SRCS+=	evevent.c evgpe.c evgpeblk.c evgpeinit.c evgpeutil.c evmisc.c
SRCS+=	evregion.c evrgnini.c evsci.c evxface.c evxfevnt.c evxfregn.c
SRCS+=	exconfig.c exconvrt.c excreate.c exdebug.c exdump.c exfield.c
SRCS+=	exfldio.c exmisc.c exmutex.c exnames.c exoparg1.c exoparg2.c
SRCS+=	exoparg3.c exoparg6.c exprep.c exregion.c exresnte.c exresolv.c
SRCS+=	exresop.c exstore.c exstoren.c exstorob.c exsystem.c exutils.c
SRCS+=	hwacpi.c hwgpe.c hwpci.c hwregs.c hwsleep.c hwtimer.c hwvalid.c
SRCS+=	hwxface.c
SRCS+=	nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c nsload.c nsnames.c
SRCS+=	nsobject.c nsparse.c nspredef.c nsrepair.c nsrepair2.c nssearch.c
SRCS+=	nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
SRCS+=	psargs.c psloop.c psopcode.c psparse.c psscope.c pstree.c psutils.c
SRCS+=	pswalk.c psxface.c
SRCS+=	rsaddr.c rscalc.c rscreate.c rsdump.c rsinfo.c rsio.c rsirq.c rslist.c
SRCS+=	rsmemory.c rsmisc.c rsutils.c rsxface.c
SRCS+=	tbfadt.c tbfind.c tbinstal.c tbutils.c tbxface.c tbxfroot.c
SRCS+=	utalloc.c utcache.c utcopy.c utdebug.c utdelete.c uteval.c utglobal.c
SRCS+=	utids.c utinit.c utlock.c utmath.c utmisc.c utmutex.c utobject.c
SRCS+=	utosi.c utresrc.c utstate.c utxface.c utxferror.c

# OSPM layer and core hardware drivers
SRCS+=	acpi.c acpi_button.c acpi_isab.c acpi_package.c acpi_pci.c acpi_pcib.c
SRCS+=	acpi_pcib_acpi.c acpi_pcib_pci.c acpi_powerres.c acpi_quirk.c
SRCS+=	acpi_resource.c acpi_timer.c acpi_pci_link.c acpi_thermal.c

# ACPI hardware drivers, mostly used for mobile systems.
SRCS+=	acpi_acad.c acpi_battery.c acpi_cmbat.c acpi_cpu.c acpi_ec.c
SRCS+=	acpi_hpet.c acpi_lid.c acpi_perf.c acpi_smbat.c acpi_throttle.c

# OSD layer
SRCS+=	OsdDebug.c
SRCS+=	OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c OsdStream.c
SRCS+=	OsdSynch.c OsdTable.c OsdEnvironment.c
SRCS+=	opt_acpi.h opt_bus.h opt_ddb.h acpi_if.h acpi_quirks.h bus_if.h
SRCS+=	cpufreq_if.h device_if.h isa_if.h pci_if.h pcib_if.h

# XXX ACPI should not depend on the following headers but this is currently
# needed for the build of assym.s.
# This obviously needs a better and more structural fix.
SRCS+=	opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h opt_hwpmc_hooks.h

.if !defined(KERNBUILDDIR)
.if KTR
CFLAGS+=-DKTR
.endif
.if ACPI_MAX_TASKS
CFLAGS+=-DACPI_MAX_TASKS=${ACPI_MAX_TASKS}
.endif
.if ACPI_MAX_THREADS
CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
.endif
.if ACPI_DEBUG
CFLAGS+=-DACPI_DEBUG
opt_ddb.h: Makefile
	echo "#define DDB 1" > ${.TARGET}
.else
opt_ddb.h: Makefile
	echo -n > ${.TARGET}
.endif
.endif

# Machine-specific code such as sleep/wakeup
SRCS+=	acpi_machdep.c acpi_wakecode.h acpi_wakeup.c
SRCS+=	assym.s madt.c
CLEANFILES+=	acpi_wakecode.bin acpi_wakecode.h acpi_wakecode.o

.if ${MACHINE_ARCH} == "amd64"
.if !defined(KERNBUILDDIR)
CFLAGS+=-DSMP
.endif
SRCS+=	acpi_switch.S acpi_wakedata.h
CLEANFILES+=	acpi_wakedata.h
ASM_CFLAGS=	-x assembler-with-cpp -DLOCORE ${CFLAGS}
acpi_switch.o:	acpi_switch.S
	${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
acpi_wakecode.o: acpi_wakecode.S assym.s
	${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
acpi_wakecode.bin: acpi_wakecode.o
	objcopy -S -O binary acpi_wakecode.o ${.TARGET}
acpi_wakecode.h: acpi_wakecode.bin
	file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > \
	    ${.TARGET}
acpi_wakedata.h: acpi_wakecode.o
	nm -n --defined-only ${.ALLSRC} | while read offset dummy what; do \
	    echo "#define	$${what}	0x$${offset}"; done > ${.TARGET}
.else
acpi_wakecode.h: acpi_wakecode.S assym.s
	${MAKE} -f ${.CURDIR}/../../../${MACHINE_ARCH}/acpica/Makefile \
		MAKESRCPATH=${.CURDIR}/../../../${MACHINE_ARCH}/acpica
.endif

.include <bsd.kmod.mk>
@


1.49
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 243347
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r243347 | jkim | 2012-11-20 21:01:59 +0000 (Tue, 20 Nov 2012) | 2 lines
## SVN ##
## SVN ## Merge ACPICA 20121114.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/acpi/acpi/Makefile 243347 2012-11-20 21:01:59Z jkim $
d35 2
a36 2
SRCS+=	dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c dbinput.c dbmethod.c
SRCS+=	dbnames.c dbstats.c dbutils.c dbxface.c
d42 3
a44 2
SRCS+=	evevent.c evglock.c evgpe.c evgpeblk.c evgpeinit.c evgpeutil.c evmisc.c
SRCS+=	evregion.c evrgnini.c evsci.c evxface.c evxfevnt.c evxfgpe.c evxfregn.c
d51 8
a58 7
SRCS+=	nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c nsload.c nsnames.c
SRCS+=	nsobject.c nsparse.c nspredef.c nsrepair.c nsrepair2.c nssearch.c
SRCS+=	nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
SRCS+=	psargs.c psloop.c psopcode.c psparse.c psscope.c pstree.c psutils.c
SRCS+=	pswalk.c psxface.c
SRCS+=	rsaddr.c rscalc.c rscreate.c rsdump.c rsinfo.c rsio.c rsirq.c rslist.c
SRCS+=	rsmemory.c rsmisc.c rsserial.c rsutils.c rsxface.c
d62 2
a63 2
SRCS+=	utmath.c utmisc.c utmutex.c utobject.c utosi.c utresrc.c utstate.c
SRCS+=	utxface.c utxferror.c utxfinit.c
@


1.48
log
@Switching exporter and resync
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/acpi/acpi/Makefile 239340 2012-08-16 20:54:52Z jkim $
d37 2
a38 2
SRCS+=	dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c
SRCS+=	dmresrcl2.c dmresrcs.c dmutils.c dmwalk.c
d115 1
a115 3
ASM_CFLAGS=	-x assembler-with-cpp -DLOCORE ${CFLAGS}
NORMAL_S=	${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
NM?=		nm
d118 2
a119 1
	${NORMAL_S}
a129 2

.include <bsd.kmod.mk>
@


1.47
log
@SVN rev 239340 on 2012-08-16 20:54:52Z by jkim

Merge ACPICA 20120816.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.46
log
@SVN rev 238381 on 2012-07-11 23:18:35Z by jkim

Merge ACPICA 20120711.
@
text
@d61 1
a61 1
SRCS+=	utxface.c utxferror.c
@


1.45
log
@SVN rev 231844 on 2012-02-16 22:59:29Z by jkim

Merge ACPICA 20120215.
@
text
@d57 1
a57 1
SRCS+=	tbfadt.c tbfind.c tbinstal.c tbutils.c tbxface.c tbxfroot.c
d59 3
a61 3
SRCS+=	utdelete.c uteval.c utglobal.c utids.c utinit.c utlock.c utmath.c
SRCS+=	utmisc.c utmutex.c utobject.c utosi.c utresrc.c utstate.c utxface.c
SRCS+=	utxferror.c
d89 3
a118 8
.if ${MACHINE_CPUARCH} == "amd64"
.if !defined(KERNBUILDDIR)
CFLAGS+=-DSMP
.endif
SRCS+=	acpi_switch.S
acpi_switch.o:	acpi_switch.S
	${NORMAL_S}
.endif
@


1.44
log
@SVN rev 229989 on 2012-01-11 23:06:37Z by jkim

Merge ACPICA 20120111.
@
text
@d15 11
a25 11
.PATH:	${.CURDIR}/../../../contrib/dev/acpica/debugger \
	${.CURDIR}/../../../contrib/dev/acpica/disassembler \
	${.CURDIR}/../../../contrib/dev/acpica/dispatcher \
	${.CURDIR}/../../../contrib/dev/acpica/events \
	${.CURDIR}/../../../contrib/dev/acpica/executer \
	${.CURDIR}/../../../contrib/dev/acpica/hardware \
	${.CURDIR}/../../../contrib/dev/acpica/namespace \
	${.CURDIR}/../../../contrib/dev/acpica/parser \
	${.CURDIR}/../../../contrib/dev/acpica/resources \
	${.CURDIR}/../../../contrib/dev/acpica/tables \
	${.CURDIR}/../../../contrib/dev/acpica/utilities \
d48 2
a49 2
SRCS+=	hwacpi.c hwgpe.c hwpci.c hwregs.c hwsleep.c hwtimer.c hwvalid.c
SRCS+=	hwxface.c
@


1.43
log
@SVN rev 228110 on 2011-11-28 23:36:48Z by jkim

Merge ACPICA 20111123.
@
text
@d58 4
a61 3
SRCS+=	utalloc.c utcache.c utcopy.c utdebug.c utdecode.c utdelete.c uteval.c
SRCS+=	utglobal.c utids.c utinit.c utlock.c utmath.c utmisc.c utmutex.c
SRCS+=	utobject.c utosi.c utresrc.c utstate.c utxface.c utxferror.c
@


1.42
log
@SVN rev 220663 on 2011-04-15 18:34:27Z by jkim

Merge ACPICA 20110413.
@
text
@d38 1
a38 1
SRCS+=	dmresrcs.c dmutils.c dmwalk.c
d56 1
a56 1
SRCS+=	rsmemory.c rsmisc.c rsutils.c rsxface.c
d61 1
@


1.42.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.42.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/modules/acpi/acpi/Makefile 220663 2011-04-15 18:34:27Z jkim $
@


1.42.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.42.2.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/modules/acpi/acpi/Makefile 220663 2011-04-15 18:34:27Z jkim $
@


1.42.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.42.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/modules/acpi/acpi/Makefile 220663 2011-04-15 18:34:27Z jkim $
@


1.41
log
@SVN rev 218590 on 2011-02-12 01:03:15Z by jkim

Merge ACPICA 20110211.
@
text
@d42 1
a42 1
SRCS+=	evevent.c evgpe.c evgpeblk.c evgpeinit.c evgpeutil.c evmisc.c
@


1.40
log
@SVN rev 216471 on 2010-12-15 23:48:45Z by jkim

Merge ACPICA 20101209.
@
text
@d35 2
a36 2
SRCS+=	dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c dbinput.c dbstats.c
SRCS+=	dbutils.c dbxface.c
d39 3
a41 2
SRCS+=	dsfield.c dsinit.c dsmethod.c dsmthdat.c dsobject.c dsopcode.c
SRCS+=	dsutils.c dswexec.c dswload.c dswscope.c dswstate.c
d58 3
a60 3
SRCS+=	utalloc.c utcache.c utcopy.c utdebug.c utdelete.c uteval.c utglobal.c
SRCS+=	utids.c utinit.c utlock.c utmath.c utmisc.c utmutex.c utobject.c
SRCS+=	utosi.c utresrc.c utstate.c utxface.c utxferror.c
@


1.39
log
@SVN rev 215201 on 2010-11-12 21:11:49Z by jkim

Warn users that acpi.ko is deprecated and exit immediately unless the user
set FORCE_BUILD.  This is to avoid foot-shooting while making MFC to stable
branches easier.

Discussed with:	jhb
@
text
@d42 1
a42 1
SRCS+=	evregion.c evrgnini.c evsci.c evxface.c evxfevnt.c evxfregn.c
@


1.38
log
@SVN rev 215200 on 2010-11-12 20:55:14Z by jkim

MFamd64:	(based on) r209957

Move logic of building ACPI headers for acpi_wakeup.c into better places,
remove intermediate makefile and shell script, and reduce diff between i386
and amd64.
@
text
@d3 4
@


1.37
log
@SVN rev 215072 on 2010-11-10 01:29:56Z by jkim

Refactor acpi_machdep.c for amd64 and i386, move APM emulation into a new
file acpi_apm.c, and place it on sys/x86/acpica.
@
text
@d99 1
a99 1
SRCS+=	acpi_apm.c acpi_machdep.c acpi_wakecode.h acpi_wakeup.c
d101 1
a101 1
CLEANFILES+=	acpi_wakecode.bin acpi_wakecode.h acpi_wakecode.o
d105 4
d113 1
a113 5
SRCS+=	acpi_switch.S acpi_wakedata.h
CLEANFILES+=	acpi_wakedata.h
ASM_CFLAGS=	-x assembler-with-cpp -DLOCORE ${CFLAGS}
NORMAL_S=	${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
NM?=		nm
d116 1
a128 5
.else
acpi_wakecode.h: acpi_wakecode.S assym.s
	${MAKE} -f ${.CURDIR}/../../../${MACHINE_CPUARCH}/acpica/Makefile \
		MAKESRCPATH=${.CURDIR}/../../../${MACHINE_CPUARCH}/acpica
.endif
@


1.36
log
@SVN rev 215012 on 2010-11-08 20:57:02Z by jhb

Move the MADT parser for amd64 and i386 to sys/x86/acpica now that it is
identical on both platforms.
@
text
@d99 1
a99 1
SRCS+=	acpi_machdep.c acpi_wakecode.h acpi_wakeup.c
@


1.35
log
@SVN rev 213884 on 2010-10-14 23:31:58Z by jkim

Stop hard coding nm(1) and make it overridable.
@
text
@d25 2
a26 1
	${.CURDIR}/../../../${MACHINE_CPUARCH}/acpica
@


1.34
log
@SVN rev 212761 on 2010-09-16 20:08:00Z by jkim

Merge ACPICA 20100915.
@
text
@d111 2
d114 1
a114 1
	${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
d116 1
a116 1
	${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
d123 4
a126 2
	nm -n --defined-only ${.ALLSRC} | while read offset dummy what; do \
	    echo "#define	$${what}	0x$${offset}"; done > ${.TARGET}
@


1.33
log
@SVN rev 211690 on 2010-08-23 06:13:29Z by imp

MFtbemd:

Use MACHINE_CPUARCH in preference to MACHINE_ARCH.  The former is the
source code location of the machine, the latter the binary output.  In
general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless
we're tesitng for a specific target.  The isn't even moot for
i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86,
although a specific cleanup for that likely would be needed...
@
text
@d42 2
a43 1
SRCS+=	hwacpi.c hwgpe.c hwregs.c hwsleep.c hwtimer.c hwvalid.c hwxface.c
d54 1
a54 1
SRCS+=	utosi.c utresrc.c utstate.c utxface.c
a104 1
SRCS+=	acpi_switch.S opt_global.h
@


1.32
log
@SVN rev 210976 on 2010-08-06 23:11:19Z by jkim

Merge ACPICA 20100806.
@
text
@d3 1
a3 1
.if ${MACHINE_ARCH} == "ia64"
d25 1
a25 1
	${.CURDIR}/../../../${MACHINE_ARCH}/acpica
d101 4
a104 1
.if ${MACHINE_ARCH} == "amd64"
d125 2
a126 2
	${MAKE} -f ${.CURDIR}/../../../${MACHINE_ARCH}/acpica/Makefile \
		MAKESRCPATH=${.CURDIR}/../../../${MACHINE_ARCH}/acpica
@


1.31
log
@SVN rev 210005 on 2010-07-13 16:57:52Z by jkim

Define SMP unconditionally for amd64 and remove opt_global.h from SRCS.
Note it is done just for correctness sake because we do not build, ship, or
support acpi.ko on amd64.

Prodded by:	bde
@
text
@d53 1
a53 1
SRCS+=	utresrc.c utstate.c utxface.c
@


1.30
log
@SVN rev 209957 on 2010-07-12 21:08:35Z by jkim

Move i386-inherited logic of building ACPI headers for acpi_wakeup.c into
better places and remove intermediate makefile and shell scripts.  This
makes parallel kernel build little bit safer for amd64.
@
text
@d102 4
a105 1
SRCS+=	acpi_switch.S acpi_wakedata.h opt_global.h
@


1.29
log
@SVN rev 207344 on 2010-04-28 22:25:27Z by jkim

Merge ACPICA 20100428.
@
text
@d102 1
a102 1
SRCS+=	acpi_switch.S opt_global.h
d107 11
a117 2
.endif

d121 1
@


1.28
log
@SVN rev 204877 on 2010-03-08 19:40:31Z by jkim

Enable ACPI module build on amd64.  Although we strongly recommend building
it into kernel, there is no need to prevent it from building at all.
@
text
@d36 2
a37 2
SRCS+=	evevent.c evgpe.c evgpeblk.c evmisc.c evregion.c evrgnini.c evsci.c
SRCS+=	evxface.c evxfevnt.c evxfregn.c
@


1.27
log
@SVN rev 204874 on 2010-03-08 18:40:22Z by jkim

Update module Makefile for ACPICA 20100304.

Submitted by:	Paul B Mahol (onemda at gmail dot com)
@
text
@d3 2
a4 2
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64"
.error "ACPI can only be compiled into the kernel on the amd64 and ia64 platforms"
d7 2
a8 2
.if ${MACHINE} != "i386"
.error "The ACPI module is only for i386"
d100 1
d102 1
a102 1
SRCS+=	opt_global.h
d104 3
@


1.26
log
@SVN rev 199338 on 2009-11-16 21:53:56Z by jkim

Add a forgotten module Makefile change from the previous commit.
@
text
@d38 4
a41 4
SRCS+=	exconfig.c exconvrt.c excreate.c exdump.c exfield.c exfldio.c exmisc.c
SRCS+=	exmutex.c exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c
SRCS+=	exprep.c exregion.c exresnte.c exresolv.c exresop.c exstore.c
SRCS+=	exstoren.c exstorob.c exsystem.c exutils.c
@


1.25
log
@SVN rev 197688 on 2009-10-01 20:56:15Z by jkim

Compile ACPI debugger and disassembler for kernel modules unconditionally.
These files will generate almost empty object files without ACPI_DEBUG/DDB
options.  As a result, size of acpi.ko will increase slightly.
@
text
@d44 2
a45 2
SRCS+=	nsobject.c nsparse.c nspredef.c nsrepair.c nssearch.c nsutils.c
SRCS+=	nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
@


1.24
log
@SVN rev 197105 on 2009-09-11 22:49:34Z by jkim

Catch up with ACPICA 20090903.
@
text
@d30 4
a75 6
# Debugging support
DBSRC=	dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c dbinput.c dbstats.c
DBSRC+=	dbutils.c dbxface.c
DBSRC+=	dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c
DBSRC+=	dmresrcs.c dmutils.c dmwalk.c

a87 1
SRCS+=	${DBSRC}
d98 5
a102 2
.if ${MACHINE} == "i386"
SRCS+=	madt.c assym.s
a103 1
CLEANFILES+=	acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin ${DBSRC:.c=.o}
@


1.23
log
@SVN rev 194313 on 2009-06-16 23:02:46Z by jkim

Fix a typo from the previous commit.
@
text
@d40 2
a41 2
SRCS+=	nsobject.c nsparse.c nspredef.c nssearch.c nsutils.c nswalk.c
SRCS+=	nsxfeval.c nsxfname.c nsxfobj.c
d48 2
a49 2
SRCS+=	utinit.c utlock.c utmath.c utmisc.c utmutex.c utobject.c utresrc.c
SRCS+=	utstate.c utxface.c
@


1.23.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.23.2.2
log
@SVN rev 203544 on 2010-02-06 12:03:25Z by avg

MFC r197104,197105,197106,197107,197688,198237,199337,199338,200553,200554,
202771,202773: bring acpica version to 20100121

MFC details:
r197104 | jkim | 2009-09-12 01:48:53 +0300 (Sat, 12 Sep 2009) | 4 lines
MFV:    r196804
Import ACPICA 20090903

r197105 | jkim | 2009-09-12 01:49:34 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197106 | jkim | 2009-09-12 01:50:15 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197107 | jkim | 2009-09-12 01:56:08 +0300 (Sat, 12 Sep 2009) | 2 lines
Canonify include paths for newly added files.

r197688 | jkim | 2009-10-01 23:56:15 +0300 (Thu, 01 Oct 2009) | 4 lines
Compile ACPI debugger and disassembler for kernel modules
unconditionally.
These files will generate almost empty object files without
ACPI_DEBUG/DDB
options.  As a result, size of acpi.ko will increase slightly.

r198237 | jkim | 2009-10-19 19:12:58 +0300 (Mon, 19 Oct 2009) | 2 lines
Merge ACPICA 20091013.

r199337 | jkim | 2009-11-16 23:47:12 +0200 (Mon, 16 Nov 2009) | 2 lines
Merge ACPICA 20091112.

r199338 | jkim | 2009-11-16 23:53:56 +0200 (Mon, 16 Nov 2009) | 2 lines
Add a forgotten module Makefile change from the previous commit.

r200553 | jkim | 2009-12-15 00:24:04 +0200 (Tue, 15 Dec 2009) | 2 lines
Merge ACPICA 20091214.

r200554 | jkim | 2009-12-15 00:28:32 +0200 (Tue, 15 Dec 2009) | 3 lines
Remove _FDE quirk handling as these quirks are automatically repaired
by ACPICA layer since ACPICA 20091214.

r202771 | jkim | 2010-01-21 23:14:28 +0200 (Thu, 21 Jan 2010) | 2 lines
Merge ACPICA 20100121.

r202773 | jkim | 2010-01-21 23:31:39 +0200 (Thu, 21 Jan 2010) | 2 lines
Fix a new header inclusion.

Discussed with:		jkim, jhb
No objections from:	acpi@@
@
text
@a29 4
SRCS+=	dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c dbinput.c dbstats.c
SRCS+=	dbutils.c dbxface.c
SRCS+=	dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c
SRCS+=	dmresrcs.c dmutils.c dmwalk.c
d40 2
a41 2
SRCS+=	nsobject.c nsparse.c nspredef.c nsrepair.c nsrepair2.c nssearch.c
SRCS+=	nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
d48 2
a49 2
SRCS+=	utids.c utinit.c utlock.c utmath.c utmisc.c utmutex.c utobject.c
SRCS+=	utresrc.c utstate.c utxface.c
d72 6
d90 1
d101 2
a102 5
SRCS+=	assym.s madt.c
CLEANFILES+=	acpi_wakecode.bin acpi_wakecode.h acpi_wakecode.o
.if ${MACHINE_ARCH} == "amd64"
SRCS+=	opt_global.h
CLEANFILES+=	acpi_wakedata.h
d104 1
@


1.23.2.3
log
@SVN rev 207250 on 2010-04-26 20:55:03Z by jkim

MFC:	r204773
Merge ACPICA 20100304.

MFC:	r204874
Update module Makefile for ACPICA 20100304.

MFC:	r204877
Allow ACPI module build on amd64.  Although we strongly recommend building
it into kernel, there is no need to prevent it from building at all.

MFC:	r204916
- Allow users to enable dumping Debug objects without ACPI debugger.
Setting the new sysctl MIB "debug.acpi.enable_debug_objects" to a non-zero
value enables us to print Debug object when something is written to it.
- Allow users to disable interpreter slack mode.  Setting the new tunable
"debug.acpi.interpreter_slack" to zero disables some workarounds for common
BIOS mistakes and enables strict ACPI implementations by the specification.

MFC:	r204920
Since the interpreter slack mode is a tunable now, enable a local hack only
when it is set.  Note the default behaviour does not change by this change.

MFC:	r204965
Fix white spaces.

MFC:	r206117
Merge ACPICA 20100331 (and four additional upstream patches).
@
text
@d3 2
a4 2
.if ${MACHINE_ARCH} == "ia64"
.error "ACPI can only be compiled into the kernel on the ia64 platform"
d7 2
a8 2
.if ${MACHINE} != "amd64" && ${MACHINE} != "i386"
.error "The ACPI module is only for amd64 and i386"
d38 4
a41 4
SRCS+=	exconfig.c exconvrt.c excreate.c exdebug.c exdump.c exfield.c
SRCS+=	exfldio.c exmisc.c exmutex.c exnames.c exoparg1.c exoparg2.c
SRCS+=	exoparg3.c exoparg6.c exprep.c exregion.c exresnte.c exresolv.c
SRCS+=	exresop.c exstore.c exstoren.c exstorob.c exsystem.c exutils.c
a99 1

d101 1
a101 1
SRCS+=	acpi_switch.S opt_global.h
a102 3
ASM_CFLAGS=	-x assembler-with-cpp -DLOCORE ${CFLAGS}
acpi_switch.o:	acpi_switch.S
	${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
@


1.23.2.4
log
@SVN rev 210315 on 2010-07-20 20:15:32Z by jkim

MFC:	r209957, r210003, r210005

- Move i386-inherited logic of building ACPI headers for acpi_wakeup.c into
better places and remove intermediate makefile and shell scripts.  This
makes parallel kernel build little bit safer for amd64.
- Make SMP code path in acpi.c conditional at run-time.
- Define SMP unconditionally for amd64 and remove opt_global.h from SRCS in
sys/modules/acpi/acpi/Makefile.  Note it is done just for correctness sake
because we do not build, ship, or support acpi.ko on amd64.
@
text
@d102 1
a102 4
.if !defined(KERNBUILDDIR)
CFLAGS+=-DSMP
.endif
SRCS+=	acpi_switch.S acpi_wakedata.h
d107 2
a108 11
acpi_wakecode.o: acpi_wakecode.S assym.s
	${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
acpi_wakecode.bin: acpi_wakecode.o
	objcopy -S -O binary acpi_wakecode.o ${.TARGET}
acpi_wakecode.h: acpi_wakecode.bin
	file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > \
	    ${.TARGET}
acpi_wakedata.h: acpi_wakecode.o
	nm -n --defined-only ${.ALLSRC} | while read offset dummy what; do \
	    echo "#define	$${what}	0x$${offset}"; done > ${.TARGET}
.else
a111 1
.endif
@


1.23.2.5
log
@SVN rev 215521 on 2010-11-19 14:26:45Z by avg

MFC imports of ACPICA revisions 20100428 through 20101013

Plus related changes and ehancements.

Full list of revisions:

o-----------------------------------------------------------------------
r207344 | jkim | 2010-04-29 01:25:27 +0300 (Thu, 29 Apr 2010) | 2 lines
Merge ACPICA 20100428.
o-----------------------------------------------------------------------
r209065 | jkim | 2010-06-11 22:58:41 +0300 (Fri, 11 Jun 2010) | 2 lines
Simplify a function for getting brightness levels.
o-----------------------------------------------------------------------
r209746 | jkim | 2010-07-06 23:57:28 +0300 (Tue, 06 Jul 2010) | 2 lines
Merge ACPICA 20100702.
o-----------------------------------------------------------------------
r209747 | jkim | 2010-07-07 00:41:08 +0300 (Wed, 07 Jul 2010) | 2 lines
Fix mis-merges in the previous commit.
o-----------------------------------------------------------------------
r210150 | jkim | 2010-07-16 02:24:06 +0300 (Fri, 16 Jul 2010) | 3 lines
If there is any pending sleep request, disallow entering S5 state.
Otherwise, bad things may happen. ;-)
o-----------------------------------------------------------------------
r210976 | jkim | 2010-08-07 02:11:19 +0300 (Sat, 07 Aug 2010) | 2 lines
Merge ACPICA 20100806.
o-----------------------------------------------------------------------
r211763 | mav | 2010-08-24 21:07:59 +0300 (Tue, 24 Aug 2010) | 4 lines
When ACPI reports current battery consumption rate in mAmps, print it also
in mWatts. Values in mAmps are not always suitable, because they depend on
battery voltage, which depends on battery type and charge level.
o-----------------------------------------------------------------------
r212761 | jkim | 2010-09-16 23:08:00 +0300 (Thu, 16 Sep 2010) | 2 lines
Merge ACPICA 20100915.
o-----------------------------------------------------------------------
r213772 | rpaulo | 2010-10-13 14:38:24 +0300 (Wed, 13 Oct 2010) | 3 lines
Mark acpi_bus_number() as __unused. This allows clang to this file
without any warnings.
o-----------------------------------------------------------------------
r213783 | jkim | 2010-10-13 19:30:41 +0300 (Wed, 13 Oct 2010) | 4 lines
Remove acpi_bus_number() completely.  It had to be removed in r212761.
Pointed out by:	jhb
o-----------------------------------------------------------------------
r213787 | jkim | 2010-10-13 20:06:25 +0300 (Wed, 13 Oct 2010) | 2 lines
Clean up unused headers.
o-----------------------------------------------------------------------
r213806 | jkim | 2010-10-14 00:37:02 +0300 (Thu, 14 Oct 2010) | 2 lines
Merge ACPICA 20101013.
o-----------------------------------------------------------------------
r214390 | jkim | 2010-10-26 21:59:50 +0300 (Tue, 26 Oct 2010) | 18 lines
Add two new loader tunables 'hw.acpi.install_interface' and
'hw.acpi.remove_interface'.  hw.acpi.install_interface lets you install new
interfaces.  Conversely, hw.acpi.remove_interface lets you remove OS
interfaces from the pre-defined list in ACPICA.  For example,
	hw.acpi.install_interface="FreeBSD"
lets _OSI("FreeBSD") method to return 0xffffffff (or success) and
	hw.acpi.remove_interface="Windows 2009"
lets _OSI("Windows 2009") method to return zero (or failure).  Both are
comma-separated lists and leading white spaces are ignored.  For example,
the following examples are valid:
	hw.acpi.install_interface="Linux, FreeBSD"
	hw.acpi.remove_interface="Windows 2006, Windows 2006.1"
o-----------------------------------------------------------------------
r214401 | jkim | 2010-10-27 00:22:55 +0300 (Wed, 27 Oct 2010) | 3 lines
Document newly added loader tunables "hw.acpi.install_interface" and
"hw.acpi.remove_interface".
o-----------------------------------------------------------------------
r214765 | jkim | 2010-11-04 01:16:35 +0200 (Thu, 04 Nov 2010) | 4 lines
Adjust a comment to clarify why \_SB_ and \_TZ_ are defined as device type
in ACPICA.  Reshuffle the code a bit to make sure this kludge only applies
to these two specical cases and to make it cleaner.
o-----------------------------------------------------------------------
r214848 | jkim | 2010-11-05 21:50:09 +0200 (Fri, 05 Nov 2010) | 13 lines
Fix a use-after-free bug for extended IRQ resource[1].  When _PRS buffer is
copied as a template for _SRS, a string pointer for descriptor name is also
copied and it becomes stale as soon as it gets de-allocated[2].  Now _CRS is
used as a template for _SRS as ACPI specification suggests if it is usable.
The template from _PRS is still utilized but only when _CRS is not available
or broken.  To avoid use-after-free the problem in this case, however, only
mandatory fields are copied, optional data is removed, and structure length
is adjusted accordingly.
Reported by:	hps[1]
Analyzed by:	avg[2]
Tested by:	hps
o-----------------------------------------------------------------------
r214849 | jkim | 2010-11-05 22:24:26 +0200 (Fri, 05 Nov 2010) | 2 lines
Add a forgotten change from the previous commit.
o-----------------------------------------------------------------------
r214998 | jkim | 2010-11-08 21:52:14 +0200 (Mon, 08 Nov 2010) | 2 lines
Consistently use padding `_' in the comment.
o-----------------------------------------------------------------------

Reviewed by:	jkim
Tested by:	Alexandre "Sunny" Kovalenko <gaijin.k@@ovi.com>
On behalf of:	jkim
@
text
@d36 2
a37 2
SRCS+=	evevent.c evgpe.c evgpeblk.c evgpeinit.c evgpeutil.c evmisc.c
SRCS+=	evregion.c evrgnini.c evsci.c evxface.c evxfevnt.c evxfregn.c
d42 1
a42 2
SRCS+=	hwacpi.c hwgpe.c hwpci.c hwregs.c hwsleep.c hwtimer.c hwvalid.c
SRCS+=	hwxface.c
d53 1
a53 1
SRCS+=	utosi.c utresrc.c utstate.c utxface.c utxferror.c
@


1.23.2.6
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/sys/modules/acpi/acpi/Makefile 215521 2010-11-19 14:26:45Z avg $
@


1.23.2.5.4.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.23.2.5.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/modules/acpi/acpi/Makefile 215521 2010-11-19 14:26:45Z avg $
@


1.23.2.5.2.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.23.2.3.2.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.23.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.22
log
@SVN rev 194312 on 2009-06-16 23:00:26Z by jkim

Sync acpi(4) kld module Makefile with conf/options.
@
text
@d83 1
a83 1
CFLAGS+=-DACPI_MAX_TASKS
@


1.21
log
@SVN rev 193530 on 2009-06-05 18:44:36Z by jkim

Import ACPICA 20090521.
@
text
@d82 3
a87 3
.if ACPI_NO_SEMAPHORES
CFLAGS+=-DACPI_NO_SEMAPHORES
.endif
@


1.20
log
@SVN rev 188516 on 2009-02-12 14:44:15Z by n_hibma

Fix a few problems related to building modules in /sys/modules (not
checked whether this applies to builds in /sys/*/compile/* as well):

- Create empty opt_*.h files were missing
- Hook up svr4 to the build. It compiles fine here, so no reason to
  disconnect it in the Makefile. were missing
  - Hook up svr4 to the build. It compiles fine here, so no reason to
    disconnect it in the Makefile.
@
text
@d11 15
a25 5
.PATH: ${.CURDIR}/../../../contrib/dev/acpica \
       ${.CURDIR}/../../../pci \
       ${.CURDIR}/../../../dev/acpica \
       ${.CURDIR}/../../../dev/acpica/Osd \
       ${.CURDIR}/../../../${MACHINE_ARCH}/acpica
a29 1
CFLAGS+=   -I${.CURDIR}/../../../contrib/dev/acpica
d38 1
a38 1
SRCS+=	hwacpi.c hwgpe.c hwregs.c hwsleep.c hwtimer.c
d40 2
a41 2
SRCS+=	nsobject.c nsparse.c nssearch.c nsutils.c nswalk.c nsxfeval.c
SRCS+=	nsxfname.c nsxfobj.c
d47 2
a48 2
SRCS+=	utalloc.c utcache.c utclib.c utcopy.c utdebug.c utdelete.c uteval.c
SRCS+=	utglobal.c utinit.c utmath.c utmisc.c utmutex.c utobject.c utresrc.c
@


1.19
log
@Rewrite the EC driver event model.  The main goal is to avoid
polling/interrupt-driven fallback and instead use polling only during
boot and pure interrupt-driven mode after boot.  Polled mode could be
relegated completely to a legacy role if we could enable interrupts
during boot.  Polled mode can be forced after boot by setting
debug.acpi.ec.polled="1", i.e. if there are timeouts.

- Use polling only during boot, shutdown, or if requested by the user.
  Otherwise, use a generation count of GPEs, incremented atomically.  This
  prevents an old status value from being used if the EC is really slow
  and the same condition (i.e. multiple IBEs for a write transaction) is
  being checked.
- Check for and run the query handler directly if the SCI bit is set in
  the status register during boot.  Previously, the query handler wouldn't
  run until interrupts were finally enabled late in boot.
- During boot and after starting a command, check if the event appears
  to already have occurred before we even start waiting.  If so, it's
  possible the EC is very slow and we might accept an old status value.
  Print a warning in this case.  Once we've booted, interrupt-driven mode
  should work just fine but polled mode could be unreliable.  There's not
  much more we can do about this until interrupts are enabled during boot.
- In the above case, we also do one final check if the interrupt-driven
  mode gets a timeout.  If the status is complete, it will force the
  system back into polled mode since interrupt mode doesn't work.  For
  polled mode during boot, if the status appears to be already complete
  before beginning the check loop, it waits 10 us before actually checking
  the status, just in case the EC is really slow and hasn't gotten to work
  on the new request yet.
- Use upper-case hex for the _Qxx method
- Use device_printf for errors, don't hide them under verbose
- Increase default total timeout to 750 ms and decrease polling interval
  to 5 us.
- Don't pass the status value via the softc.  Just read it directly.
- Remove the mutex. We use the sx lock for transaction serialization
  with the query handler.
- Remove the Intel copyright notice as no code of theirs was ever
  present in this file (verified against rev 1.1)
- Allow KTR module-only builds for ease of testing

Thanks to jkim and Alexey Starikovskiy for helpful discussions and testing.

Approved by:	re
MFC after:	2 weeks
@
text
@d61 1
a61 1
SRCS+=	opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h
@


1.19.2.1
log
@SVN rev 194261 on 2009-06-15 20:12:27Z by n_hibma

Add opt_hwpmc_hooks.h to fix building individual modules from
/sys/modules.
@
text
@d61 1
a61 1
SRCS+=	opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h opt_hwpmc_hooks.h
@


1.19.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/modules/acpi/acpi/Makefile 194261 2009-06-15 20:12:27Z n_hibma $
@


1.19.2.1.4.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.19.2.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/modules/acpi/acpi/Makefile 194261 2009-06-15 20:12:27Z n_hibma $
@


1.19.2.1.2.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.19.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.19.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.18
log
@Catch up with ACPI-CA 20070320 import.
@
text
@d70 3
@


1.17
log
@Hook acpi gadget driver modules to other acpi archs.
@
text
@d3 4
a10 1

d21 8
a28 9
SRCS+=	dsfield.c dsinit.c dsmethod.c dsmthdat.c
SRCS+=	dsobject.c dsopcode.c dsutils.c dswexec.c dswload.c
SRCS+=	dswscope.c dswstate.c evevent.c evgpe.c evgpeblk.c
SRCS+=	evmisc.c evregion.c evrgnini.c evsci.c evxface.c
SRCS+=	evxfevnt.c evxfregn.c exconfig.c exconvrt.c excreate.c
SRCS+=	exdump.c exfield.c exfldio.c exmisc.c exmutex.c
SRCS+=	exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c
SRCS+=	exprep.c exregion.c exresnte.c exresolv.c exresop.c
SRCS+=	exstore.c exstoren.c exstorob.c exsystem.c exutils.c
d30 11
a40 12
SRCS+=	nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c
SRCS+=	nsload.c nsnames.c nsobject.c nsparse.c nssearch.c
SRCS+=	nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
SRCS+=	psargs.c psloop.c psopcode.c psparse.c psscope.c
SRCS+=	pstree.c psutils.c pswalk.c psxface.c
SRCS+=	rsaddr.c rscalc.c rscreate.c rsdump.c rsinfo.c rsio.c
SRCS+=	rsirq.c rslist.c rsmemory.c rsmisc.c rsutils.c
SRCS+=	rsxface.c tbconvrt.c tbget.c tbgetall.c tbinstal.c
SRCS+=	tbrsdt.c tbutils.c tbxface.c tbxfroot.c utalloc.c
SRCS+=	utcache.c utclib.c utcopy.c utdebug.c utdelete.c
SRCS+=	uteval.c utglobal.c utinit.c utmath.c utmisc.c
SRCS+=	utmutex.c utobject.c utstate.c utxface.c
d43 3
a45 4
SRCS+=	acpi.c acpi_button.c acpi_isab.c
SRCS+=	acpi_package.c acpi_pci.c acpi_pcib.c acpi_pcib_acpi.c
SRCS+=	acpi_pcib_pci.c acpi_powerres.c acpi_quirk.c acpi_resource.c
SRCS+=	acpi_timer.c acpi_pci_link.c acpi_thermal.c
d48 2
a49 3
SRCS+=	acpi_acad.c acpi_battery.c acpi_cmbat.c acpi_cpu.c
SRCS+=	acpi_ec.c acpi_hpet.c acpi_lid.c acpi_perf.c acpi_smbat.c
SRCS+=	acpi_throttle.c
d52 5
a56 6
SRCS+=	OsdDebug.c 
SRCS+=	OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c
SRCS+=	OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c 
SRCS+=	opt_acpi.h opt_bus.h opt_ddb.h
SRCS+=	acpi_if.h acpi_quirks.h bus_if.h cpufreq_if.h device_if.h
SRCS+=	isa_if.h pci_if.h pcib_if.h
d64 2
a65 2
DBSRC=	dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
DBSRC+=	dbinput.c dbstats.c dbutils.c dbxface.c
a68 1
CFLAGS+=-DACPI_USE_LOCAL_CACHE
@


1.16
log
@Dike out WARNS from kernel module makefiles.  Kernels and modules
use a different mechanism for setting warning flags, and using
WARNS here only has null or negative effects.

Submitted by:	bde (I think it means "submitted")
@
text
@d3 5
@


1.15
log
@Catch up with ACPI-CA 20051021 import
@
text
@a9 1
WARNS?=	2
@


1.14
log
@Tie acpi_hpet.c into the module and kernel.
@
text
@d27 1
a27 1
SRCS+=	psargs.c psopcode.c psparse.c psscope.c
d29 1
a29 1
SRCS+=	rsaddr.c rscalc.c rscreate.c rsdump.c rsio.c
d33 3
a35 3
SRCS+=	utclib.c utcopy.c utdebug.c utdelete.c uteval.c
SRCS+=	utglobal.c utinit.c utmath.c utmisc.c utobject.c
SRCS+=	utxface.c
d67 1
@


1.13
log
@Hook acpi_smbat up to the build.
@
text
@d45 2
a46 1
SRCS+=	acpi_ec.c acpi_lid.c acpi_perf.c acpi_smbat.c acpi_throttle.c
@


1.12
log
@Let modules use the kernel's opt_*.h files if built along with
the kernel by wrapping all targets for fake opt_*.h files in
.if defined(KERNBUILDDIR).  Thus, such fake files won't be
created at all if modules are built with the kernel.

Some modules undergo cleanup like removing unused or unneeded
options or .h files, without which they wouldn't build this way
or the other.

Reviewed by:	ru
Tested by:	no binary changes in modules built alone
Tested on:	i386 sparc64 amd64
@
text
@d45 1
a45 1
SRCS+=	acpi_ec.c acpi_lid.c acpi_perf.c acpi_throttle.c
@


1.11
log
@Fix separate module build.

Submitted by:	njl
@
text
@d66 1
d82 1
@


1.11.2.1
log
@MFC: smart battery support
@
text
@d45 1
a45 1
SRCS+=	acpi_ec.c acpi_lid.c acpi_perf.c acpi_smbat.c acpi_throttle.c
@


1.11.2.2
log
@MFC:
Avoid creating (and subsequently using) fake opt_*.h files
when the modules are built with the kernel and hence actual
opt_*.h files are available in ${KERNBUILDDIR}.  Fix a few
small bugs that would prevent this from working.

At last the build options of the modules become consistent
with those of the kernel unless the MODULES_WITH_WORLD way
still is used.

Approved by:	re (kensmith, scottl)
Requested by:	ru
Tested on:	amd64 i386 sparc64
Tested by:	md5
@
text
@a65 1
.if !defined(KERNBUILDDIR)
a80 1
.endif
@


1.11.2.3
log
@MFC: add acpi_hpet to the build (pointed out as missing by kib@@)
@
text
@d45 1
a45 2
SRCS+=	acpi_ec.c acpi_hpet.c acpi_lid.c acpi_perf.c acpi_smbat.c
SRCS+=	acpi_throttle.c
@


1.11.2.4
log
@MFC: makefile cleanups and remove hard-coded SMBus port from alpm and viapm.
@
text
@a2 8
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64"
.error "ACPI can only be compiled into the kernel on the amd64 and ia64 platforms"
.endif

.if ${MACHINE} != "i386"
.error "The ACPI module is only for i386"
.endif

@


1.11.2.5
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/modules/acpi/acpi/Makefile 171082 2007-06-28 21:23:56Z njl $
@


1.11.2.4.4.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.10
log
@Pick up the selectors to use for various kernel segments from assym.s
instead of assuming fixed offsets within the GDT. The hard-coded
values here have been incorrect since Peter's GDT rearranging around
10 days ago, causing ACPI resume problems.

Reviewed by:	peter
@
text
@d55 5
@


1.9
log
@Move acpi_perf and acpi_throttle into acpi.ko.  Remove the acpi_perf
build structure.
@
text
@d80 1
a80 1
SRCS+=	madt.c
d84 1
a84 1
acpi_wakecode.h: acpi_wakecode.S
@


1.8
log
@Set WARNS=2 for the module build of ACPI.

Approved by:	njl
@
text
@d45 1
a45 1
SRCS+=	acpi_ec.c acpi_lid.c
d52 1
a52 1
SRCS+=	acpi_if.h acpi_quirks.h bus_if.h device_if.h
@


1.8.2.1
log
@MFC: Hook cpufreq up to the build as well as the acpi_throttle driver.
@
text
@d45 1
a45 1
SRCS+=	acpi_ec.c acpi_lid.c acpi_throttle.c
d52 1
a52 1
SRCS+=	acpi_if.h acpi_quirks.h bus_if.h cpufreq_if.h device_if.h
@


1.8.2.2
log
@MFC: update acpi to current cpufreq interface, add the acpi_perf cpufreq
driver.  Do not include yet thermal stuff from ume@@ since this need more
testing in -current.

Approved by:	njl, imp (mentor)
@
text
@d45 1
a45 1
SRCS+=	acpi_ec.c acpi_lid.c acpi_perf.c acpi_throttle.c
@


1.7
log
@Add glue for building acpi_quirk.c
@
text
@d10 1
@


1.6
log
@Add acpi_if.h dependencies to module build.
@
text
@d39 1
a39 1
SRCS+=	acpi_pcib_pci.c acpi_powerres.c acpi_resource.c
d51 1
a51 1
SRCS+=	acpi_if.h bus_if.h device_if.h
@


1.5
log
@Divide the drivers into essential (pci, thermal) and mobile (lid,
battery, etc.)
@
text
@d51 2
a52 1
SRCS+=	device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h
@


1.4
log
@Clean all the object files whether or not ACPI_DEBUG is specified.
@
text
@d36 10
a46 5
SRCS+=	acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c acpi_cpu.c
SRCS+=	acpi_ec.c acpi_isab.c acpi_lid.c
SRCS+=	acpi_package.c acpi_pci.c acpi_pcib.c acpi_pcib_acpi.c
SRCS+=	acpi_pcib_pci.c acpi_powerres.c acpi_resource.c acpi_thermal.c
SRCS+=	acpi_timer.c acpi_pci_link.c 
@


1.3
log
@Always clean all files, including ones under ACPI_DEBUG when doing a
"make clean".
@
text
@d75 1
a75 1
CLEANFILES+=	acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin ${DBSRC}
@


1.2
log
@Use double quotes instead of single quotes for echos to build options
headers as in most other modules Makefiles (5 yesterday, none now).
Fixed any simple nearby style bugs (not many).
@
text
@d47 7
a59 2

# Debugging support
d62 1
a62 4
SRCS+=	dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
SRCS+=	dbinput.c dbstats.c dbutils.c dbxface.c
SRCS+=	dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c
SRCS+=	dmresrcs.c dmutils.c dmwalk.c
d75 1
a75 1
CLEANFILES+=	acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin
@


1.1
log
@Move the acpi module down a directory.  This will allow us to import
other ACPI-specific drivers into sys/modules/acpi/.
@
text
@d62 1
a62 1
	echo '#define DDB 1' > ${.TARGET}
@

