head	1.8;
access;
symbols
	perseant-exfatfs-base-20250801:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.144
	perseant-exfatfs-base:1.8
	bouyer-sunxi-drm:1.8.0.142
	bouyer-sunxi-drm-base:1.8
	cjep_sun2x:1.8.0.140
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	cjep_staticlib_x:1.8.0.138
	cjep_staticlib_x-base:1.8
	thorpej-futex-base:1.8
	bouyer-xenpvh-base2:1.8
	phil-wifi-20200421:1.8
	bouyer-xenpvh-base1:1.8
	phil-wifi-20200411:1.8
	bouyer-xenpvh:1.8.0.136
	bouyer-xenpvh-base:1.8
	phil-wifi-20200406:1.8
	ad-namecache-base3:1.8
	ad-namecache-base2:1.8
	ad-namecache-base1:1.8
	ad-namecache:1.8.0.134
	ad-namecache-base:1.8
	isaki-audio2:1.8.0.132
	isaki-audio2-base:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	pgoyette-compat-0728:1.8
	pgoyette-compat-0625:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	pgoyette-compat:1.8.0.12
	pgoyette-compat-base:1.8
	perseant-stdc-iso10646:1.8.0.130
	perseant-stdc-iso10646-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.128
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	bouyer-socketcan:1.8.0.126
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	pgoyette-localcount-20161104:1.8
	localcount-20160914:1.8
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.124
	pgoyette-localcount-base:1.8
	netbsd-5-2-3-RELEASE:1.8
	netbsd-5-1-5-RELEASE:1.8
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.8
	tls-earlyentropy:1.8.0.122
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-5-2-2-RELEASE:1.8
	netbsd-5-1-4-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.8
	netbsd-5-1-3-RELEASE:1.8
	rmind-smpnet-nbase:1.8
	rmind-smpnet:1.8.0.118
	rmind-smpnet-base:1.8
	agc-symver:1.8.0.120
	agc-symver-base:1.8
	tls-maxphys-base:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.8.0.116
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.8
	netbsd-5-2-RC1:1.8
	yamt-pagecache-base6:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-5-1-2-RELEASE:1.8
	netbsd-5-1-1-RELEASE:1.8
	jmcneill-usbmp:1.8.0.114
	jmcneill-usbmp-base:1.8
	jmcneill-audiomp3:1.8.0.112
	jmcneill-audiomp3-base:1.8
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.110
	yamt-pagecache-base:1.8
	rmind-uvmplock-nbase:1.8
	jym-xensuspend-nbase:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.108
	bouyer-quota2-base:1.8
	jruoho-x86intr:1.8.0.106
	jruoho-x86intr-base:1.8
	matt-nb5-pq3:1.8.0.104
	matt-nb5-pq3-base:1.8
	netbsd-5-1:1.8.0.102
	netbsd-5-1-RELEASE:1.8
	yamt-nfs-mp-base11:1.8
	netbsd-5-1-RC4:1.8
	uebayasi-xip-base2:1.8
	yamt-nfs-mp-base10:1.8
	netbsd-5-1-RC3:1.8
	netbsd-5-1-RC2:1.8
	netbsd-5-1-RC1:1.8
	rmind-uvmplock:1.8.0.100
	rmind-uvmplock-base:1.8
	yamt-nfs-mp-base9:1.8
	uebayasi-xip:1.8.0.98
	uebayasi-xip-base:1.8
	netbsd-5-0-2-RELEASE:1.8
	yamt-nfs-mp-base8:1.8
	yamt-nfs-mp-base7:1.8
	netbsd-5-0-1-RELEASE:1.8
	jymxensuspend-base:1.8
	yamt-nfs-mp-base6:1.8
	yamt-nfs-mp-base5:1.8
	yamt-nfs-mp-base4:1.8
	yamt-nfs-mp-base3:1.8
	netbsd-5-0:1.8.0.96
	netbsd-5-0-RELEASE:1.8
	netbsd-5-0-RC4:1.8
	netbsd-5-0-RC3:1.8
	netbsd-5-0-RC2:1.8
	jym-xensuspend:1.8.0.94
	jym-xensuspend-base:1.8
	netbsd-5-0-RC1:1.8
	haad-dm-base2:1.8
	haad-nbase2:1.8
	ad-audiomp2:1.8.0.92
	ad-audiomp2-base:1.8
	netbsd-5:1.8.0.90
	netbsd-5-base:1.8
	haad-dm-base1:1.8
	haad-dm:1.8.0.88
	haad-dm-base:1.8
	simonb-wapbl-nbase:1.8
	yamt-pf42-base4:1.8
	simonb-wapbl:1.8.0.86
	simonb-wapbl-base:1.8
	yamt-pf42-base3:1.8
	hpcarm-cleanup-nbase:1.8
	yamt-pf42-base2:1.8
	yamt-nfs-mp-base2:1.8
	yamt-nfs-mp:1.8.0.84
	yamt-nfs-mp-base:1.8
	yamt-pf42:1.8.0.82
	yamt-pf42-base:1.8
	ad-socklock-base1:1.8
	yamt-lazymbuf-base15:1.8
	yamt-lazymbuf-base14:1.8
	keiichi-mipv6-nbase:1.8
	mjf-devfs2:1.8.0.80
	mjf-devfs2-base:1.8
	keiichi-mipv6:1.8.0.78
	keiichi-mipv6-base:1.8
	bouyer-xeni386-merge1:1.8
	vmlocking2-base3:1.8
	bouyer-xeni386-nbase:1.8
	yamt-kmem-base3:1.8
	cube-autoconf:1.8.0.76
	cube-autoconf-base:1.8
	yamt-kmem-base2:1.8
	bouyer-xeni386:1.8.0.74
	bouyer-xeni386-base:1.8
	yamt-kmem:1.8.0.72
	yamt-kmem-base:1.8
	vmlocking2-base2:1.8
	reinoud-bufcleanup-nbase:1.8
	vmlocking2:1.8.0.70
	vmlocking2-base1:1.8
	jmcneill-base:1.8
	mjf-devfs:1.8.0.68
	mjf-devfs-base:1.8
	bouyer-xenamd64-base2:1.8
	vmlocking-nbase:1.8
	yamt-x86pmap-base4:1.8
	bouyer-xenamd64:1.8.0.66
	bouyer-xenamd64-base:1.8
	yamt-x86pmap-base3:1.8
	yamt-x86pmap-base2:1.8
	yamt-x86pmap:1.8.0.64
	yamt-x86pmap-base:1.8
	jmcneill-pm:1.8.0.62
	jmcneill-pm-base:1.8
	hpcarm-cleanup:1.8.0.60
	hpcarm-cleanup-base:1.8
	mjf-ufs-trans-base:1.8
	yamt-idlelwp-base8:1.8
	ppcoea-renovation:1.8.0.58
	ppcoea-renovation-base:1.8
	reinoud-bufcleanup-base:1.8
	vmlocking:1.8.0.56
	vmlocking-base:1.8
	ad-audiomp:1.8.0.54
	ad-audiomp-base:1.8
	yamt-idlelwp:1.8.0.52
	post-newlock2-merge:1.8
	newlock2-nbase:1.8
	yamt-splraiseipl-base5:1.8
	yamt-splraiseipl-base4:1.8
	yamt-splraiseipl-base3:1.8
	yamt-splraiseipl-base2:1.8
	yamt-splraiseipl:1.8.0.50
	yamt-splraiseipl-base:1.8
	newlock2:1.8.0.48
	newlock2-base:1.8
	yamt-pdpolicy-base8:1.8
	yamt-pdpolicy-base7:1.8
	yamt-pdpolicy-base6:1.8
	gdamore-uart:1.8.0.46
	gdamore-uart-base:1.8
	simonb-timcounters-final:1.8
	yamt-pdpolicy-base5:1.8
	elad-kernelauth-nbase:1.8
	yamt-pdpolicy-base4:1.8
	yamt-pdpolicy-base3:1.8
	yamt-pdpolicy-base2:1.8
	yamt-pdpolicy:1.8.0.44
	yamt-pdpolicy-base:1.8
	yamt-uio_vmspace-base5:1.8
	simonb-timecounters:1.8.0.42
	simonb-timecounters-base:1.8
	rpaulo-netinet-merge-pcb:1.8.0.40
	rpaulo-netinet-merge-pcb-base:1.8
	yamt-uio_vmspace:1.8.0.38
	yamt-readahead-base3:1.8
	yamt-readahead-base2:1.8
	yamt-readahead:1.8.0.36
	yamt-readahead-base:1.8
	yamt-vop-base3:1.8
	yamt-vop-base2:1.8
	thorpej-vnode-attr:1.8.0.34
	thorpej-vnode-attr-base:1.8
	yamt-vop:1.8.0.32
	yamt-vop-base:1.8
	yamt-lazymbuf:1.8.0.30
	yamt-km-base4:1.8
	yamt-km-base3:1.8
	yamt-km-base2:1.8
	yamt-km:1.8.0.28
	yamt-km-base:1.8
	kent-audio2:1.8.0.26
	kent-audio2-base:1.8
	ktrace-lwp:1.8.0.24
	ktrace-lwp-base:1.8
	nathanw_sa_before_merge:1.8
	gmcgarry_ctxsw:1.8.0.22
	gmcgarry_ctxsw_base:1.8
	gmcgarry_ucred:1.8.0.20
	gmcgarry_ucred_base:1.8
	nathanw_sa_base:1.8
	gehenna-devsw:1.8.0.18
	gehenna-devsw-base:1.8
	eeh-devprop:1.8.0.16
	eeh-devprop-base:1.8
	newlock:1.8.0.14
	newlock-base:1.8
	ifpoll-base:1.8
	thorpej-mips-cache:1.8.0.10
	thorpej-mips-cache-base:1.8
	thorpej-devvp:1.8.0.8
	thorpej-devvp-base:1.8
	kqueue:1.8.0.6
	kqueue-base:1.8
	sommerfeld_i386mp_1:1.8.0.4
	sommerfeld_i386mpbase_1:1.8
	thorpej_scsipi_beforemerge:1.8
	sommerfeld_i386mpnext:1.8
	thorpej_scsipi_nbase:1.8
	chs-ubc2-newbase:1.8
	fvdl-softdep-base:1.8
	thorpej_scsipi:1.8.0.2
	thorpej_scsipi_base:1.8
	marc-pcmcia-base:1.8;
locks; strict;
comment	@# @;


1.8
date	96.09.13.02.24.31;	author jtk;	state dead;
branches;
next	1.7;

1.7
date	96.09.09.18.42.51;	author mycroft;	state Exp;
branches;
next	1.6;

1.6
date	96.09.09.18.07.41;	author mycroft;	state Exp;
branches;
next	1.5;

1.5
date	96.09.09.11.34.01;	author jtk;	state Exp;
branches;
next	1.4;

1.4
date	96.09.09.11.31.40;	author jtk;	state Exp;
branches;
next	1.3;

1.3
date	96.09.08.15.36.52;	author jtk;	state Exp;
branches;
next	1.2;

1.2
date	96.08.30.02.32.18;	author jtk;	state Exp;
branches;
next	1.1;

1.1
date	96.08.25.23.39.15;	author jtk;	state Exp;
branches;
next	;


desc
@@


1.8
log
@use ls, not ${LS}; remove now-unneeded Makefile.inc
@
text
@#	$NetBSD: Makefile.inc,v 1.7 1996/09/09 18:42:51 mycroft Exp jtk $
#
#	NOTE: $S must correspond to the top of the 'sys' tree

APMDIR=		${I386}/apm_init

APMDST?=	${.OBJDIR}/lib/apm_init
APMINC?=	${APMDST}/biostramp.inc

APMDEPS= \
	${APMDIR}/Makefile \
	${APMDIR}/bin2asm.sh \
	${APMDIR}/biostramp.S \
	${APMDIR}/rmaouthdr \
	${.OBJDIR}/assym.h \
	${.OBJDIR}/apm.h \
	${I386}/include/param.h \
	${I386}/include/cpu.h \
	${I386}/include/psl.h \
	${I386}/include/intr.h \
	${I386}/include/frame.h \
	${I386}/include/signal.h \
	${I386}/include/trap.h \
	${I386}/include/segments.h \
	${I386}/include/cputypes.h \
	${I386}/include/specialreg.h \
	${I386}/include/apmvar.h \
	${I386}/include/asm.h

APMMAKE= \
	cd ${APMDIR} && MAKEOBJDIR=${APMDST} ${MAKE} \
	    CC='${CC}' CFLAGS='${CFLAGS}' \
	    AS='${AS}' AFLAGS='${AFLAGS}' \
	    LD='${LD}' STRIP='${STRIP}' \
	    APMCPPFLAGS='${CPPFLAGS:S@@^-I.$@@-I${.OBJDIR}@@}' \
	    APMDEPS='${APMDEPS}'

${APMINC}:		.NOTMAIN __always_make_apmlib \
			${APMDEPS} apm.h
	@@echo making sure the apm grappling hook is up to date...
	@@${APMMAKE} biostramp.inc

clean:: 		.NOTMAIN __always_make_apmlib
	@@echo cleaning the apm grappling hook objects
	@@${APMMAKE} clean

depend:: 		.NOTMAIN __always_make_apmlib
	@@echo depending the apm grappling hook objects
	@@${APMMAKE} depend

__always_make_apmlib:		.NOTMAIN
	@@mkdir -p ${APMDST}
@


1.7
log
@Use machine/asm.h.  Garbage collect.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 1996/09/09 18:07:41 mycroft Exp $
@


1.6
log
@Make the build process more sane.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 1996/09/09 11:34:01 jtk Exp $
d18 1
d21 5
d27 2
a28 2
	${I386}/include/segments.h \
	${I386}/include/apmvar.h
@


1.5
log
@I meant to depend on apm.h, not Makefile
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 1996/09/09 11:31:40 jtk Exp $
d5 1
a5 1
APMDIR=	${I386}/apm_init
d7 1
a7 1
APMDST=	lib/apm_init
d15 2
a16 1
	${I386}/include/apmvar.h \
d18 3
d22 9
a30 2
	${I386}/include/specialreg.h \
	${I386}/include/psl.h
d32 2
a33 1
${APMINC}:	${APMDEPS} ${APMDST} assym.h apm.h
d35 1
a35 8
	@@(cd ${APMDST} && ${MAKE} -f ${APMDIR}/Makefile \
	  APMCC="${CC}" \
	  APMCFLAGS="${CFLAGS} -I${.CURDIR}" \
	  APMLD="${LD}" \
	  APMSTRIP="${APMSTRIP}" \
	  APMDIR="${APMDIR}" I386="${I386}" S="${S}" \
	  APMDEPS="${APMDEPS} ${.CURDIR}/assym.h" \
	  biostramp.inc)
d39 5
a43 6
	@@(cd ${APMDST} && ${MAKE} -f ${APMDIR}/Makefile \
	  APMCC="${CC}" \
	  APMCFLAGS="${CFLAGS}" \
	  APMLD="${LD}" \
	  APMSTRIP="${APMSTRIP}" \
	  APMDIR="${APMDIR}" clean)
d45 2
a46 2
${APMDST} __always_make_apmlib:	.NOTMAIN
	@@([ -d ${APMDST} ] || mkdir -p ${APMDST})
@


1.4
log
@fix compilation problems when APM not configured
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 1996/09/08 15:36:52 jtk Exp $
d21 1
a21 1
${APMINC}:	${APMDEPS} ${APMDST} assym.h Makefile
@


1.3
log
@re-implement BIOS trampoline as a more general-purpose, reusable trampoline.
calling interface (via a grapple in locore.s) is:
/*
 * void bioscall(int function, struct apmregs *regs):
 * 	call the BIOS interrupt "function" from real mode with
 *	registers as specified in "regs"
 *	(for the flags, though, only these flags are passed to the BIOS;
 *	the remainder come from the flags register at the time of the call:
 *	(PSL_C|PSL_PF|PSL_AF|PSL_Z|PSL_N|PSL_D|PSL_V)
 *
 *	Fills in *regs with registers as returned by BIOS.
 */

still some generalization to do (moving this to a better named location,
cleaning up #if tests from NAPM > 0 to something else to allow easy
sharing by other drivers)

Thanks to Charles Hannum for complaining about the previous BIOS grapple
and inspiring me to hack this one together.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 1996/08/30 02:32:18 jtk Exp $
d21 1
a21 1
${APMINC}:	${APMDEPS} ${APMDST} assym.h
@


1.2
log
@clean up includes and uses of constants so that we use one include file,
<i386/include/apmvar.h>
remove some files we don't need anymore
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 1996/08/25 23:39:15 jtk Exp $
d8 1
a8 1
APMINC?=	${APMDST}/apm_init.inc
a11 1
	${APMDIR}/apm_init.S \
d13 1
a13 2
	${APMDIR}/real_prot.S \
	${APMDIR}/real_prot.h \
d15 5
a19 2
	${APMDIR}/table.c \
	${I386}/include/apmvar.h
d21 1
a21 1
${APMINC}:	${APMDEPS} ${APMDST}
d25 1
a25 1
	  APMCFLAGS="${CFLAGS}" \
d29 2
a30 1
	  apm_init.inc)
@


1.1
log
@add Advanced Power Management driver
Includes bootstrap support from FreeBSD (Tatsumi HOSOKAWA and <ukai>)
@
text
@d1 1
a1 1
#	$NetBSD$
a11 1
	${APMDIR}/apm_bios.h \
a12 1
	${APMDIR}/apm_segments.h \
d17 2
a18 1
	${APMDIR}/table.c
d27 2
a28 1
	  APMDIR="${APMDIR}" apm_init.inc)
@
