head	1.7;
access;
symbols
	perseant-exfatfs-base-20250801:1.7
	perseant-exfatfs-base-20240630:1.7
	perseant-exfatfs:1.7.0.142
	perseant-exfatfs-base:1.7
	bouyer-sunxi-drm:1.7.0.140
	bouyer-sunxi-drm-base:1.7
	cjep_sun2x:1.7.0.138
	cjep_sun2x-base:1.7
	cjep_staticlib_x-base1:1.7
	cjep_staticlib_x:1.7.0.136
	cjep_staticlib_x-base:1.7
	thorpej-futex-base:1.7
	bouyer-xenpvh-base2:1.7
	phil-wifi-20200421:1.7
	bouyer-xenpvh-base1:1.7
	phil-wifi-20200411:1.7
	bouyer-xenpvh:1.7.0.134
	bouyer-xenpvh-base:1.7
	phil-wifi-20200406:1.7
	ad-namecache-base3:1.7
	ad-namecache-base2:1.7
	ad-namecache-base1:1.7
	ad-namecache:1.7.0.132
	ad-namecache-base:1.7
	isaki-audio2:1.7.0.130
	isaki-audio2-base:1.7
	pgoyette-compat-merge-20190127:1.7
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	pgoyette-compat-0728:1.7
	pgoyette-compat-0625:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	pgoyette-compat:1.7.0.10
	pgoyette-compat-base:1.7
	perseant-stdc-iso10646:1.7.0.128
	perseant-stdc-iso10646-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.126
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	bouyer-socketcan:1.7.0.124
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	pgoyette-localcount-20161104:1.7
	localcount-20160914:1.7
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.122
	pgoyette-localcount-base:1.7
	netbsd-5-2-3-RELEASE:1.7
	netbsd-5-1-5-RELEASE:1.7
	yamt-pagecache-base9:1.7
	yamt-pagecache-tag8:1.7
	tls-earlyentropy:1.7.0.120
	tls-earlyentropy-base:1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7
	riastradh-drm2-base3:1.7
	netbsd-5-2-2-RELEASE:1.7
	netbsd-5-1-4-RELEASE:1.7
	netbsd-5-2-1-RELEASE:1.7
	netbsd-5-1-3-RELEASE:1.7
	rmind-smpnet-nbase:1.7
	rmind-smpnet:1.7.0.116
	rmind-smpnet-base:1.7
	agc-symver:1.7.0.118
	agc-symver-base:1.7
	tls-maxphys-base:1.7
	yamt-pagecache-base8:1.7
	netbsd-5-2:1.7.0.114
	yamt-pagecache-base7:1.7
	netbsd-5-2-RELEASE:1.7
	netbsd-5-2-RC1:1.7
	yamt-pagecache-base6:1.7
	yamt-pagecache-base5:1.7
	yamt-pagecache-base4:1.7
	netbsd-5-1-2-RELEASE:1.7
	netbsd-5-1-1-RELEASE:1.7
	jmcneill-usbmp:1.7.0.112
	jmcneill-usbmp-base:1.7
	jmcneill-audiomp3:1.7.0.110
	jmcneill-audiomp3-base:1.7
	yamt-pagecache-base3:1.7
	yamt-pagecache-base2:1.7
	yamt-pagecache:1.7.0.108
	yamt-pagecache-base:1.7
	rmind-uvmplock-nbase:1.7
	jym-xensuspend-nbase:1.7
	bouyer-quota2-nbase:1.7
	bouyer-quota2:1.7.0.106
	bouyer-quota2-base:1.7
	jruoho-x86intr:1.7.0.104
	jruoho-x86intr-base:1.7
	matt-nb5-pq3:1.7.0.102
	matt-nb5-pq3-base:1.7
	netbsd-5-1:1.7.0.100
	netbsd-5-1-RELEASE:1.7
	yamt-nfs-mp-base11:1.7
	netbsd-5-1-RC4:1.7
	uebayasi-xip-base2:1.7
	yamt-nfs-mp-base10:1.7
	netbsd-5-1-RC3:1.7
	netbsd-5-1-RC2:1.7
	netbsd-5-1-RC1:1.7
	rmind-uvmplock:1.7.0.98
	rmind-uvmplock-base:1.7
	yamt-nfs-mp-base9:1.7
	uebayasi-xip:1.7.0.96
	uebayasi-xip-base:1.7
	netbsd-5-0-2-RELEASE:1.7
	yamt-nfs-mp-base8:1.7
	yamt-nfs-mp-base7:1.7
	netbsd-5-0-1-RELEASE:1.7
	jymxensuspend-base:1.7
	yamt-nfs-mp-base6:1.7
	yamt-nfs-mp-base5:1.7
	yamt-nfs-mp-base4:1.7
	yamt-nfs-mp-base3:1.7
	netbsd-5-0:1.7.0.94
	netbsd-5-0-RELEASE:1.7
	netbsd-5-0-RC4:1.7
	netbsd-5-0-RC3:1.7
	netbsd-5-0-RC2:1.7
	jym-xensuspend:1.7.0.92
	jym-xensuspend-base:1.7
	netbsd-5-0-RC1:1.7
	haad-dm-base2:1.7
	haad-nbase2:1.7
	ad-audiomp2:1.7.0.90
	ad-audiomp2-base:1.7
	netbsd-5:1.7.0.88
	netbsd-5-base:1.7
	haad-dm-base1:1.7
	haad-dm:1.7.0.86
	haad-dm-base:1.7
	simonb-wapbl-nbase:1.7
	yamt-pf42-base4:1.7
	simonb-wapbl:1.7.0.84
	simonb-wapbl-base:1.7
	yamt-pf42-base3:1.7
	hpcarm-cleanup-nbase:1.7
	yamt-pf42-base2:1.7
	yamt-nfs-mp-base2:1.7
	yamt-nfs-mp:1.7.0.82
	yamt-nfs-mp-base:1.7
	yamt-pf42:1.7.0.80
	yamt-pf42-base:1.7
	ad-socklock-base1:1.7
	yamt-lazymbuf-base15:1.7
	yamt-lazymbuf-base14:1.7
	keiichi-mipv6-nbase:1.7
	mjf-devfs2:1.7.0.78
	mjf-devfs2-base:1.7
	keiichi-mipv6:1.7.0.76
	keiichi-mipv6-base:1.7
	bouyer-xeni386-merge1:1.7
	vmlocking2-base3:1.7
	bouyer-xeni386-nbase:1.7
	yamt-kmem-base3:1.7
	cube-autoconf:1.7.0.74
	cube-autoconf-base:1.7
	yamt-kmem-base2:1.7
	bouyer-xeni386:1.7.0.72
	bouyer-xeni386-base:1.7
	yamt-kmem:1.7.0.70
	yamt-kmem-base:1.7
	vmlocking2-base2:1.7
	reinoud-bufcleanup-nbase:1.7
	vmlocking2:1.7.0.68
	vmlocking2-base1:1.7
	jmcneill-base:1.7
	mjf-devfs:1.7.0.66
	mjf-devfs-base:1.7
	bouyer-xenamd64-base2:1.7
	vmlocking-nbase:1.7
	yamt-x86pmap-base4:1.7
	bouyer-xenamd64:1.7.0.64
	bouyer-xenamd64-base:1.7
	yamt-x86pmap-base3:1.7
	yamt-x86pmap-base2:1.7
	yamt-x86pmap:1.7.0.62
	yamt-x86pmap-base:1.7
	jmcneill-pm:1.7.0.60
	jmcneill-pm-base:1.7
	hpcarm-cleanup:1.7.0.58
	hpcarm-cleanup-base:1.7
	mjf-ufs-trans-base:1.7
	yamt-idlelwp-base8:1.7
	ppcoea-renovation:1.7.0.56
	ppcoea-renovation-base:1.7
	reinoud-bufcleanup-base:1.7
	vmlocking:1.7.0.54
	vmlocking-base:1.7
	ad-audiomp:1.7.0.52
	ad-audiomp-base:1.7
	yamt-idlelwp:1.7.0.50
	post-newlock2-merge:1.7
	newlock2-nbase:1.7
	yamt-splraiseipl-base5:1.7
	yamt-splraiseipl-base4:1.7
	yamt-splraiseipl-base3:1.7
	yamt-splraiseipl-base2:1.7
	yamt-splraiseipl:1.7.0.48
	yamt-splraiseipl-base:1.7
	newlock2:1.7.0.46
	newlock2-base:1.7
	yamt-pdpolicy-base8:1.7
	yamt-pdpolicy-base7:1.7
	yamt-pdpolicy-base6:1.7
	gdamore-uart:1.7.0.44
	gdamore-uart-base:1.7
	simonb-timcounters-final:1.7
	yamt-pdpolicy-base5:1.7
	elad-kernelauth-nbase:1.7
	yamt-pdpolicy-base4:1.7
	yamt-pdpolicy-base3:1.7
	yamt-pdpolicy-base2:1.7
	yamt-pdpolicy:1.7.0.42
	yamt-pdpolicy-base:1.7
	yamt-uio_vmspace-base5:1.7
	simonb-timecounters:1.7.0.40
	simonb-timecounters-base:1.7
	rpaulo-netinet-merge-pcb:1.7.0.38
	rpaulo-netinet-merge-pcb-base:1.7
	yamt-uio_vmspace:1.7.0.36
	yamt-readahead-base3:1.7
	yamt-readahead-base2:1.7
	yamt-readahead:1.7.0.34
	yamt-readahead-base:1.7
	yamt-vop-base3:1.7
	yamt-vop-base2:1.7
	thorpej-vnode-attr:1.7.0.32
	thorpej-vnode-attr-base:1.7
	yamt-vop:1.7.0.30
	yamt-vop-base:1.7
	yamt-lazymbuf:1.7.0.28
	yamt-km-base4:1.7
	yamt-km-base3:1.7
	yamt-km-base2:1.7
	yamt-km:1.7.0.26
	yamt-km-base:1.7
	kent-audio2:1.7.0.24
	kent-audio2-base:1.7
	ktrace-lwp:1.7.0.22
	ktrace-lwp-base:1.7
	nathanw_sa_before_merge:1.7
	gmcgarry_ctxsw:1.7.0.20
	gmcgarry_ctxsw_base:1.7
	gmcgarry_ucred:1.7.0.18
	gmcgarry_ucred_base:1.7
	nathanw_sa_base:1.7
	gehenna-devsw:1.7.0.16
	gehenna-devsw-base:1.7
	eeh-devprop:1.7.0.14
	eeh-devprop-base:1.7
	newlock:1.7.0.12
	newlock-base:1.7
	ifpoll-base:1.7
	thorpej-mips-cache:1.7.0.8
	thorpej-mips-cache-base:1.7
	thorpej-devvp:1.7.0.6
	thorpej-devvp-base:1.7
	kqueue:1.7.0.4
	kqueue-base:1.7
	thorpej_scsipi_beforemerge:1.7
	sommerfeld_i386mpnext:1.7
	thorpej_scsipi_nbase:1.7
	chs-ubc2-newbase:1.7
	fvdl-softdep-base:1.7
	thorpej_scsipi:1.7.0.2
	thorpej_scsipi_base:1.7
	thorpej-signal:1.6.0.12
	thorpej-signal-base:1.6
	marc-pcmcia:1.6.0.10
	marc-pcmcia-bp:1.6
	marc-pcmcia-base:1.7
	bouyer-scsipi:1.6.0.8
	is-newarp-before-merge:1.6
	is-newarp:1.6.0.6
	is-newarp-base:1.6
	mrg-vm-swap:1.6.0.4
	thorpej-setroot:1.6.0.2;
locks; strict;
comment	@# @;


1.7
date	97.10.14.03.56.24;	author jtk;	state dead;
branches;
next	1.6;

1.6
date	96.09.13.02.24.30;	author jtk;	state Exp;
branches;
next	1.5;

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

1.4
date	96.09.09.18.07.40;	author mycroft;	state Exp;
branches;
next	1.3;

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

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

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


desc
@@


1.7
log
@move arch/i386/apm_init stuff to arch/i386/bioscall via repository copy/tag strip
@
text
@#	$NetBSD: Makefile,v 1.6 1996/09/13 02:24:30 jtk Exp $

CPPFLAGS=	${APMCPPFLAGS}
CFLAGS+=	-I${.CURDIR}/../.. -I${.CURDIR}/../../..

SRCS=	biostramp.S
OBJS=	biostramp.o
DEPS=	${APMDEPS}
STRIP?= strip

all: biostramp.inc

biostramp.inc: biostramp Makefile
	-mv -f biostramp.inc biostramp.inc.bak
	sh ${.CURDIR}/bin2asm.sh biostramp > biostramp.inc

biostramp: ${OBJS} ${DEPS}
	${LD} -Bstatic -N -T 0 -o biostramp $(OBJS)
	cp biostramp biostramp.sym
	@@${STRIP} biostramp
	@@if [ `ls -l biostramp |awk '{print $$5}'` -gt 4096 ]; then \
		echo "biostramp too big"; \
		exit 1; \
	fi
	@@sh ${.CURDIR}/rmaouthdr biostramp biostramp.tmp
	@@mv -f biostramp.tmp biostramp

assym.h: genassym
	./genassym > assym.h

biostramp.S: assym.h
biostramp.o: biostramp.S
	${CC} ${CFLAGS} -DASM -D_LOCORE -c biostramp.S

clean:
	rm -f *.o biostramp biostramp.sym biostramp.inc genassym assym.h

.include <bsd.dep.mk>
.include <bsd.subdir.mk>
#.include <bsd.prog.mk>
@


1.6
log
@use ls, not ${LS}; remove now-unneeded Makefile.inc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1996/09/13 00:02:36 jtk Exp $
@


1.5
log
@BIOS trampoline is a static beast; generate it in the sources like
syscalls.h & friends, and include it when needed from the source directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1996/09/09 18:07:40 mycroft Exp $
d21 1
a21 1
	@@if [ `${LS} -l biostramp |awk '{print $$5}'` -gt 4096 ]; then \
@


1.4
log
@Make the build process more sane.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1996/09/08 15:36:51 jtk Exp $
d4 1
d9 3
d14 1
d28 7
d36 1
a36 1
	rm -f *.o biostramp biostramp.sym biostramp.inc
@


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 43
#	$NetBSD: Makefile,v 1.2 1996/08/30 02:32:13 jtk Exp $
#
# LP (Laptop Package)
#
# (C) 1994 by HOSOKAWA, Tatsumi <hosokawa@@mt.cs.keio.ac.jp>
#
# This software may be used, modified, copied, and distributed in
# both source and binary form provided that the above copyright and
# these terms are retained. Under no circumstances is the author 
# responsible for the proper functioning of this software, nor does 
# the author assume any responsibility for damages incurred with its 
# use.
#
# Sep., 1994	Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
# Oct., 1994	NetBSD port (1.0 BETA 10/2) by ukai
# Dec., 1995	NetBSD 1.1 kernel build retrofit, jtk@@netbsd.org
#

DIR=${APMREL}${APMDIR}

.if exists (${DIR}/arch/${MACHINE_ARCH}/Makefile.inc)
.PATH:	${DIR}/arch/${MACHINE_ARCH}
.include "${DIR}/arch/${MACHINE_ARCH}/Makefile.inc"
.endif

.PATH: ${DIR}

CC = ${APMCC} -I. -I$S/arch -I$S
LD = ${APMLD}
CFLAGS += -DINITIALIZER	-I${DIR} -DKERNEL \
	${APMCFLAGS:S@@-I.@@-I${KERNREL}.@@g}

OBJS = biostramp.o

$(OBJS): ${I386}/include/apmvar.h

#.SUFFIXES: .c .S .o
#
#.c.o:
#	$(CC)  $(CFLAGS) $(OPTFLAGS) $(INC) -c $<
#
.S.o:
	$(CC)  $(CFLAGS) $(INC) -c $<
d3 5
a7 1
DEPS=${APMDEPS}
d10 1
a10 1
	sh ${DIR}/bin2asm.sh biostramp > biostramp.inc
d12 2
a13 2
biostramp: $(OBJS) $(DEPS)
	$(LD) -Bstatic -N -T 0 -o biostramp $(OBJS)
d15 1
a15 1
	@@${APMSTRIP} biostramp
d20 1
a20 1
	@@sh ${DIR}/rmaouthdr biostramp biostramp.tmp
a22 2
#allclean: clean
#	@@rm -f apm_init.inc
d26 2
@


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,v 1.1 1996/08/25 23:39:14 jtk Exp $
a29 1
STRIP = ${APMSTRIP}
d33 1
a33 1
OBJS = apm_init.o real_prot.o table.o
d45 1
a45 2
apm_init.inc: apm_init Makefile
	sh ${DIR}/bin2asm.sh apm_init > apm_init.inc
d47 13
a59 6
apm_init: $(OBJS)
	$(LD) -Bstatic -N -T 0 -o apm_init $(OBJS)
	cp apm_init apm_init.sym
	@@${STRIP} apm_init
	@@sh ${DIR}/rmaouthdr apm_init apm_init.tmp
	@@mv -f apm_init.tmp apm_init
d64 1
a64 1
	rm -f *.o apm_init apm_init.sym 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$
d28 1
a28 1
CC = ${APMCC}
d35 2
@
