diff options
161 files changed, 11 insertions, 19262 deletions
diff --git a/distrib/Makefile b/distrib/Makefile index 89c0479af83..9a07eb6e1ac 100644 --- a/distrib/Makefile +++ b/distrib/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.38 2011/03/22 17:35:01 deraadt Exp $ +# $OpenBSD: Makefile,v 1.39 2011/07/07 19:16:43 deraadt Exp $ SUBDIR= special notes .if make(obj) SUBDIR+=alpha amd64 armish beagle hp300 hppa i386 landisk loongson mac68k macppc \ - mvme68k mvme88k mvmeppc sgi socppc sparc sparc64 vax zaurus + mvme68k mvme88k sgi socppc sparc sparc64 vax zaurus .elif exists(${MACHINE}) SUBDIR+=${MACHINE} .endif diff --git a/distrib/mvmeppc/Makefile b/distrib/mvmeppc/Makefile deleted file mode 100644 index 62b560f2ba9..00000000000 --- a/distrib/mvmeppc/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2001/06/26 22:23:23 smurph Exp $ - -SUBDIR= ramdisk - -.include <bsd.subdir.mk> diff --git a/distrib/mvmeppc/Makefile.inc b/distrib/mvmeppc/Makefile.inc deleted file mode 100644 index de547a91e2e..00000000000 --- a/distrib/mvmeppc/Makefile.inc +++ /dev/null @@ -1,6 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.1 2001/06/26 22:23:23 smurph Exp $ - -REV= ${OSrev} - -BSDSRCDIR?= /usr/src -SRCSYSDIR?= ${BSDSRCDIR}/sys diff --git a/distrib/mvmeppc/ramdisk/Makefile b/distrib/mvmeppc/ramdisk/Makefile deleted file mode 100644 index db14c1dd4dc..00000000000 --- a/distrib/mvmeppc/ramdisk/Makefile +++ /dev/null @@ -1,104 +0,0 @@ -# $OpenBSD: Makefile,v 1.17 2011/04/18 16:52:10 thib Exp $ - -TOP= ${.CURDIR}/.. - -.include "${TOP}/Makefile.inc" -BSD_RD= bsd.rd -IMAGE= mr.fs -CBIN?= instbin -LISTS= ${.CURDIR}/list -UTILS?= ${.CURDIR}/../../miniroot - -MOUNT_POINT= /mnt -MTREE= ${UTILS}/mtree.conf - -VND?= vnd0 -VND_DEV= /dev/${VND}a -VND_RDEV= /dev/r${VND}a -VND_CRDEV= /dev/r${VND}c -PID!= echo $$$$ - - -DISKTYPE= rdroot -NBLKS= 8192 -# minfree, opt, b/i trks, sects, cpg -NEWFSARGS= -m 0 -o space - -.ifndef DESTDIR -all ${IMAGE}: - @echo setenv DESTDIR before making a ramdisk! - @false -.else - -# mix config is not needed. -all: ${BSD_RD} cd - -${BSD_RD}: ${CBIN} ${IMAGE} bsd rdsetroot - cp bsd ${BSD_RD} - ${.OBJDIR}/rdsetroot ${BSD_RD} ${IMAGE} - -cd: ${BSD_RD} - -rm -rf ${.OBJDIR}/cd-dir/ - -@mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/mvmeppc/ - cp bsd.rd ${.OBJDIR}/cd-dir/${OSREV}/mvmeppc/bsd.rd - strip ${.OBJDIR}/cd-dir/${OSREV}/mvmeppc/bsd.rd - gzip -9n ${.OBJDIR}/cd-dir/${OSREV}/mvmeppc/bsd.rd - mv ${.OBJDIR}/cd-dir/${OSREV}/mvmeppc/bsd.rd.gz ${.OBJDIR}/cd-dir/${OSREV}/mvmeppc/bsd.rd - - -${IMAGE}: rd_setup do_files rd_teardown - -.endif - -bsd: - cd ${TOP}/../../sys/arch/mvmeppc/conf && config RAMDISK - cd ${TOP}/../../sys/arch/mvmeppc/compile/RAMDISK && \ - ${MAKE} clean && exec ${MAKE} - cp ${TOP}/../../sys/arch/mvmeppc/compile/RAMDISK/bsd bsd - -rd_setup: - dd if=/dev/zero of=${IMAGE} bs=512 count=${NBLKS} - vnconfig -v -c ${VND} ${IMAGE} - disklabel -w ${VND} ${DISKTYPE} - newfs ${NEWFSARGS} ${VND_RDEV} - fsck ${VND_RDEV} - mount ${VND_DEV} ${MOUNT_POINT} - -rd_teardown: - @df -i ${MOUNT_POINT} - -umount ${MOUNT_POINT} - -vnconfig -u ${VND} - -rdsetroot: ${TOP}/../common/elfrdsetroot.c - ${HOSTCC} -o rdsetroot ${TOP}/../common/elfrdsetroot.c - -unconfig: - -umount -f ${MOUNT_POINT} - -vnconfig -u ${VND} - -.PRECIOUS: ${IMAGE} - -${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CBIN}.conf - crunchgen -E -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC} - -${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c - ${MAKE} -f ${CBIN}.mk all - -do_files: - mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u - TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ - REV=${REV} TARGDIR=${MOUNT_POINT} UTILS=${UTILS} \ - RELEASEDIR=${RELEASEDIR} sh ${UTILS}/runlist.sh ${LISTS} - rm ${MOUNT_POINT}/${CBIN} - -clean cleandir: - /bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \ - *.o *.lo *.c bsd ${BSD_RD} rdsetroot - -.ifdef RELEASEDIR -install: - cp ${BSD.RD} cd${REV}.fs ${RELEASEDIR} -.endif - -.include <bsd.obj.mk> -.include <bsd.subdir.mk> diff --git a/distrib/mvmeppc/ramdisk/Makefile.inc b/distrib/mvmeppc/ramdisk/Makefile.inc deleted file mode 100644 index 1531e8260ff..00000000000 --- a/distrib/mvmeppc/ramdisk/Makefile.inc +++ /dev/null @@ -1,4 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.1 2001/06/26 22:23:25 smurph Exp $ - -CRUNCHGENOPTS= -E - diff --git a/distrib/mvmeppc/ramdisk/install.md b/distrib/mvmeppc/ramdisk/install.md deleted file mode 100644 index 5abfa098389..00000000000 --- a/distrib/mvmeppc/ramdisk/install.md +++ /dev/null @@ -1,45 +0,0 @@ -# $OpenBSD: install.md,v 1.25 2009/06/04 00:44:47 krw Exp $ -# -# -# Copyright (c) 1996 The NetBSD Foundation, Inc. -# All rights reserved. -# -# This code is derived from software contributed to The NetBSD Foundation -# by Jason R. Thorpe. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# -# -# machine dependent section of installation/upgrade script. -# - -md_installboot() { -} - -md_prep_disklabel() { -} - -md_congrats() { -} - -md_consoleinfo() { -} diff --git a/distrib/mvmeppc/ramdisk/list b/distrib/mvmeppc/ramdisk/list deleted file mode 100644 index 96d31487c25..00000000000 --- a/distrib/mvmeppc/ramdisk/list +++ /dev/null @@ -1,93 +0,0 @@ -# $OpenBSD: list,v 1.28 2010/10/18 04:07:51 deraadt Exp $ - -SRCDIRS distrib/special -SRCDIRS bin sbin usr.bin usr.sbin - -# copy the crunched binary, link to it, and kill it -COPY ${OBJDIR}/instbin instbin -LINK instbin bin/arch -LINK instbin bin/cat -LINK instbin bin/date -LINK instbin bin/chmod bin/chgrp sbin/chown -LINK instbin bin/cp -LINK instbin bin/dd -LINK instbin bin/df -LINK instbin bin/ed -LINK instbin bin/expr -LINK instbin bin/hostname -LINK instbin bin/ksh bin/sh -ARGVLINK ksh -sh -LINK instbin bin/ln -LINK instbin bin/ls -LINK instbin bin/mkdir -LINK instbin bin/mt bin/eject -LINK instbin bin/mv -LINK instbin bin/pax bin/tar bin/cpio -LINK instbin bin/rm -LINK instbin bin/sha256 -LINK instbin bin/sleep -LINK instbin bin/stty -LINK instbin bin/sync -LINK instbin sbin/dhclient -LINK instbin sbin/disklabel -LINK instbin sbin/dmesg -LINK instbin sbin/fdisk -LINK instbin sbin/fsck -LINK instbin sbin/fsck_ffs -LINK instbin sbin/ifconfig -LINK instbin sbin/init -LINK instbin sbin/mknod -LINK instbin sbin/mount -LINK instbin sbin/mount_cd9660 -LINK instbin sbin/mount_ffs -LINK instbin sbin/mount_msdos -LINK instbin sbin/mount_nfs -LINK instbin sbin/newfs -LINK instbin sbin/newfs_msdos -LINK instbin sbin/pdisk -LINK instbin sbin/ping -LINK instbin sbin/ping6 -LINK instbin sbin/reboot sbin/halt -LINK instbin sbin/restore -LINK instbin sbin/route -LINK instbin sbin/rtsol -LINK instbin sbin/umount -LINK instbin usr/bin/ftp -LINK instbin usr/bin/grep usr/bin/fgrep usr/bin/egrep -LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat -LINK instbin usr/bin/less usr/bin/more -LINK instbin usr/bin/sed -LINK instbin sbin/sysctl - -# copy the MAKEDEV script and make some devices -SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV -SPECIAL cd dev; sh MAKEDEV ramdisk - -# we need the contents of /usr/mdec -COPY ${DESTDIR}/usr/mdec/ofwboot usr/mdec/ofwboot -COPY ${DESTDIR}/usr/mdec/mbr usr/mdec/mbr -COPY ${DESTDIR}/usr/mdec/msdos1mb.gz usr/mdec/msdos1mb.gz - -# various files that we need in /etc for the install -COPY ${DESTDIR}/etc/group etc/group -COPY ${CURDIR}/../../miniroot/protocols etc/protocols -COPY ${CURDIR}/../../miniroot/services etc/services -COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd -SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd -SYMLINK /tmp/fstab.shadow etc/fstab -SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf -SYMLINK /tmp/hosts etc/hosts -TERMCAP vt100,vt220,dumb usr/share/misc/termcap - -# dhcp things -SCRIPT ${DESTDIR}/sbin/dhclient-script sbin/dhclient-script - -# and the installation tools -SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile -SCRIPT ${CURDIR}/install.md install.md -SCRIPT ${CURDIR}/../../miniroot/upgrade.sh upgrade -SCRIPT ${CURDIR}/../../miniroot/install.sh install -SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub -SPECIAL chmod 755 install upgrade sbin/dhclient-script - -HASH var/hash diff --git a/distrib/sets/lists/base/md.mvmeppc b/distrib/sets/lists/base/md.mvmeppc deleted file mode 100644 index af5f1e8b0ad..00000000000 --- a/distrib/sets/lists/base/md.mvmeppc +++ /dev/null @@ -1,2325 +0,0 @@ -./etc/firmware/3c990 -./etc/firmware/3c990-license -./etc/firmware/atu-at76c503-i3863-ext -./etc/firmware/atu-at76c503-i3863-int -./etc/firmware/atu-at76c503-rfmd-acc-ext -./etc/firmware/atu-at76c503-rfmd-acc-int -./etc/firmware/atu-at76c505-rfmd-ext -./etc/firmware/atu-at76c505-rfmd-int -./etc/firmware/atu-intersil-ext -./etc/firmware/atu-intersil-int -./etc/firmware/atu-license -./etc/firmware/atu-rfmd-ext -./etc/firmware/atu-rfmd-int -./etc/firmware/atu-rfmd2958-ext -./etc/firmware/atu-rfmd2958-int -./etc/firmware/atu-rfmd2958smc-ext -./etc/firmware/atu-rfmd2958smc-int -./etc/firmware/fxp-d101a -./etc/firmware/fxp-d101b0 -./etc/firmware/fxp-d101ma -./etc/firmware/fxp-d101s -./etc/firmware/fxp-d102 -./etc/firmware/fxp-d102c -./etc/firmware/fxp-d102e -./etc/firmware/fxp-license -./etc/firmware/tht -./etc/firmware/tht-license -./etc/firmware/uyap -./etc/firmware/uyap-license -./etc/firmware/zd1211 -./etc/firmware/zd1211-license -./etc/firmware/zd1211b -./sbin/pdisk -./sbin/wsconsctl -./usr/lib/apache/modules/libproxy.so -./usr/lib/apache/modules/mod_auth_anon.so -./usr/lib/apache/modules/mod_auth_db.so -./usr/lib/apache/modules/mod_auth_dbm.so -./usr/lib/apache/modules/mod_auth_digest.so -./usr/lib/apache/modules/mod_cern_meta.so -./usr/lib/apache/modules/mod_define.so -./usr/lib/apache/modules/mod_digest.so -./usr/lib/apache/modules/mod_expires.so -./usr/lib/apache/modules/mod_headers.so -./usr/lib/apache/modules/mod_info.so -./usr/lib/apache/modules/mod_log_agent.so -./usr/lib/apache/modules/mod_log_referer.so -./usr/lib/apache/modules/mod_mime_magic.so -./usr/lib/apache/modules/mod_mmap_static.so -./usr/lib/apache/modules/mod_rewrite.so -./usr/lib/apache/modules/mod_speling.so -./usr/lib/apache/modules/mod_unique_id.so -./usr/lib/apache/modules/mod_usertrack.so -./usr/lib/apache/modules/mod_vhost_alias.so -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9 -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3 -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/cc1 -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/collect2 -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/cpp0 -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/include -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/specs -./usr/lib/libasn1.so.18.0 -./usr/lib/libc.so.58.4 -./usr/lib/libcom_err.so.18.0 -./usr/lib/libcrypto.so.19.0 -./usr/lib/libcurses.so.12.0 -./usr/lib/libedit.so.4.1 -./usr/lib/libevent.so.3.0 -./usr/lib/libexpat.so.9.0 -./usr/lib/libform.so.5.0 -./usr/lib/libformw.so.5.0 -./usr/lib/libgssapi.so.5.0 -./usr/lib/libiberty.so.10.1 -./usr/lib/libkafs.so.18.0 -./usr/lib/libkrb5.so.18.0 -./usr/lib/libkvm.so.11.0 -./usr/lib/libm.so.5.4 -./usr/lib/libmenu.so.5.0 -./usr/lib/libmenuw.so.5.0 -./usr/lib/libmilter.so.2.1 -./usr/lib/libncurses.so.12.0 -./usr/lib/libncursesw.so.12.0 -./usr/lib/libobjc.so.4.0 -./usr/lib/libocurses.so.5.0 -./usr/lib/libossaudio.so.3.1 -./usr/lib/libotermcap.so.5.0 -./usr/lib/libpanel.so.5.0 -./usr/lib/libpanelw.so.5.0 -./usr/lib/libpcap.so.6.0 -./usr/lib/libperl.so.12.0 -./usr/lib/libpthread.so.13.1 -./usr/lib/libreadline.so.3.0 -./usr/lib/librpcsvc.so.1.2 -./usr/lib/libskey.so.5.1 -./usr/lib/libsndio.so.4.0 -./usr/lib/libssl.so.16.0 -./usr/lib/libstdc++.so.44.0 -./usr/lib/libtermcap.so.12.0 -./usr/lib/libtermlib.so.12.0 -./usr/lib/libusbhid.so.3.0 -./usr/lib/libutil.so.11.2 -./usr/lib/libwrap.so.4.0 -./usr/lib/libz.so.4.1 -./usr/libdata/perl5/powerpc-openbsd -./usr/libdata/perl5/powerpc-openbsd/5.12.2/.packlist -./usr/libdata/perl5/powerpc-openbsd/5.12.2/B -./usr/libdata/perl5/powerpc-openbsd/5.12.2/B.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/B/Concise.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/B/Showlex.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/B/Terse.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/B/Xref.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/EXTERN.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/INTERN.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/XSUB.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/av.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/bitcount.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/cc_runtime.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/config.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/cop.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/cv.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/dosish.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/embed.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/embedvar.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/fakesdio.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/fakethr.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/form.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/gv.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/handy.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/hv.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/intrpvar.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/iperlsys.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/keywords.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/malloc_ctl.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/mg.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/nostdio.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/op.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/opcode.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/opnames.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/pad.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/patchlevel.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/perl.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/perlapi.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/perlio.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/perliol.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/perlsdio.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/perlsfio.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/perlvars.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/perly.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/pp.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/pp_proto.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/proto.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/reentr.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/regcomp.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/regexp.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/regnodes.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/scope.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/sv.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/thread.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/time64.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/time64_config.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/uconfig.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/unixish.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/utf8.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/utfebcdic.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/util.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/CORE/warnings.h -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Config.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Config.pod -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Config_heavy.pl -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Cwd.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/DB_File.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Data -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Data/Dumper.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Devel -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Devel/DProf.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Devel/PPPort.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Devel/Peek.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Digest -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Digest/MD5.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/DynaLoader.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/Alias.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/Byte.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/CJKConstants.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/CN.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/Config.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/EBCDIC.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/Encoder.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/Encoding.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/Guess.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/JP.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/KR.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/Symbol.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/TW.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Encode/Unicode.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Errno.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Fcntl.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Glob.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec/Cygwin.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec/Epoc.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec/Functions.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec/Mac.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec/OS2.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec/Unix.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec/VMS.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/File/Spec/Win32.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Filter -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Filter/Util -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Filter/Util/Call.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/I18N -./usr/libdata/perl5/powerpc-openbsd/5.12.2/I18N/Langinfo.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO/Dir.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO/File.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO/Handle.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO/Pipe.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO/Poll.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO/Seekable.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO/Select.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IO/Socket.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IPC -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IPC/Msg.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IPC/Semaphore.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/IPC/SysV.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/MIME -./usr/libdata/perl5/powerpc-openbsd/5.12.2/MIME/Base64.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/MIME/QuotedPrint.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/NDBM_File.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/O.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/ODBM_File.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Opcode.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/POSIX.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/POSIX.pod -./usr/libdata/perl5/powerpc-openbsd/5.12.2/PerlIO -./usr/libdata/perl5/powerpc-openbsd/5.12.2/PerlIO/encoding.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/PerlIO/scalar.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/PerlIO/via.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/SDBM_File.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Socket.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Storable.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Sys -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Sys/Hostname.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Sys/Syslog.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Time -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Time/HiRes.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Unicode -./usr/libdata/perl5/powerpc-openbsd/5.12.2/Unicode/Normalize.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/XS -./usr/libdata/perl5/powerpc-openbsd/5.12.2/XS/APItest.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/XS/Typemap.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/attributes.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/B -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/B/B.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/B/B.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Cwd -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Cwd/Cwd.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Cwd/Cwd.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/DB_File -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/DB_File/DB_File.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/DB_File/DB_File.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/DB_File/autosplit.ix -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Data -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Data/Dumper -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Data/Dumper/Dumper.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Data/Dumper/Dumper.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel/DProf -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel/DProf/DProf.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel/DProf/DProf.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel/PPPort -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel/PPPort/PPPort.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel/PPPort/PPPort.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel/Peek -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel/Peek/Peek.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Devel/Peek/Peek.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Digest -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Digest/MD5 -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Digest/MD5/MD5.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Digest/MD5/MD5.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/DynaLoader -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/DynaLoader/autosplit.ix -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/DynaLoader/dl_expandspec.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/DynaLoader/dl_find_symbol_anywhere.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/DynaLoader/dl_findfile.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Byte -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Byte/Byte.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Byte/Byte.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/CN -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/CN/CN.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/CN/CN.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/EBCDIC -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/EBCDIC/EBCDIC.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/EBCDIC/EBCDIC.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Encode.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Encode.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/JP -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/JP/JP.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/JP/JP.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/KR -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/KR/KR.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/KR/KR.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Symbol -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Symbol/Symbol.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Symbol/Symbol.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/TW -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/TW/TW.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/TW/TW.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Unicode -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Unicode/Unicode.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Encode/Unicode/Unicode.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Fcntl -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Fcntl/Fcntl.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Fcntl/Fcntl.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/File -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/File/Glob -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/File/Glob/Glob.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/File/Glob/Glob.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Filter -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Filter/Util -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Filter/Util/Call -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Filter/Util/Call/Call.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Filter/Util/Call/Call.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/I18N -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/I18N/Langinfo -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/I18N/Langinfo/Langinfo.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/I18N/Langinfo/Langinfo.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/I18N/Langinfo/autosplit.ix -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/IO -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/IO/IO.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/IO/IO.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/IPC -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/IPC/SysV -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/IPC/SysV/SysV.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/IPC/SysV/SysV.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/List -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/List/Util -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/List/Util/Util.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/List/Util/Util.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/MIME -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/MIME/Base64 -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/MIME/Base64/Base64.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/MIME/Base64/Base64.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/NDBM_File -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/NDBM_File/NDBM_File.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/NDBM_File/NDBM_File.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/ODBM_File -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/ODBM_File/ODBM_File.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/ODBM_File/ODBM_File.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Opcode -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Opcode/Opcode.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Opcode/Opcode.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/POSIX.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/POSIX.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/abs.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/alarm.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/assert.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/atan2.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/atexit.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/atof.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/atoi.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/atol.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/autosplit.ix -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/bsearch.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/calloc.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/chdir.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/chmod.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/chown.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/clearerr.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/closedir.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/cos.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/creat.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/div.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/errno.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/execl.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/execle.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/execlp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/execv.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/execve.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/execvp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/exit.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/exp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fabs.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fclose.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fcntl.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fdopen.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/feof.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/ferror.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fflush.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fgetc.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fgetpos.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fgets.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fileno.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fopen.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fork.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fprintf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fputc.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fputs.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fread.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/free.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/freopen.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fscanf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fseek.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fsetpos.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fstat.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fsync.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/ftell.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/fwrite.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getc.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getchar.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getegid.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getenv.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/geteuid.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getgid.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getgrgid.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getgrnam.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getgroups.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getlogin.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getpgrp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getpid.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getppid.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getpwnam.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getpwuid.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/gets.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/getuid.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/gmtime.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/isatty.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/kill.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/labs.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/ldiv.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/link.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/load_imports.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/localtime.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/log.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/longjmp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/malloc.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/memchr.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/memcmp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/memcpy.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/memmove.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/memset.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/mkdir.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/offsetof.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/opendir.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/perror.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/pow.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/printf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/putc.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/putchar.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/puts.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/qsort.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/raise.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/rand.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/readdir.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/realloc.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/redef.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/remove.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/rename.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/rewind.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/rewinddir.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/rmdir.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/scanf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/setbuf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/setjmp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/setvbuf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/siglongjmp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/sigsetjmp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/sin.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/sleep.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/sprintf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/sqrt.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/srand.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/sscanf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/stat.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strcat.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strchr.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strcmp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strcpy.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strcspn.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strerror.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strlen.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strncat.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strncmp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strncpy.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strpbrk.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strrchr.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strspn.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strstr.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/strtok.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/system.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/time.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/tmpfile.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/tolower.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/toupper.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/umask.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/ungetc.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/unimpl.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/unlink.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/usage.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/utime.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/vfprintf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/vprintf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/vsprintf.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/wait.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/POSIX/waitpid.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO/encoding -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO/encoding/encoding.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO/encoding/encoding.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO/scalar -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO/scalar/scalar.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO/scalar/scalar.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO/via -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO/via/via.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/PerlIO/via/via.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/SDBM_File -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/SDBM_File/SDBM_File.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/SDBM_File/SDBM_File.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Socket -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Socket/Socket.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Socket/Socket.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/CAN_FLOCK.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/Storable.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/Storable.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/_freeze.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/_retrieve.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/_store.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/_store_fd.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/autosplit.ix -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/fd_retrieve.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/freeze.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/lock_nstore.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/lock_retrieve.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/lock_store.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/logcarp.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/logcroak.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/nfreeze.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/nstore.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/nstore_fd.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/read_magic.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/retrieve.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/show_file_magic.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/store.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/store_fd.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Storable/thaw.al -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Sys -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Sys/Hostname -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Sys/Hostname/Hostname.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Sys/Hostname/Hostname.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Sys/Hostname/autosplit.ix -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Sys/Syslog -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Sys/Syslog/Syslog.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Sys/Syslog/Syslog.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Time -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Time/HiRes -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Time/HiRes/HiRes.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Time/HiRes/HiRes.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Unicode -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Unicode/Normalize -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Unicode/Normalize/Normalize.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/Unicode/Normalize/Normalize.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/XS -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/XS/APItest -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/XS/APItest/APItest.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/XS/APItest/APItest.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/XS/Typemap -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/XS/Typemap/Typemap.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/XS/Typemap/Typemap.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/attributes -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/attributes/attributes.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/attrs/attrs.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/re -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/re/re.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/re/re.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/sdbm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/sdbm/extralibs.ld -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/threads -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/threads/shared -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/threads/shared/shared.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/threads/shared/shared.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/threads/threads.bs -./usr/libdata/perl5/powerpc-openbsd/5.12.2/auto/threads/threads.so -./usr/libdata/perl5/powerpc-openbsd/5.12.2/encoding.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/lib.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/ops.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/re.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/threads -./usr/libdata/perl5/powerpc-openbsd/5.12.2/threads.pm -./usr/libdata/perl5/powerpc-openbsd/5.12.2/threads/shared.pm -./usr/libdata/perl5/site_perl/m68k-openbsd/kerberosV/com_right.ph -./usr/libdata/perl5/site_perl/m68k-openbsd/kerberosV/hdb-private.ph -./usr/libdata/perl5/site_perl/m68k-openbsd/kerberosV/kadm5/private.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd -./usr/libdata/perl5/site_perl/powerpc-openbsd/_h2ph_pre.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/a.out.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/altq.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/altq_cbq.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/altq_classq.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/altq_hfsc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/altq_priq.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/altq_red.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/altq_rmclass.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/altq_rmclass_debug.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/altq_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/altq/if_altq.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/arpa -./usr/libdata/perl5/site_perl/powerpc-openbsd/arpa/ftp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/arpa/inet.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/arpa/nameser.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/arpa/telnet.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/arpa/tftp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/assert.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/bitstring.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/blf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/bm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/bsd_auth.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/com_err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/complex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/cpio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/arc4.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/blf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/cast.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/castsb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/cmac.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/cryptodev.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/cryptosoft.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/des.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/des_locl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/gmac.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/hmac.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/idgen.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/key_wrap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/md5.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/michael.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/podd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/rijndael.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/rmd160.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/sha1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/sha2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/sk.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/spr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/crypto/xform.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ctype.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/curses.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/db.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dbm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_access.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_aout.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_break.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_command.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_interface.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_lex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_output.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_run.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_sym.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_variables.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ddb/db_watch.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/des.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/acpi -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/acpi/acpidebug.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/acpi/acpidev.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/acpi/acpireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/acpi/acpivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/acpi/amltypes.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/acpi/dsdt.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/adb -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/adb/adb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/adb/akbdmap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/adb/akbdvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/adb/amsvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/adb/keyboard.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ata -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ata/atareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ata/atascsi.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ata/atavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ata/pmreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ata/satareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ata/wdvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/auconv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/audio_if.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/audiovar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/biovar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/bluetooth -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/bluetooth/btdev.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/bluetooth/bthid.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/bluetooth/bthidev.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/bluetooth/btsco.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/cardbus -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/cardbus/cardbus_exrom.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/cardbus/cardbusvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/cardbus/cardslotvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/cardbus/rbus.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ccdvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/clock_subr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/cons.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/dec -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/dec/clockvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/dec/mcclockvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/eisa -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/eisa/eisadevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/eisa/eisadevs_data.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/eisa/eisareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/eisa/eisavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/flashvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/gpio -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/gpio/gpiovar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/hil -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/hil/hildevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/hil/hildevs_data.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/hil/hilkbdmap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/hil/hilreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/hil/hilvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2c -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2c/i2c_bitbang.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2c/i2c_io.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2c/i2cvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2c/wm8750reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2o -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2o/i2o.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2o/iopio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2o/ioprbsvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2o/iopreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2o/iopspvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/i2o/iopvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aac_tables.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aacreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aacvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ac97.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/acxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/acxvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ad1843reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ad1848reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/adv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/advlib.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/adw.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/adwlib.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic6360reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic6360var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic6915.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic79xx.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic79xx_inline.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic79xx_openbsd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic7xxx_cam.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic7xxx_inline.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic7xxx_openbsd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/aic7xxxvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/am7930reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/am79900reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/am7990reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/am7990var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/amireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/amivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/anreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/anvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/apcdmareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar5008reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar5210reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar5210var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar5211reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar5211var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar5212reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar5212var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar5416reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar5xxx.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar9003reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar9280reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar9285reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar9287reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ar9380reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/athnreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/athnvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/athvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/atwreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/atwvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/atxxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ax88190reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ax88190var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bhareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bhavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bt458reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bt463reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bt463var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bt485reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bt485var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bt8xx.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bwireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/bwivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/cacreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/cacvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/cd1190reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/cd1400reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/cissreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/cissvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/comreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/comvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/cs4231reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/cyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dc21040reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dc503reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dcreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dl10019reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dl10019var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dp8390reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dp8390var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dp857xreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dptreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/dptvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ds1687reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/elink3reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/elink3var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/espreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/fxpreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/fxpvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/gdtreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/gdtvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/gemreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/gemvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/hayespreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/hmereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/hmevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i8042reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i82365reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i82365var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i8237reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i8253reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i82586reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i82595reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i82596reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i82596var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i8259reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i82802reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/i82810reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ibm525reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ibm561reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ibm561var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ics2101reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/if_wi_hostap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/if_wi_ieee.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/if_wireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/if_wivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/iha.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/intersil7170.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/isp_library.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/isp_openbsd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/isp_stds.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/isp_target.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/isp_tpublic.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ispmbox.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ispreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ispvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/lancereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/lemacreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/lemacvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/lm700x.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/lm78var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/lptreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/lptvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/lsi64854reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/lsi64854var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/m41t8xreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/malo.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/max2820reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mc146818reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mc6845.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mc6845reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mfireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mfivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mk48txxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/monitors.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mpireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mpivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mpuvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mtd8xxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/mtd8xxvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ncr5380reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ncr5380var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ncr53c9xreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ncr53c9xvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ne2000reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ne2000var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/nec765reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ns16450reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ns16550reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/oosiopreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/oosiopvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/osiopreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/osiopvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/p9000.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/pcdisplay.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/pcdisplayvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/pcf8584var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/pckbcvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/pdqreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/pdqvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/pgtreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/pgtvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/pt2254a.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/ramdac.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/revar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rf3000reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rt2560reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rt2560var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rt2661reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rt2661var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rt2860reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rt2860var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rtl80x9reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rtl80x9var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rtl81x9reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rtl8225reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rtwreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/rtwvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/s3_617.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/sa2400reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/si4136reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/silireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/silivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/siopreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/siopvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/siopvar_common.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/slireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/slivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/smc83c170reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/smc83c170var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/smc91cxxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/smc91cxxvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/smc93cx6var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/stireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/stivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/tc921x.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/tcic2reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/tcic2var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/tea5757.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/tireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/tivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/trm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/twereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/twevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/uhareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/uhavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/vgareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/vgavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/w83l518d_sdmmc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/w83l518dreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/w83l518dvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/wdcevent.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/wdcreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/wdcvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/xlreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/z8530reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/z8530sc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ic/z8536reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ipmivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/ad1848var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/ahareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/cs4231var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/elink.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/essreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/essvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/fdlink.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/fdreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/gscsioreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/gusreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/gusvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/i82365_isavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/ics2101var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/if_ecreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/if_egreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/if_elreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/if_exreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/if_ie507.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/if_ieatt.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/if_iee16.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/if_levar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/if_wereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/isadmareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/isadmavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/isapnpreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/isareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/isavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/itvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/madreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/opti.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/pasreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/pcdisplayvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/pcppireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/pcppivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/pnpdevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/rtreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/rtvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/sbdspvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/sbreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/sbvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/spkrio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/vga_isavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/viasioreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/wdsreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/wssreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/wssvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/isa/ymvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/midi_if.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/midivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/acphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/amphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/bmtphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/brgphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/ciphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/eephyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/icsphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/inphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/iophyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/ipgphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/jmphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/lxtphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/mii.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/mii_bitbang.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/miidevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/miivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/mtdphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/nsgphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/nsphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/nsphyterreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/qsphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/rgephyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/sqphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/tlphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/tlphyvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/tqphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/txphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/urlphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mii/xmphyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/mulaw.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ofw -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ofw/ofw_pci.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/ofw/openfirm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/onewire -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/onewire/onewiredevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/onewire/onewiredevs_data.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/onewire/onewirereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/onewire/onewirevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/agpreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/agpvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/amas.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/auacerreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/auixpreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/auixpvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/autrireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/autrivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/auviavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/azalia.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/bktr -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/bktr/bktr_audio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/bktr/bktr_card.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/bktr/bktr_core.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/bktr/bktr_os.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/bktr/bktr_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/bktr/bktr_tuner.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/bt8370reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/cmpcireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/cmpcivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/cs4280reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/cs4281reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/cy82c693reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/cy82c693var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/drm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/drmP.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/drm_atomic.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/drm_sarea.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/i915_drm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/i915_drv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/r300_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/r600_blit_shaders.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/r600_microcode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/radeon_drm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/radeon_drv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/drm/radeon_microcode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/eapreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/emuxkireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/emuxkivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/envyreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/envyvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/esareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/esavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/esoreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/esovar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/fmsreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/fmsvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/gcu.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/gcu_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/glxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/glxvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/hifn7751reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/hifn7751var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/i82365_pcivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ichreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_agereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_alcreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_alereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_art.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_bcereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_bgereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_bnxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_casreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_casvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_devar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_em.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_em_hw.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_em_osdep.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_em_soc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_ipwreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_ipwvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_iwireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_iwivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_iwnreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_iwnvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_ix.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_ixgb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_ixgb_osdep.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_jmereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_jmevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_lgereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_liireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_lmc_types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_lmcioctl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_lmcvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_mskvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_myxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_nfereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_nfevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_ngereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_san_common.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_san_front_end.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_san_obsd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_san_te1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_san_xilinx.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_sandrv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_sereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_sisreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_skreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_skvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_stereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_stgereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_tlreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_txpreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_vgereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_vgevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_vrreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_vtereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_wbreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_wpireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_wpivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/if_xgereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ixgb_ee.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ixgb_hw.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ixgb_ids.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ixgbe.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ixgbe_type.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/lofnreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/lofnvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/musyccreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/musyccvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/neoreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/noctreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/noctvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/nofnreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/nofnvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pccbbreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pccbbvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pcidevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pcidevs_data.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_acard_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_acer_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_amd_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_apollo_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_cmd_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_cy693_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_hpt_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_i31244_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_ite_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_ixp_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_jmicron_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_natsemi_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_nforce_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_opti_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_pdc202xx_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_piix_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_sii3112_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_sis_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciide_svwsata_reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciidereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pciidevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pcireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pcivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pcscpreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/piixreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ppbreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/pucvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/qlireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/safereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/safevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/siop_pci_common.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/tgareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/tgavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ubsecreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ubsecvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/vga_pcivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ydsreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pci/ydsvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pckbc -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pckbc/pckbdreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pckbc/pckbdvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pckbc/pmsreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pckbc/wskbdmap_mfii.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/cfxgareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/gprio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/if_cnwreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/if_maloreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/if_malovar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/if_rayreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/if_xereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/pcmciachip.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/pcmciadevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/pcmciareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/pcmcia/pcmciavar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/radio_if.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/radiovar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_acctrace.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_alloclist.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_archs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_aselect.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_callback.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_chaindecluster.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_configure.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_copyback.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_cvscan.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_dag.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_dagdegrd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_dagdegwr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_dagffrd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_dagffwr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_dagflags.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_dagfuncs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_dagutils.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_debugMem.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_debugprint.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_decluster.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_declusterPQ.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_desc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_diskqueue.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_disks.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_driver.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_engine.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_etimer.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_evenodd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_evenodd_dagfuncs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_evenodd_dags.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_fifo.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_freelist.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_general.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_hist.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_interdecluster.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_invertq.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_kintf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_layout.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_map.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_mcpair.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_memchunk.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_nwayxor.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_openbsd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_options.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_optnames.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_paritylog.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_paritylogDiskMgr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_paritylogging.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_parityloggingdags.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_parityscan.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_pq.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_pqdeg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_pqdegdags.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_psstatus.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_raid.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_raid0.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_raid1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_raid4.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_raid5.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_raid5_rotatedspare.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_raidframe.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_reconbuffer.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_reconmap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_reconstruct.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_reconutil.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_revent.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_shutdown.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_sstf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_states.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_stripelocks.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_threadstuff.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/raidframe/rf_utils.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/rasops -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/rasops/rasops.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/rasops/rasops_bitops.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/rasops/rasops_masks.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/rndvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/asioreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/bereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/bppreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/cgsixreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/cgtwelvereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/cs4231var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/lebuffervar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/magmareg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/qecreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/qecvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/qereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/sbusvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/spifreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/spifvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/stp4020reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/stp4020var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/uperf_sbusreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/xboxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/xboxvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sbus/zxreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sdmmc -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sdmmc/sdhcreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sdmmc/sdhcvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sdmmc/sdmmc_ioreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sdmmc/sdmmc_scsi.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sdmmc/sdmmcchip.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sdmmc/sdmmcdevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sdmmc/sdmmcreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sdmmc/sdmmcvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sequencervar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/softraidvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/spdmemvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sun -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sun/disklabel.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sun/sunkbdreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sun/sunkbdvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sun/sunmsvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/sun/uperfio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/systrace.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc/ascvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc/if_levar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc/ioasicreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc/ioasicvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc/tcdevs_data.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc/tcdsreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc/tcdsvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc/tcreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/tc/tcvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ehcireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ehcivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ezload.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/hid.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/hidkbdsc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/hidkbdvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/hidmsvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_athn_usb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_atureg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_auereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_axereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_cdcereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_cuereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_kuereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_kuevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_mosreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_otusreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_ralreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_ralvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_rsureg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_rumreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_rumvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_runvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_uathreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_uathvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_udavreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_upgtvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_urlreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_urndisreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_urtwnreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_urtwreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_wi_usb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/if_zydreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ohcireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ohcivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/uaudioreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ucomvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/udl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/udlio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ueaglereg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ueaglevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/uftdireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ugraphire_rdesc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/uhcireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/uhcivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/uhidev.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/ukbdvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/umass_quirks.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/umass_scsi.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/umassvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/umct.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/umidi_quirks.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/umidireg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/umidivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/uowreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/urio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usb_mem.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usb_port.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usb_quirks.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usbcdc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usbdevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usbdevs_data.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usbdi.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usbdi_util.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usbdivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usbf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usbfvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/usbhid.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/usb/uvideo.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/vesa -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/vesa/vbe.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/vesa/vesabiosreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/vesa/vesabiosvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/vesa/vesafbvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/video_if.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/videomode -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/videomode/ediddevs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/videomode/ediddevs_data.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/videomode/edidreg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/videomode/edidvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/videomode/vesagtf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/videomode/videomode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/videovar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/vmtvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/vndioctl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/vscsivar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/ascii.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/unicode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wscons_callbacks.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsconsio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsdisplay_usl_io.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsdisplayvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsemul_vt100var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsemulvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wseventvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wskbdraw.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wskbdvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsksymdef.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsksymvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsmoused.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsmousevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wscons/wsmuxvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/bold8x16-iso1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/bold8x16.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/gallant12x22.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/lucida16x29.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/omron12x20.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/qvss8x15.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/sony12x24.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/sony8x16.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/vt220l8x10.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/vt220l8x8.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/wsfont/wsfont.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/x86emu -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/x86emu/x86emu.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dev/x86emu/x86emu_regs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dirent.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/disktab.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/dlfcn.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/elf_abi.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/errno.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/eti.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/event.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/evutil.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/expat.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/expat_external.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/fcntl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/fenv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/float.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/fnmatch.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/form.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/frame.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/fstab.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/fts.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ftw.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++ -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/FlexLexer.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/PlotFile.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/SFile.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/_G_config.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/algo.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/algobase.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/alloc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/builtinbuf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/bvector.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/complex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/defalloc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/deque.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/editbuf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/floatio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/fstream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/function.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/hash_map.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/hash_set.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/hashtable.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/heap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/indstream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/iolibio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/iomanip.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/iostdio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/iostream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/iostreamP.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/istream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/iterator.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/libio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/libioP.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/list.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/map.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/multimap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/multiset.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/new.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/ostream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/pair.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/parsestream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/pfstream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/procbuf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/pthread_alloc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/rope.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/ropeimpl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/set.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/slist.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stack.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/bastring.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/complext.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/dcomplex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/fcomplex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/gslice.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/gslice_array.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/indirect_array.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/ldcomplex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/mask_array.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/slice.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/slice_array.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/std_valarray.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/straits.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/valarray_array.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/std/valarray_meta.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stdiostream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_algo.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_algobase.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_alloc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_bvector.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_config.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_construct.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_deque.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_function.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_hash_fun.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_hash_map.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_hash_set.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_hashtable.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_heap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_iterator.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_list.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_map.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_multimap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_multiset.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_numeric.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_pair.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_queue.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_raw_storage_iter.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_relops.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_rope.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_set.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_slist.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_stack.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_tempbuf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_tree.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_uninitialized.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stl_vector.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/stream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/streambuf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/strfile.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/strstream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/tempbuf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/tree.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/type_traits.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/g++/vector.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/getopt.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/glob.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/grp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/histedit.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ieeefp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ifaddrs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/imsg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/inttypes.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/iso646.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/cd9660 -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/cd9660/cd9660_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/cd9660/cd9660_node.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/cd9660/cd9660_rrip.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/cd9660/iso.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/cd9660/iso_rrip.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/udf -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/udf/ecma167-udf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/udf/udf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/isofs/udf/udf_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/asn1-common.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/asn1_err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/com_err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/der.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/gssapi.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/hdb-protos.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/hdb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/hdb_asn1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/hdb_err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/heim_err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/k524_err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/kadm5 -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/kadm5/admin.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/kadm5/kadm5-private.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/kadm5/kadm5-protos.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/kadm5/kadm5_err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/kafs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/krb5-private.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/krb5-protos.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/krb5-types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/krb5.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/krb5_asn1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/krb5_err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kerberosV/spnego_asn1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/keynote.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/kvm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/langinfo.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/libgen.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/libmilter -./usr/libdata/perl5/site_perl/powerpc-openbsd/libmilter/mfapi.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/libmilter/mfdef.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/libmilter/milter.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/limits.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/link.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/link_aout.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/link_elf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/locale.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/login_cap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/machine -./usr/libdata/perl5/site_perl/powerpc-openbsd/malloc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/math.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/md4.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/md5.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/memory.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/menu.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/miscfs -./usr/libdata/perl5/site_perl/powerpc-openbsd/miscfs/fifofs -./usr/libdata/perl5/site_perl/powerpc-openbsd/miscfs/fifofs/fifo.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/miscfs/procfs -./usr/libdata/perl5/site_perl/powerpc-openbsd/miscfs/procfs/procfs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/mpool.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/msdosfs -./usr/libdata/perl5/site_perl/powerpc-openbsd/msdosfs/bootsect.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/msdosfs/bpb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/msdosfs/denode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/msdosfs/direntry.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/msdosfs/fat.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/msdosfs/msdosfsmount.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/mvmeppc/_types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/mvmeppc/lock.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ncurses.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ndbm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/bpf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/bpfdesc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/ethertypes.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_aoe.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_arp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_atm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_bridge.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_dl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_enc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_fddi.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_gif.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_gre.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_llc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_media.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_pflog.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_pflow.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_pfsync.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_ppp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_pppoe.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_pppvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_slvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_sppp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_trunk.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_tun.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/if_vlan_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/netisr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/pfkeyv2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/pfvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/pipex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/pipex_local.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/ppp-comp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/ppp_defs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/radix.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/radix_mpath.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/raw_cb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/route.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/slcompress.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/slip.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net/trunklacp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211 -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_amrr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_crypto.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_ioctl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_node.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_priv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_proto.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_radiotap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_regdomain.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_rssadapt.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/net80211/ieee80211_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netatalk -./usr/libdata/perl5/site_perl/powerpc-openbsd/netatalk/aarp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netatalk/at.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netatalk/at_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netatalk/at_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netatalk/ddp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netatalk/ddp_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netatalk/endian.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netatalk/phase2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netbt -./usr/libdata/perl5/site_perl/powerpc-openbsd/netbt/bluetooth.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netbt/bt_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netbt/hci.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netbt/l2cap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netbt/rfcomm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netbt/sco.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netdb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netgroup.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/icmp6.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/icmp_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/if_atm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/if_ether.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/igmp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/igmp_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/in.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/in_gif.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/in_pcb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/in_systm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/in_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip6.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_ah.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_carp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_divert.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_ecn.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_esp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_ether.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_gre.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_icmp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_ipcomp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_ipip.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_ipsp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_mroute.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/ip_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/pim.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/pim_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/tcp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/tcp_debug.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/tcp_fsm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/tcp_seq.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/tcp_timer.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/tcp_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/tcpip.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/udp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet/udp_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6 -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/in6.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/in6_gif.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/in6_ifattach.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/in6_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/ip6_divert.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/ip6_mroute.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/ip6_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/ip6protosw.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/mld6.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/mld6_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/nd6.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/pim6.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/pim6_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/raw_ip6.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netinet6/tcpipv6.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netmpls -./usr/libdata/perl5/site_perl/powerpc-openbsd/netmpls/mpls.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/netnatm -./usr/libdata/perl5/site_perl/powerpc-openbsd/netnatm/natm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/krpc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/nfs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/nfs_var.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/nfsdiskless.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/nfsm_subs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/nfsmount.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/nfsnode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/nfsproto.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/nfsrvcache.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/rpcv2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nfs/xdr_subs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nl_types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nlist.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/afssysdefs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnnpfs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_attr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_common.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_config.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_deb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_debug.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_dev.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_fs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_global.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_locl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_message.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_msg_locl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_node.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_pioctl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_queue.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_syscalls.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_vfsops-bsd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_vfsops.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_vnodeops.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/nnpfs/nnpfs_vopdefs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ntfs -./usr/libdata/perl5/site_perl/powerpc-openbsd/ntfs/ntfs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ntfs/ntfs_compr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ntfs/ntfs_ihash.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ntfs/ntfs_inode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ntfs/ntfs_subr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ntfs/ntfs_vfsops.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ntfs/ntfsmount.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/NXConstStr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/Object.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/Protocol.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/encoding.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/hash.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/objc-api.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/objc-list.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/objc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/sarray.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/thr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/objc/typedstream.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ocurses.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ohash.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/acss.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/aes.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/asn1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/asn1_mac.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/asn1t.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/bio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/blowfish.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/bn.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/buffer.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/camellia.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/cast.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/cms.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/comp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/conf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/conf_api.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/crypto.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/des.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/des_old.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/dh.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/dsa.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/dso.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/dtls1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/e_os.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/e_os2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ebcdic.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ec.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ecdh.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ecdsa.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/engine.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/err.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/evp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/hmac.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/idea.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/krb5_asn.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/kssl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/lhash.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/md2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/md4.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/md5.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/mdc2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/modes.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/obj_mac.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/objects.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ocsp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/opensslconf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/opensslv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ossl_typ.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/pem.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/pem2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/pkcs12.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/pkcs7.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/pqueue.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/rand.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/rc2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/rc4.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/rc5.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ripemd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/rsa.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/safestack.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/seed.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/sha.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ssl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ssl2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ssl23.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ssl3.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/stack.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/store.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/symhacks.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/tls1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ts.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/txt_db.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ui.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/ui_compat.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/whrlpool.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/x509.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/x509_vfy.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/openssl/x509v3.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/panel.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/paths.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/pcap-int.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/pcap-namedb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/pcap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/poll.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/_types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/asm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/autoconf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/bat.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/bus.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/cdefs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/cpu.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/db_machdep.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/disklabel.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/endian.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/exec.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/fenv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/float.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/fpu.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/frame.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/ieee.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/ieeefp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/internal_types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/intr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/ipkdb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/kbio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/kcore.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/limits.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/link.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/lock.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/param.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/pcb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/pio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/pmap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/powerpc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/proc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/profile.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/psl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/pte.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/ptrace.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/reg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/reloc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/setjmp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/signal.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/spinlock.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/stdarg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/trap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/varargs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/powerpc/vmparam.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/protocols -./usr/libdata/perl5/site_perl/powerpc-openbsd/protocols/dumprestore.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/protocols/routed.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/protocols/rwhod.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/protocols/talkd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/protocols/timed.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/pthread.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/pthread_np.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/pwd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ranlib.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/re_comp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/readline -./usr/libdata/perl5/site_perl/powerpc-openbsd/readline/chardefs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/readline/history.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/readline/keymaps.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/readline/readline.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/readline/rlconf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/readline/rlstdc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/readline/rltypedefs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/readline/tilde.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/readpassphrase.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/regex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/regexp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/resolv.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rmd160.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/auth.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/auth_unix.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/clnt.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/pmap_clnt.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/pmap_prot.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/pmap_rmt.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/rpc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/rpc_des.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/rpc_msg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/svc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/svc_auth.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpc/xdr.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/bootparam_prot.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/klm_prot.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/mount.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/nfs_prot.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/nlm_prot.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/rex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/rnusers.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/rquota.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/rstat.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/rusers.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/rwall.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/sm_inter.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/spray.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/yp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/yp_prot.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/ypclnt.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/rpcsvc/yppasswd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sched.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/cd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/iscsi.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/mpathvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/safte.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/scsi_all.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/scsi_changer.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/scsi_debug.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/scsi_disk.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/scsi_message.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/scsi_scanner.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/scsi_tape.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/scsiconf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/sdvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/scsi/ses.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/search.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/semaphore.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/setjmp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sgtty.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sha1.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sha2.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/signal.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/skey.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sndio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/soundcard.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/spinlock.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ssl -./usr/libdata/perl5/site_perl/powerpc-openbsd/stab.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/stdarg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/stdbool.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/stddef.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/stdint.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/stdio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/stdlib.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/string.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/strings.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/struct.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/_types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/acct.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/agpio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ataio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/audioio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/buf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/cdefs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/cdio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/chio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/conf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/core.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/device.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/dir.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/dirent.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/disk.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/disklabel.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/dkbad.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/dkio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/dkstat.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/domain.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/endian.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/errno.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/evcount.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/event.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/eventvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/exec.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/exec_aout.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/exec_ecoff.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/exec_elf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/exec_olf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/exec_script.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/extent.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/fcntl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/file.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/filedesc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/filio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/gmon.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/gpio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/hash.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/hiballoc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/hotplug.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ioccom.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ioctl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ioctl_compat.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ipc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/kcore.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/kernel.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/kgdb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/kthread.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ktrace.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/limits.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/lkm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/localedef.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/lock.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/lockf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/malloc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/mbuf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/memrange.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/midiio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/mman.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/mount.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/mplock.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/msg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/msgbuf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/mtio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/mutex.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/namei.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/param.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/pciio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/pipe.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/poll.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/pool.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/proc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/protosw.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ptrace.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/queue.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/radioio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/reboot.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/resource.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/resourcevar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/rwlock.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/scanio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/sched.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/scsiio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/select.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/selinfo.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/sem.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/sensors.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/shm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/siginfo.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/signal.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/signalvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/socket.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/socketvar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/sockio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/specdev.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/stat.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/statvfs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/stdarg.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/stdint.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/swap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/syscall.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/syscallargs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/sysctl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/syslimits.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/syslog.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/systm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/termios.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/time.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/timeb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/timeout.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/times.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/timetc.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/tprintf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/tree.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/tty.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ttychars.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ttycom.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ttydefaults.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ttydev.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/types.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/ucred.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/uio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/un.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/unistd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/unpcb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/user.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/utsname.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/varargs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/videoio.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/vmmeter.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/vnode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/wait.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sys/workq.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/sysexits.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/syslog.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/tar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/tcpd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/term.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/termcap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/termios.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/time.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ttyent.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/tzfile.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ext2fs -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ext2fs/ext2fs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ext2fs/ext2fs_dinode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ext2fs/ext2fs_dir.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ext2fs/ext2fs_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ffs -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ffs/ffs_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ffs/fs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ffs/softdep.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/mfs -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/mfs/mfs_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/mfs/mfsnode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ufs -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ufs/dinode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ufs/dir.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ufs/dirhash.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ufs/inode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ufs/quota.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ufs/ufs_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/ufs/ufs/ufsmount.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/unctrl.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/unistd.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/usbhid.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/util.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/utime.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/utmp.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_amap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_anon.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_aobj.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_ddb.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_device.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_extern.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_fault.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_glue.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_km.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_loan.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_map.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_object.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_page.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_pager.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_param.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_pmap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_pmemrange.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_swap.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_swap_encrypt.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/uvm/uvm_vnode.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/varargs.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/vis.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/wchar.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/wctype.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/zconf.ph -./usr/libdata/perl5/site_perl/powerpc-openbsd/zlib.ph -./usr/libexec/ld.so -./usr/libexec/sudo_noexec.so -./usr/local/libdata/perl5/site_perl/powerpc-openbsd -./usr/mdec/bootsd -./usr/mdec/bootxx -./usr/mdec/installboot -./usr/mdec/mbr -./usr/sbin/wsconscfg diff --git a/distrib/sets/lists/comp/md.mvmeppc b/distrib/sets/lists/comp/md.mvmeppc deleted file mode 100644 index b803f0b3fc4..00000000000 --- a/distrib/sets/lists/comp/md.mvmeppc +++ /dev/null @@ -1,245 +0,0 @@ -./usr/bin/addr2line -./usr/bin/objcopy -./usr/bin/readelf -./usr/include/g++/PlotFile.h -./usr/include/g++/SFile.h -./usr/include/g++/_G_config.h -./usr/include/g++/algo.h -./usr/include/g++/algobase.h -./usr/include/g++/alloc.h -./usr/include/g++/builtinbuf.h -./usr/include/g++/bvector.h -./usr/include/g++/complex.h -./usr/include/g++/defalloc.h -./usr/include/g++/deque.h -./usr/include/g++/editbuf.h -./usr/include/g++/floatio.h -./usr/include/g++/fstream.h -./usr/include/g++/function.h -./usr/include/g++/hash_map -./usr/include/g++/hash_map.h -./usr/include/g++/hash_set -./usr/include/g++/hash_set.h -./usr/include/g++/hashtable.h -./usr/include/g++/heap.h -./usr/include/g++/indstream.h -./usr/include/g++/iolibio.h -./usr/include/g++/iomanip.h -./usr/include/g++/iostdio.h -./usr/include/g++/iostream.h -./usr/include/g++/iostreamP.h -./usr/include/g++/istream.h -./usr/include/g++/iterator.h -./usr/include/g++/libio.h -./usr/include/g++/libioP.h -./usr/include/g++/list.h -./usr/include/g++/map.h -./usr/include/g++/multimap.h -./usr/include/g++/multiset.h -./usr/include/g++/new.h -./usr/include/g++/ostream.h -./usr/include/g++/pair.h -./usr/include/g++/parsestream.h -./usr/include/g++/pfstream.h -./usr/include/g++/procbuf.h -./usr/include/g++/pthread_alloc -./usr/include/g++/pthread_alloc.h -./usr/include/g++/rope -./usr/include/g++/rope.h -./usr/include/g++/ropeimpl.h -./usr/include/g++/set.h -./usr/include/g++/slist -./usr/include/g++/slist.h -./usr/include/g++/stack.h -./usr/include/g++/std/bastring.cc -./usr/include/g++/std/bastring.h -./usr/include/g++/std/complext.cc -./usr/include/g++/std/complext.h -./usr/include/g++/std/dcomplex.h -./usr/include/g++/std/fcomplex.h -./usr/include/g++/std/gslice.h -./usr/include/g++/std/gslice_array.h -./usr/include/g++/std/indirect_array.h -./usr/include/g++/std/ldcomplex.h -./usr/include/g++/std/mask_array.h -./usr/include/g++/std/slice.h -./usr/include/g++/std/slice_array.h -./usr/include/g++/std/std_valarray.h -./usr/include/g++/std/straits.h -./usr/include/g++/std/valarray_array.h -./usr/include/g++/std/valarray_array.tcc -./usr/include/g++/std/valarray_meta.h -./usr/include/g++/stdiostream.h -./usr/include/g++/stl.h -./usr/include/g++/stl_algo.h -./usr/include/g++/stl_algobase.h -./usr/include/g++/stl_alloc.h -./usr/include/g++/stl_bvector.h -./usr/include/g++/stl_config.h -./usr/include/g++/stl_construct.h -./usr/include/g++/stl_deque.h -./usr/include/g++/stl_function.h -./usr/include/g++/stl_hash_fun.h -./usr/include/g++/stl_hash_map.h -./usr/include/g++/stl_hash_set.h -./usr/include/g++/stl_hashtable.h -./usr/include/g++/stl_heap.h -./usr/include/g++/stl_iterator.h -./usr/include/g++/stl_list.h -./usr/include/g++/stl_map.h -./usr/include/g++/stl_multimap.h -./usr/include/g++/stl_multiset.h -./usr/include/g++/stl_numeric.h -./usr/include/g++/stl_pair.h -./usr/include/g++/stl_queue.h -./usr/include/g++/stl_raw_storage_iter.h -./usr/include/g++/stl_relops.h -./usr/include/g++/stl_rope.h -./usr/include/g++/stl_set.h -./usr/include/g++/stl_slist.h -./usr/include/g++/stl_stack.h -./usr/include/g++/stl_tempbuf.h -./usr/include/g++/stl_tree.h -./usr/include/g++/stl_uninitialized.h -./usr/include/g++/stl_vector.h -./usr/include/g++/stream.h -./usr/include/g++/streambuf.h -./usr/include/g++/strfile.h -./usr/include/g++/strstream -./usr/include/g++/strstream.h -./usr/include/g++/tempbuf.h -./usr/include/g++/tree.h -./usr/include/g++/type_traits.h -./usr/include/g++/vector.h -./usr/include/ieeefp.h -./usr/include/macppc/lock.h -./usr/include/mvmeppc/lock.h -./usr/include/powerpc -./usr/include/powerpc/_types.h -./usr/include/powerpc/asm.h -./usr/include/powerpc/autoconf.h -./usr/include/powerpc/bat.h -./usr/include/powerpc/bus.h -./usr/include/powerpc/cdefs.h -./usr/include/powerpc/cpu.h -./usr/include/powerpc/db_machdep.h -./usr/include/powerpc/disklabel.h -./usr/include/powerpc/endian.h -./usr/include/powerpc/exec.h -./usr/include/powerpc/fenv.h -./usr/include/powerpc/float.h -./usr/include/powerpc/fpu.h -./usr/include/powerpc/frame.h -./usr/include/powerpc/ieee.h -./usr/include/powerpc/ieeefp.h -./usr/include/powerpc/internal_types.h -./usr/include/powerpc/intr.h -./usr/include/powerpc/ipkdb.h -./usr/include/powerpc/kbio.h -./usr/include/powerpc/kcore.h -./usr/include/powerpc/limits.h -./usr/include/powerpc/link.h -./usr/include/powerpc/param.h -./usr/include/powerpc/pcb.h -./usr/include/powerpc/pio.h -./usr/include/powerpc/pmap.h -./usr/include/powerpc/powerpc.h -./usr/include/powerpc/proc.h -./usr/include/powerpc/profile.h -./usr/include/powerpc/psl.h -./usr/include/powerpc/pte.h -./usr/include/powerpc/ptrace.h -./usr/include/powerpc/reg.h -./usr/include/powerpc/reloc.h -./usr/include/powerpc/setjmp.h -./usr/include/powerpc/signal.h -./usr/include/powerpc/spinlock.h -./usr/include/powerpc/stdarg.h -./usr/include/powerpc/trap.h -./usr/include/powerpc/varargs.h -./usr/include/powerpc/vmparam.h -./usr/lib/crtbegin.o -./usr/lib/crtbeginS.o -./usr/lib/crtend.o -./usr/lib/crtendS.o -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/SYSCALLS.c.X -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/cc1obj -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/cc1plus -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/include/README -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/include/exception -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/include/float.h -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/include/limits.h -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/include/new -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/include/new.h -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/include/syslimits.h -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/include/typeinfo -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/libgcc.a -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/soft-float -./usr/lib/gcc-lib/powerpc-unknown-openbsd4.9/2.95.3/soft-float/libgcc.a -./usr/lib/libc_pic.a -./usr/lib/libcom_err_pic.a -./usr/lib/libcrypto_pic.a -./usr/lib/libcurses_pic.a -./usr/lib/libedit_pic.a -./usr/lib/libevent_pic.a -./usr/lib/libexpat_pic.a -./usr/lib/libform_pic.a -./usr/lib/libformw_pic.a -./usr/lib/libiberty_pic.a -./usr/lib/libkvm_pic.a -./usr/lib/libm_pic.a -./usr/lib/libmenu_pic.a -./usr/lib/libmenuw_pic.a -./usr/lib/libmilter_pic.a -./usr/lib/libncurses_pic.a -./usr/lib/libncursesw_pic.a -./usr/lib/libobjc_pic.a -./usr/lib/libocurses_pic.a -./usr/lib/libossaudio_pic.a -./usr/lib/libotermcap_pic.a -./usr/lib/libpanel_pic.a -./usr/lib/libpanelw_pic.a -./usr/lib/libpcap_pic.a -./usr/lib/libperl_pic.a -./usr/lib/libpthread_pic.a -./usr/lib/libreadline_pic.a -./usr/lib/librpcsvc_pic.a -./usr/lib/libskey_pic.a -./usr/lib/libsndio_pic.a -./usr/lib/libssl_pic.a -./usr/lib/libstdc++_p.a -./usr/lib/libstdc++_pic.a -./usr/lib/libtermcap_pic.a -./usr/lib/libtermlib_pic.a -./usr/lib/libusbhid_pic.a -./usr/lib/libutil_pic.a -./usr/lib/libwrap_pic.a -./usr/lib/libz_pic.a -./usr/lib/scrt0.o -./usr/libdata/ldscripts -./usr/libdata/ldscripts/elf32ppc.x -./usr/libdata/ldscripts/elf32ppc.xbn -./usr/libdata/ldscripts/elf32ppc.xn -./usr/libdata/ldscripts/elf32ppc.xr -./usr/libdata/ldscripts/elf32ppc.xs -./usr/libdata/ldscripts/elf32ppc.xu -./usr/libdata/ldscripts/elf32ppc.xz -./usr/libdata/ldscripts/elf32ppclinux.x -./usr/libdata/ldscripts/elf32ppclinux.xbn -./usr/libdata/ldscripts/elf32ppclinux.xn -./usr/libdata/ldscripts/elf32ppclinux.xr -./usr/libdata/ldscripts/elf32ppclinux.xs -./usr/libdata/ldscripts/elf32ppclinux.xu -./usr/libdata/ldscripts/elf32ppclinux.xz -./usr/libdata/ldscripts/elf32ppcsim.x -./usr/libdata/ldscripts/elf32ppcsim.xbn -./usr/libdata/ldscripts/elf32ppcsim.xn -./usr/libdata/ldscripts/elf32ppcsim.xr -./usr/libdata/ldscripts/elf32ppcsim.xs -./usr/libdata/ldscripts/elf32ppcsim.xu -./usr/libdata/ldscripts/elf32ppcsim.xz -./usr/share/man/man1/addr2line.1 -./usr/share/man/man1/objcopy.1 -./usr/share/man/man1/protoize.1 -./usr/share/man/man1/readelf.1 -./usr/share/man/man1/unprotoize.1 diff --git a/distrib/sets/lists/man/mi b/distrib/sets/lists/man/mi index a288c8cc0af..ebd7e8cb821 100644 --- a/distrib/sets/lists/man/mi +++ b/distrib/sets/lists/man/mi @@ -3091,7 +3091,6 @@ ./usr/share/man/ps1/macppc ./usr/share/man/ps1/mvme68k ./usr/share/man/ps1/mvme88k -./usr/share/man/ps1/mvmeppc ./usr/share/man/ps1/palm ./usr/share/man/ps1/sgi ./usr/share/man/ps1/socppc @@ -3123,7 +3122,6 @@ ./usr/share/man/ps3/macppc ./usr/share/man/ps3/mvme68k ./usr/share/man/ps3/mvme88k -./usr/share/man/ps3/mvmeppc ./usr/share/man/ps3/palm ./usr/share/man/ps3/sgi ./usr/share/man/ps3/socppc @@ -3148,7 +3146,6 @@ ./usr/share/man/ps4/macppc ./usr/share/man/ps4/mvme68k ./usr/share/man/ps4/mvme88k -./usr/share/man/ps4/mvmeppc ./usr/share/man/ps4/palm ./usr/share/man/ps4/sgi ./usr/share/man/ps4/socppc @@ -3172,7 +3169,6 @@ ./usr/share/man/ps5/macppc ./usr/share/man/ps5/mvme68k ./usr/share/man/ps5/mvme88k -./usr/share/man/ps5/mvmeppc ./usr/share/man/ps5/palm ./usr/share/man/ps5/sgi ./usr/share/man/ps5/socppc @@ -3198,7 +3194,6 @@ ./usr/share/man/ps8/macppc ./usr/share/man/ps8/mvme68k ./usr/share/man/ps8/mvme88k -./usr/share/man/ps8/mvmeppc ./usr/share/man/ps8/palm ./usr/share/man/ps8/sgi ./usr/share/man/ps8/socppc @@ -3222,7 +3217,6 @@ ./usr/share/man/ps9/macppc ./usr/share/man/ps9/mvme68k ./usr/share/man/ps9/mvme88k -./usr/share/man/ps9/mvmeppc ./usr/share/man/ps9/palm ./usr/share/man/ps9/sgi ./usr/share/man/ps9/socppc diff --git a/etc/etc.mvmeppc/MAKEDEV b/etc/etc.mvmeppc/MAKEDEV deleted file mode 100644 index 2e8fd634263..00000000000 --- a/etc/etc.mvmeppc/MAKEDEV +++ /dev/null @@ -1,633 +0,0 @@ -#!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.14 2011/04/18 16:52:11 thib Exp $ -# -# Copyright (c) 1990 The Regents of the University of California. -# All rights reserved. -# -# Written and contributed by W. Jolitz 12/90 -# -# Redistribution and use in source and binary forms are permitted provided -# that: (1) source distributions retain this entire copyright notice and -# comment, and (2) distributions including binaries display the following -# acknowledgement: ``This product includes software developed by the -# University of California, Berkeley and its contributors'' in the -# documentation or other materials provided with the distribution and in -# all advertising materials mentioning features or use of this software. -# Neither the name of the University nor the names of its contributors may -# be used to endorse or promote products derived from this software without -# specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# from: @(#)MAKEDEV 5.2 (Berkeley) 6/22/90 -# $NetBSD: MAKEDEV,v 1.17 1996/02/03 15:02:42 briggs Exp $ -# -# Device "make" file. Valid arguments: -# all makes all known devices, including local devices. -# Tries to make the ``standard'' number of each type. -# std standard devices -# fd makes fd/* for the fdescfs. -# ramdisk makes all devices for a ramdisk kernel -# -# Tapes: -# st* SCSI tapes -# -# Disks: -# fd* Floppy disk drives (3 1/2", 5 1/4") -# wd* IDE disks -# sd* SCSI disks -# cd* SCSI cdrom drives -# vnd* "file" pseudo-disks -# rd* "ramdisk" pseudo-disks -# ccd* concatenated disk devices -# raid* RAIDframe disk devices -# -# Terminal ports: -# ttyC* wscons -# tty* standard built-in serial ports (2) -# -# Pointing devices: -# wsmouse* wscons mouse events -# -# Keyboard devices: -# wskbd* wscons keyboard events -# -# Pseudo terminals: -# pty* set of 16 master and slave pseudo terminals -# -# Graphics devices: -# grf* custom chip (grf0), Retina Z2/Z3 (grf1/grf2), -# Cirrus boards (grf3), A2410 (grf4) video or -# CyberVision 64 (grf5) -# -# USB devices: -# usb* Bus control devices used by usbd for attach/detach -# uhid* Generic HID devices -# ulpt* Printer devices -# urio* Diamond Multimedia Rio 500 -# ugen* Generic device -# utty* Serial ports -# -# Special purpose devices: -# audio* audio -# ch* SCSI media changer -# bpf* Berkeley Packet Filter -# tun* network tunnel driver -# lkm loadable kernel modules interface -# *random in-kernel random data source -# - -PATH=/sbin:/bin:/usr/bin:/usr/sbin -this=$0 -umask 77 - -# default shell support functions -add () -{ - tmp=0 - while [ "$1" ] - do - tmp=$(( $1 + $tmp )) - shift - done - echo $tmp -} -mult () -{ - echo "$(( $1 * $2 ))" -} -hex () -{ - case $1 in - [0-9]) echo -n $1;; - 10) echo -n a;; - 11) echo -n b;; - 12) echo -n c;; - 13) echo -n d;; - 14) echo -n e;; - 15) echo -n f;; - esac -} -trunc () -{ - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - echo ${arg1#$arg2} -} -unt() -{ - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - tmp="${arg1#[a-z]*}" - while [ "$tmp" != "$arg1" ] - do - arg1=$tmp - tmp="${arg1#[a-z]*}" - done - tmp="${arg1%*[a-z]}" - while [ "$tmp" != "$arg1" ] - do - arg1=$tmp - tmp="${arg1%*[a-z]}" - done - echo $arg1 -} - -for i -do - -unit=`unt $i` -[ "$unit" ] || unit=0 - -case $i in - -all) - sh $this std fd - sh $this wd0 wd1 wd2 wd3 - sh $this sd0 sd1 sd2 sd3 st0 st1 cd0 cd1 - sh $this vnd0 vnd1 vnd2 vnd3 - sh $this ccd0 ccd1 ccd2 ccd3 - sh $this raid0 raid1 raid2 raid3 - sh $this rd0 - sh $this ttyC0 ttyCcfg - sh $this tty00 tty01 tty02 tty03 pty0 pty1 - sh $this bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 - sh $this pf tun0 tun1 tun2 tun3 - sh $this audio0 - sh $this random uk0 uk1 ss0 ss1 - sh $this wscons - sh $this pci - sh $this lkm nnpfs0 - sh $this usbs - ;; - -ramdisk) - sh $this std - sh $this wd0 wd1 wd2 wd3 - sh $this sd0 sd1 sd2 sd3 sd4 st0 st1 cd0 cd1 - sh $this rd0 - sh $this random - sh $this bpf0 - sh $this tty00 tty01 pty0 - sh $this wscons - ;; - -std) - rm -f console drum kmem mem reload zero null tty - rm -f klog stdin stdout stderr ksyms - mknod console c 0 0 - mknod drum c 3 0 ; chmod 640 drum ; chgrp kmem drum - mknod kmem c 2 1 ; chmod 640 kmem ; chgrp kmem kmem - mknod mem c 2 0 ; chmod 640 mem ; chgrp kmem mem - mknod reload c 2 20 ; chmod 640 reload ; chgrp kmem reload - mknod zero c 2 12 ; chmod 666 zero - mknod null c 2 2 ; chmod 666 null - mknod tty c 1 0 ; chmod 666 tty - mknod klog c 6 0 ; chmod 600 klog - mknod stdin c 21 0 ; chmod 666 stdin - mknod stdout c 21 1 ; chmod 666 stdout - mknod stderr c 21 2 ; chmod 666 stderr - mknod ksyms c 43 0 ; chmod 640 ksyms ; chown root.kmem ksyms - ;; - -usbs) - sh $this usb0 usb1 - sh $this uhid0 uhid1 uhid2 uhid3 - sh $this ulpt0 ulpt1 - sh $this urio0 - sh $this utty0 utty1 - ;; - -fd) - rm -f fd/* - mkdir fd > /dev/null 2>&1 - n=0 - (cd fd && while [ $n -lt 64 ]; do mknod $n c 21 $n; n="$(( $n + 1 ))"; done) - chown -R root.wheel fd - chmod 555 fd - chmod 666 fd/* - ;; - -sd*|wd*|ccd*|ofdisk*|raid*) - umask 2 ; unit=${i##*[a-z]} - case $i in - sd*) name=sd; blk=2; chr=8;; - wd*) name=wd; blk=0; chr=11;; - ofdisk*) name=ofdisk; blk=4; chr=13;; - ccd*) name=ccd; blk=16; chr=18;; - raid*) name=raid; blk=19; chr=54;; - esac - rm -f $name$unit? r$name$unit? - case $unit in - 0|1|2|3|4|5|6|7|8|9) - mknod ${name}${unit}a b $blk $(( $unit * 16 + 0 )) - mknod ${name}${unit}b b $blk $(( $unit * 16 + 1 )) - mknod ${name}${unit}c b $blk $(( $unit * 16 + 2 )) - mknod ${name}${unit}d b $blk $(( $unit * 16 + 3 )) - mknod ${name}${unit}e b $blk $(( $unit * 16 + 4 )) - mknod ${name}${unit}f b $blk $(( $unit * 16 + 5 )) - mknod ${name}${unit}g b $blk $(( $unit * 16 + 6 )) - mknod ${name}${unit}h b $blk $(( $unit * 16 + 7 )) - mknod ${name}${unit}i b $blk $(( $unit * 16 + 8 )) - mknod ${name}${unit}j b $blk $(( $unit * 16 + 9 )) - mknod ${name}${unit}k b $blk $(( $unit * 16 + 10 )) - mknod ${name}${unit}l b $blk $(( $unit * 16 + 11 )) - mknod ${name}${unit}m b $blk $(( $unit * 16 + 12 )) - mknod ${name}${unit}n b $blk $(( $unit * 16 + 13 )) - mknod ${name}${unit}o b $blk $(( $unit * 16 + 14 )) - mknod ${name}${unit}p b $blk $(( $unit * 16 + 15 )) - mknod r${name}${unit}a c $chr $(( $unit * 16 + 0 )) - mknod r${name}${unit}b c $chr $(( $unit * 16 + 1 )) - mknod r${name}${unit}c c $chr $(( $unit * 16 + 2 )) - mknod r${name}${unit}d c $chr $(( $unit * 16 + 3 )) - mknod r${name}${unit}e c $chr $(( $unit * 16 + 4 )) - mknod r${name}${unit}f c $chr $(( $unit * 16 + 5 )) - mknod r${name}${unit}g c $chr $(( $unit * 16 + 6 )) - mknod r${name}${unit}h c $chr $(( $unit * 16 + 7 )) - mknod r${name}${unit}i c $chr $(( $unit * 16 + 8 )) - mknod r${name}${unit}j c $chr $(( $unit * 16 + 9 )) - mknod r${name}${unit}k c $chr $(( $unit * 16 + 10 )) - mknod r${name}${unit}l c $chr $(( $unit * 16 + 11 )) - mknod r${name}${unit}m c $chr $(( $unit * 16 + 12 )) - mknod r${name}${unit}n c $chr $(( $unit * 16 + 13 )) - mknod r${name}${unit}o c $chr $(( $unit * 16 + 14 )) - mknod r${name}${unit}p c $chr $(( $unit * 16 + 15 )) - chgrp operator ${name}${unit}[a-p] r${name}${unit}[a-p] - chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] - ;; - *) - echo bad unit for disk in: $i - ;; - esac - umask 77 - ;; - -vnd*) - umask 2 ; unit=${i##*[a-z]} - blk=14; chr=19; - rm -f $name$unit? r$name$unit? - mknod ${name}${unit}a b $blk $(( $unit * 16 + 0 )) - mknod ${name}${unit}b b $blk $(( $unit * 16 + 1 )) - mknod ${name}${unit}c b $blk $(( $unit * 16 + 2 )) - mknod ${name}${unit}d b $blk $(( $unit * 16 + 3 )) - mknod ${name}${unit}e b $blk $(( $unit * 16 + 4 )) - mknod ${name}${unit}f b $blk $(( $unit * 16 + 5 )) - mknod ${name}${unit}g b $blk $(( $unit * 16 + 6 )) - mknod ${name}${unit}h b $blk $(( $unit * 16 + 7 )) - mknod ${name}${unit}i b $blk $(( $unit * 16 + 8 )) - mknod ${name}${unit}j b $blk $(( $unit * 16 + 9 )) - mknod ${name}${unit}k b $blk $(( $unit * 16 + 10 )) - mknod ${name}${unit}l b $blk $(( $unit * 16 + 11 )) - mknod ${name}${unit}m b $blk $(( $unit * 16 + 12 )) - mknod ${name}${unit}n b $blk $(( $unit * 16 + 13 )) - mknod ${name}${unit}o b $blk $(( $unit * 16 + 14 )) - mknod ${name}${unit}p b $blk $(( $unit * 16 + 15 )) - mknod r${name}${unit}a c $chr $(( $unit * 16 + 0 )) - mknod r${name}${unit}b c $chr $(( $unit * 16 + 1 )) - mknod r${name}${unit}c c $chr $(( $unit * 16 + 2 )) - mknod r${name}${unit}d c $chr $(( $unit * 16 + 3 )) - mknod r${name}${unit}e c $chr $(( $unit * 16 + 4 )) - mknod r${name}${unit}f c $chr $(( $unit * 16 + 5 )) - mknod r${name}${unit}g c $chr $(( $unit * 16 + 6 )) - mknod r${name}${unit}h c $chr $(( $unit * 16 + 7 )) - mknod r${name}${unit}i c $chr $(( $unit * 16 + 8 )) - mknod r${name}${unit}j c $chr $(( $unit * 16 + 9 )) - mknod r${name}${unit}k c $chr $(( $unit * 16 + 10 )) - mknod r${name}${unit}l c $chr $(( $unit * 16 + 11 )) - mknod r${name}${unit}m c $chr $(( $unit * 16 + 12 )) - mknod r${name}${unit}n c $chr $(( $unit * 16 + 13 )) - mknod r${name}${unit}o c $chr $(( $unit * 16 + 14 )) - mknod r${name}${unit}p c $chr $(( $unit * 16 + 15 )) - chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p] - chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] - umask 77 - ;; - -tty0*) - unit=${i##tty0} - rm -f tty0$unit cua0$unit - mknod tty0$unit c 7 $unit - mknod cua0$unit c 7 `expr $unit + 128` - chown uucp.dialer tty0$unit cua0$unit - chmod 660 tty0$unit cua0$unit - ;; - -pty*) - class=${i##*[a-z]} - case $class in - 0) offset=0 name=p;; - 1) offset=16 name=q;; - 2) offset=32 name=r;; - 3) offset=48 name=s;; - 4) offset=64 name=t;; - 5) offset=80 name=u;; - 6) offset=96 name=v;; - 7) offset=112 name=w;; - 8) offset=128 name=x;; - 9) offset=144 name=y;; - 10) offset=160 name=z;; - 11) offset=176 name=P;; - 12) offset=192 name=Q;; - 13) offset=208 name=R;; - 14) offset=224 name=S;; - 15) offset=240 name=T;; - *) echo bad unit for pty in: $i;; - esac - case $class in - 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) - umask 0 - n=0 - while [ $n -lt 16 ] - do - nam=$name`hex $n` - rm -f {tty,pty}$nam - mknod tty$nam c 4 $(( $offset + $n )) - mknod pty$nam c 5 $(( $offset + $n )) - n="$(( $n + 1 ))" - done - umask 77 - ;; - esac - ;; - -st*) - umask 2 ; unit=${i##*[a-z]} - case $i in - st*) name=st; chr=20; blk=5;; - esac - rm -f $name$unit n$name$unit e$name$unit en$name$unit \ - r$name$unit nr$name$unit er$name$unit enr$name$unit - case $unit in - 0|1|2|3|4|5|6) - mknod ${name}${unit} b $blk $(( $unit * 16 + 0 )) - mknod n${name}${unit} b $blk $(( $unit * 16 + 1 )) - mknod e${name}${unit} b $blk $(( $unit * 16 + 2 )) - mknod en${name}${unit} b $blk $(( $unit * 16 + 3 )) - mknod r${name}${unit} c $chr $(( $unit * 16 + 0 )) - mknod nr${name}${unit} c $chr $(( $unit * 16 + 1 )) - mknod er${name}${unit} c $chr $(( $unit * 16 + 2 )) - mknod enr${name}${unit} c $chr $(( $unit * 16 + 3 )) - chown root.operator ${name}${unit} n${name}${unit} \ - e$name$unit en$name$unit \ - r${name}${unit} nr${name}${unit} \ - er${name}${unit} enr${name}${unit} - chmod 660 ${name}${unit} n${name}${unit} \ - e$name$unit en$name$unit \ - r${name}${unit} nr${name}${unit} \ - er${name}${unit} enr${name}${unit} - ;; - *) - echo bad unit for tape in: $i - ;; - esac - umask 77 - ;; - -ch*) - umask 2 ; unit=${i##*[a-z]} - case $i in - ch*) name=ch; chr=10;; - esac - rm -f $name$unit - case $unit in - 0|1|2|3|4|5|6) - mknod ${name}${unit} c $chr $unit - chown root.operator ${name}${unit} - chmod 660 ${name}${unit} - ;; - *) - echo bad unit for media changer in: $i - ;; - esac - umask 77 - ;; - -cd*) - umask 2 ; unit=${i##*[a-z]} - case $i in - cd*) name=cd; blk=3; chr=9;; - esac - rm -f $name$unit? r$name$unit? - case $unit in - 0|1|2|3|4|5|6) - mknod ${name}${unit}a b $blk $(( $unit * 8 + 0 )) - mknod ${name}${unit}c b $blk $(( $unit * 8 + 2 )) - mknod r${name}${unit}a c $chr $(( $unit * 8 + 0 )) - mknod r${name}${unit}c c $chr $(( $unit * 8 + 2 )) - chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h] - chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] - ;; - *) - echo bad unit for disk in: $i - ;; - esac - umask 77 - ;; - -audio*) - major=44 - audio=audio$unit - sound=sound$unit - mixer=mixer$unit - audioctl=audioctl$unit - rm -f $sound $audio $mixer $audioctl - mknod $sound c $major $unit - mknod $audio c $major $(( $unit + 128 )) - mknod $mixer c $major $(( $unit + 16 )) - mknod $audioctl c $major $(( $unit + 192 )) - chown root.wheel $audio $sound $mixer $audioctl - chmod 666 $audio $sound $mixer $audioctl - [ -e audio ] || ln -s $audio audio - [ -e mixer ] || ln -s $mixer mixer - [ -e sound ] || ln -s $sound sound - [ -e audioctl ] || ln -s $audioctl audioctl - ;; - -usb*) - rm -f usb$unit - mknod usb$unit c 61 $unit - chown root.wheel usb$unit - chmod 660 usb$unit - ;; - -uhid*) - rm -f uhid$unit - mknod uhid$unit c 62 $unit - chown root.wheel uhid$unit - chmod 660 uhid$unit - ;; - -ugen*) - for j in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 - do - rm -f ugen$unit.$j - mknod ugen$unit.$j c 63 $(( $unit * 16 + $j )) - chown root.wheel ugen$unit.$j - chmod 660 ugen$unit.$j - done - ;; - -ulpt*) - rm -f ulpt$unit - mknod ulpt$unit c 64 $unit - chown root.wheel ulpt$unit - chmod 660 ulpt$unit - ;; - -urio*) - rm -f urio$unit - mknod urio$unit c 65 $unit - chown root.wheel urio$unit - chmod 660 urio$unit - ;; - -utty*) - rm -f utty$unit - mknod utty$unit c 66 $unit - chown root.wheel utty$unit - chmod 660 utty$unit - ;; - - -ttyCcfg) - major=67 - minor=255 - rm -f ttyCcfg - mknod ttyCcfg c $major $minor - chown root.wheel ttyCcfg - ;; - -ttyC*) - type=C - unit=${i##ttyC} - major=67 - minor=$unit - rm -f tty$type$unit - mknod tty$type$unit c $major $minor - chown root.wheel tty$type$unit - ;; - -bpf*) - unit=${i##*[a-z]} - rm -f bpf${unit} - mknod bpf${unit} c 22 ${unit} - chown root.wheel bpf${unit} - ;; - -pf) - rm -f pf - mknod pf c 39 0 - chown root.wheel pf - chmod 600 pf - ;; - -tun*) - unit=${i##*[a-z]} - rm -f tun$unit - mknod tun$unit c 23 $unit - chmod 600 tun$unit - chown root.wheel tun$unit - ;; - -rd*) - blk=17; chr=17; - umask 2 ; unit=${i##*[a-z]} - rm -f rd${unit}a rd${unit}c rrd${unit}a rrd${unit}c - mknod rd${unit}a b ${blk} $(( $unit * 16 + 0 )) - mknod rd${unit}c b ${blk} $(( $unit * 16 + 2 )) - mknod rrd${unit}a c ${chr} $(( $unit * 16 + 0 )) - mknod rrd${unit}c c ${chr} $(( $unit * 16 + 2 )) - chown root.operator rd${unit}[ac] rrd${unit}[ac] - chmod 640 rd${unit}[ac] rrd${unit}[ac] - umask 77 - ;; - -lkm) - rm -f lkm - mknod lkm c 24 0 - chown root._lkm lkm - chmod 640 lkm - ;; - -pci*) - rm -f pci - mknod pci c 71 0 - chown root.kmem pci - chmod 664 pci - ;; - -random|srandom|urandom|prandom|arandom) - rm -f random urandom srandom prandom arandom - mknod random c 40 0 - mknod srandom c 40 1 - mknod urandom c 40 2 - mknod prandom c 40 3 - mknod arandom c 40 4 - chown root.wheel random srandom urandom prandom arandom - chmod 644 random srandom urandom prandom arandom - ;; -uk*) - unit=${i##*[a-z]} - rm -f uk$unit - mknod uk$unit c 41 $unit - chown root.operator uk$unit - chmod 640 uk$unit - ;; - -ss*) - unit=${i##*[a-z]} - rm -f ss$unit - mknod ss$unit c 42 $unit - chown root.operator ss$unit - chmod 440 ss$unit -# backwards compatibility with older PINTs - rm -f scan$unit - ln -s ss$unit scan$unit - ;; -wscons) - sh $this wskbd0 wskbd1 wskbd2 wskbd3 - sh $this wsmouse0 wsmouse1 wsmouse2 wsmouse3 - sh $this ttyCcfg - sh $this wsmux - ;; -wsmux|wsmouse|wskbd) - rm -f wsmouse wskbd - mknod wsmouse c 70 0 - mknod wskbd c 70 1 - chown root.wheel wsmouse wskbd - chmod 600 wsmouse wskbd - ;; - -wskbd*) - unit=${i##*[a-z]} - rm -f wskbd${unit} - mknod wskbd${unit} c 68 ${unit} - # XXX - chmod 660 wskbd${unit} - chown root.wheel wskbd${unit} - ;; -wsmouse*) - unit=${i##*[a-z]} - rm -f wsmouse${unit} - mknod wsmouse${unit} c 69 ${unit} - # XXX - chmod 660 wsmouse${unit} - chown root.wheel wsmouse${unit} - ;; - -nnpfs*) - rm -f nnpfs$unit - mknod nnpfs$unit c 51 $unit - chmod 600 nnpfs$unit - chown root.wheel nnpfs$unit - ;; - -*) - echo $i: unknown device -esac -done - diff --git a/etc/etc.mvmeppc/MAKEDEV.md b/etc/etc.mvmeppc/MAKEDEV.md deleted file mode 100644 index 67bad0857f4..00000000000 --- a/etc/etc.mvmeppc/MAKEDEV.md +++ /dev/null @@ -1,526 +0,0 @@ -define(MACHINE,macppc)dnl -vers(__file__, - {-$OpenBSD: MAKEDEV.md,v 1.35 2011/04/18 16:52:11 thib Exp $-}, -etc.MACHINE)dnl -dnl -dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org> -dnl -dnl Permission to use, copy, modify, and distribute this software for any -dnl purpose with or without fee is hereby granted, provided that the above -dnl copyright notice and this permission notice appear in all copies. -dnl -dnl THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -dnl WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -dnl MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -dnl ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -dnl WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -dnl -dnl -_TITLE(make) -_DEV(all) -_DEV(ramd) -_DEV(std) -_DEV(local) -_TITLE(dis) -_DEV(ccd, 18, 16) -_DEV(cd, 9, 3) -_DEV(raid, 54, 19) -_DEV(rd, 17, 17) -_DEV(sd, 8, 2) -_DEV(vnd, 19, 14) -_DEV(wd, 11, 0) -_TITLE(tap) -_DEV(ch) -_DEV(st, 20, 5) -_TITLE(term) -_DEV(com, 7) -_TITLE(pty) -_DEV(ptm, 55) -_DEV(pty) -_DEV(tty) -_TITLE(cons) -_DEV(wscons) -_DEV(wsdisp, 67) -_DEV(wskbd, 68) -_TITLE(point) -_DEV(wsmouse, 69) -_TITLE(spec) -_DEV(au) -_DEV(bio, 53) -_DEV(bpf) -_DEV(fdesc, 21) -_DEV(lkm) -_DEV(pf, 39) -_DEV(rnd) -_DEV(systrace, 50) -_DEV(tun) -dnl -divert(__mddivert)dnl -dnl -_std(1, 2, 43, 6) - ;; - -sd*|wd*|ccd*|ofdisk*|raid*) - umask 2 ; unit=${i##*[a-z]} - case $i in - sd*) name=sd; blk=2; chr=8;; - wd*) name=wd; blk=0; chr=11;; - ofdisk*) name=ofdisk; blk=4; chr=13;; - ccd*) name=ccd; blk=16; chr=18;; - raid*) name=raid; blk=19; chr=54;; - esac - rm -f $name$unit? r$name$unit? - case $unit in - 0|1|2|3|4|5|6|7|8|9) - mknod ${name}${unit}a b $blk $(( $unit * 16 + 0 )) - mknod ${name}${unit}b b $blk $(( $unit * 16 + 1 )) - mknod ${name}${unit}c b $blk $(( $unit * 16 + 2 )) - mknod ${name}${unit}d b $blk $(( $unit * 16 + 3 )) - mknod ${name}${unit}e b $blk $(( $unit * 16 + 4 )) - mknod ${name}${unit}f b $blk $(( $unit * 16 + 5 )) - mknod ${name}${unit}g b $blk $(( $unit * 16 + 6 )) - mknod ${name}${unit}h b $blk $(( $unit * 16 + 7 )) - mknod ${name}${unit}i b $blk $(( $unit * 16 + 8 )) - mknod ${name}${unit}j b $blk $(( $unit * 16 + 9 )) - mknod ${name}${unit}k b $blk $(( $unit * 16 + 10 )) - mknod ${name}${unit}l b $blk $(( $unit * 16 + 11 )) - mknod ${name}${unit}m b $blk $(( $unit * 16 + 12 )) - mknod ${name}${unit}n b $blk $(( $unit * 16 + 13 )) - mknod ${name}${unit}o b $blk $(( $unit * 16 + 14 )) - mknod ${name}${unit}p b $blk $(( $unit * 16 + 15 )) - mknod r${name}${unit}a c $chr $(( $unit * 16 + 0 )) - mknod r${name}${unit}b c $chr $(( $unit * 16 + 1 )) - mknod r${name}${unit}c c $chr $(( $unit * 16 + 2 )) - mknod r${name}${unit}d c $chr $(( $unit * 16 + 3 )) - mknod r${name}${unit}e c $chr $(( $unit * 16 + 4 )) - mknod r${name}${unit}f c $chr $(( $unit * 16 + 5 )) - mknod r${name}${unit}g c $chr $(( $unit * 16 + 6 )) - mknod r${name}${unit}h c $chr $(( $unit * 16 + 7 )) - mknod r${name}${unit}i c $chr $(( $unit * 16 + 8 )) - mknod r${name}${unit}j c $chr $(( $unit * 16 + 9 )) - mknod r${name}${unit}k c $chr $(( $unit * 16 + 10 )) - mknod r${name}${unit}l c $chr $(( $unit * 16 + 11 )) - mknod r${name}${unit}m c $chr $(( $unit * 16 + 12 )) - mknod r${name}${unit}n c $chr $(( $unit * 16 + 13 )) - mknod r${name}${unit}o c $chr $(( $unit * 16 + 14 )) - mknod r${name}${unit}p c $chr $(( $unit * 16 + 15 )) - chgrp operator ${name}${unit}[a-p] r${name}${unit}[a-p] - chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] - ;; - *) - echo bad unit for disk in: $i - ;; - esac - umask 77 - ;; - -vnd*) - umask 2 ; unit=${i##*[a-z]} - blk=14; chr=19; - rm -f $name$unit? r$name$unit? - mknod ${name}${unit}a b $blk $(( $unit * 16 + 0 )) - mknod ${name}${unit}b b $blk $(( $unit * 16 + 1 )) - mknod ${name}${unit}c b $blk $(( $unit * 16 + 2 )) - mknod ${name}${unit}d b $blk $(( $unit * 16 + 3 )) - mknod ${name}${unit}e b $blk $(( $unit * 16 + 4 )) - mknod ${name}${unit}f b $blk $(( $unit * 16 + 5 )) - mknod ${name}${unit}g b $blk $(( $unit * 16 + 6 )) - mknod ${name}${unit}h b $blk $(( $unit * 16 + 7 )) - mknod ${name}${unit}i b $blk $(( $unit * 16 + 8 )) - mknod ${name}${unit}j b $blk $(( $unit * 16 + 9 )) - mknod ${name}${unit}k b $blk $(( $unit * 16 + 10 )) - mknod ${name}${unit}l b $blk $(( $unit * 16 + 11 )) - mknod ${name}${unit}m b $blk $(( $unit * 16 + 12 )) - mknod ${name}${unit}n b $blk $(( $unit * 16 + 13 )) - mknod ${name}${unit}o b $blk $(( $unit * 16 + 14 )) - mknod ${name}${unit}p b $blk $(( $unit * 16 + 15 )) - mknod r${name}${unit}a c $chr $(( $unit * 16 + 0 )) - mknod r${name}${unit}b c $chr $(( $unit * 16 + 1 )) - mknod r${name}${unit}c c $chr $(( $unit * 16 + 2 )) - mknod r${name}${unit}d c $chr $(( $unit * 16 + 3 )) - mknod r${name}${unit}e c $chr $(( $unit * 16 + 4 )) - mknod r${name}${unit}f c $chr $(( $unit * 16 + 5 )) - mknod r${name}${unit}g c $chr $(( $unit * 16 + 6 )) - mknod r${name}${unit}h c $chr $(( $unit * 16 + 7 )) - mknod r${name}${unit}i c $chr $(( $unit * 16 + 8 )) - mknod r${name}${unit}j c $chr $(( $unit * 16 + 9 )) - mknod r${name}${unit}k c $chr $(( $unit * 16 + 10 )) - mknod r${name}${unit}l c $chr $(( $unit * 16 + 11 )) - mknod r${name}${unit}m c $chr $(( $unit * 16 + 12 )) - mknod r${name}${unit}n c $chr $(( $unit * 16 + 13 )) - mknod r${name}${unit}o c $chr $(( $unit * 16 + 14 )) - mknod r${name}${unit}p c $chr $(( $unit * 16 + 15 )) - chown root:operator ${name}${unit}[a-p] r${name}${unit}[a-p] - chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] - umask 77 - ;; - -tty0*) - unit=${i##tty0} - rm -f tty0$unit cua0$unit - mknod tty0$unit c 7 $unit - mknod cua0$unit c 7 `expr $unit + 128` - chown uucp:dialer tty0$unit cua0$unit - chmod 660 tty0$unit cua0$unit - ;; - -pty*) - class=${i##*[a-z]} - case $class in - 0) offset=0 name=p;; - 1) offset=16 name=q;; - 2) offset=32 name=r;; - 3) offset=48 name=s;; - 4) offset=64 name=t;; - 5) offset=80 name=u;; - 6) offset=96 name=v;; - 7) offset=112 name=w;; - 8) offset=128 name=x;; - 9) offset=144 name=y;; - 10) offset=160 name=z;; - 11) offset=176 name=P;; - 12) offset=192 name=Q;; - 13) offset=208 name=R;; - 14) offset=224 name=S;; - 15) offset=240 name=T;; - *) echo bad unit for pty in: $i;; - esac - case $class in - 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) - umask 0 - n=0 - while [ $n -lt 16 ] - do - nam=$name`hex $n` - rm -f {tty,pty}$nam - mknod tty$nam c 4 $(( $offset + $n )) - mknod pty$nam c 5 $(( $offset + $n )) - n="$(( $n + 1 ))" - done - umask 77 - ;; - esac - ;; - -st*) - umask 2 ; unit=${i##*[a-z]} - case $i in - st*) name=st; chr=20; blk=5;; - esac - rm -f $name$unit n$name$unit e$name$unit en$name$unit \ - r$name$unit nr$name$unit er$name$unit enr$name$unit - case $unit in - 0|1|2|3|4|5|6) - mknod ${name}${unit} b $blk $(( $unit * 16 + 0 )) - mknod n${name}${unit} b $blk $(( $unit * 16 + 1 )) - mknod e${name}${unit} b $blk $(( $unit * 16 + 2 )) - mknod en${name}${unit} b $blk $(( $unit * 16 + 3 )) - mknod r${name}${unit} c $chr $(( $unit * 16 + 0 )) - mknod nr${name}${unit} c $chr $(( $unit * 16 + 1 )) - mknod er${name}${unit} c $chr $(( $unit * 16 + 2 )) - mknod enr${name}${unit} c $chr $(( $unit * 16 + 3 )) - chown root:operator ${name}${unit} n${name}${unit} \ - e$name$unit en$name$unit \ - r${name}${unit} nr${name}${unit} \ - er${name}${unit} enr${name}${unit} - chmod 660 ${name}${unit} n${name}${unit} \ - e$name$unit en$name$unit \ - r${name}${unit} nr${name}${unit} \ - er${name}${unit} enr${name}${unit} - ;; - *) - echo bad unit for tape in: $i - ;; - esac - umask 77 - ;; - -ch*) - umask 2 ; unit=${i##*[a-z]} - case $i in - ch*) name=ch; chr=10;; - esac - rm -f $name$unit - case $unit in - 0|1|2|3|4|5|6) - mknod ${name}${unit} c $chr $unit - chown root:operator ${name}${unit} - chmod 660 ${name}${unit} - ;; - *) - echo bad unit for media changer in: $i - ;; - esac - umask 77 - ;; - -cd*) - umask 2 ; unit=${i##*[a-z]} - case $i in - cd*) name=cd; blk=3; chr=9;; - esac - rm -f $name$unit? r$name$unit? - case $unit in - 0|1|2|3|4|5|6) - mknod ${name}${unit}a b $blk $(( $unit * 8 + 0 )) - mknod ${name}${unit}c b $blk $(( $unit * 8 + 2 )) - mknod r${name}${unit}a c $chr $(( $unit * 8 + 0 )) - mknod r${name}${unit}c c $chr $(( $unit * 8 + 2 )) - chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h] - chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] - ;; - *) - echo bad unit for disk in: $i - ;; - esac - umask 77 - ;; - -audio*) - major=44 - audio=audio$unit - sound=sound$unit - mixer=mixer$unit - audioctl=audioctl$unit - rm -f $sound $audio $mixer $audioctl - mknod $sound c $major $unit - mknod $audio c $major $(( $unit + 128 )) - mknod $mixer c $major $(( $unit + 16 )) - mknod $audioctl c $major $(( $unit + 192 )) - chown root:wheel $audio $sound $mixer $audioctl - chmod 666 $audio $sound $mixer $audioctl - [ -e audio ] || ln -s $audio audio - [ -e mixer ] || ln -s $mixer mixer - [ -e sound ] || ln -s $sound sound - [ -e audioctl ] || ln -s $audioctl audioctl - ;; - -usb*) - rm -f usb$unit - mknod usb$unit c 61 $unit - chown root:wheel usb$unit - chmod 660 usb$unit - ;; - -uhid*) - rm -f uhid$unit - mknod uhid$unit c 62 $unit - chown root:wheel uhid$unit - chmod 660 uhid$unit - ;; - -ugen*) - for j in 0{0,1,2,3,4,5,6,7,8,9} 1{0,1,2,3,4,5} - do - rm -f ugen$unit.$j - mknod ugen$unit.$j c 63 $(( $unit * 16 + 10#$j )) - chown root:wheel ugen$unit.$j - chmod 660 ugen$unit.$j - done - ;; - -ulpt*) - rm -f ulpt$unit - mknod ulpt$unit c 64 $unit - chown root:wheel ulpt$unit - chmod 660 ulpt$unit - ;; - -urio*) - rm -f urio$unit - mknod urio$unit c 65 $unit - chown root:wheel urio$unit - chmod 660 urio$unit - ;; - -utty*) - rm -f utty$unit - mknod utty$unit c 66 $unit - chown root:wheel utty$unit - chmod 660 utty$unit - ;; - - -ttyCcfg) - major=67 - minor=255 - rm -f ttyCcfg - mknod ttyCcfg c $major $minor - chown root:wheel ttyCcfg - ;; - -ttyC*) - type=C - unit=${i##ttyC} - major=67 - minor=$unit - rm -f tty$type$unit - mknod tty$type$unit c $major $minor - chown root:wheel tty$type$unit - ;; - -bpf*) - unit=${i##*[a-z]} - rm -f bpf${unit} - mknod bpf${unit} c 22 ${unit} - chown root:wheel bpf${unit} - ;; - -pf) - rm -f pf - mknod pf c 39 0 - chown root:wheel pf - chmod 600 pf - ;; - -tun*) - unit=${i##*[a-z]} - rm -f tun$unit - mknod tun$unit c 23 $unit - chmod 600 tun$unit - chown root:wheel tun$unit - ;; - -rd*) - blk=17; chr=17; - umask 2 ; unit=${i##*[a-z]} - rm -f rd${unit}a rd${unit}c rrd${unit}a rrd${unit}c - mknod rd${unit}a b ${blk} $(( $unit * 16 + 0 )) - mknod rd${unit}c b ${blk} $(( $unit * 16 + 2 )) - mknod rrd${unit}a c ${chr} $(( $unit * 16 + 0 )) - mknod rrd${unit}c c ${chr} $(( $unit * 16 + 2 )) - chown root:operator rd${unit}[ac] rrd${unit}[ac] - chmod 640 rd${unit}[ac] rrd${unit}[ac] - umask 77 - ;; - -lkm) - rm -f lkm - mknod lkm c 24 0 - chown root:kmem lkm - chmod 640 lkm - ;; - -pci*) - rm -f pci - mknod pci c 71 0 - chown root:kmem pci - chmod 600 pci - ;; - -random|srandom|urandom|prandom|arandom) - rm -f random urandom srandom prandom arandom - mknod random c 40 0 - mknod srandom c 40 1 - mknod urandom c 40 2 - mknod prandom c 40 3 - mknod arandom c 40 4 - chown root:wheel random srandom urandom prandom arandom - chmod 644 random srandom urandom prandom arandom - ;; -uk*) - unit=${i##*[a-z]} - rm -f uk$unit - mknod uk$unit c 41 $unit - chown root:operator uk$unit - chmod 640 uk$unit - ;; - -wscons) - sh $this wskbd0 wskbd1 wskbd2 wskbd3 - sh $this wsmouse0 wsmouse1 wsmouse2 wsmouse3 - sh $this ttyCcfg - sh $this wsmux - ;; -wsmux|wsmouse|wskbd) - rm -f wsmouse wskbd - mknod wsmouse c 70 0 - mknod wskbd c 70 1 - chown root:wheel wsmouse wskbd - chmod 600 wsmouse wskbd - ;; - -wskbd*) - unit=${i##*[a-z]} - rm -f wskbd${unit} - mknod wskbd${unit} c 68 ${unit} - # XXX - chmod 660 wskbd${unit} - chown root:wheel wskbd${unit} - ;; -wsmouse*) - unit=${i##*[a-z]} - rm -f wsmouse${unit} - mknod wsmouse${unit} c 69 ${unit} - # XXX - chmod 660 wsmouse${unit} - chown root:wheel wsmouse${unit} - ;; - -nnpfs*) - rm -f nnpfs$unit - mknod nnpfs$unit c 46 $unit - chmod 600 nnpfs$unit - chown root:wheel nnpfs$unit - ;; - -vscsi*) - rm -f vscsi$unit - mknod vscsi$unit c 51 $unit - chmod 600 vscsi$unit - chown root:wheel vscsi$unit - ;; -diskmap) - rm -f diskmap - mknod diskmap c 57 0 - chmod 640 diskmap - chown root:operator diskmap - ;; - -pppx*) - rm -f pppx$unit - mknod pppx$unit c 58 0 - chmod 640 pppx$unit - chown root:wheel pppx$unit - ;; - -altq) - mkdir -p altq - chmod 755 altq - unit=0 - for dev in altq cbq wfq afm fifoq red rio localq hfsc \ - cdnr blue priq; do - rm -f altq/$dev - mknod altq/$dev c 71 $unit - chmod 644 altq/$dev - unit=$(($unit + 1)) - done - ;; - -*) - echo $i: unknown device -esac -done -dnl -dnl *** mvmeppc specific devices -dnl -target(all, ch, 0)dnl -target(all, nnpfs, 0)dnl -target(all, vscsi, 0)dnl -twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl -twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl -target(all, pty, 0)dnl -target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl -target(all, bio)dnl -target(all, tun, 0, 1, 2, 3)dnl -target(all, xy, 0, 1, 2, 3)dnl -target(all, rd, 0)dnl -target(all, cd, 0, 1)dnl -target(all, sd, 0, 1, 2, 3, 4)dnl -target(all, vnd, 0, 1, 2, 3)dnl -target(all, ccd, 0, 1, 2, 3)dnl -twrget(ramd, wsdisp, ttyC, 0)dnl -target(ramd, bio)dnl -target(ramd, diskmap)dnl diff --git a/etc/etc.mvmeppc/Makefile.inc b/etc/etc.mvmeppc/Makefile.inc deleted file mode 100644 index 29faf3a2de9..00000000000 --- a/etc/etc.mvmeppc/Makefile.inc +++ /dev/null @@ -1,19 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.7 2011/04/15 03:11:38 deraadt Exp $ - -kernels: bsd bootblocks - cp ${.CURDIR}/../sys/arch/mvmeppc/compile/GENERIC/bsd \ - ${RELEASEDIR}/bsd - -bsd: - cd ${.CURDIR}/../sys/arch/mvmeppc/conf && config GENERIC - cd ${.CURDIR}/../sys/arch/mvmeppc/compile/GENERIC && \ - ${MAKE} clean && exec ${MAKE} - -bootblocks: - cp ${DESTDIR}/usr/mdec/bootxx ${RELEASEDIR}/bootxx - cp ${DESTDIR}/usr/mdec/bootsd ${RELEASEDIR}/bootsd - cp ${DESTDIR}/usr/mdec/installboot ${RELEASEDIR}/installboot - -MDEXT= bsd bsd.rd bootxx bootsd installboot - -.PHONY: bsd bootblocks diff --git a/etc/etc.mvmeppc/disktab b/etc/etc.mvmeppc/disktab deleted file mode 100644 index 92289b560e1..00000000000 --- a/etc/etc.mvmeppc/disktab +++ /dev/null @@ -1,19 +0,0 @@ -# $OpenBSD: disktab,v 1.4 2010/07/02 20:33:54 tedu Exp $ - -# Leave nc=16; adjust size using: ns -rdroot|ramdiskroot|RAM-disk root FS image:\ - :ty=simulated:se#512:nc#16:nt#2:ns#256:\ - :ta=4.2BSD:oa#0:pa#8192:fa#512:ba#4096:\ - :ob#0:pb#0:oc#0:pc#8192: - -# pseudo-geometry taken from rd7945 -miniroot:\ - :ty=winchester:ns#16:nt#7:nc#968:\ - :pa#10240:ba#8192:fa#1024: - -floppy|floppy3|3in|3.5in High Density Floppy:\ - :ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\ - :pa#2880:oa#0:ba#4096:fa#512:\ - :pb#2880:ob#0:\ - :pc#2880:oc#0: - diff --git a/etc/etc.mvmeppc/fbtab b/etc/etc.mvmeppc/fbtab deleted file mode 100644 index a362618f21e..00000000000 --- a/etc/etc.mvmeppc/fbtab +++ /dev/null @@ -1,3 +0,0 @@ -/dev/ttya 0600 /dev/console -/dev/tty00 0600 /dev/console -/dev/ttyC0 0600 /dev/console:/dev/wskbd:/dev/wskbd0:/dev/wsmouse:/dev/wsmouse0:/dev/ttyCcfg diff --git a/etc/etc.mvmeppc/sysctl.conf b/etc/etc.mvmeppc/sysctl.conf deleted file mode 100644 index e69de29bb2d..00000000000 --- a/etc/etc.mvmeppc/sysctl.conf +++ /dev/null diff --git a/etc/etc.mvmeppc/ttys b/etc/etc.mvmeppc/ttys deleted file mode 100644 index 6b5e15408d1..00000000000 --- a/etc/etc.mvmeppc/ttys +++ /dev/null @@ -1,11 +0,0 @@ -# -# $OpenBSD: ttys,v 1.4 2010/03/07 21:10:22 miod Exp $ -# -# name getty type status comments -# -console "/usr/libexec/getty std.9600" vt220 on secure -tty00 "/usr/libexec/getty std.9600" unknown off secure -tty01 "/usr/libexec/getty std.9600" unknown off -tty02 "/usr/libexec/getty std.9600" unknown off -tty03 "/usr/libexec/getty std.9600" unknown off -ttyC0 "/usr/libexec/getty std.9600" vt220 off secure diff --git a/etc/remote b/etc/remote index f7a5b5ccefe..204ac82b31d 100644 --- a/etc/remote +++ b/etc/remote @@ -1,4 +1,4 @@ -# $OpenBSD: remote,v 1.12 2010/06/29 17:17:53 nicm Exp $ +# $OpenBSD: remote,v 1.13 2011/07/07 19:16:42 deraadt Exp $ # from: @(#)remote 8.1 (Berkeley) 6/10/93 # # remote -- remote host description database @@ -53,7 +53,7 @@ doshost:\ unixhost:\ :pa=none:br#9600:el=^U^C^R^O^D^S^Q:ie=%$:oe=^D: -tty00|For hp300,i386,mac68k,macppc,mvmeppc,vax:\ +tty00|For hp300,i386,mac68k,macppc,vax:\ :dv=/dev/tty00:tc=direct:tc=unixhost: ttya|For sparc,mvme68k:\ diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8 index 89347e872ff..ef38443c023 100644 --- a/sbin/reboot/reboot.8 +++ b/sbin/reboot/reboot.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: reboot.8,v 1.40 2011/04/22 14:11:08 ajacoutot Exp $ +.\" $OpenBSD: reboot.8,v 1.41 2011/07/07 19:16:43 deraadt Exp $ .\" $NetBSD: reboot.8,v 1.3 1995/10/05 05:36:21 mycroft Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)reboot.8 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: April 22 2011 $ +.Dd $Mdocdate: July 7 2011 $ .Dt REBOOT 8 .Os .Sh NAME @@ -118,7 +118,6 @@ will attempt to power down the machine after it has halted. .Xr boot_macppc 8 , .Xr boot_mvme68k 8 , .Xr boot_mvme88k 8 , -.\" .Xr boot_mvmeppc 8 , .Xr boot_sparc 8 , .Xr boot_sparc64 8 , .Xr boot_vax 8 , diff --git a/sys/Makefile b/sys/Makefile index 6df6f48e547..0901d8327e6 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -1,11 +1,11 @@ -# $OpenBSD: Makefile,v 1.35 2010/06/29 21:42:48 deraadt Exp $ +# $OpenBSD: Makefile,v 1.36 2011/07/07 19:16:42 deraadt Exp $ # $NetBSD: Makefile,v 1.5 1995/09/15 21:05:21 pk Exp $ SUBDIR= dev/microcode \ arch/alpha arch/amd64 arch/armish arch/aviion arch/beagle \ arch/hp300 arch/hppa arch/hppa64 arch/i386 arch/landisk \ arch/loongson arch/luna88k arch/m68k arch/mac68k arch/macppc \ - arch/mvme68k arch/mvme88k arch/mvmeppc arch/palm arch/sgi \ + arch/mvme68k arch/mvme88k arch/palm arch/sgi \ arch/socppc arch/solbourne arch/sparc arch/sparc64 arch/vax \ arch/zaurus diff --git a/sys/arch/mvmeppc/Makefile b/sys/arch/mvmeppc/Makefile deleted file mode 100644 index 0fcc06ed6ef..00000000000 --- a/sys/arch/mvmeppc/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# $OpenBSD: Makefile,v 1.6 2010/11/12 17:11:44 deraadt Exp $ - -S= ${.CURDIR}/../.. -KFILE= GENERIC -.if exists(conf/GENERIC.MP) -KFILE= GENERIC.MP -.endif -TDIRS= ${_arch} include pci isa eisa -TAGS= ${.CURDIR}/tags - -NOPROG= -NOMAN= -SUBDIR= stand - -# config the fattest kernel we can find into a temporary dir -# to create a Makefile. Then use make to pull some variables -# out and push them into the sub-shell to expand the paths, -# and finally run ctags. -tags:: - TDIR=`mktemp -d /tmp/_tagXXXXXXXXXX` || exit 1; \ - eval "S=${S}" && \ - config -s ${S} -b $${TDIR} ${.CURDIR}/conf/${KFILE} && \ - eval "_arch=\"`make -V _arch -f $${TDIR}/Makefile`\"" && \ - eval "_mach=\"`make -V _mach -f $${TDIR}/Makefile`\"" && \ - eval "_machdir=\$S/arch/$${_mach}" && \ - eval "_archdir=\$S/arch/$${_arch}" && \ - eval "HFILES=\"`find $S \( -path $S/'arch' -o -path $S/stand -o -path $S/lib/libsa -o -path $S'/lib/libkern/arch' \) -prune -o -name '*.h'; find $${_machdir} $${_archdir} $S/lib/libkern/arch/$${_mach} \( -name boot -o -name stand \) -prune -o -name '*.h'`\"" && \ - eval "SFILES=\"`make -V SFILES -f $${TDIR}/Makefile`\"" && \ - eval "CFILES=\"`make -V CFILES -f $${TDIR}/Makefile`\"" && \ - eval "AFILES=\"`make -V AFILES -f $${TDIR}/Makefile`\"" && \ - ctags -wd -f ${TAGS} $${CFILES} $${HFILES} && \ - egrep "^[_A-Z]*ENTRY[_A-Z]*\(.*\)" $${SFILES} $${AFILES} | \ - sed "s;\\([^:]*\\):\\([^(]*\\)(\\([^, )]*\\)\\(.*\\);\\3 \\1 /^\\2(\\3\\4$$/;" \ - >> ${TAGS} && \ - sort -o ${TAGS} ${TAGS} && \ - rm -rf $${TDIR} - -links: - -for i in conf ${TDIRS}; do \ - (cd $$i && rm -f tags; ln -s tags tags); done - -obj: _SUBDIRUSE - -.include <bsd.prog.mk> diff --git a/sys/arch/mvmeppc/compile/.cvsignore b/sys/arch/mvmeppc/compile/.cvsignore deleted file mode 100644 index b72af3039e6..00000000000 --- a/sys/arch/mvmeppc/compile/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -GENERIC -RAMDISK diff --git a/sys/arch/mvmeppc/conf/GENERIC b/sys/arch/mvmeppc/conf/GENERIC deleted file mode 100644 index fbe5bd94032..00000000000 --- a/sys/arch/mvmeppc/conf/GENERIC +++ /dev/null @@ -1,88 +0,0 @@ -# $OpenBSD: GENERIC,v 1.13 2011/06/29 20:52:09 matthew Exp $ -# -# For further information on compiling OpenBSD kernels, see the config(8) -# man page. -# -# For further information on hardware support for this architecture, see -# the intro(4) man page. For further information about kernel options -# for this architecture, see the options(4) man page. For an explanation -# of each device driver in this file see the section 4 man page for the -# device. - -machine mvmeppc powerpc -include "../../../conf/GENERIC" -maxusers 32 # estimated number of users - -# default type, instructs system to try to determine what proper type is -# actual machine type probed via name of openfirmware root node. -option SYS_TYPE=APPL - -option PCIVERBOSE - - -config bsd swap generic - -# -# Now the Machine specification -# -mainbus0 at root -cpu* at mainbus0 -bugtty0 at mainbus0 -raven0 at mainbus0 # raven ASIC - -#### PCI Bus devices. - -openpic0 at raven0 # interrupt controller -#mpic0 at raven0 # interrupt controller -mpcpcibr0 at raven0 # PCI controller -pci* at mpcpcibr0 -#ppb* at pci? # PCI-PCI bridges -#pci* at ppb? - -# host bridge identifiers - -pchb* at pci? # PCI host bridge -pcib* at pci? # PCI-ISA bridge -siop* at pci? -de* at pci? -#vme* at pci? -#pciide* at pci? - -# ISA Bus -isa* at pcib? -#pckbc0 at isa? # PC keyboard controller -#pckbd* at pckbc? # PC keyboard -#pms* at pckbc? # PS/2 mouse for wsmouse -#vga0 at isa? -#vga* at pci? -#com* at isa? port 0x3f8 irq 4 # standard serial ports -#com* at isa? port 0x2f8 irq 3 -#lpt* at isa? port 0x3bc irq 7 # standard parallel port - -# how many of these are needed? -#ukphy* at mii? # generic unknown PHYs - -#nvram* at mainbus0 # nvram -#zsc* at obio? -#zstty* at zsc? - -#### SCSI attachment points - - -#wdc* at mainbus? flags 0x0 -#wd* at wdc? flags 0x0000 - -#atapiscsi* at wdc? flags 0x0000 - -# ATAPI<->SCSI - -#### SCSI Bus devices - -scsibus* at scsi? -sd0 at scsibus? target 0 lun 0 -#st* at scsibus? -#cd* at scsibus? -#ch* at scsibus? -#uk* at scsibus? -#safte* at scsibus? -#ses* at scsibus? diff --git a/sys/arch/mvmeppc/conf/Makefile.mvmeppc b/sys/arch/mvmeppc/conf/Makefile.mvmeppc deleted file mode 100644 index dd662e48cbc..00000000000 --- a/sys/arch/mvmeppc/conf/Makefile.mvmeppc +++ /dev/null @@ -1,168 +0,0 @@ -# $OpenBSD: Makefile.mvmeppc,v 1.58 2011/07/06 02:08:05 tedu Exp $ - -# For instructions on building kernels consult the config(8) and options(4) -# manual pages. -# -# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE -# IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING -# DEBUG is set to -g by config if debugging is requested (config -g). -# PROF is set to -pg by config if profiling is requested (config -p). - -.include <bsd.own.mk> - -MKDEP?= mkdep -SIZE?= size -STRIP?= strip - -# source tree is located via $S relative to the compilation directory -.ifndef S -S!= cd ../../../..; pwd -.endif - -_machdir?= $S/arch/${_mach} -_archdir?= $S/arch/${_arch} - -INCLUDES= -nostdinc -I. -I$S -I$S/arch -CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP -CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \ - -Wno-main -Wno-uninitialized -Wno-format \ - -Wstack-larger-than-2047 - -CMACHFLAGS= -msoft-float -Wa,-m7400 -CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \ - -fno-builtin-vsnprintf -fno-builtin-log \ - -fno-builtin-log2 -fno-builtin-malloc -.if ${IDENT:M-DNO_PROPOLICE} -CMACHFLAGS+= -fno-stack-protector -.endif - -COPTS?= -O2 -CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE ${CMACHFLAGS} -LINKFLAGS= -N -Ttext 100114 -e start --warn-common - -.if ${IDENT:M-DDDB_STRUCT} -DB_STRUCTINFO= db_structinfo.h -.else -DB_STRUCTINFO= -.endif - -HOSTCC?= ${CC} -HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//} -HOSTED_CFLAGS= ${CFLAGS} -HOSTED_C= ${HOSTCC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $< - -NORMAL_C_NOP= ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< -NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< - -%OBJS - -%CFILES - -%SFILES - -# load lines for config "xxx" will be emitted as: -# xxx: ${SYSTEM_DEP} swapxxx.o -# ${SYSTEM_LD_HEAD} -# ${SYSTEM_LD} swapxxx.o -# ${SYSTEM_LD_TAIL} -SYSTEM_HEAD= locore.o param.o ioconf.o -SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} -SYSTEM_DEP= Makefile ${SYSTEM_OBJ} -SYSTEM_LD_HEAD= @rm -f $@ -SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ - ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ - -DEBUG?= -.if ${DEBUG} == "-g" -LINKFLAGS+= -X -STRIPFLAGS= -g -x -SYSTEM_LD_TAIL+=; \ - echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ - echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ - ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb -.else -LINKFLAGS+= -S -x -.endif - -%LOAD - -# cc's -MD puts the source and output paths in the dependency file; -# since those are temp files here we need to fix it up. It also -# puts the file in /tmp, so we use -MF to put it in the current -# directory as assym.P and then generate assym.d from it with a -# good target name -assym.h: $S/kern/genassym.sh Makefile \ - ${_archdir}/${_arch}/genassym.cf ${_machdir}/${_mach}/genassym.cf - cat ${_archdir}/${_arch}/genassym.cf ${_machdir}/${_mach}/genassym.cf | \ - sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} -MF assym.P > assym.h.tmp - sed '1s/.*/assym.h: \\/' assym.P > assym.d - sort -u assym.h.tmp > assym.h - -param.c: $S/conf/param.c - rm -f param.c - cp $S/conf/param.c . - -param.o: param.c Makefile - ${NORMAL_C} - -mcount.o: $S/lib/libkern/mcount.c Makefile - ${NORMAL_C_NOP} - -ioconf.o: ioconf.c - ${NORMAL_C} - -vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} - sh $S/conf/newvers.sh - ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c - -clean:: - rm -f eddep *bsd *bsd.gdb tags *.[dio] [a-z]*.s \ - [Ee]rrs linterrs assym.h ${DB_STRUCTINFO} - -lint: - @lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \ - ${CFILES} ioconf.c param.c | \ - grep -v 'static function .* unused' - -depend: - @touch $@ - -tags: - @echo "see $S/kern/Makefile for tags" - -db_structinfo.h: $S/ddb/db_structinfo.c $S/ddb/parse_structinfo.awk - ${CC} ${CFLAGS} ${CPPFLAGS} -MT $@ -gstabs -c $S/ddb/db_structinfo.c - objdump -g db_structinfo.o | awk -f $S/ddb/parse_structinfo.awk > $@ - rm -f db_structinfo.o - -locore.o: ${_machdir}/${_mach}/locore.S assym.h -mutex.o: assym.h - -# The install target can be redefined by putting a -# install-kernel-${MACHINE_NAME} target into /etc/mk.conf -MACHINE_NAME!= uname -n -install: install-kernel-${MACHINE_NAME} -.if !target(install-kernel-${MACHINE_NAME}}) -install-kernel-${MACHINE_NAME}: - rm -f /obsd - ln /bsd /obsd - cp bsd /nbsd - mv /nbsd /bsd -.endif - -# pull in the dependency information -.if !empty(DB_STRUCTINFO) && !exists(${DB_STRUCTINFO}) - ${SYSTEM_OBJ}: ${DB_STRUCTINFO} -.endif -.ifnmake clean -. for o in ${SYSTEM_OBJ:.o=.d} assym.d ${DB_STRUCTINFO:.h=.d} -. if exists($o) -. include "$o" -. endif -. endfor -.endif - -%RULES diff --git a/sys/arch/mvmeppc/conf/RAMDISK b/sys/arch/mvmeppc/conf/RAMDISK deleted file mode 100644 index 4bd8d499971..00000000000 --- a/sys/arch/mvmeppc/conf/RAMDISK +++ /dev/null @@ -1,89 +0,0 @@ -# $OpenBSD: RAMDISK,v 1.14 2011/06/29 20:52:09 matthew Exp $ -# -# MVMEPPC GENERIC config file -# - -machine mvmeppc powerpc - -maxusers 32 - -# default type, instructs system to try to determine what proper type is -# actual machine type probed via name of openfirmware root node. -option SYS_TYPE=APPL - -option PCIVERBOSE - -include "../../../conf/GENERIC" -rmoption PTRACE - -config bsd root on rd0a swap on rd0b - -# -# Now the Machine specification -# -mainbus0 at root -cpu* at mainbus0 -bugtty0 at mainbus0 -raven0 at mainbus0 # raven ASIC - -#### PCI Bus devices. - -openpic0 at raven0 # interrupt controller -#mpic0 at raven0 # interrupt controller -mpcpcibr0 at raven0 # PCI controller -pci* at mpcpcibr0 -#ppb* at pci? # PCI-PCI bridges -#pci* at ppb? - -# host bridge identifiers - -pchb* at pci? # PCI host bridge -pcib* at pci? # PCI-ISA bridge -siop* at pci? -de* at pci? -#vme* at pci? -#pciide* at pci? - -# ISA Bus -isa* at pcib? -#pckbc0 at isa? # PC keyboard controller -#pckbd* at pckbc? # PC keyboard -#pms* at pckbc? # PS/2 mouse for wsmouse -#vga0 at isa? -#vga* at pci? -#com* at isa? port 0x3f8 irq 4 # standard serial ports -#com* at isa? port 0x2f8 irq 3 -#lpt* at isa? port 0x3bc irq 7 # standard parallel port - -# how many of these are needed? -#ukphy* at mii? # generic unknown PHYs - -#nvram* at mainbus0 # nvram -#zsc* at obio? -#zstty* at zsc? - -#### SCSI attachment points - - -#wdc* at mainbus? flags 0x0 -#wd* at wdc? flags 0x0000 - -#atapiscsi* at wdc? flags 0x0000 - -# ATAPI<->SCSI - -#### SCSI Bus devices - -scsibus* at scsi? -sd0 at scsibus? target 0 lun 0 -#st* at scsibus? -#cd* at scsibus? -#ch* at scsibus? -#uk* at scsibus? - -pseudo-device rd 1 # ram disk - -# RAMDISK stuff -option MINIROOTSIZE=8192 -option RAMDISK_HOOKS - diff --git a/sys/arch/mvmeppc/conf/files.mvmeppc b/sys/arch/mvmeppc/conf/files.mvmeppc deleted file mode 100644 index 89827e5f3f7..00000000000 --- a/sys/arch/mvmeppc/conf/files.mvmeppc +++ /dev/null @@ -1,101 +0,0 @@ -# $OpenBSD: files.mvmeppc,v 1.10 2010/12/06 20:10:18 jasper Exp $ - -# -# mvmeppc-specific configuration info -# -maxpartitions 16 - -maxusers 2 8 64 - -file dev/cninit.c -file arch/mvmeppc/mvmeppc/db_interface.c - -file arch/mvmeppc/dev/bugio.c -file arch/mvmeppc/dev/clock.c -file arch/mvmeppc/dev/mem.c - -file arch/mvmeppc/mvmeppc/autoconf.c -file arch/mvmeppc/mvmeppc/conf.c -file arch/mvmeppc/mvmeppc/disksubr.c disk -file arch/mvmeppc/mvmeppc/machdep.c -file arch/mvmeppc/mvmeppc/bus_space.c -file arch/mvmeppc/mvmeppc/bus_dma.c -file arch/mvmeppc/mvmeppc/ppc1_machdep.c - -define mainbus {} -device mainbus -attach mainbus at root -file arch/mvmeppc/dev/mainbus.c mainbus - -device cpu -attach cpu at mainbus -file arch/mvmeppc/dev/cpu.c - -device raven {} -attach raven at mainbus -file arch/mvmeppc/dev/raven.c - -device openpic -attach openpic at raven -file arch/mvmeppc/dev/openpic.c - -# Various things that need to be included early... - -# Media Independent Interface (mii) -include "dev/mii/files.mii" - -# I2O -include "dev/i2o/files.i2o" - -# -# ISA Bus support -# - -include "dev/isa/files.isa" -include "dev/isa/files.isapnp" - -file arch/mvmeppc/isa/isa_machdep.c isa - -# -# PCI bus support -# - -include "dev/pci/files.pci" - -device mpcpcibr {} : pcibus -attach mpcpcibr at raven -file arch/mvmeppc/pci/mpcpcibr.c mpcpcibr - -# PCI-Host bridge chipsets -device pchb: pcibus -attach pchb at pci -file arch/mvmeppc/pci/pchb.c pchb - -# PCI-ISA bridge chipsets -device pcib: isabus -attach pcib at pci -file arch/mvmeppc/pci/pcib.c pcib - -# -# Input Devices (not yet) -# - -#include "dev/pckbc/files.pckbc" -#include "dev/wscons/files.wscons" - -# -# Block Devices -# - -include "scsi/files.scsi" -#include "dev/atapiscsi/files.atapiscsi" -#include "dev/ata/files.ata" - -device bugtty: tty -attach bugtty at mainbus -file arch/mvmeppc/dev/bugtty.c bugtty needs-flag - -#major {wd = 0} -major {sd = 2} -major {cd = 3} -major {rd = 17} diff --git a/sys/arch/mvmeppc/dev/bugio.c b/sys/arch/mvmeppc/dev/bugio.c deleted file mode 100644 index 9c86129d5ea..00000000000 --- a/sys/arch/mvmeppc/dev/bugio.c +++ /dev/null @@ -1,306 +0,0 @@ -/* $OpenBSD: bugio.c,v 1.7 2004/11/15 11:01:35 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/types.h> - -#include <machine/bugio.h> -#include <machine/cpu.h> - -int bugenvsz(void); - -/* - * BUG register preserving - */ - -register_t sprg0, sprg1, sprg2, sprg3; -register_t bugsprg3; - -#define BUGCTXT(msr) \ - do { \ - msr = ppc_mfmsr(); \ - sprg0 = ppc_mfsprg0(); \ - sprg1 = ppc_mfsprg1(); \ - sprg2 = ppc_mfsprg2(); \ - sprg3 = ppc_mfsprg3(); \ - ppc_mtsprg3(bugsprg3); \ - ppc_mtmsr(((msr | PSL_IP) & ~(PSL_EE | PSL_IR | PSL_DR))); \ - } while (0) - -#define OSCTXT(msr) \ - do { \ - bugsprg3 = ppc_mfsprg3(); \ - ppc_mtsprg0(sprg0); \ - ppc_mtsprg1(sprg1); \ - ppc_mtsprg2(sprg2); \ - ppc_mtsprg3(sprg3); \ - ppc_mtmsr(msr); \ - } while (0) - -/* Invoke the BUG */ -#define MVMEPROM_CALL(x) \ - __asm__ __volatile__ ("addi %r10,%r0," __STRING(x)); \ - __asm__ __volatile__ ("sc"); - -void -buginit() -{ - bugsprg3 = ppc_mfsprg3(); -} - - -/* BUG - query board routines */ -void -mvmeprom_brdid(id) - struct mvmeprom_brdid *id; -{ - unsigned long msr; - - BUGCTXT(msr); - MVMEPROM_CALL(MVMEPROM_BRD_ID); - asm volatile ("mr %0, 3": "=r" (id):); - OSCTXT(msr); -} - -/* returns 0 if no characters ready to read */ -int -mvmeprom_getchar() -{ - int ret; - unsigned long msr; - - BUGCTXT(msr); - MVMEPROM_CALL(MVMEPROM_INCHR); - asm volatile ("mr %0, 3" : "=r" (ret)); - OSCTXT(msr); - return ret; -} - -/* returns 0 if no characters ready to read */ -int -mvmeprom_instat() -{ - int ret; - unsigned long msr; - - BUGCTXT(msr); - MVMEPROM_CALL(MVMEPROM_INSTAT); - asm volatile ("mr %0, 3" : "=r" (ret)); - OSCTXT(msr); - return (!(ret & 0x4)); -} - -void -mvmeprom_outln(start, end) - char *start, *end; -{ - unsigned long msr; - - BUGCTXT(msr); - asm volatile ("mr 3, %0": : "r" (start)); - asm volatile ("mr 4, %0": : "r" (end)); - MVMEPROM_CALL(MVMEPROM_OUTLN); - OSCTXT(msr); -} - -void -mvmeprom_outstr(start, end) - char *start, *end; -{ - unsigned long msr; - - BUGCTXT(msr); - asm volatile ("mr 3, %0": : "r" (start)); - asm volatile ("mr 4, %0": : "r" (end)); - MVMEPROM_CALL(MVMEPROM_OUTSTR); - OSCTXT(msr); -} - -void -mvmeprom_outchar(c) - int c; -{ - unsigned long msr; - - BUGCTXT(msr); - asm volatile ("mr 3, %0" :: "r" (c)); - MVMEPROM_CALL(MVMEPROM_OUTCHR); - OSCTXT(msr); -} - -/* BUG - return to bug routine */ -void -mvmeprom_return() -{ - unsigned long msr; - - BUGCTXT(msr); - MVMEPROM_CALL(MVMEPROM_RETURN); - OSCTXT(msr); - /*NOTREACHED*/ -} - - -void -mvmeprom_rtc_rd(ptime) - struct mvmeprom_time *ptime; -{ - unsigned long msr; - - BUGCTXT(msr); - asm volatile ("mr 3, %0": : "r" (ptime)); - MVMEPROM_CALL(MVMEPROM_RTC_RD); - OSCTXT(msr); -} - -int -bugenvsz(void) -{ - register int ret; - char tmp[1]; - void *ptr = tmp; - unsigned long msr; - - BUGCTXT(msr); - asm volatile ("mr 3, %0": : "r" (ptr)); - asm volatile ("li 5, 0x1"); - asm volatile ("li 5, 0x0"); /* get size */ - MVMEPROM_CALL(MVMEPROM_ENVIRON); - asm volatile ("mr %0, 3" : "=r" (ret)); - OSCTXT(msr); - - return(ret); -} - -struct bugenviron bugenviron; -int bugenv_init = 0; -char bugenv_buf[1024]; - -#ifdef BUG_DEBUG -void bug_printenv(void); - -void -bug_printenv(void) -{ - printf("Startup Mode: %c\n", bugenviron.s.s_mode); - printf("Startup Menu: %c\n", bugenviron.s.s_menu); - printf("Remote Start: %c\n", bugenviron.s.s_remotestart); - printf("Probe Devs: %c\n", bugenviron.s.s_probe); - printf("Negate Sysfail: %c\n", bugenviron.s.s_negsysfail); - printf("Reset SCSI Bus: %c\n", bugenviron.s.s_resetscsi); - printf("Ignore CFNA Block: %c\n", bugenviron.s.s_nocfblk); - printf("SCSI sync method: %c\n", bugenviron.s.s_scsisync); - - printf("Auto Boot Enable: %c\n", bugenviron.b.b_enable); - printf("Auto Boot on power-up Only: %c\n", bugenviron.b.b_poweruponly); - printf("Auto Boot CLUN: %02x\n", bugenviron.b.b_clun); - printf("Auto Boot DLUN: %02x\n", bugenviron.b.b_dlun); - printf("Auto Boot Delay: %02x\n", bugenviron.b.b_delay); - printf("Auto Boot String: %s\n", bugenviron.b.b_string); - - printf("ROM Boot Enable: %c\n", bugenviron.r.r_enable); - printf("ROM Boot on power-up Only: %c\n", bugenviron.r.r_poweruponly); - printf("ROM Boot Scan VME bus: %c\n", bugenviron.r.r_bootvme); - printf("ROM Boot Delay: %02x\n", bugenviron.r.r_delay); - printf("ROM Boot Start: %08x\n", bugenviron.r.r_start); - printf("ROM Boot End: %08x\n", bugenviron.r.r_end); - - printf("Net Boot Enable: %c\n", bugenviron.n.n_enable); - printf("Net Boot on power-up Only: %c\n", bugenviron.n.n_poweruponly); - printf("Net Boot CLUN: %02x\n", bugenviron.n.n_clun); - printf("Net Boot DLUN: %02x\n", bugenviron.n.n_dlun); - printf("Net Boot Delay: %02x\n", bugenviron.n.n_delay); - printf("Net Boot CFG param pointer: %08x\n", bugenviron.n.n_param); - - printf("Memory Size Enable: %c\n", bugenviron.m.m_sizeenable); - printf("Memory Start: %08x\n", bugenviron.m.m_start); - printf("Memory End: %08x\n", bugenviron.m.m_end); - - Debugger(); -} -#else -#define bug_printenv() -#endif - -struct bugenviron * -mvmeprom_envrd(void) -{ - register int ret; - char *ptr, *dptr, *ptr_end; - int env_size = 0; - int pkt_typ, pkt_len; - unsigned long msr; - - env_size = bugenvsz(); - bzero(&bugenviron, sizeof(struct bugenviron)); - bzero(&bugenv_buf[0], 1024); - ptr = bugenv_buf; - - if (ptr != NULL) { - - BUGCTXT(msr); - asm volatile ("mr 3, %0": : "r" (ptr)); - asm volatile ("mr 4, %0": : "r" (env_size)); - asm volatile ("li 5, 0x2"); - MVMEPROM_CALL(MVMEPROM_ENVIRON); - asm volatile ("mr %0, 3" : "=r" (ret)); - OSCTXT(msr); - - if (ret) - return NULL; - - ptr_end = ptr + env_size; - while (ptr <= ptr_end) { - pkt_typ = *ptr++; - pkt_len = *ptr++; - dptr = ptr; - switch (pkt_typ) { - case BUG_ENV_END: - bugenv_init = 1; /* we have read the env */ - bug_printenv(); - return(&bugenviron); - break; - case BUG_STARTUP_PARAM: - /* All chars. We can use bcopy. */ - bcopy(dptr, &bugenviron.s.s_mode, pkt_len); - break; - case BUG_AUTOBOOT_INFO: - /* All chars. We can use bcopy. */ - bcopy(dptr, &bugenviron.b.b_enable, pkt_len); - break; - case BUG_ROMBOOT_INFO: - /* This data stream has integer info that - * may not be word aligned. We can't use - * bcopy for the whole struct in this - * instance. */ - bcopy(dptr, &bugenviron.r.r_enable, 4); - dptr+=4; - bcopy(dptr, &bugenviron.r.r_start, 4); - dptr+=4; - bcopy(dptr, &bugenviron.r.r_end, 4); - break; - case BUG_NETBOOT_INFO: - /* This data stream has integer info that - * may not be word aligned. We can't use - * bcopy for the whole struct in this - * instance. */ - bcopy(dptr, &bugenviron.n.n_enable, 5); - dptr+=5; - bcopy(dptr, &bugenviron.n.n_param, 4); - break; - case BUG_MEMORY_INFO: - bugenviron.m.m_sizeenable = *dptr++; - bcopy(dptr, &bugenviron.m.m_start, 4); - dptr+=4; - bcopy(dptr, &bugenviron.m.m_end, 4); - break; - } - ptr += pkt_len; - } - } - return NULL; -} diff --git a/sys/arch/mvmeppc/dev/bugtty.c b/sys/arch/mvmeppc/dev/bugtty.c deleted file mode 100644 index a8d45b16e50..00000000000 --- a/sys/arch/mvmeppc/dev/bugtty.c +++ /dev/null @@ -1,466 +0,0 @@ -/* $OpenBSD: bugtty.c,v 1.14 2010/06/28 14:13:30 deraadt Exp $ */ - -/* Copyright (c) 1998 Steve Murphree, Jr. - * Copyright (c) 1995 Dale Rahn. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/ioctl.h> -#include <sys/device.h> -#include <sys/tty.h> -#include <sys/proc.h> -#include <sys/uio.h> -#include <sys/queue.h> - -#include <machine/autoconf.h> -#include <machine/bugio.h> -#include <machine/conf.h> -#include <machine/cpu.h> - -#include <dev/cons.h> - -#include "bugtty.h" - -int bugttymatch(struct device *parent, void *self, void *aux); -void bugttyattach(struct device *parent, struct device *self, void *aux); - -struct cfattach bugtty_ca = { - sizeof(struct device), bugttymatch, bugttyattach -}; - -struct cfdriver bugtty_cd = { - NULL, "bugtty", DV_TTY -}; - -/* prototypes */ -cons_decl(bugtty); -cdev_decl(bugtty); - -int bugttymctl(dev_t dev, int bits, int how); -int bugttyparam(struct tty *tp, struct termios *tm); -void bugtty_chkinput(void); - -#define DIALOUT(x) ((x) & 0x80) -#define SWFLAGS(dev) (bugttyswflags | (DIALOUT(dev) ? TIOCFLAG_SOFTCAR : 0)) - -#define BUGBUF 80 -char bugtty_ibuffer[BUGBUF+1]; -volatile char *pinchar = bugtty_ibuffer; -char bug_obuffer[BUGBUF+1]; - -#define BUGTTYS 4 -struct tty *bugtty_tty[BUGTTYS]; - -int -bugttymatch(parent, self, aux) - struct device *parent; - void *self; - void *aux; -{ - struct confargs *ca = aux; - - if (strcmp(ca->ca_name, bugtty_cd.cd_name) != 0) - return (0); - - return (1); -} - -void -bugttyattach(parent, self, aux) - struct device *parent; - struct device *self; - void *aux; -{ - printf(": fallback console\n"); -} - -#define BUGTTYUNIT(x) ((x) & (0x7f)) -void bugttyoutput(struct tty *tp); - -int bugttydefaultrate = TTYDEF_SPEED; -int bugttyswflags; - -struct tty * -bugttytty(dev) - dev_t dev; -{ - int unit; - unit = BUGTTYUNIT(dev); - if (unit >= BUGTTYS) { - return (NULL); - } - return bugtty_tty[unit]; -} - -int -bugttymctl(dev, bits, how) - dev_t dev; - int bits, how; -{ - int s; - - /*printf("mctl: dev %x, bits %x, how %x,",dev, bits, how);*/ - - /* settings are currently ignored */ - s = spltty(); - switch (how) { - case DMSET: - break; - case DMBIC: - break; - case DMBIS: - break; - case DMGET: - break; - } - splx(s); - - bits = 0; - /* proper defaults? */ - bits |= TIOCM_DTR; - bits |= TIOCM_RTS; - bits |= TIOCM_CTS; - bits |= TIOCM_CD; - /* bits |= TIOCM_RI; */ - bits |= TIOCM_DSR; - - /* printf("retbits %x\n", bits); */ - return (bits); -} - -int -bugttyopen(dev, flag, mode, p) - dev_t dev; - int flag, mode; - struct proc *p; -{ - int s, unit = BUGTTYUNIT(dev); - struct tty *tp; - - s = spltty(); - if (bugtty_tty[unit]) { - tp = bugtty_tty[unit]; - } else { - tp = bugtty_tty[unit] = ttymalloc(0); - } - tp->t_oproc = bugttyoutput; - tp->t_param = NULL; - tp->t_dev = dev; - - if ((tp->t_state & TS_ISOPEN) == 0) { - tp->t_state |= TS_WOPEN; - ttychars(tp); - if (tp->t_ispeed == 0) { - /* - * only when cleared do we reset to defaults. - */ - tp->t_iflag = TTYDEF_IFLAG; - tp->t_oflag = TTYDEF_OFLAG; - tp->t_cflag = TTYDEF_CFLAG; - tp->t_lflag = TTYDEF_LFLAG; - tp->t_ispeed = tp->t_ospeed = bugttydefaultrate; - } - /* bugtty does not have carrier */ - tp->t_cflag |= CLOCAL; - /* - * do these all the time - */ - if (bugttyswflags & TIOCFLAG_CLOCAL) - tp->t_cflag |= CLOCAL; - if (bugttyswflags & TIOCFLAG_CRTSCTS) - tp->t_cflag |= CRTSCTS; - if (bugttyswflags & TIOCFLAG_MDMBUF) - tp->t_cflag |= MDMBUF; - bugttyparam(tp, &tp->t_termios); - ttsetwater(tp); - - (void)bugttymctl(dev, TIOCM_DTR | TIOCM_RTS, DMSET); - /* - if ((SWFLAGS(dev) & TIOCFLAG_SOFTCAR) || - (bugttymctl(dev, 0, DMGET) & TIOCM_CD)) - tp->t_state |= TS_CARR_ON; - else - tp->t_state &= ~TS_CARR_ON; - */ - tp->t_state |= TS_CARR_ON; - } else if (tp->t_state & TS_XCLUDE && suser(p, 0) != 0) { - splx(s); - return (EBUSY); - } - - /* - * if NONBLOCK requested, ignore carrier - */ -/* - if (flag & O_NONBLOCK) - goto done; -*/ - - splx(s); - /* - * Reset the tty pointer, as there could have been a dialout - * use of the tty with a dialin open waiting. - */ - tp->t_dev = dev; - return ((*linesw[tp->t_line].l_open)(dev, tp, p)); -} - -int -bugttyparam(tp, tm) - struct tty *tp; - struct termios *tm; -{ - return (0); -} - -void -bugttyoutput(tp) - struct tty *tp; -{ - int cc, s, cnt; - - /* only supports one unit */ - - if ((tp->t_state & TS_ISOPEN) == 0) - return; - - s = spltty(); - cc = tp->t_outq.c_cc; - while (cc > 0) { - cnt = min(BUGBUF, cc); - cnt = q_to_b(&tp->t_outq, bug_obuffer, cnt); - mvmeprom_outstr(bug_obuffer, &bug_obuffer[cnt]); - cc -= cnt; - } - splx(s); -} - -int -bugttyclose(dev, flag, mode, p) - dev_t dev; - int flag, mode; - struct proc *p; -{ - int unit = BUGTTYUNIT(dev); - struct tty *tp = bugtty_tty[unit]; - - (*linesw[tp->t_line].l_close)(tp, flag, p); - - ttyclose(tp); -#if 0 - bugtty_tty[unit] = NULL; -#endif - return (0); -} - -int -bugttyread(dev, uio, flag) - dev_t dev; - struct uio *uio; - int flag; -{ - struct tty *tp; - - if ((tp = bugtty_tty[BUGTTYUNIT(dev)]) == NULL) - return (ENXIO); - return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); -} - -/* only to be called at splclk() */ -void -bugtty_chkinput() -{ - struct tty *tp; - - tp = bugtty_tty[0]; /* assumes console on the first port... */ - if (tp == NULL) - return; - - while (mvmeprom_instat() != 0) { - u_char c = mvmeprom_getchar() & 0xff; - (*linesw[tp->t_line].l_rint)(c, tp); - } -} - -int -bugttywrite(dev, uio, flag) - dev_t dev; - struct uio *uio; - int flag; -{ -#if 0 - /* bypass tty output routines. */ - int i, cnt, s; - int oldoff; - - s = spltty(); - oldoff = uio->uio_offset; - do { - uiomove(bug_obuffer, BUGBUF, uio); - bugoutstr(bug_obuffer, &bug_obuffer[uio->uio_offset - oldoff]); - oldoff = uio->uio_offset; - } while (uio->uio_resid != 0); - splx(s); - - return (0); -#else - struct tty *tp; - if((tp = bugtty_tty[BUGTTYUNIT(dev)]) == NULL) - return (ENXIO); - return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); -#endif -} - -int -bugttyioctl(dev, cmd, data, flag, p) - dev_t dev; - u_long cmd; - caddr_t data; - int flag; - struct proc *p; -{ - int unit = BUGTTYUNIT(dev); - struct tty *tp = bugtty_tty[unit]; - int error; - - if (!tp) - return (ENXIO); - - error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p); - if (error >= 0) - return (error); - - error = ttioctl(tp, cmd, data, flag, p); - if (error >= 0) - return (error); - - switch (cmd) { - case TIOCSBRK: - /* */ - break; - - case TIOCCBRK: - /* */ - break; - - case TIOCSDTR: - (void) bugttymctl(dev, TIOCM_DTR | TIOCM_RTS, DMBIS); - break; - - case TIOCCDTR: - (void) bugttymctl(dev, TIOCM_DTR | TIOCM_RTS, DMBIC); - break; - - case TIOCMSET: - (void) bugttymctl(dev, *(int *) data, DMSET); - break; - - case TIOCMBIS: - (void) bugttymctl(dev, *(int *) data, DMBIS); - break; - - case TIOCMBIC: - (void) bugttymctl(dev, *(int *) data, DMBIC); - break; - - case TIOCMGET: - *(int *)data = bugttymctl(dev, 0, DMGET); - break; - case TIOCGFLAGS: - *(int *)data = SWFLAGS(dev); - break; - case TIOCSFLAGS: - error = suser(p, 0); - if (error != 0) - return (EPERM); - - bugttyswflags = *(int *)data; - bugttyswflags &= /* only allow valid flags */ - (TIOCFLAG_SOFTCAR | TIOCFLAG_CLOCAL | TIOCFLAG_CRTSCTS); - break; - default: - return (ENOTTY); - } - - return (0); -} - -int -bugttystop(tp, flag) - struct tty *tp; - int flag; -{ - int s; - - s = spltty(); - if (tp->t_state & TS_BUSY) { - if ((tp->t_state & TS_TTSTOP) == 0) - tp->t_state |= TS_FLUSH; - } - splx(s); - return (0); -} - -/* - * bugtty is the last possible choice for a console device. - */ -void -bugttycnprobe(cp) - struct consdev *cp; -{ - int maj; - - /* locate the major number */ - for (maj = 0; maj < nchrdev; maj++) - if (cdevsw[maj].d_open == bugttyopen) - break; - - cp->cn_dev = makedev(maj, 0); - cp->cn_pri = CN_LOWPRI; -} - -void -bugttycninit(cp) - struct consdev *cp; -{ - /* Nothing to do */ -} - -int -bugttycngetc(dev) - dev_t dev; -{ - return (mvmeprom_getchar()); -} - -void -bugttycnputc(dev, c) - dev_t dev; - char c; -{ - mvmeprom_outchar(c); -} diff --git a/sys/arch/mvmeppc/dev/clock.c b/sys/arch/mvmeppc/dev/clock.c deleted file mode 100644 index b2b90412c4b..00000000000 --- a/sys/arch/mvmeppc/dev/clock.c +++ /dev/null @@ -1,479 +0,0 @@ -/* $OpenBSD: clock.c,v 1.10 2004/12/24 22:50:30 miod Exp $ */ -/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */ - -/* - * Copyright (C) 1995, 1996 Wolfgang Solfrank. - * Copyright (C) 1995, 1996 TooLs GmbH. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/param.h> -#include <sys/kernel.h> -#include <sys/systm.h> - -#include <machine/pio.h> -#include <machine/intr.h> -#include <machine/powerpc.h> - -#include "bugtty.h" - -void resettodr(void); -void decr_intr(struct clockframe *); -void calc_delayconst(void); - -/* - * Initially we assume a processor with a bus frequency of 12.5 MHz. - */ -static u_long ticks_per_sec = 3125000; -static u_long ns_per_tick = 320; -static long ticks_per_intr; -static volatile u_long lasttb; - -/* - * BCD to decimal and decimal to BCD. - */ -#define FROMBCD(x) (((x) >> 4) * 10 + ((x) & 0xf)) -#define TOBCD(x) (((x) / 10 * 16) + ((x) % 10)) - -#define SECDAY (24 * 60 * 60) -#define SECYR (SECDAY * 365) -#define LEAPYEAR(y) (((y) & 3) == 0) -#define YEAR0 1900 - -tps_t *tps; -clock_read_t *clock_read; -clock_write_t *clock_write; -time_read_t *time_read; -time_write_t *time_write; - -static u_int32_t chiptotime(int, int, int, int, int, int); - -/* event tracking variables, when the next event of each time should occur */ -u_int64_t nexttimerevent, prevtb, nextstatevent; - -/* vars for stats */ -int statint; -u_int32_t statvar; -u_int32_t statmin; - -struct chiptime { - int sec; - int min; - int hour; - int wday; - int day; - int mon; - int year; -}; - -static void timetochip(struct chiptime *c); - -/* - * For now we let the machine run with boot time, not changing the clock - * at inittodr at all. - * - * We might continue to do this due to setting up the real wall clock with - * a user level utility in the future. - */ - -/* ARGSUSED */ -void -inittodr(time_t base) -{ - int sec, min, hour, day, mon, year; - - int badbase = 0, waszero = base == 0; - - if (base < 5 * SECYR) { - /* - * If base is 0, assume filesystem time is just unknown - * instead of preposterous. Don't bark. - */ - if (base != 0) - printf("WARNING: preposterous time in file system\n"); - /* not going to use it anyway, if the chip is readable */ - base = 21*SECYR + 186*SECDAY + SECDAY/2; - badbase = 1; - } - - if (clock_read != NULL ) { - (*clock_read)( &sec, &min, &hour, &day, &mon, &year); - time.tv_sec = chiptotime(sec, min, hour, day, mon, year); - } else if (time_read != NULL) { - u_int32_t cursec; - (*time_read)(&cursec); - time.tv_sec = cursec; - } else { - /* force failure */ - time.tv_sec = 0; - } - - if (time.tv_sec == 0) { - printf("WARNING: unable to get date/time"); - /* - * Believe the time in the file system for lack of - * anything better, resetting the clock. - */ - time.tv_sec = base; - if (!badbase) - resettodr(); - } else { - int deltat; - - time.tv_sec += tz.tz_minuteswest * 60; - if (tz.tz_dsttime) - time.tv_sec -= 3600; - - deltat = time.tv_sec - base; - - if (deltat < 0) - deltat = -deltat; - if (waszero || deltat < 2 * SECDAY) - return; - printf("WARNING: clock %s %d days", - time.tv_sec < base ? "lost" : "gained", deltat / SECDAY); - - if (time.tv_sec < base && deltat > 1000 * SECDAY) { - printf(", using FS time"); - time.tv_sec = base; - } - } - printf(" -- CHECK AND RESET THE DATE!\n"); -} - -/* - * This code is defunct after 2068. - * Will Unix still be here then?? - */ -const short dayyr[12] = - { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}; - -static u_int32_t -chiptotime(int sec, int min, int hour, int day, int mon, int year) -{ - int days, yr; - - sec = FROMBCD(sec); - min = FROMBCD(min); - hour = FROMBCD(hour); - day = FROMBCD(day); - mon = FROMBCD(mon); - year = FROMBCD(year) + YEAR0; - - /* simple sanity checks */ - if (year < 1970 || mon < 1 || mon > 12 || day < 1 || day > 31) - return (0); - days = 0; - for (yr = 1970; yr < year; yr++) - days += LEAPYEAR(yr) ? 366 : 365; - days += dayyr[mon - 1] + day - 1; - if (LEAPYEAR(yr) && mon > 2) - days++; - /* now have days since Jan 1, 1970; the rest is easy... */ - return (days * SECDAY + hour * 3600 + min * 60 + sec); -} - -void -timetochip(struct chiptime *c) -{ - int t, t2, t3, now = time.tv_sec; - - /* January 1 1970 was a Thursday (4 in unix wdays) */ - /* compute the days since the epoch */ - t2 = now / SECDAY; - - t3 = (t2 + 4) % 7; /* day of week */ - c->wday = TOBCD(t3 + 1); - - /* compute the year */ - t = 69; - while (t2 >= 0) { /* whittle off years */ - t3 = t2; - t++; - t2 -= LEAPYEAR(t) ? 366 : 365; - } - c->year = t; - - /* t3 = month + day; separate */ - t = LEAPYEAR(t); - for (t2 = 1; t2 < 12; t2++) - if (t3 < (dayyr[t2] + ((t && (t2 > 1)) ? 1:0))) - break; - - /* t2 is month */ - c->mon = t2; - c->day = t3 - dayyr[t2 - 1] + 1; - if (t && t2 > 2) - c->day--; - - /* the rest is easy */ - t = now % SECDAY; - c->hour = t / 3600; - t %= 3600; - c->min = t / 60; - c->sec = t % 60; - - c->sec = TOBCD(c->sec); - c->min = TOBCD(c->min); - c->hour = TOBCD(c->hour); - c->day = TOBCD(c->day); - c->mon = TOBCD(c->mon); - c->year = TOBCD((c->year - YEAR0) % 100); -} - - -/* - * Similar to the above - */ -void -resettodr() -{ - struct timeval curtime = time; - if (clock_write != NULL) { - struct chiptime c; - timetochip(&c); - (*clock_write)(c.sec, c.min, c.hour, c.day, c.mon, c.year); - } else if (time_write != NULL) { - curtime.tv_sec -= tz.tz_minuteswest * 60; - if (tz.tz_dsttime) { - curtime.tv_sec += 3600; - } - (*time_write)(curtime.tv_sec); - } -} - -volatile int statspending; - -void -decr_intr(struct clockframe *frame) -{ - u_int64_t tb; - u_int64_t nextevent; - int nstats; - int s; - - /* - * Check whether we are initialized. - */ - if (!ticks_per_intr) - return; - - /* - * Based on the actual time delay since the last decrementer reload, - * we arrange for earlier interrupt next time. - */ - - tb = ppc_mftb(); - while (nexttimerevent <= tb) - nexttimerevent += ticks_per_intr; - - prevtb = nexttimerevent - ticks_per_intr; - - for (nstats = 0; nextstatevent <= tb; nstats++) { - int r; - do { - r = random() & (statvar - 1); - } while (r == 0); /* random == 0 not allowed */ - nextstatevent += statmin + r; - } - - if (nexttimerevent < nextstatevent) - nextevent = nexttimerevent; - else - nextevent = nextstatevent; - - /* - * Need to work about the near constant skew this introduces??? - * reloading tb here could cause a missed tick. - */ - ppc_mtdec(nextevent - tb); - - if (cpl & SPL_CLOCK) { - statspending += nstats; - } else { - nstats += statspending; - statspending = 0; - - s = splclock(); - - /* - * Reenable interrupts - */ - ppc_intr_enable(1); - - /* - * Do standard timer interrupt stuff. - * Do softclock stuff only on the last iteration. - */ - frame->pri = s | SINT_CLOCK; - while (lasttb < prevtb - ticks_per_intr) { - /* sync lasttb with hardclock */ - lasttb += ticks_per_intr; - hardclock(frame); - } - - frame->pri = s; - while (lasttb < prevtb) { - /* sync lasttb with hardclock */ - lasttb += ticks_per_intr; - hardclock(frame); -#if NBUGTTY > 0 - { - extern void bugtty_chkinput(void); - bugtty_chkinput(); - } -#endif - } - - while (nstats-- > 0) - statclock(frame); - - splx(s); - ppc_intr_disable(); - - /* - * If a tick has occurred while dealing with these, - * don't service it now, delay until the next tick. - */ - } -} - -void -cpu_initclocks() -{ - int intrstate; - int r; - int minint; - u_int64_t nextevent; - - intrstate = ppc_intr_disable(); - - stathz = 100; - profhz = 1000; /* must be a multiple of stathz */ - - /* init secondary clock to stathz */ - statint = ticks_per_sec / stathz; - statvar = 0x40000000; /* really big power of two */ - /* find largest 2^n which is nearly smaller than statint/2 */ - minint = statint / 2 + 100; - while (statvar > minint) - statvar >>= 1; - - statmin = statint - (statvar >> 1); - - lasttb = ppc_mftb(); - nexttimerevent = lasttb + ticks_per_intr; - do { - r = random() & (statvar - 1); - } while (r == 0); /* random == 0 not allowed */ - nextstatevent = lasttb + statmin + r; - - if (nexttimerevent < nextstatevent) - nextevent = nexttimerevent; - else - nextevent = nextstatevent; - - ppc_mtdec(nextevent - lasttb); - ppc_intr_enable(intrstate); -} - -void -calc_delayconst(void) -{ - int s; - - ticks_per_sec = (*tps)(); - s = ppc_intr_disable(); - ns_per_tick = 1000000000 / ticks_per_sec; - ticks_per_intr = ticks_per_sec / hz; - ppc_intr_enable(s); -} - -/* - * Fill in *tvp with current time with microsecond resolution. - */ -void -microtime(struct timeval *tvp) -{ - u_int64_t tb; - u_int32_t ticks; - int s; - - s = ppc_intr_disable(); - tb = ppc_mftb(); - ticks = ((tb - lasttb) * ns_per_tick) / 1000; - *tvp = time; - ppc_intr_enable(s); - tvp->tv_usec += ticks; - while (tvp->tv_usec >= 1000000) { - tvp->tv_usec -= 1000000; - tvp->tv_sec++; - } -} - -/* - * Wait for about n microseconds (us) (at least!). - */ -void -delay(unsigned n) -{ - u_int64_t tb; - u_int32_t tbh, tbl, scratch; - - tb = ppc_mftb(); - tb += (n * 1000 + ns_per_tick - 1) / ns_per_tick; - tbh = tb >> 32; - tbl = (u_int32_t)tb; - asm ("1: mftbu %0; cmplw %0,%1; blt 1b; bgt 2f;" - " mftb %0; cmplw %0,%2; blt 1b; 2:" - :: "r"(scratch), "r"(tbh), "r"(tbl)); -} - -void -setstatclockrate(int newhz) -{ - int minint; - int intrstate; - - intrstate = ppc_intr_disable(); - - statint = ticks_per_sec / newhz; - statvar = 0x40000000; /* really big power of two */ - /* find largest 2^n which is nearly smaller than statint/2 */ - minint = statint / 2 + 100; - while (statvar > minint) - statvar >>= 1; - - statmin = statint - (statvar >> 1); - ppc_intr_enable(intrstate); - - /* - * XXX this allows the next stat timer to occur then it switches - * to the new frequency. Rather than switching instantly. - */ -} diff --git a/sys/arch/mvmeppc/dev/cpu.c b/sys/arch/mvmeppc/dev/cpu.c deleted file mode 100644 index 17368b1ce80..00000000000 --- a/sys/arch/mvmeppc/dev/cpu.c +++ /dev/null @@ -1,301 +0,0 @@ -/* $OpenBSD: cpu.c,v 1.9 2010/06/26 23:24:44 guenther Exp $ */ - -/* - * Copyright (c) 1997 Per Fogelstrom - * Copyright (c) 1997 RTMX Inc - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed under OpenBSD for RTMX Inc - * North Carolina, USA, by Per Fogelstrom, Opsycon AB, Sweden. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/proc.h> -#include <sys/device.h> - -#include <machine/autoconf.h> - -/* only valid on 603(e,ev) and G3, G4 */ -#define HID0_DOZE (1 << (31-8)) -#define HID0_NAP (1 << (31-9)) -#define HID0_SLEEP (1 << (31-10)) -#define HID0_DPM (1 << (31-11)) -#define HID0_SGE (1 << (31-24)) -#define HID0_BTIC (1 << (31-26)) -#define HID0_LRSTK (1 << (31-27)) -#define HID0_FOLD (1 << (31-28)) -#define HID0_BHT (1 << (31-29)) - -char cpu_model[80]; -char machine[] = MACHINE; /* cpu architecture */ - -/* Definition of the driver for autoconfig. */ -int cpumatch(struct device *, void *, void *); -void cpuattach(struct device *, struct device *, void *); - -struct cfattach cpu_ca = { - sizeof(struct device), cpumatch, cpuattach -}; - -struct cfdriver cpu_cd = { - NULL, "cpu", DV_DULL -}; - -void config_l2cr(int cpu); - -int -cpumatch(parent, cfdata, aux) - struct device *parent; - void *cfdata; - void *aux; -{ - struct confargs *ca = aux; - - /* make sure that we're looking for a CPU. */ - if (strcmp(ca->ca_name, cpu_cd.cd_name) != 0) - return (0); - - return (1); -} - -void -cpuattach(struct device *parent, struct device *dev, void *aux) -{ - unsigned int cpu, pvr, hid0; - - pvr = ppc_mfpvr(); - cpu = pvr >> 16; - switch (cpu) { - case PPC_CPU_MPC601: - snprintf(cpu_model, sizeof(cpu_model), "601"); - break; - case PPC_CPU_MPC603: - snprintf(cpu_model, sizeof(cpu_model), "603"); - break; - case PPC_CPU_MPC604: - snprintf(cpu_model, sizeof(cpu_model), "604"); - break; - case PPC_CPU_MPC603e: - snprintf(cpu_model, sizeof(cpu_model), "603e"); - break; - case PPC_CPU_MPC603ev: - snprintf(cpu_model, sizeof(cpu_model), "603ev"); - break; - case PPC_CPU_MPC750: - snprintf(cpu_model, sizeof(cpu_model), "750"); - break; - case PPC_CPU_MPC604ev: - snprintf(cpu_model, sizeof(cpu_model), "604ev"); - break; - case PPC_CPU_MPC7400: - snprintf(cpu_model, sizeof(cpu_model), "7400"); - break; - case PPC_CPU_IBM750FX: - snprintf(cpu_model, sizeof(cpu_model), "750FX"); - break; - case PPC_CPU_MPC7410: - snprintf(cpu_model, sizeof(cpu_model), "7410"); - break; - case PPC_CPU_MPC7450: - if ((pvr & 0xf) < 3) - snprintf(cpu_model, sizeof(cpu_model), "7450"); - else - snprintf(cpu_model, sizeof(cpu_model), "7451"); - break; - case PPC_CPU_MPC7455: - snprintf(cpu_model, sizeof(cpu_model), "7455"); - break; - default: - snprintf(cpu_model, sizeof(cpu_model), "Version %x", cpu); - break; - } - snprintf(cpu_model + strlen(cpu_model), - sizeof(cpu_model) - strlen(cpu_model), - " (Revision %x)", pvr & 0xffff); - printf(": %s", cpu_model); - - /* power savings mode */ - hid0 = ppc_mfhid0(); - switch (cpu) { - case PPC_CPU_MPC603: - case PPC_CPU_MPC603e: - case PPC_CPU_MPC750: - case PPC_CPU_MPC7400: - case PPC_CPU_IBM750FX: - case PPC_CPU_MPC7410: - /* select DOZE mode */ - hid0 &= ~(HID0_NAP | HID0_SLEEP); - hid0 |= HID0_DOZE | HID0_DPM; - break; - case PPC_CPU_MPC7450: - case PPC_CPU_MPC7455: - /* select NAP mode */ - hid0 &= ~(HID0_DOZE | HID0_SLEEP); - hid0 |= HID0_NAP | HID0_DPM; - /* try some other flags */ - hid0 |= HID0_SGE | HID0_BTIC; - hid0 |= HID0_LRSTK | HID0_FOLD | HID0_BHT; - /* Disable BTIC on 7450 Rev 2.0 or earlier */ - if (cpu == PPC_CPU_MPC7450 && (pvr & 0xffff) < 0x0200) - hid0 &= ~HID0_BTIC; - break; - } - ppc_mthid0(hid0); - - /* if processor is G3 or G4, configure l2 cache */ - if (cpu == PPC_CPU_MPC750 || cpu == PPC_CPU_MPC7400 || - cpu == PPC_CPU_IBM750FX || cpu == PPC_CPU_MPC7410 || - cpu == PPC_CPU_MPC7450 || cpu == PPC_CPU_MPC7455) { - config_l2cr(cpu); - } - printf("\n"); -} - -/* L2CR bit definitions */ -#define L2CR_L2E 0x80000000 /* 0: L2 enable */ -#define L2CR_L2PE 0x40000000 /* 1: L2 data parity enable */ -#define L2CR_L2SIZ 0x30000000 /* 2-3: L2 size */ -#define L2SIZ_RESERVED 0x00000000 -#define L2SIZ_256K 0x10000000 -#define L2SIZ_512K 0x20000000 -#define L2SIZ_1M 0x30000000 -#define L2CR_L2CLK 0x0e000000 /* 4-6: L2 clock ratio */ -#define L2CLK_DIS 0x00000000 /* disable L2 clock */ -#define L2CLK_10 0x02000000 /* core clock / 1 */ -#define L2CLK_15 0x04000000 /* / 1.5 */ -#define L2CLK_20 0x08000000 /* / 2 */ -#define L2CLK_25 0x0a000000 /* / 2.5 */ -#define L2CLK_30 0x0c000000 /* / 3 */ -#define L2CR_L2RAM 0x01800000 /* 7-8: L2 RAM type */ -#define L2RAM_FLOWTHRU_BURST 0x00000000 -#define L2RAM_PIPELINE_BURST 0x01000000 -#define L2RAM_PIPELINE_LATE 0x01800000 -#define L2CR_L2DO 0x00400000 /* 9: L2 data-only. - Setting this bit disables instruction - caching. */ -#define L2CR_L2I 0x00200000 /* 10: L2 global invalidate. */ -#define L2CR_L2CTL 0x00100000 /* 11: L2 RAM control (ZZ enable). - Enables automatic operation of the - L2ZZ (low-power mode) signal. */ -#define L2CR_L2WT 0x00080000 /* 12: L2 write-through. */ -#define L2CR_L2TS 0x00040000 /* 13: L2 test support. */ -#define L2CR_L2OH 0x00030000 /* 14-15: L2 output hold. */ -#define L2CR_L2SL 0x00008000 /* 16: L2 DLL slow. */ -#define L2CR_L2DF 0x00004000 /* 17: L2 differential clock. */ -#define L2CR_L2BYP 0x00002000 /* 18: L2 DLL bypass. */ -#define L2CR_L2IP 0x00000001 /* 31: L2 global invalidate in progress - (read only). */ -#ifdef L2CR_CONFIG -u_int l2cr_config = L2CR_CONFIG; -#else -u_int l2cr_config = 0; -#endif - -/* L3CR bit definitions */ -#define L3CR_L3E 0x80000000 /* 0: L3 enable */ -#define L3CR_L3SIZ 0x10000000 /* 3: L3 size (0=1MB, 1=2MB) */ - -void -config_l2cr(int cpu) -{ - u_int l2cr, x; - - l2cr = ppc_mfl2cr(); - - /* - * Configure L2 cache if not enabled. - */ - if ((l2cr & L2CR_L2E) == 0 && l2cr_config != 0) { - l2cr = l2cr_config; - ppc_mtl2cr(l2cr); - - /* Wait for L2 clock to be stable (640 L2 clocks). */ - delay(100); - - /* Invalidate all L2 contents. */ - l2cr |= L2CR_L2I; - ppc_mtl2cr(l2cr); - do { - x = ppc_mfl2cr(); - } while (x & L2CR_L2IP); - - /* Enable L2 cache. */ - l2cr &= ~L2CR_L2I; - l2cr |= L2CR_L2E; - ppc_mtl2cr(l2cr); - } - - if (l2cr & L2CR_L2E) { - if (cpu == PPC_CPU_MPC7450 || cpu == PPC_CPU_MPC7455) { - u_int l3cr; - - printf(": 256KB L2 cache"); - - l3cr = ppc_mfl3cr(); - if (l3cr & L3CR_L3E) - printf(", %cMB L3 cache", - l3cr & L3CR_L3SIZ ? '2' : '1'); - } else if (cpu == PPC_CPU_IBM750FX) - printf(": 512KB L2 cache"); - else { - switch (l2cr & L2CR_L2SIZ) { - case L2SIZ_256K: - printf(": 256KB"); - break; - case L2SIZ_512K: - printf(": 512KB"); - break; - case L2SIZ_1M: - printf(": 1MB"); - break; - default: - printf(": unknown size"); - } - printf(" backside cache"); - } -#if 0 - switch (l2cr & L2CR_L2RAM) { - case L2RAM_FLOWTHRU_BURST: - printf(" Flow-through synchronous burst SRAM"); - break; - case L2RAM_PIPELINE_BURST: - printf(" Pipelined synchronous burst SRAM"); - break; - case L2RAM_PIPELINE_LATE: - printf(" Pipelined synchronous late-write SRAM"); - break; - default: - printf(" unknown type"); - } - - if (l2cr & L2CR_L2PE) - printf(" with parity"); -#endif - } else - printf(": L2 cache not enabled"); -} diff --git a/sys/arch/mvmeppc/dev/mainbus.c b/sys/arch/mvmeppc/dev/mainbus.c deleted file mode 100644 index f42047c5b23..00000000000 --- a/sys/arch/mvmeppc/dev/mainbus.c +++ /dev/null @@ -1,142 +0,0 @@ -/* $OpenBSD: mainbus.c,v 1.10 2004/11/18 16:10:43 miod Exp $ */ - -/* - * Copyright (c) 1994, 1995 Carnegie-Mellon University. - * All rights reserved. - * - * Author: Chris G. Demetriou - * - * Permission to use, copy, modify and distribute this software and - * its documentation is hereby granted, provided that both the copyright - * notice and this permission notice appear in all copies of the - * software, derivative works or modified versions, and any portions - * thereof, and that both notices appear in supporting documentation. - * - * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" - * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND - * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * - * Carnegie Mellon requests users of this software to return to - * - * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU - * School of Computer Science - * Carnegie Mellon University - * Pittsburgh PA 15213-3890 - * - * any improvements or extensions that they make and grant Carnegie the - * rights to redistribute these changes. - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/device.h> -#include <sys/reboot.h> - -#include <machine/autoconf.h> - -struct mainbus_softc { - struct device sc_dv; - struct bushook sc_bus; -}; - -void mbattach(struct device *, struct device *, void *); -int mbmatch(struct device *, void *, void *); -int mbprint(void *, const char *); - -struct cfattach mainbus_ca = { - sizeof(struct mainbus_softc), mbmatch, mbattach -}; -struct cfdriver mainbus_cd = { - NULL, "mainbus", DV_DULL -}; - -int -mbmatch(struct device *parent, void *cfdata, void *aux) -{ - return (1); -} - -void -mbattach(struct device *parent, struct device *self, void *aux) -{ - struct mainbus_softc *sc = (struct mainbus_softc *)self; - struct confargs nca; - u_int8_t systype; - int cpu; - extern vaddr_t isaspace_va; - - /* Pretty print the system type */ - printf(": "); - switch ((systype = *(u_int8_t *)(isaspace_va + MVME_STATUS_REG))) { - default: - printf("unknown system type %x", systype); - break; - case MVMETYPE_RESERVED: - /* if you ever have this one, please contact me -- miod */ - printf("Dahu MVME"); - break; - case MVMETYPE_2600_712: - cpu = ppc_mfpvr() >> 16; - if (cpu == PPC_CPU_MPC750) - printf("MVME2700 (712-compatible)"); - else - printf("MVME2600 (712-compatible)"); - break; - case MVMETYPE_2600_761: - cpu = ppc_mfpvr() >> 16; - if (cpu == PPC_CPU_MPC750) - printf("MVME2700 (761-compatible)"); - else - printf("MVME2600 (761-compatible)"); - break; - case MVMETYPE_3600_712: - printf("MVME3600 or MVME4600 (712-compatible)"); - break; - case MVMETYPE_3600_761: - printf("MVME3600 or MVME4600 (761-compatible)"); - break; - case MVMETYPE_1600: - printf("MVME1600"); - break; - } - printf("\n"); - - sc->sc_bus.bh_dv = (struct device *)sc; - sc->sc_bus.bh_type = BUS_MAIN; - sc->sc_bus.bh_intr_establish = NULL; - sc->sc_bus.bh_intr_disestablish = NULL; - sc->sc_bus.bh_matchname = NULL; - - /* - * Try to find and attach all of the CPUs in the machine. - * Right now only one CPU is supported, so this is simple. - * Need to change for real MVME4600 support. - */ - - nca.ca_name = "cpu"; - nca.ca_bus = &sc->sc_bus; - config_found(self, &nca, mbprint); - - /* - * Attach the BUG terminal services if necessary. - */ - nca.ca_name = "bugtty"; - nca.ca_bus = &sc->sc_bus; - config_found(self, &nca, mbprint); - - /* - * Find and attach the PCI Northbridge. It will find and attach - * everything. - */ - nca.ca_name = "raven"; - nca.ca_bus = &sc->sc_bus; - config_found(self, &nca, mbprint); -} - -int -mbprint(void *aux, const char *pnp) -{ - if (pnp) - return (QUIET); - return (UNCONF); -} diff --git a/sys/arch/mvmeppc/dev/mem.c b/sys/arch/mvmeppc/dev/mem.c deleted file mode 100644 index 52630da8254..00000000000 --- a/sys/arch/mvmeppc/dev/mem.c +++ /dev/null @@ -1,175 +0,0 @@ -/* $OpenBSD: mem.c,v 1.9 2007/09/22 16:21:32 krw Exp $ */ -/* $NetBSD: mem.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */ - -/* - * Copyright (c) 1988 University of Utah. - * Copyright (c) 1982, 1986, 1990, 1993 - * The Regents of the University of California. All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * the Systems Programming Group of the University of Utah Computer - * Science Department. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)mem.c 8.3 (Berkeley) 1/12/94 - */ - -/* - * Memory special file - */ - -#include <sys/param.h> -#include <sys/buf.h> -#include <sys/systm.h> -#include <sys/uio.h> -#include <sys/malloc.h> - -#include <machine/conf.h> - -#include <uvm/uvm_extern.h> - -/*ARGSUSED*/ -int -mmopen(dev, flag, mode, p) - dev_t dev; - int flag, mode; - struct proc *p; -{ - - switch (minor(dev)) { - case 0: - case 1: - case 2: - case 12: - return (0); - default: - return (ENXIO); - } -} - -/*ARGSUSED*/ -int -mmclose(dev, flag, mode, p) - dev_t dev; - int flag, mode; - struct proc *p; -{ - - return 0; -} - -/*ARGSUSED*/ -int -mmrw(dev, uio, flags) - dev_t dev; - struct uio *uio; - int flags; -{ - vaddr_t v; - u_int c; - struct iovec *iov; - int error = 0; - static caddr_t zeropage; - - while (uio->uio_resid > 0 && error == 0) { - iov = uio->uio_iov; - if (iov->iov_len == 0) { - uio->uio_iov++; - uio->uio_iovcnt--; - if (uio->uio_iovcnt < 0) - panic("mmrw"); - continue; - } - switch (minor(dev)) { - -/* minor device 0 is physical memory */ - case 0: - v = uio->uio_offset; - c = uio->uio_resid; - /* This doesn't allow device mapping! XXX */ - pmap_real_memory(&v, (vsize_t *)&c); - error = uiomove((caddr_t)v, c, uio); - continue; - -/* minor device 1 is kernel memory */ - case 1: - v = uio->uio_offset; - c = min(iov->iov_len, MAXPHYS); - error = uiomove((caddr_t)v, c, uio); - continue; - -/* minor device 2 is EOF/RATHOLE */ - case 2: - if (uio->uio_rw == UIO_WRITE) - uio->uio_resid = 0; - return 0; - -/* minor device 12 (/dev/zero) is source of nulls on read, rathole on write */ - case 12: - if (uio->uio_rw == UIO_WRITE) { - c = iov->iov_len; - break; - } - if (zeropage == NULL) - zeropage = malloc(PAGE_SIZE, M_TEMP, - M_WAITOK | M_ZERO); - c = min(iov->iov_len, PAGE_SIZE); - error = uiomove(zeropage, c, uio); - continue; - - default: - return ENXIO; - } - if (error) - break; - iov->iov_base += c; - iov->iov_len -= c; - uio->uio_offset += c; - uio->uio_resid -= c; - } - return error; -} - -paddr_t -mmmmap(dev, off, prot) - dev_t dev; - off_t off; - int prot; -{ - return (-1); -} - -/*ARGSUSED*/ -int -mmioctl(dev, cmd, data, flags, p) - dev_t dev; - u_long cmd; - caddr_t data; - int flags; - struct proc *p; -{ - return (EOPNOTSUPP); -} diff --git a/sys/arch/mvmeppc/dev/nvramreg.h b/sys/arch/mvmeppc/dev/nvramreg.h deleted file mode 100644 index 59e8fb9e5d6..00000000000 --- a/sys/arch/mvmeppc/dev/nvramreg.h +++ /dev/null @@ -1,85 +0,0 @@ -/* $OpenBSD: nvramreg.h,v 1.5 2007/04/10 17:47:54 miod Exp $ */ - -/* - * Copyright (c) 1992, 1993 - * The Regents of the University of California. All rights reserved. - * - * This software was developed by the Computer Systems Engineering group - * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and - * contributed to Berkeley. - * - * All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Lawrence Berkeley Laboratory. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)clockreg.h 8.1 (Berkeley) 6/11/93 - */ - -/* - * mvme2x00 Mostek TOD clock/NVRAM - */ - -/* - * Mostek MK48T59 clock. - * - * This chip is 8k in size. - * The first TOD clock starts at offset 0x1FF8. The following structure - * describes last 2K of its 8K address space. The first 6K of the NVRAM - * space is used for various things as follows: - * 0000-0fff User Area - * 1000-10ff Networking Area - * 1100-16f7 Operating System Area - * 16f8-1ef7 ROM Debugger Area - * 1ef8-1ff7 Configuration Area (Ethernet address etc) - * 1ff8-1fff TOD clock - */ - -#define NVRAM_BASE 0x80000000 /* access thrugh ISA space! */ -#define NVRAM_S0 0x00000074 -#define NVRAM_S1 0x00000075 -#define NVRAM_DATA 0x00000077 - -#define NVRAM_SIZE 0x2000 - -#define RTC_SECONDS 0x1FF9 -#define RTC_MINUTES 0x1FFA -#define RTC_HOURS 0x1FFB -#define RTC_DAY_OF_WEEK 0x1FFC -#define RTC_DAY_OF_MONTH 0x1FFD -#define RTC_MONTH 0x1FFE -#define RTC_YEAR 0x1FFF - -#define RTC_CONTROLA 0x1FF8 -#define RTC_CA_WRITE 0x80 -#define RTC_CA_READ 0x40 -#define RTC_CA_CALIB_SIGN 0x20 -#define RTC_CA_CALIB_MASK 0x1f - -#define RTC_CONTROLB 0x1FF9 -#define RTC_CB_STOP 0x80 - diff --git a/sys/arch/mvmeppc/dev/openpic.c b/sys/arch/mvmeppc/dev/openpic.c deleted file mode 100644 index 9fb92603221..00000000000 --- a/sys/arch/mvmeppc/dev/openpic.c +++ /dev/null @@ -1,1096 +0,0 @@ -/* $OpenBSD: openpic.c,v 1.24 2011/04/15 20:40:06 deraadt Exp $ */ - -/*- - * Copyright (c) 1995 Per Fogelstrom - * Copyright (c) 1993, 1994 Charles M. Hannum. - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz and Don Ahn. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)isa.c 7.2 (Berkeley) 5/12/91 - */ - -#include <sys/param.h> -#include <sys/device.h> -#include <sys/ioctl.h> -#include <sys/mbuf.h> -#include <sys/socket.h> -#include <sys/systm.h> - -#include <uvm/uvm_extern.h> - -#include <ddb/db_var.h> - -#include <machine/atomic.h> -#include <machine/autoconf.h> -#include <machine/intr.h> -#include <machine/psl.h> -#include <machine/pio.h> - -#include <mvmeppc/dev/openpicreg.h> -#include <mvmeppc/dev/ravenvar.h> -#include <mvmeppc/dev/ravenreg.h> - -#define ICU_LEN 32 -#define LEGAL_IRQ(x) ((x >= 0) && (x < ICU_LEN)) -#define IO_ICU1 (isaspace_va + 0x20) -#define IO_ICU2 (isaspace_va + 0xa0) -#define IO_ELCR1 (isaspace_va + 0x4d0) -#define IO_ELCR2 (isaspace_va + 0x4d1) -#define IRQ_SLAVE 2 -#define ICU_OFFSET 0 -#define PIC_OFFSET 16 - -#define PIC_SPURIOUS 0xff - -unsigned char icu1_val = 0xff; -unsigned char icu2_val = 0xff; -unsigned char elcr1_val = 0x00; -unsigned char elcr2_val = 0x00; - -int intrtype[ICU_LEN], intrmask[ICU_LEN], intrlevel[ICU_LEN]; -struct intrhand *intrhand[ICU_LEN]; -int hwirq[ICU_LEN], virq[ICU_LEN]; -unsigned int imen = 0xffffffff; -int virq_max; - -int fakeintr(void *); -const char *intr_typename(int type); -void intr_calculatemasks(void); -static __inline int cntlzw(int x); -int mapirq(int irq); -void openpic_enable_irq_mask(int irq_mask); - -#define HWIRQ_MAX 27 -#define HWIRQ_MASK 0x0fffffff - -static __inline u_int openpic_read(int); -static __inline void openpic_write(int, u_int); -void openpic_enable_irq(int, int); -void openpic_disable_irq(int); -void openpic_init(void); -void openpic_set_priority(int, int); -static __inline int openpic_iack(int); -static __inline void openpic_eoi(int); -void openpic_initirq(int, int, int); - -void i8259_init(void); -int i8259_intr(void); -void i8259_enable_irq(int, int); -void i8259_disable_irq(int); -void i8259_eoi(int); -void *i8259_intr_establish(void *, int, int, int, int (*)(void *), void *, - char *); -void i8259_set_irq_mask(void); - -struct openpic_softc { - struct device sc_dev; -}; - -int openpic_match(struct device *parent, void *cf, void *aux); -void openpic_attach(struct device *, struct device *, void *); -void openpic_do_pending_int(void); -void ext_intr_openpic(void); - -struct cfattach openpic_ca = { - sizeof(struct openpic_softc), openpic_match, openpic_attach -}; - -struct cfdriver openpic_cd = { - NULL, "openpic", DV_DULL -}; - -/* - * ISA IRQ for PCI IRQ to MPIC IRQ routing. - * From MVME2600APG tables 5.2 and 5.3 - */ -const struct pci_route { - int pci; - int openpic; -} pci_routes[] = { - { 10, 2 }, - { 11, 5 }, - { 14, 3 }, - { 15, 4 }, - { 0, 0 } -}; - -int -openpic_match(parent, cf, aux) - struct device *parent; - void *cf; - void *aux; -{ - /* We must be a child of the raven device */ - if (strcmp(parent->dv_cfdata->cf_driver->cd_name, "raven") != 0) - return (0); - /* If there is a raven, then there is a mpic! */ - return 1; -} - -u_int8_t *interrupt_reg; -typedef void (void_f) (void); -extern void_f *pending_int_f; -int abort_switch (void *arg); -int i8259_dummy(void *arg); - -typedef int mac_intr_handle_t; - -typedef void *(intr_establish_t)(void *, int, int, int, int (*)(void *), - void *, char *); -typedef void (intr_disestablish_t)(void *, void *); - -vaddr_t openpic_base; -extern vaddr_t isaspace_va; - -void * openpic_intr_establish(void *, int, int, int, int (*)(void *), void *, - char *); -void openpic_intr_disestablish(void *, void *); -void openpic_collect_preconf_intr(void); - -void -openpic_attach(parent, self, aux) - struct device *parent, *self; - void *aux; -{ - extern intr_establish_t *intr_establish_func; - extern intr_disestablish_t *intr_disestablish_func; - - if ((openpic_base = (vaddr_t)mapiodev(MPCIC_BASE, MPCIC_SIZE)) == NULL) { - printf(": can't map MPCIC!\n"); - return; - } - - /* the ICU area in isa space already mapped */ - - printf(": version 0x%x", openpic_read(OPENPIC_FEATURE) & 0xFF); - - i8259_init(); - openpic_init(); - - pending_int_f = openpic_do_pending_int; - intr_establish_func = i8259_intr_establish; - intr_disestablish_func = openpic_intr_disestablish; - - openpic_collect_preconf_intr(); - - /* - * i8259 interrupts are chained to openpic interrupt #0 - */ - openpic_intr_establish(parent, 0x00, IST_LEVEL, IPL_HIGH, - i8259_dummy, NULL, "8259 Interrupt"); - - i8259_intr_establish(parent, 0x08, IST_EDGE, IPL_HIGH, - abort_switch, NULL, "abort button"); - - printf("\n"); -} - -void -openpic_collect_preconf_intr() -{ - int i; - - for (i = 0; i < ppc_configed_intr_cnt; i++) { -#ifdef DEBUG - printf("\n\t%s irq %d level %d fun %x arg %x", - ppc_configed_intr[i].ih_what, ppc_configed_intr[i].ih_irq, - ppc_configed_intr[i].ih_level, ppc_configed_intr[i].ih_fun, - ppc_configed_intr[i].ih_arg); -#endif - openpic_intr_establish(NULL, ppc_configed_intr[i].ih_irq, - IST_LEVEL, ppc_configed_intr[i].ih_level, - ppc_configed_intr[i].ih_fun, ppc_configed_intr[i].ih_arg, - ppc_configed_intr[i].ih_what); - } -} - -int -abort_switch(void *arg) -{ -#ifdef DDB - if (db_console) - Debugger(); -#else - printf("Abort button pressed, debugger not available.\n"); -#endif - return 1; -} - -int -i8259_dummy(void *arg) -{ - /* All the 8259 handling happens in ext_intr_openpic(), actually. */ - return 1; -} - -int -fakeintr(arg) - void *arg; -{ - return 0; -} - -/* - * Register an ISA interrupt handler. - */ -void * -i8259_intr_establish(lcv, irq, type, level, ih_fun, ih_arg, what) - void * lcv; - int irq; - int type; - int level; - int (*ih_fun)(void *); - void *ih_arg; - char *what; -{ - struct intrhand **p, *q, *ih; - static struct intrhand fakehand; - - fakehand.ih_next = NULL; - fakehand.ih_fun = fakeintr; - -#if 0 - printf("i8259_intr_establish, %d, %s", irq, (type == IST_EDGE) ? "EDGE":"LEVEL")); -#endif - irq = mapirq(irq + ICU_OFFSET); - - /* no point in sleeping unless someone can free memory. */ - ih = malloc(sizeof *ih, M_DEVBUF, cold ? M_NOWAIT : M_WAITOK); - if (ih == NULL) - panic("i8259_intr_establish: can't malloc handler info"); - - if (!LEGAL_IRQ(irq) || type == IST_NONE) - panic("i8259_intr_establish: bogus irq or type"); - - switch (intrtype[irq]) { - case IST_EDGE: - intr_shared_edge = 1; - /* FALLTHROUGH */ - case IST_LEVEL: - if (type == intrtype[irq]) - break; - case IST_PULSE: - if (type != IST_NONE) - panic("intr_establish: can't share %s with %s", - intr_typename(intrtype[irq]), - intr_typename(type)); - break; - } - - /* - * Figure out where to put the handler. - * This is O(N^2), but we want to preserve the order, and N is - * generally small. - */ - for (p = &intrhand[irq]; (q = *p) != NULL; p = &q->ih_next) - ; - - /* - * Actually install a fake handler momentarily, since we might be doing - * this with interrupts enabled and don't want the real routine called - * until masking is set up. - */ - fakehand.ih_level = level; - *p = &fakehand; - - intr_calculatemasks(); - - /* - * Poke the real handler in now. - */ - ih->ih_fun = ih_fun; - ih->ih_arg = ih_arg; - ih->ih_next = NULL; - ih->ih_level = level; - ih->ih_irq = irq; - ih->ih_what = what; - evcount_attach(&ih->ih_count, what, &ih->ih_irq); - *p = ih; - - return (ih); -} - - -/* - * Register a PCI interrupt handler. - */ -void * -openpic_intr_establish(lcv, irq, type, level, ih_fun, ih_arg, what) - void * lcv; - int irq; - int type; - int level; - int (*ih_fun)(void *); - void *ih_arg; - char *what; -{ - struct intrhand **p, *q, *ih; - static struct intrhand fakehand; - const struct pci_route *pr; - - fakehand.ih_next = NULL; - fakehand.ih_fun = fakeintr; - - for (pr = pci_routes; pr->pci != 0; pr++) - if (pr->pci == irq) { - irq = pr->openpic; - break; - } - - irq = mapirq(irq + PIC_OFFSET); - - /* no point in sleeping unless someone can free memory. */ - ih = malloc(sizeof *ih, M_DEVBUF, cold ? M_NOWAIT : M_WAITOK); - if (ih == NULL) - panic("intr_establish: can't malloc handler info"); - - if (!LEGAL_IRQ(irq) || type == IST_NONE) - panic("intr_establish: bogus irq or type"); - - switch (intrtype[irq]) { - case IST_EDGE: - intr_shared_edge = 1; - /* FALLTHROUGH */ - case IST_LEVEL: - if (type == intrtype[irq]) - break; - case IST_PULSE: - if (type != IST_NONE) - panic("intr_establish: can't share %s with %s", - intr_typename(intrtype[irq]), - intr_typename(type)); - break; - } - - /* - * Figure out where to put the handler. - * This is O(N^2), but we want to preserve the order, and N is - * generally small. - */ - for (p = &intrhand[irq]; (q = *p) != NULL; p = &q->ih_next) - ; - - /* - * Actually install a fake handler momentarily, since we might be doing - * this with interrupts enabled and don't want the real routine called - * until masking is set up. - */ - fakehand.ih_level = level; - *p = &fakehand; - - intr_calculatemasks(); - - /* - * Poke the real handler in now. - */ - ih->ih_fun = ih_fun; - ih->ih_arg = ih_arg; - ih->ih_next = NULL; - ih->ih_level = level; - ih->ih_irq = irq; - ih->ih_what = what; - evcount_attach(&ih->ih_count, what, (void *)&ih->ih_irq); - *p = ih; - - return (ih); -} - -/* - * Deregister an interrupt handler. - */ -void -openpic_intr_disestablish(lcp, arg) - void *lcp; - void *arg; -{ - struct intrhand *ih = arg; - int irq = ih->ih_irq; - struct intrhand **p, *q; - - if (!LEGAL_IRQ(irq)) - panic("intr_disestablish: bogus irq"); - - /* - * Remove the handler from the chain. - * This is O(n^2), too. - */ - for (p = &intrhand[irq]; (q = *p) != NULL && q != ih; p = &q->ih_next) - ; - if (q) - *p = q->ih_next; - else - panic("intr_disestablish: handler not registered"); - - evcount_detach(&ih->ih_count); - free((void *)ih, M_DEVBUF); - - intr_calculatemasks(); - - if (intrhand[irq] == NULL) - intrtype[irq] = IST_NONE; -} - -const char * -intr_typename(type) - int type; -{ - - switch (type) { - case IST_NONE : - return ("none"); - case IST_PULSE: - return ("pulsed"); - case IST_EDGE: - return ("edge-triggered"); - case IST_LEVEL: - return ("level-triggered"); -#ifdef DIAGNOSTIC - default: - panic("intr_typename: invalid type %d", type); -#endif - } -} - -/* - * Recalculate the interrupt masks from scratch. - * We could code special registry and deregistry versions of this function that - * would be faster, but the code would be nastier, and we don't expect this to - * happen very much anyway. - */ -void -intr_calculatemasks() -{ - int irq, hirq, level, levels; - struct intrhand *q; - int irqs; - - /* First, figure out which levels each IRQ uses. */ - for (irq = 0; irq < ICU_LEN; irq++) { - levels = 0; - for (q = intrhand[irq]; q; q = q->ih_next) - levels |= 1 << q->ih_level; - intrlevel[irq] = levels; - } - - /* Then figure out which IRQs use each level. */ - for (level = IPL_NONE; level < IPL_NUM; level++) { - irqs = 0; - for (irq = 0; irq < ICU_LEN; irq++) - if (intrlevel[irq] & (1 << level)) - irqs |= 1 << irq; - imask[level] = irqs | SINT_MASK; - } - - /* - * There are tty, network and disk drivers that use free() at interrupt - * time, so vm > (tty | net | bio). - * - * Enforce a hierarchy that gives slow devices a better chance at not - * dropping data. - */ - imask[IPL_NET] |= imask[IPL_BIO]; - imask[IPL_TTY] |= imask[IPL_NET]; - imask[IPL_VM] |= imask[IPL_TTY]; - imask[IPL_CLOCK] |= imask[IPL_VM] | SPL_CLOCK; - - /* - * These are pseudo-levels. - */ - imask[IPL_NONE] = 0x00000000; - imask[IPL_HIGH] = 0xffffffff; - - /* And eventually calculate the complete masks. */ - for (irq = 0; irq < ICU_LEN; irq++) { - irqs = 1 << irq; - for (q = intrhand[irq]; q; q = q->ih_next) - irqs |= imask[q->ih_level]; - intrmask[irq] = irqs | SINT_MASK; - } - - /* Lastly, determine which IRQs are actually in use. */ - irqs = 0; - for (irq = 0; irq < ICU_LEN; irq++) { - hirq = hwirq[irq]; - if (hirq < 0) - continue; - - if (intrhand[irq]) { - irqs |= 1 << irq; - - if (hirq >= PIC_OFFSET) - openpic_enable_irq(hirq, intrtype[irq]); - else - i8259_enable_irq(hirq, intrtype[irq]); - } else { - if (hirq >= PIC_OFFSET) - openpic_disable_irq(hirq); - else - i8259_disable_irq(hirq); - } - } - - /* always enable the chained 8259 interrupt */ - i8259_enable_irq(IRQ_SLAVE, IST_EDGE); - - imen = ~irqs; - i8259_set_irq_mask(); -} - -/* - * Map 64 irqs into 32 (bits). - */ -int -mapirq(irq) - int irq; -{ - int v; - -#ifdef DIAGNOSTIC - if (irq < 0 || irq >= ICU_LEN) - panic("invalid irq"); -#endif - - virq_max++; - v = virq_max; - if (v > HWIRQ_MAX) - panic("virq overflow"); - - hwirq[v] = irq; - virq[irq] = v; -#ifdef DEBUG - printf("mapirq %x to %x\n", irq, v); -#endif - - return v; -} - -/* - * Count leading zeros. - */ -static __inline int -cntlzw(x) - int x; -{ - int a; - - __asm __volatile ("cntlzw %0,%1" : "=r"(a) : "r"(x)); - return a; -} - -void -openpic_do_pending_int() -{ - struct intrhand *ih; - int irq; - int pcpl; - int hwpend; - int s; - static int processing; - - if (processing) - return; - - processing = 1; - pcpl = splhigh(); /* Turn off all */ - s = ppc_intr_disable(); - - hwpend = ipending & ~pcpl; /* Do now unmasked pendings */ - imen &= ~hwpend; - openpic_enable_irq_mask(~imen); - - hwpend &= HWIRQ_MASK; - while (hwpend) { - irq = 31 - cntlzw(hwpend); - hwpend &= ~(1L << irq); - ih = intrhand[irq]; - while (ih) { - if ((*ih->ih_fun)(ih->ih_arg)) - ih->ih_count.ec_count++; - ih = ih->ih_next; - } - } - - do { - if ((ipending & SINT_CLOCK) & ~pcpl) { - ipending &= ~SINT_CLOCK; - softclock(); - } - if ((ipending & SINT_NET) & ~pcpl) { - extern int netisr; - int pisr; - - ipending &= ~SINT_NET; - while ((pisr = netisr) != 0) { - atomic_clearbits_int(&netisr, pisr); - softnet(pisr); - } - } -#if 0 - if ((ipending & SINT_TTY) & ~pcpl) { - ipending &= ~SINT_TTY; - softtty(); - } -#endif - } while (ipending & (SINT_NET|SINT_CLOCK/*|SINT_TTY*/) & ~cpl); - ipending &= pcpl; - cpl = pcpl; /* Don't use splx... we are here already! */ - -#if 0 - i8259_set_irq_mask(); -#endif - - ppc_intr_enable(s); - processing = 0; -} - -u_int -openpic_read(reg) - int reg; -{ - char *addr = (void *)(openpic_base + reg); - - return in32rb(addr); -} - -void -openpic_write(reg, val) - int reg; - u_int val; -{ - char *addr = (void *)(openpic_base + reg); - - out32rb(addr, val); -} - -void -openpic_enable_irq_mask(irq_mask) - int irq_mask; -{ - int irq, hirq; - - for (irq = 0; irq <= virq_max; irq++) { - hirq = hwirq[irq]; - if (hirq < 0) - continue; - - if (irq_mask & (1 << irq)) { - if (hirq >= PIC_OFFSET) - openpic_enable_irq(hirq, intrtype[irq]); - else - i8259_enable_irq(hirq, intrtype[irq]); - } else { - if (hirq >= PIC_OFFSET) - openpic_disable_irq(hirq); - else - i8259_disable_irq(hirq); - } - } - - i8259_set_irq_mask(); -} - -void -openpic_enable_irq(irq, type) - int irq; - int type; -{ - u_int x, isrc; - -#ifdef DIAGNOSTIC - /* skip invalid irqs */ - if (irq < PIC_OFFSET) - panic("openpic_enable_irq: invalid irq %x", irq); -#endif - irq -= PIC_OFFSET; - - x = openpic_read(OPENPIC_SRC_VECTOR(irq)); - - isrc = x & ~(OPENPIC_IMASK | OPENPIC_SENSE_LEVEL | - OPENPIC_POLARITY_POSITIVE | OPENPIC_ACTIVITY); - if (irq == 0) - isrc |= OPENPIC_POLARITY_POSITIVE; - if (type == IST_LEVEL) - isrc |= OPENPIC_SENSE_LEVEL; - else - isrc |= OPENPIC_SENSE_EDGE; - - /* Ack all pending interrupts if this one is pending. */ - while (x & OPENPIC_ACTIVITY) { - (void)openpic_iack(0); - openpic_eoi(0); - x = openpic_read(OPENPIC_SRC_VECTOR(irq)); - } - - if (x != isrc) - openpic_write(OPENPIC_SRC_VECTOR(irq), isrc); -} - -void -openpic_disable_irq(irq) - int irq; -{ - u_int x; - - /* skip invalid irqs */ - if (irq >= PIC_OFFSET) - irq -= PIC_OFFSET; - - x = openpic_read(OPENPIC_SRC_VECTOR(irq)); - x |= OPENPIC_IMASK; - openpic_write(OPENPIC_SRC_VECTOR(irq), x); -} - -void -i8259_set_irq_mask(void) -{ - if (icu2_val != 0xff) { - /* Turn on the second IC */ - icu1_val &= ~(1 << IRQ_SLAVE); - } else { - icu1_val |= (1 << IRQ_SLAVE); - } - - outb(IO_ICU1 + 1, icu1_val); - outb(IO_ICU2 + 1, icu2_val); - outb(IO_ELCR1, elcr1_val); - outb(IO_ELCR2, elcr2_val); -} - -void -i8259_disable_irq(irq) - int irq; -{ -#ifdef DIAGNOSTIC - /* skip invalid irqs */ - if (irq < 0 || irq >= PIC_OFFSET) - panic("i8259_disable_irq: invalid irq %x", irq); -#endif - - if (irq < 8) { - icu1_val |= 1 << irq; - elcr1_val &= ~(1 << irq); - } else { - irq -= 8; - icu2_val |= 1 << irq; - elcr2_val &= ~(1 << irq); - } -} - -void -i8259_enable_irq(irq, type) - int irq, type; -{ -#ifdef DIAGNOSTIC - /* skip invalid irqs */ - if (irq < 0 || irq >= PIC_OFFSET) - panic("i8259_enable_irq: invalid irq %x", irq); -#endif - - if (irq < 8) { - icu1_val &= ~(1 << irq); - if (type == IST_LEVEL) - elcr1_val |= (1 << irq); - else - elcr1_val &= ~(1 << irq); - } else { - irq -= 8; - icu2_val &= ~(1 << irq); - if (type == IST_LEVEL) - elcr2_val |= (1 << irq); - else - elcr2_val &= ~(1 << irq); - } -} - -void -i8259_eoi(int irq) -{ -#ifdef DIAGNOSTIC - /* skip invalid irqs */ - if (irq < 0 || irq >= PIC_OFFSET) - panic("i8259_eoi: invalid irq %x", irq); -#endif - - if (irq < 8) - outb(IO_ICU1, 0x60 | irq); - else { - outb(IO_ICU2, 0x60 | (irq - 8)); - /* - * Do not ack on the master unless there are no - * other interrupts pending on the slave - * controller! - */ - outb(IO_ICU2, 0x0b); - if (inb(IO_ICU2) == 0) - outb(IO_ICU1, 0x60 | IRQ_SLAVE); - } -} - -void -openpic_set_priority(cpu, pri) - int cpu, pri; -{ - u_int x; - - x = openpic_read(OPENPIC_CPU_PRIORITY(cpu)); - x &= ~OPENPIC_CPU_PRIORITY_MASK; - x |= pri; - openpic_write(OPENPIC_CPU_PRIORITY(cpu), x); -} - -int -openpic_iack(cpu) - int cpu; -{ - return openpic_read(OPENPIC_IACK(cpu)) & OPENPIC_VECTOR_MASK; -} - -void -openpic_eoi(cpu) - int cpu; -{ - openpic_write(OPENPIC_EOI(cpu), 0); - openpic_read(OPENPIC_EOI(cpu)); -} - -void -i8259_init(void) -{ - /* initialize 8259's */ - outb(IO_ICU1, 0x11); /* reset; program device, four bytes */ - outb(IO_ICU1+1, ICU_OFFSET); /* starting at this vector index */ - outb(IO_ICU1+1, 1 << IRQ_SLAVE); /* slave on line 2 */ - outb(IO_ICU1+1, 1); /* 8086 mode */ - outb(IO_ICU1+1, 0xff); /* leave interrupts masked */ - /* init interrupt controller 2 */ - outb(IO_ICU2, 0x11); /* reset; program device, four bytes */ - outb(IO_ICU2+1, ICU_OFFSET+8); /* staring at this vector index */ - outb(IO_ICU2+1, IRQ_SLAVE); - outb(IO_ICU2+1, 1); /* 8086 mode */ - outb(IO_ICU2+1, 0xff); /* leave interrupts masked */ -} - -int -i8259_intr(void) -{ - int irq; - - /* - * Perform an interrupt acknowledge cycle on controller 1 - */ - outb(IO_ICU1, 0x0c); - irq = inb(IO_ICU1) & 7; - - if (irq == IRQ_SLAVE) { - /* - * Interrupt is cascaded so perform interrupt - * acknowledge on controller 2 - */ - outb(IO_ICU2, 0x0c); - irq = (inb(IO_ICU2) & 7) + 8; - if (irq == 15) { - outb(IO_ICU2, 0x0b); - if ((inb(IO_ICU2) & 0x80) == 0) { -#ifdef DIAGNOSTIC - printf("spurious interrupt on ICU2\n"); -#endif - return PIC_SPURIOUS; - } - } - } else if (irq == 7) { - /* - * This may be a spurious interrupt - * - * Read the interrupt status register. If the most - * significant bit is not set then there is no valid - * interrupt - */ - outb(IO_ICU1, 0x0b); - if ((inb(IO_ICU1) & 0x80) == 0) { -#ifdef DIAGNOSTIC - printf("spurious interrupt on ICU1\n"); -#endif - return PIC_SPURIOUS; - } - } - - return (ICU_OFFSET + irq); -} - -void -ext_intr_openpic() -{ - int irq, realirq; - int r_imen; - int pcpl, ocpl; - struct intrhand *ih; - - pcpl = cpl; - - realirq = openpic_iack(0); - - while (realirq != PIC_SPURIOUS) { - if (realirq == 0x00) { - /* - * Interrupt from the PCI/ISA bridge. PCI interrupts - * are shadowed on the ISA PIC for compatibility with - * MVME1600, so simply handle the ISA PIC. - */ - realirq = i8259_intr(); - openpic_eoi(0); - if (realirq == PIC_SPURIOUS) - break; - } else { - realirq += PIC_OFFSET; - } - - irq = virq[realirq]; - - /* XXX check range */ - - r_imen = 1 << irq; - - if ((pcpl & r_imen) != 0) { - ipending |= r_imen; /* Masked! Mark this as pending */ - if (realirq >= PIC_OFFSET) { - openpic_disable_irq(realirq); - openpic_eoi(0); - } else { - i8259_disable_irq(realirq); - i8259_set_irq_mask(); - i8259_eoi(realirq); - } - } else { - if (realirq >= PIC_OFFSET) { - openpic_disable_irq(realirq); - } else { - i8259_disable_irq(realirq); - i8259_set_irq_mask(); - } - - ocpl = splraise(intrmask[irq]); - - ih = intrhand[irq]; - while (ih) { - if ((*ih->ih_fun)(ih->ih_arg)) - ih->ih_count.ec_count++; - ih = ih->ih_next; - } - - uvmexp.intrs++; - __asm__ volatile("":::"memory"); - cpl = ocpl; - __asm__ volatile("":::"memory"); - - if (realirq >= PIC_OFFSET) { - openpic_eoi(0); - openpic_enable_irq(realirq, intrtype[irq]); - } else { - i8259_eoi(realirq); - i8259_enable_irq(realirq, intrtype[irq]); - i8259_set_irq_mask(); - } - } - - realirq = openpic_iack(0); - } - ppc_intr_enable(1); - - splx(pcpl); /* Process pendings. */ -} - -void -openpic_initirq(int irq, int pol, int sense) -{ - u_int x; - - x = (irq & OPENPIC_VECTOR_MASK); - x |= OPENPIC_IMASK; - x |= (pol ? OPENPIC_POLARITY_POSITIVE : OPENPIC_POLARITY_NEGATIVE); - x |= (sense ? OPENPIC_SENSE_LEVEL : OPENPIC_SENSE_EDGE); - x |= 8 << OPENPIC_PRIORITY_SHIFT; - openpic_write(OPENPIC_SRC_VECTOR(irq), x); -} - -void -openpic_init() -{ - int irq; - u_int x; - - /* disable all interrupts and init hwirq[] */ - for (irq = 0; irq < ICU_LEN; irq++) { - hwirq[irq] = -1; - intrtype[irq] = IST_NONE; - intrmask[irq] = 0; - intrlevel[irq] = 0; - intrhand[irq] = NULL; - openpic_write(OPENPIC_SRC_VECTOR(irq), OPENPIC_IMASK); - } - openpic_set_priority(0, 15); - - /* we don't need 8259 pass through mode */ - x = openpic_read(OPENPIC_CONFIG); - x |= OPENPIC_CONFIG_8259_PASSTHRU_DISABLE; - openpic_write(OPENPIC_CONFIG, x); - - /* send all interrupts to cpu 0 */ - for (irq = 0; irq < ICU_LEN; irq++) - openpic_write(OPENPIC_SRC_DEST(irq), CPU(0)); - - /* special case for intr src 0 */ - openpic_initirq(0, 1, 0); - for (irq = 1; irq < ICU_LEN; irq++) { - openpic_initirq(irq, 0, 1); - } - - /* XXX set spurious intr vector */ -#if 0 - openpic_write(OPENPIC_SPURIOUS_VECTOR, 0xFF); -#endif - - /* unmask interrupts for cpu 0 */ - openpic_set_priority(0, 0); - - /* clear all pending interrunts */ /* < ICU_LEN ? */ - for (irq = 0; irq < PIC_OFFSET; irq++) { - openpic_iack(0); - openpic_eoi(0); - } - - for (irq = 0; irq < PIC_OFFSET; irq++) { /* < ICU_LEN ? */ - i8259_disable_irq(irq); - openpic_disable_irq(irq); - } - - i8259_set_irq_mask(); - - install_extint(ext_intr_openpic); -} diff --git a/sys/arch/mvmeppc/dev/openpicreg.h b/sys/arch/mvmeppc/dev/openpicreg.h deleted file mode 100644 index 22c6cf48b6c..00000000000 --- a/sys/arch/mvmeppc/dev/openpicreg.h +++ /dev/null @@ -1,91 +0,0 @@ -/* $OpenBSD: openpicreg.h,v 1.2 2001/07/04 08:31:31 niklas Exp $ */ -/* $NetBSD: openpicreg.h,v 1.1 2000/02/14 12:45:53 tsubai Exp $ */ - -/*- - * Copyright (c) 2000 Tsubai Masanari. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * GLOBAL/TIMER register (IDU base + 0x1000) - */ - -/* feature reporting reg 0 */ -#define OPENPIC_FEATURE 0x1000 - -/* global config reg 0 */ -#define OPENPIC_CONFIG 0x1020 -#define OPENPIC_CONFIG_RESET 0x80000000 -#define OPENPIC_CONFIG_8259_PASSTHRU_DISABLE 0x20000000 - -/* vendor ID */ -#define OPENPIC_VENDOR_ID 0x1080 - -/* processor initialization reg */ -#define OPENPIC_PROC_INIT 0x1090 - -/* IPI vector/priority reg */ -#define OPENPIC_IPI_VECTOR(ipi) (0x10a0 + (ipi) * 0x10) - -/* spurious intr. vector */ -#define OPENPIC_SPURIOUS_VECTOR 0x10e0 - - -/* - * INTERRUPT SOURCE register (IDU base + 0x10000) - */ - -/* interrupt vector/priority reg */ -#define OPENPIC_SRC_VECTOR(irq) (0x10000 + (irq) * 0x20) -#define OPENPIC_SENSE_LEVEL 0x00400000 -#define OPENPIC_SENSE_EDGE 0x00000000 -#define OPENPIC_POLARITY_POSITIVE 0x00800000 -#define OPENPIC_POLARITY_NEGATIVE 0x00000000 -#define OPENPIC_IMASK 0x80000000 -#define OPENPIC_ACTIVITY 0x40000000 -#define OPENPIC_PRIORITY_MASK 0x000f0000 -#define OPENPIC_PRIORITY_SHIFT 16 -#define OPENPIC_VECTOR_MASK 0x000000ff - -/* interrupt destination cpu */ -#define OPENPIC_SRC_DEST(irq) (0x10010 + (irq) * 0x20) - -#define CPU(x) (1 << (x)) - -/* - * PROCESSOR register (IDU base + 0x20000) - */ - -/* IPI command reg */ -#define OPENPIC_IPI(cpu, ipi) (0x20040 + (cpu) * 0x1000 + (ipi)) - -/* current task priority reg */ -#define OPENPIC_CPU_PRIORITY(cpu) (0x20080 + (cpu) * 0x1000) -#define OPENPIC_CPU_PRIORITY_MASK 0x0000000f - -/* interrupt acknowledge reg */ -#define OPENPIC_IACK(cpu) (0x200a0 + (cpu) * 0x1000) - -/* end of interrupt reg */ -#define OPENPIC_EOI(cpu) (0x200b0 + (cpu) * 0x1000) diff --git a/sys/arch/mvmeppc/dev/raven.c b/sys/arch/mvmeppc/dev/raven.c deleted file mode 100644 index 9bcda262db7..00000000000 --- a/sys/arch/mvmeppc/dev/raven.c +++ /dev/null @@ -1,118 +0,0 @@ -/* $OpenBSD: raven.c,v 1.6 2004/05/14 20:38:32 miod Exp $ */ - -/* - * Copyright (c) 2001 Steve Murphree, Jr. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed under OpenBSD for RTMX Inc - * by Per Fogelstrom, Opsycon AB. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - */ - -/* - * Motorola 'Raven' ASIC driver. - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/kernel.h> -#include <sys/malloc.h> -#include <sys/device.h> -#include <sys/proc.h> -#include <uvm/uvm_extern.h> - -#include <machine/autoconf.h> - -#include <mvmeppc/dev/ravenreg.h> -#include <mvmeppc/dev/ravenvar.h> - -int raven_match(struct device *, void *, void *); -void raven_attach(struct device *, struct device *, void *); - -struct cfattach raven_ca = { - sizeof(struct raven_softc), raven_match, raven_attach, -}; - -struct cfdriver raven_cd = { - NULL, "raven", DV_DULL, -}; - -int -raven_match(struct device *parent, void *match, void *aux) -{ - struct confargs *ca = aux; - void *va; - u_int32_t probe; - - if (strcmp(ca->ca_name, raven_cd.cd_name) != 0) - return 0; - - if ((va = mapiodev((paddr_t)RAVEN_BASE, RAVEN_SIZE)) == NULL) - return 0; - - /* check for a live address */ - if (badaddr(va, 4) != 0) { - unmapiodev(va, RAVEN_SIZE); - return 0; - } - - /* now check and see if it's a raven ASIC */ - probe = *(u_int32_t*)va; - unmapiodev((void *)va, RAVEN_SIZE); - - if (probe != RAVEN_MAGIC) - return 0; - - return 1; -} - -/* need to be global for mpcpcibr.c - XXX */ -u_int8_t *ravenregs; - -void -raven_attach(struct device *parent, struct device *self, void *aux) -{ - struct raven_softc *sc = (void *)self; - - /* - * Map Raven registers and MPCIC - * - * XXX steal them from devio_ex as well! - */ - ravenregs = sc->sc_regs = mapiodev((paddr_t)RAVEN_BASE, RAVEN_SIZE); - if (sc->sc_regs == NULL) { - printf(": can't map registers!\n"); - return; - } - - /* set system type */ - system_type = MVME; /* We are a Motorola MVME SBC */ - - printf(": version 0x%x\n", sc->sc_regs[RAVEN_REVID]); - - while (config_found(self, NULL, NULL)) - ; -} diff --git a/sys/arch/mvmeppc/dev/ravenreg.h b/sys/arch/mvmeppc/dev/ravenreg.h deleted file mode 100644 index e69a9f008bc..00000000000 --- a/sys/arch/mvmeppc/dev/ravenreg.h +++ /dev/null @@ -1,129 +0,0 @@ -/* $OpenBSD: ravenreg.h,v 1.4 2004/11/19 22:11:04 miod Exp $ */ - -/* - * Copyright (c) 2001 Steve Murphree, Jr. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed under OpenBSD for RTMX Inc - * by Per Fogelstrom, Opsycon AB. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * - * ravenreg.h: Motorola 'Raven' PowerPC to PCI bridge controller - */ - -#ifndef _MACHINE_RAVENREG_H_ -#define _MACHINE_RAVENREG_H_ - -#define RAVEN_BASE 0xfeff0000 -#define RAVEN_SIZE 0x00001000 - -#define RAVEN_VENDOR 0x00000000 -#define RAVEN_MAGIC 0x10574801 /* vendor information */ -#define RAVEN_DEVICE 0x00000002 -#define RAVEN_REVID 0x00000005 -#define RAVEN_GCSR 0x00000008 -#define RAVEN_FEAT 0x0000000a -#define RAVEN_MARB 0x0000000e -#define RAVEN_PIACK 0x00000030 - -#define RAVEN_MSADD0 0x00000040 -#define RAVEN_MSADD0_PREP 0xc000fcff -#define RAVEN_MSOFF0 0x00000044 -#define RAVEN_MSOFF0_PREP 0x400000c2 -#define RAVEN_MSADD1 0x00000048 -#define RAVEN_MSADD1_PREP 0x00000000 -#define RAVEN_MSOFF1 0x0000004c -#define RAVEN_MSOFF1_PREP 0x00000002 -#define RAVEN_MSADD2 0x00000050 -#define RAVEN_MSADD2_PREP 0x00000000 -#define RAVEN_MSOFF2 0x00000054 -#define RAVEN_MSOFF2_PREP 0x00000002 -#define RAVEN_MSADD3 0x00000058 -#define RAVEN_MSADD3_PREP 0x8000bfff -#define RAVEN_MSOFF3 0x0000005c -#define RAVEN_MSOFF3_PREP 0x800000c0 - -/* Where we map the PCI memory space - MAP A*/ -#define RAVEN_V_PCI_MEM_SPACE 0xc0000000 /* Virtual */ -#define RAVEN_P_PCI_MEM_SPACE 0xc0000000 /* Physical */ - -/* Where we map the PCI I/O space - MAP A*/ -#define RAVEN_P_ISA_IO_SPACE 0x80000000 -#define RAVEN_V_ISA_IO_SPACE 0x80000000 -#define RAVEN_V_PCI_IO_SPACE 0x80000000 -#define RAVEN_P_PCI_IO_SPACE 0x80000000 - -#define PREP_CONFIG_ADD 0x80000cf8 -#define PREP_CONFIG_DAT 0x80000cfc - -/* Where we map the config space */ -#define RAVEN_PCI_CONF_SPACE (RAVEN_V_ISA_IO_SPACE + 0x00800000) - -/* Where we map the PCI memory space - MAP B*/ -#define RAVEN_P_PCI_MEM_SPACE_MAP_B 0x80000000 /* Physical */ - -/* Where we map the PCI I/O space - MAP B*/ -#define RAVEN_P_PCI_IO_SPACE_MAP_B 0xfe000000 - -/* offsets from base pointer */ -#define RAVEN_REGOFFS(x) ((x) | 0x80000000) - -/* Where PCI devices sees CPU memory. */ -#define RAVEN_PCI_CPUMEM 0x80000000 - -#define RAVEN_PCI_VENDOR 0x00 -#define RAVEN_PCI_DEVICE 0x02 -#define RAVEN_PCI_CMD 0x04 -#define RAVEN_PCI_STAT 0x06 -#define RAVEN_PCI_REVID 0x08 -#define RAVEN_PCI_IO 0x10 -#define RAVEN_PCI_MEM 0x14 -#define RAVEN_PCI_MEM_VAL 0x3c000000 /* PREP PCI memory space */ -#define RAVEN_PCI_PSADD0 0x80 -#define RAVEN_PCI_PSADD0_VAL 0x8000fbff -#define RAVEN_PCI_PSOFF0 0x84 -#define RAVEN_PCI_PSOFF0_VAL 0x800000f0 -#define RAVEN_PCI_PSADD1 0x88 -#define RAVEN_PCI_PSADD1_VAL 0x00000000 -#define RAVEN_PCI_PSOFF1 0x8C -#define RAVEN_PCI_PSOFF1_VAL 0x00000000 -#define RAVEN_PCI_PSADD2 0x90 -#define RAVEN_PCI_PSADD2_VAL 0x00000000 -#define RAVEN_PCI_PSOFF2 0x94 -#define RAVEN_PCI_PSOFF2_VAL 0x00000000 -#define RAVEN_PCI_PSADD3 0x98 -#define RAVEN_PCI_PSADD3_VAL 0x00000000 -#define RAVEN_PCI_PSOFF3 0x9C -#define RAVEN_PCI_PSOFF3_VAL 0x00000000 - -#define RAVEN_CMD_IOSP 0x0001 -#define RAVEN_CMD_MEMSP 0x0002 -#define RAVEN_CMD_MASTR 0x0004 - -/* How much ISA space we'll map initially */ -#define ISA_SIZE PAGE_SIZE - -#endif /* _MACHINE_RAVENREG_H_ */ diff --git a/sys/arch/mvmeppc/dev/ravenvar.h b/sys/arch/mvmeppc/dev/ravenvar.h deleted file mode 100644 index 7d4431af63c..00000000000 --- a/sys/arch/mvmeppc/dev/ravenvar.h +++ /dev/null @@ -1,388 +0,0 @@ -/* $OpenBSD: ravenvar.h,v 1.3 2004/01/29 10:58:06 miod Exp $ */ - -/* - * Copyright (c) 2001 Steve Murphree, Jr. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed under OpenBSD for RTMX Inc - * by Per Fogelstrom, Opsycon AB. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * - * Motorola 'Raven' PowerPC to PCI bridge controller - */ - -#ifndef _DEV_RAVENVAR_H_ -#define _DEV_RAVENVAR_H_ - -#define MPCIC_BASE 0xFC000000 -#define MPCIC_SIZE 0x00022000 - -#define MPCIC_FEATURE 0x01000 -#define MPCIC_GCR 0x01020 -#define MPCIC_VID 0x01080 -#define MPCIC_PINIT 0x01090 -#define MPCIC_IPI0 0x010A0 -#define MPCIC_IPI1 0x010B0 -#define MPCIC_IPI2 0x010C0 -#define MPCIC_IPI3 0x010D0 -#define MPCIC_SP 0x010E0 -#define MPCIC_TFR 0x010F0 -#define MPCIC_T0CC 0x01100 -#define MPCIC_T0BC 0x01110 -#define MPCIC_T0VP 0x01120 -#define MPCIC_T0D 0x01130 -#define MPCIC_T1CC 0x01140 -#define MPCIC_T1BC 0x01150 -#define MPCIC_T1VP 0x01160 -#define MPCIC_T1D 0x01170 -#define MPCIC_T2CC 0x01180 -#define MPCIC_T2BC 0x01190 -#define MPCIC_T2VP 0x011A0 -#define MPCIC_T2D 0x011B0 -#define MPCIC_T3CC 0x011C0 -#define MPCIC_T3BC 0x011D0 -#define MPCIC_T3VP 0x011E0 -#define MPCIC_T3D 0x011F0 -#define MPCIC_INT0VP 0x10000 -#define MPCIC_INT0D 0x10010 -#define MPCIC_INT1VP 0x10020 -#define MPCIC_INT1D 0x10030 -#define MPCIC_INT2VP 0x10040 -#define MPCIC_INT2D 0x10050 -#define MPCIC_INT3VP 0x10060 -#define MPCIC_INT3D 0x10070 -#define MPCIC_INT4VP 0x10080 -#define MPCIC_INT4D 0x10090 -#define MPCIC_INT5VP 0x100A0 -#define MPCIC_INT5D 0x100B0 -#define MPCIC_INT6VP 0x100C0 -#define MPCIC_INT6D 0x100D0 -#define MPCIC_INT7VP 0x100E0 -#define MPCIC_INT7D 0x100F0 -#define MPCIC_INT8VP 0x10100 -#define MPCIC_INT8D 0x10110 -#define MPCIC_INT9VP 0x10120 -#define MPCIC_INT9D 0x10130 -#define MPCIC_INT10VP 0x10140 -#define MPCIC_INT10D 0x10150 -#define MPCIC_INT11VP 0x10160 -#define MPCIC_INT11D 0x10170 -#define MPCIC_INT12VP 0x10180 -#define MPCIC_INT12D 0x10190 -#define MPCIC_INT13VP 0x101A0 -#define MPCIC_INT13D 0x101B0 -#define MPCIC_INT14VP 0x101C0 -#define MPCIC_INT14D 0x101D0 -#define MPCIC_INT15VP 0x101E0 -#define MPCIC_INT15D 0x101F0 -#define MPCIC_EVP 0x10200 -#define MPCIC_ED 0x10210 -#define MPCIC_P0_IPI0_D 0x20040 -#define MPCIC_P0_IPI1_D 0x20050 -#define MPCIC_P0_IPI2_D 0x20060 -#define MPCIC_P0_IPI3_D 0x20070 -#define MPCIC_P0_TP 0x20080 -#define MPCIC_P0_IACK 0x200A0 -#define MPCIC_P0_EOI 0x200B0 -#define MPCIC_P1_IPI0_D 0x21040 -#define MPCIC_P1_IPI1_D 0x21050 -#define MPCIC_P1_IPI2_D 0x21060 -#define MPCIC_P1_IPI3_D 0x21070 -#define MPCIC_P1_TP 0x21080 -#define MPCIC_P1_IACK 0x210A0 -#define MPCIC_P1_EOI 0x210B0 - -#define PROC0 0x01 -#define PROC1 0x02 - -#define GCR_M 0x04 -#define VP_MASKED 0x00000080 -#define VP_LEVEL 0x00004000 -#define VP_POL 0x00008000 -#define VP_VEC(x) ((x) << 24) -#define VP_PRI(x) ((x) << 8) - -struct mpic_feature { - unsigned int res1 : 4, - nirq : 12, - res2 : 3, - ncpu : 5, - vid : 8; -}; - -struct mpic_gcr { - unsigned int reset : 1, - res1 : 1, - cmode : 1, - res2 : 29; -}; - -struct mpic_vid { - unsigned int res1 : 8, - stp : 8, - res2 : 16; -}; - - -struct mpic_ipivp { - unsigned int masked : 1, - act : 1, - res1 : 10, - pri : 4, - res2 : 8, - vec : 8; -}; - -struct mpic_timer_count { - unsigned int toggle : 1, - count : 31; -}; - -struct mpic_timer_bcount { - unsigned int inhib : 1, - count : 31; -}; - -struct mpic_timer_vp { - unsigned int masked : 1, - act : 1, - res1 : 10, - pri : 4, - res2 : 8, - vec : 8; -}; - -struct mpic_timer { - struct mpic_timer_count *cr; - struct mpic_timer_bcount *bcr; - struct mpic_timer_vp *vp; - unsigned char *dest; -}; - -struct mpic_ext_vp { - unsigned int masked : 1, - act : 1, - res1 : 6, - polarity : 1, - sense : 1, - res2 : 2, - pri : 4, - res3 : 8, - vec : 8; -}; - -struct mpic_ext_intr { - volatile unsigned int *vp; - volatile unsigned char *dest; -}; - -struct mpic_err_vp { - unsigned int masked : 1, - act : 1, - res3 : 7, - sense : 1, - res2 : 2, - pri : 4, - res1 : 8, - vec : 8; -}; - -#if 1 -struct raven_reg { - struct mpic_feature *feature; - unsigned int *gcr; - struct mpic_vid *vid; - char *p_init; - struct mpic_ipivp *ipi[4]; - char *sp; - unsigned int *timer_freq; - struct mpic_timer timer[4]; - /* external interrupt configuration registers */ - struct mpic_ext_intr extint[16]; - unsigned int *p0_ipi0d; - unsigned int *p0_ipi1d; - unsigned int *p0_ipi2d; - unsigned int *p0_ipi3d; - unsigned int *p1_ipi0d; - unsigned int *p1_ipi1d; - unsigned int *p1_ipi2d; - unsigned int *p1_ipi3d; - /* task priority registers (IPL) */ - unsigned char *tp[2]; - /* interrupt acknowledge registers */ - volatile unsigned char *iack[2]; - /* end of interrupt registers */ - volatile unsigned char *eio[2]; -}; - -#else -struct raven_reg { - struct mpic_feature *feature = (struct mpic_feature *)MPCIC_FEATURE; - struct mpic_gcr *gcr = (struct mpic_gcr *)MPCIC_GCR; - struct mpic_vid *vid = (struct mpic_vid *)MPCIC_VID; - char *p_init = (char *)MPCIC_PINIT; -#if 0 - struct mpic_ipivp *ipi0 = (struct mpic_ipivp *)MPCIC_IPI0; - struct mpic_ipivp *ipi1 = (struct mpic_ipivp *)MPCIC_IPI1; - struct mpic_ipivp *ipi2 = (struct mpic_ipivp *)MPCIC_IPI2; - struct mpic_ipivp *ipi3 = (struct mpic_ipivp *)MPCIC_IPI3; -#else - struct mpic_ipivp *ipi[4] = { - (struct mpic_ipivp *)MPCIC_IPI0, - (struct mpic_ipivp *)MPCIC_IPI1, - (struct mpic_ipivp *)MPCIC_IPI2, - (struct mpic_ipivp *)MPCIC_IPI3, - }; -#endif - char *sp = (char *)MPCIC_SP; - unsigned int *timer_freq = (unsigned int *)MPCIC_TFR; -#if 1 - struct mpic_timer timer[4] = { - {(struct mpic_timer_count *)MPCIC_T0CC, - (struct mpic_timer_bcount *)MPCIC_T0BC, - (struct mpic_timer_vp *)MPCIC_T0VP, - (unsigned char *)MPCIC_T0D}, - {(struct mpic_timer_count *)MPCIC_T1CC, - (struct mpic_timer_bcount *)MPCIC_T1BC, - (struct mpic_timer_vp *)MPCIC_T1VP, - (unsigned char *)MPCIC_T1D}, - {(struct mpic_timer_count *)MPCIC_T2CC, - (struct mpic_timer_bcount *)MPCIC_T2BC, - (struct mpic_timer_vp *)MPCIC_T2VP, - (unsigned char *)MPCIC_T2D}, - {(struct mpic_timer_count *)MPCIC_T3CC, - (struct mpic_timer_bcount *)MPCIC_T3BC, - (struct mpic_timer_vp *)MPCIC_T3VP, - (unsigned char *)MPCIC_T3D} - }; -#else - struct mpic_timer_count *t0c = (struct mpic_timer_count *)MPCIC_T0CC; - struct mpic_timer_bcount *t0bc = (struct mpic_timer_bcount *)MPCIC_T0BC; - struct mpic_timer_vp *t0vp = (struct mpic_timer_vp *)MPCIC_T0VP; - unsigned int *t0d = (unsigned int *)MPCIC_T0D; - struct mpic_timer_count *t1c = (struct mpic_timer_count *)MPCIC_T1CC; - struct mpic_timer_bcount *t1bc = (struct mpic_timer_bcount *)MPCIC_T1BC; - struct mpic_timer_vp *t1vp = (struct mpic_timer_vp *)MPCIC_T1VP; - unsigned int *t1d = (unsigned int *)MPCIC_T1D; - struct mpic_timer_count *t2c = (struct mpic_timer_count *)MPCIC_T2CC; - struct mpic_timer_bcount *t2bc = (struct mpic_timer_bcount *)MPCIC_T2BC; - struct mpic_timer_vp *t2vp = (struct mpic_timer_vp *)MPCIC_T2VP; - unsigned int *t2d = (unsigned int *)MPCIC_T2D; - struct mpic_timer_count *t3c = (struct mpic_timer_count *)MPCIC_T3CC; - struct mpic_timer_bcount *t3bc = (struct mpic_timer_bcount *)MPCIC_T3BC; - struct mpic_timer_vp *t3vp = (struct mpic_timer_vp *)MPCIC_T3VP; - unsigned int *t3d = (unsigned int *)MPCIC_T3D; -#endif - -#if 1 - /* external interrupt configuration registers */ - struct mpic_ext_intr extint[16] = { - {(struct mpic_ext_vp *)MPCIC_INT0VP, (unsigned char *)MPCIC_INT0D}, - {(struct mpic_ext_vp *)MPCIC_INT1VP, (unsigned char *)MPCIC_INT1D}, - {(struct mpic_ext_vp *)MPCIC_INT2VP, (unsigned char *)MPCIC_INT2D}, - {(struct mpic_ext_vp *)MPCIC_INT3VP, (unsigned char *)MPCIC_INT3D}, - {(struct mpic_ext_vp *)MPCIC_INT4VP, (unsigned char *)MPCIC_INT4D}, - {(struct mpic_ext_vp *)MPCIC_INT5VP, (unsigned char *)MPCIC_INT5D}, - {(struct mpic_ext_vp *)MPCIC_INT6VP, (unsigned char *)MPCIC_INT6D}, - {(struct mpic_ext_vp *)MPCIC_INT7VP, (unsigned char *)MPCIC_INT7D}, - {(struct mpic_ext_vp *)MPCIC_INT8VP, (unsigned char *)MPCIC_INT8D}, - {(struct mpic_ext_vp *)MPCIC_INT9VP, (unsigned char *)MPCIC_INT9D}, - {(struct mpic_ext_vp *)MPCIC_INT1VP, (unsigned char *)MPCIC_INT10D}, - {(struct mpic_ext_vp *)MPCIC_INT11VP, (unsigned char *)MPCIC_INT11D}, - {(struct mpic_ext_vp *)MPCIC_INT12VP, (unsigned char *)MPCIC_INT12D}, - {(struct mpic_ext_vp *)MPCIC_INT13VP, (unsigned char *)MPCIC_INT13D}, - {(struct mpic_ext_vp *)MPCIC_INT14VP, (unsigned char *)MPCIC_INT14D}, - {(struct mpic_ext_vp *)MPCIC_INT16VP, (unsigned char *)MPCIC_INT15D} - }; -#else - struct mpic_ext_vp *ext0vp = (struct mpic_ext_vp *)MPCIC_INT0VP; - unsigned int *ext0d = (unsigned int *)MPCIC_INT0D; - struct mpic_ext_vp *ext1vp = (struct mpic_ext_vp *)MPCIC_INT1VP; - unsigned int *ext1d = (unsigned int *)MPCIC_INT1D; - struct mpic_ext_vp *ext2vp = (struct mpic_ext_vp *)MPCIC_INT2VP; - unsigned int *ext2d = (unsigned int *)MPCIC_INT2D; - struct mpic_ext_vp *ext3vp = (struct mpic_ext_vp *)MPCIC_INT3VP; - unsigned int *ext3d = (unsigned int *)MPCIC_INT3D; - struct mpic_ext_vp *ext4vp = (struct mpic_ext_vp *)MPCIC_INT4VP; - unsigned int *ext4d = (unsigned int *)MPCIC_INT4D; - struct mpic_ext_vp *ext5vp = (struct mpic_ext_vp *)MPCIC_INT5VP; - unsigned int *ext5d = (unsigned int *)MPCIC_INT5D; - struct mpic_ext_vp *ext6vp = (struct mpic_ext_vp *)MPCIC_INT6VP; - unsigned int *ext6d = (unsigned int *)MPCIC_INT6D; - struct mpic_ext_vp *ext7vp = (struct mpic_ext_vp *)MPCIC_INT7VP; - unsigned int *ext7d = (unsigned int *)MPCIC_INT7D; - struct mpic_ext_vp *ext8vp = (struct mpic_ext_vp *)MPCIC_INT8VP; - unsigned int *ext8d = (unsigned int *)MPCIC_INT8D; - struct mpic_ext_vp *ext9vp = (struct mpic_ext_vp *)MPCIC_INT9VP; - unsigned int *ext9d = (unsigned int *)MPCIC_INT9D; - struct mpic_ext_vp *ext10vp = (struct mpic_ext_vp *)MPCIC_INT10VP; - unsigned int *ext10d = (unsigned int *)MPCIC_INT10D; - struct mpic_ext_vp *ext11vp = (struct mpic_ext_vp *)MPCIC_INT11VP; - unsigned int *ext11d = (unsigned int *)MPCIC_INT11D; - struct mpic_ext_vp *ext12vp = (struct mpic_ext_vp *)MPCIC_INT12VP; - unsigned int *ext12d = (unsigned int *)MPCIC_INT12D; - struct mpic_ext_vp *ext13vp = (struct mpic_ext_vp *)MPCIC_INT13VP; - unsigned int *ext13d = (unsigned int *)MPCIC_INT13D; - struct mpic_ext_vp *ext14vp = (struct mpic_ext_vp *)MPCIC_INT14VP; - unsigned int *ext14d = (unsigned int *)MPCIC_INT14D; - struct mpic_ext_vp *ext15vp = (struct mpic_ext_vp *)MPCIC_INT15VP; - unsigned int *ext15d = (unsigned int *)MPCIC_INT15D; - struct mpic_err_vp *errvp = (struct mpic_err_vp *)MPCIC_EVP; - unsigned int *errd = (unsigned int *)MPCIC_ED; -#endif - unsigned int *p0_ipi0d = (unsigned int *)MPCIC_P0_IPI0_D; - unsigned int *p0_ipi1d = (unsigned int *)MPCIC_P0_IPI1_D; - unsigned int *p0_ipi2d = (unsigned int *)MPCIC_P0_IPI2_D; - unsigned int *p0_ipi3d = (unsigned int *)MPCIC_P0_IPI3_D; - unsigned int *p1_ipi0d = (unsigned int *)MPCIC_P1_IPI0_D; - unsigned int *p1_ipi1d = (unsigned int *)MPCIC_P1_IPI1_D; - unsigned int *p1_ipi2d = (unsigned int *)MPCIC_P1_IPI2_D; - unsigned int *p1_ipi3d = (unsigned int *)MPCIC_P1_IPI3_D; - - /* task priority registers (IPL) */ - unsigned char *tp[2] = { - (unsigned char *)MPCIC_P0_TP, - (unsigned char *)MPCIC_P1_TP - }; - /* interrupt acknowledge registers */ - volatile unsigned char *iack[2] = { - (volatile unsigned char *)MPCIC_P0_IACK, - (volatile unsigned char *)MPCIC_P1_IACK - }; - /* end of interrupt registers */ - volatile unsigned char *eio[2] = { - (volatile unsigned char *)MPCIC_P0_EOI, - (volatile unsigned char *)MPCIC_P1_EOI, - }; -} -#endif - -struct raven_softc { - struct device sc_dev; - u_int8_t *sc_regs; -}; - -#endif /* _DEV_RAVENVAR_H_ */ diff --git a/sys/arch/mvmeppc/include/_types.h b/sys/arch/mvmeppc/include/_types.h deleted file mode 100644 index a6ba06f4c25..00000000000 --- a/sys/arch/mvmeppc/include/_types.h +++ /dev/null @@ -1,4 +0,0 @@ -/* $OpenBSD: _types.h,v 1.1 2006/01/06 18:50:09 millert Exp $ */ - -/* public domain */ -#include <powerpc/_types.h> diff --git a/sys/arch/mvmeppc/include/asm.h b/sys/arch/mvmeppc/include/asm.h deleted file mode 100644 index 2d7dd239381..00000000000 --- a/sys/arch/mvmeppc/include/asm.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: asm.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/asm.h> diff --git a/sys/arch/mvmeppc/include/atomic.h b/sys/arch/mvmeppc/include/atomic.h deleted file mode 100644 index 741dc7ea4a5..00000000000 --- a/sys/arch/mvmeppc/include/atomic.h +++ /dev/null @@ -1,10 +0,0 @@ -/* $OpenBSD: atomic.h,v 1.3 2011/03/23 16:54:36 pirofti Exp $ */ - -/* Public Domain */ - -#ifndef _MACHINE_ATOMIC_H_ -#define _MACHINE_ATOMIC_H_ - -#include <powerpc/atomic.h> - -#endif /* _MACHINE_ATOMIC_H_ */ diff --git a/sys/arch/mvmeppc/include/autoconf.h b/sys/arch/mvmeppc/include/autoconf.h deleted file mode 100644 index 845ff8e9339..00000000000 --- a/sys/arch/mvmeppc/include/autoconf.h +++ /dev/null @@ -1,94 +0,0 @@ -/* $OpenBSD: autoconf.h,v 1.4 2003/06/09 16:34:22 deraadt Exp $ */ - -/* - * Copyright (c) 1997 Per Fogelstrom - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - */ -/* - * Machine-dependent structures of autoconfiguration - */ - -#ifndef _MACHINE_AUTOCONF_H_ -#define _MACHINE_AUTOCONF_H_ - -#include <machine/bus.h> - -/* - * System types. - */ -#define OFWMACH 0 /* Openfirmware drivers */ -#define POWER4e 1 /* V.I Power.4e board */ -#define PWRSTK 2 /* Motorola Powerstack series */ -#define APPL 3 /* Apple PowerMac machines (OFW?) */ -#define MVME 4 /* Motorola MVME SBCs */ - -extern int system_type; - -/**/ -struct confargs; - -typedef int (*intr_handler_t)(void *); - -typedef struct bushook { - struct device *bh_dv; - int bh_type; - void (*bh_intr_establish)(struct confargs *, intr_handler_t, void *); - void (*bh_intr_disestablish)(struct confargs *); - int (*bh_matchname)(struct confargs *, char *); -} bushook_t; - -#define BUS_MAIN 1 /* mainbus */ -#define BUS_ISABR 2 /* ISA Bridge Bus */ -#define BUS_PCIBR 3 /* PCI bridge */ -#define BUS_VMEBR 4 /* VME bridge */ - -#define BUS_INTR_ESTABLISH(ca, handler, val) \ - (*(ca)->ca_bus->bh_intr_establish)((ca), (handler), (val)) -#define BUS_INTR_DISESTABLISH(ca) \ - (*(ca)->ca_bus->bh_intr_establish)(ca) -#define BUS_CVTADDR(ca) \ - (*(ca)->ca_bus->bh_cvtaddr)(ca) -#define BUS_MATCHNAME(ca, name) \ - (*(ca)->ca_bus->bh_matchname)((ca), (name)) - -struct confargs { - char *ca_name; /* Device name. */ - bushook_t *ca_bus; /* bus device resides on. */ - /* macobio hooks ?? */ - bus_space_tag_t ca_iot; - bus_space_tag_t ca_memt; /* XXX */ - u_int32_t ca_node; - int ca_nreg; - u_int32_t *ca_reg; - int ca_nintr; - int32_t *ca_intr; - u_int ca_baseaddr; - -}; - -void set_clockintr(void (*)(struct clockframe *)); -void set_iointr(void (*)(void *, int)); -int badaddr(void *, u_int32_t); - -#endif /* _MACHINE_AUTOCONF_H_ */ diff --git a/sys/arch/mvmeppc/include/bat.h b/sys/arch/mvmeppc/include/bat.h deleted file mode 100644 index 23718fd9942..00000000000 --- a/sys/arch/mvmeppc/include/bat.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: bat.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/bat.h> diff --git a/sys/arch/mvmeppc/include/bugio.h b/sys/arch/mvmeppc/include/bugio.h deleted file mode 100644 index 22fbaea125d..00000000000 --- a/sys/arch/mvmeppc/include/bugio.h +++ /dev/null @@ -1,47 +0,0 @@ -/* $OpenBSD: bugio.h,v 1.3 2004/01/24 21:10:31 miod Exp $ */ -/* - * Copyright (c) 2002, Miodrag Vallat. - * All rights reserved. - * - * Permission to redistribute, use, copy, and modify this software - * is hereby granted without fee, provided that the following - * conditions are met: - * - * 1. This entire notice is included in all source code copies of any - * software which is or includes a copy or modification of this - * software. - * 2. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef _MACHINE_BUGIO_H_ -#define _MACHINE_BUGIO_H_ - -#include <machine/prom.h> - -void mvmeprom_brdid(struct mvmeprom_brdid *); -int mvmeprom_getchar(void); -int mvmeprom_instat(void); -void mvmeprom_outln(char *, char *); -void mvmeprom_outstr(char *, char *); -void mvmeprom_outchar(int); -void mvmeprom_return(void); -void mvmeprom_rtc_rd(struct mvmeprom_time *); -struct bugenviron *mvmeprom_envrd(void); - -void buginit(void); - -#endif /* _MACHINE_BUGIO_H_ */ diff --git a/sys/arch/mvmeppc/include/bus.h b/sys/arch/mvmeppc/include/bus.h deleted file mode 100644 index be6c127ba93..00000000000 --- a/sys/arch/mvmeppc/include/bus.h +++ /dev/null @@ -1,124 +0,0 @@ -/* $NetBSD: bus.h,v 1.6 2001/06/15 15:50:05 nonaka Exp $ */ -/* $OpenBSD: bus.h,v 1.5 2011/03/23 16:54:36 pirofti Exp $ */ - -/*- - * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, - * NASA Ames Research Center. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * Copyright (c) 1996 Charles M. Hannum. All rights reserved. - * Copyright (c) 1996 Jason R. Thorpe. All rights reserved. - * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Christopher G. Demetriou - * for the NetBSD Project. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * Copyright (c) 1997 Per Fogelstrom. All rights reserved. - * Copyright (c) 1996 Niklas Hallqvist. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Christopher G. Demetriou - * for the NetBSD Project. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef _MACHINE_BUS_H_ -#define _MACHINE_BUS_H_ - -#define _POWERPC_BUS_DMA_PRIVATE -#include <machine/bus_mi.h> - -/* - * Values for the Be bus space tag, not to be used directly by MI code. - */ -#define PREP_BUS_SPACE_IO 0x80000000 /* i/o space */ -#define PREP_BUS_SPACE_MEM 0xC0000000 /* mem space */ - -/* - * Address conversion as seen from a PCI master. - */ -#define MPC105_DIRECT_MAPPED_SPACE 0x80000000 -#define PHYS_TO_PCI_MEM(x) ((x) | MPC105_DIRECT_MAPPED_SPACE) -#define PCI_MEM_TO_PHYS(x) ((x) & ~MPC105_DIRECT_MAPPED_SPACE) - -extern const struct ppc_bus_space prep_io_space_tag; -extern const struct ppc_bus_space prep_isa_io_space_tag; -extern const struct ppc_bus_space prep_mem_space_tag; -extern const struct ppc_bus_space prep_isa_mem_space_tag; - -void prep_bus_space_init(void); -void prep_bus_space_mallocok(void); - -#endif /* _MACHINE_BUS_H_ */ diff --git a/sys/arch/mvmeppc/include/bus_mi.h b/sys/arch/mvmeppc/include/bus_mi.h deleted file mode 100644 index fd9649bbc29..00000000000 --- a/sys/arch/mvmeppc/include/bus_mi.h +++ /dev/null @@ -1,1136 +0,0 @@ -/* $NetBSD: bus.h,v 1.1 2001/06/06 17:37:37 matt Exp $ */ -/* $OpenBSD: bus_mi.h,v 1.13 2011/03/23 16:54:36 pirofti Exp $ */ - -/*- - * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, - * NASA Ames Research Center. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * Copyright (c) 1996 Charles M. Hannum. All rights reserved. - * Copyright (c) 1996 Jason R. Thorpe. All rights reserved. - * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Christopher G. Demetriou - * for the NetBSD Project. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * Copyright (c) 1997 Per Fogelstrom. All rights reserved. - * Copyright (c) 1996 Niklas Hallqvist. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Christopher G. Demetriou - * for the NetBSD Project. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef _MACHINE_BUS_MI_H_ -#define _MACHINE_BUS_MI_H_ - -#include <machine/pio.h> - -/* - * Bus access types. - */ -typedef u_int32_t bus_addr_t; -typedef u_int32_t bus_size_t; -typedef u_int32_t bus_space_handle_t; -typedef const struct ppc_bus_space *bus_space_tag_t; - -struct ppc_bus_space { - u_int32_t pbs_type; - bus_addr_t pbs_offset; - bus_addr_t pbs_base; - bus_addr_t pbs_limit; - int (*pbs_map)(bus_space_tag_t, bus_addr_t, bus_size_t, int, - bus_space_handle_t *); - void (*pbs_unmap)(bus_space_tag_t, bus_space_handle_t, - bus_size_t); - int (*pbs_alloc)(bus_space_tag_t, bus_addr_t, bus_addr_t, - bus_size_t, bus_size_t align, bus_size_t, int, bus_addr_t *, - bus_space_handle_t *); - void (*pbs_free)(bus_space_tag_t, bus_space_handle_t, bus_size_t); -}; - -#define BUS_SPACE_MAP_CACHEABLE 0x01 -#define BUS_SPACE_MAP_LINEAR 0x02 -#define BUS_SPACE_MAP_PREFETCHABLE 0x04 - -#ifdef __STDC__ -#define CAT(a,b) a##b -#define CAT3(a,b,c) a##b##c -#else -#define CAT(a,b) a/**/b -#define CAT3(a,b,c) a/**/b/**/c -#endif - -/* - * Access methods for bus resources - */ - -#define __BUS_SPACE_HAS_STREAM_METHODS - -/* - * int bus_space_map(bus_space_tag_t t, bus_addr_t addr, - * bus_size_t size, int flags, bus_space_handle_t *bshp); - * - * Map a region of bus space. - */ - -#define bus_space_map(t, a, s, f, hp) \ - ((*(t)->pbs_map)((t), (a), (s), (f), (hp))) - -/* - * int bus_space_unmap(bus_space_tag_t t, - * bus_space_handle_t bsh, bus_size_t size); - * - * Unmap a region of bus space. - */ - -#define bus_space_unmap(t, h, s) \ - ((void)(*(t)->pbs_unmap)((t), (h), (s))) - -/* - * int bus_space_subregion(bus_space_tag_t t, - * bus_space_handle_t bsh, bus_size_t offset, bus_size_t size, - * bus_space_handle_t *nbshp); - * - * Get a new handle for a subregion of an already-mapped area of bus space. - */ - -#define bus_space_subregion(t, h, o, s, hp) \ - ((*(hp) = (h) + (o)), 0) - -/* - * int bus_space_alloc(bus_space_tag_t t, bus_addr_t rstart, - * bus_addr_t rend, bus_size_t size, bus_size_t align, - * bus_size_t boundary, int flags, bus_addr_t *bpap, - * bus_space_handle_t *bshp); - * - * Allocate a region of bus space. - */ - -#define bus_space_alloc(t, rs, re, s, a, b, f, ap, hp) \ - ((*(t)->pbs_alloc)((t), (rs), (re), (s), (a), (b), (f), (ap), (hp))) - -/* - * int bus_space_free(bus_space_tag_t t, - * bus_space_handle_t bsh, bus_size_t size); - * - * Free a region of bus space. - */ - -#define bus_space_free(t, h, s) \ - ((void)(*(t)->pbs_free)((t), (h), (s))) - -/* - * u_intN_t bus_space_read_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset); - * - * Read a 1, 2, 4, or 8 byte quantity from bus space - * described by tag/handle/offset. - */ - -#define bus_space_read(n,m) \ -static __inline CAT3(u_int,m,_t) \ -CAT(bus_space_read_,n)(bus_space_tag_t tag, bus_space_handle_t bsh, \ - bus_size_t offset) \ -{ \ - return CAT3(in,m,rb)((volatile CAT3(u_int,m,_t) *)(bsh + (offset))); \ -} - -bus_space_read(1,8) -bus_space_read(2,16) -bus_space_read(4,32) -#define bus_space_read_8 !!! bus_space_read_8 unimplemented !!! - -/* - * u_intN_t bus_space_read_stream_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset); - * - * Read a 2, 4, or 8 byte stream quantity from bus space - * described by tag/handle/offset. - */ - -#define bus_space_read_stream(n,m) \ -static __inline CAT3(u_int,m,_t) \ -CAT(bus_space_read_stream_,n)(bus_space_tag_t tag, bus_space_handle_t bsh, \ - bus_size_t offset) \ -{ \ - return CAT(in,m)((volatile CAT3(u_int,m,_t) *)(bsh + (offset))); \ -} - -bus_space_read_stream(2,16) -bus_space_read_stream(4,32) -#define bus_space_read_stream_8 !!! bus_space_read_stream_8 unimplemented !!! - -/* - * void bus_space_read_multi_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * u_intN_t *addr, size_t count); - * - * Read `count' 1, 2, 4, or 8 byte quantities from bus space - * described by tag/handle/offset and copy into buffer provided. - */ - -#define bus_space_read_multi(n,m) \ -static __inline void \ -CAT(bus_space_read_multi_,n)(bus_space_tag_t tag, bus_space_handle_t bsh, \ - bus_size_t offset, CAT3(u_int,m,_t) *addr, size_t count) \ -{ \ - while (count--) \ - *addr++ = CAT(bus_space_read_,n)(tag, bsh, offset); \ -} - -bus_space_read_multi(1,8) -bus_space_read_multi(2,16) -bus_space_read_multi(4,32) -#define bus_space_read_multi_8 !!! bus_space_read_multi_8 not implemented !!! - -#if 0 -/* - * void bus_space_read_multi_stream_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * u_intN_t *addr, size_t count); - * - * Read `count' 2, 4, or 8 byte stream quantities from bus space - * described by tag/handle/offset and copy into buffer provided. - */ - -#define bus_space_read_multi_stream(n,m) \ -static __inline void \ -CAT(bus_space_read_multi_stream_,n)(bus_space_tag_t tag, \ - bus_space_handle_t bsh, \ - bus_size_t offset, CAT3(u_int,m,_t) *addr, size_t count) \ -{ \ - CAT(ins,m)((volatile CAT3(u_int,m,_t) *)(bsh + (offset)), \ - (CAT3(u_int,m,_t) *)addr, (size_t)count); \ -} - -bus_space_read_multi_stream(2,16) -bus_space_read_multi_stream(4,32) -#define bus_space_read_multi_stream_8 \ - !!! bus_space_read_multi_stream_8 not implemented !!! - -/* - * void bus_space_write_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * u_intN_t value); - * - * Write the 1, 2, 4, or 8 byte value `value' to bus space - * described by tag/handle/offset. - */ -#endif - -#define bus_space_write(n,m) \ -static __inline void \ -CAT(bus_space_write_,n)(bus_space_tag_t tag, bus_space_handle_t bsh, \ - bus_size_t offset, CAT3(u_int,m,_t) x) \ -{ \ - CAT3(out,m,rb)((volatile CAT3(u_int,m,_t) *)(bsh + (offset)), x); \ -} - -bus_space_write(1,8) -bus_space_write(2,16) -bus_space_write(4,32) -#define bus_space_write_8 !!! bus_space_write_8 unimplemented !!! - -/* - * void bus_space_write_stream_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * u_intN_t value); - * - * Write the 2, 4, or 8 byte stream value `value' to bus space - * described by tag/handle/offset. - */ - -#define bus_space_write_stream(n,m) \ -static __inline void \ -CAT(bus_space_write_stream_,n)(bus_space_tag_t tag, bus_space_handle_t bsh, \ - bus_size_t offset, CAT3(u_int,m,_t) x) \ -{ \ - CAT(out,m)((volatile CAT3(u_int,m,_t) *)(bsh + (offset)), x); \ -} - -bus_space_write_stream(2,16) -bus_space_write_stream(4,32) -#define bus_space_write_stream_8 !!! bus_space_write_stream_8 unimplemented !!! - -/* - * void bus_space_write_multi_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * const u_intN_t *addr, size_t count); - * - * Write `count' 1, 2, 4, or 8 byte quantities from the buffer - * provided to bus space described by tag/handle/offset. - */ - -#define bus_space_write_multi(n,m) \ -static __inline void \ -CAT(bus_space_write_multi_,n)(bus_space_tag_t tag, bus_space_handle_t bsh, \ - bus_size_t offset, const CAT3(u_int,m,_t) *addr, size_t count) \ -{ \ - while (count--) \ - CAT(bus_space_write_,n)(tag, bsh, offset, *addr++); \ -} - -bus_space_write_multi(1,8) -bus_space_write_multi(2,16) -bus_space_write_multi(4,32) -#define bus_space_write_multi_8 !!! bus_space_write_multi_8 not implemented !!! - -#if 0 -/* - * void bus_space_write_multi_stream_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * const u_intN_t *addr, size_t count); - * - * Write `count' 2, 4, or 8 byte stream quantities from the buffer - * provided to bus space described by tag/handle/offset. - */ - -#define bus_space_write_multi_stream(n,m) \ -static __inline void \ -CAT(bus_space_write_multi_stream_,n)(bus_space_tag_t tag, \ - bus_space_handle_t bsh, \ - bus_size_t offset, const CAT3(u_int,m,_t) *addr, size_t count) \ -{ \ - CAT(outs,m)((volatile CAT3(u_int,m,_t) *)(bsh + (offset)), \ - (CAT3(u_int,m,_t) *)addr, (size_t)count); \ -} - -bus_space_write_multi_stream(2,16) -bus_space_write_multi_stream(4,32) -#define bus_space_write_multi_stream_8 \ - !!! bus_space_write_multi_stream_8 not implemented !!! -#endif - -/* - * void bus_space_read_region_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * u_intN_t *addr, size_t count); - * - * Read `count' 1, 2, 4, or 8 byte quantities from bus space - * described by tag/handle and starting at `offset' and copy into - * buffer provided. - */ -static __inline void bus_space_read_region_1(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int8_t *, size_t); -static __inline void bus_space_read_region_2(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int16_t *, size_t); -static __inline void bus_space_read_region_4(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int32_t *, size_t); - -static __inline void -bus_space_read_region_1(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int8_t *addr; - size_t count; -{ - volatile u_int8_t *s; - - s = (volatile u_int8_t *)(bsh + offset); - while (count--) - *addr++ = *s++; - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_read_region_2(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int16_t *addr; - size_t count; -{ - volatile u_int16_t *s; - - s = (volatile u_int16_t *)(bsh + offset); - while (count--) - __asm__ volatile("lhbrx %0, 0, %1" : - "=r"(*addr++) : "r"(s++)); - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_read_region_4(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int32_t *addr; - size_t count; -{ - volatile u_int32_t *s; - - s = (volatile u_int32_t *)(bsh + offset); - while (count--) - __asm__ volatile("lwbrx %0, 0, %1" : - "=r"(*addr++) : "r"(s++)); - __asm__ volatile("eieio; sync"); -} - -#define bus_space_read_region_8 !!! bus_space_read_region_8 unimplemented !!! - -/* - * void bus_space_read_region_stream_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * u_intN_t *addr, size_t count); - * - * Read `count' 2, 4, or 8 byte stream quantities from bus space - * described by tag/handle and starting at `offset' and copy into - * buffer provided. - */ -static __inline void bus_space_read_region_stream_2(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int16_t *, size_t); -static __inline void bus_space_read_region_stream_4(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int32_t *, size_t); - -static __inline void -bus_space_read_region_stream_2(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int16_t *addr; - size_t count; -{ - volatile u_int16_t *s; - - s = (volatile u_int16_t *)(bsh + offset); - while (count--) - *addr++ = *s++; - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_read_region_stream_4(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int32_t *addr; - size_t count; -{ - volatile u_int32_t *s; - - s = (volatile u_int32_t *)(bsh + offset); - while (count--) - *addr++ = *s++; - __asm__ volatile("eieio; sync"); -} - -#define bus_space_read_region_stream_8 \ - !!! bus_space_read_region_stream_8 unimplemented !!! - -/* - * void bus_space_write_region_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * const u_intN_t *addr, size_t count); - * - * Write `count' 1, 2, 4, or 8 byte quantities from the buffer provided - * to bus space described by tag/handle starting at `offset'. - */ -static __inline void bus_space_write_region_1(bus_space_tag_t, - bus_space_handle_t, bus_size_t, const u_int8_t *, size_t); -static __inline void bus_space_write_region_2(bus_space_tag_t, - bus_space_handle_t, bus_size_t, const u_int16_t *, size_t); -static __inline void bus_space_write_region_4(bus_space_tag_t, - bus_space_handle_t, bus_size_t, const u_int32_t *, size_t); - -static __inline void -bus_space_write_region_1(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - const u_int8_t *addr; - size_t count; -{ - volatile u_int8_t *d; - - d = (volatile u_int8_t *)(bsh + offset); - while (count--) - *d++ = *addr++; - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_write_region_2(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - const u_int16_t *addr; - size_t count; -{ - volatile u_int16_t *d; - - d = (volatile u_int16_t *)(bsh + offset); - while (count--) - __asm__ volatile("sthbrx %0, 0, %1" :: - "r"(*addr++), "r"(d++)); - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_write_region_4(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - const u_int32_t *addr; - size_t count; -{ - volatile u_int32_t *d; - - d = (volatile u_int32_t *)(bsh + offset); - while (count--) - __asm__ volatile("stwbrx %0, 0, %1" :: - "r"(*addr++), "r"(d++)); - __asm__ volatile("eieio; sync"); -} - -#define bus_space_write_region_8 !!! bus_space_write_region_8 unimplemented !!! - -/* - * void bus_space_write_region_stream_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * const u_intN_t *addr, size_t count); - * - * Write `count' 2, 4, or 8 byte stream quantities from the buffer provided - * to bus space described by tag/handle starting at `offset'. - */ -static __inline void bus_space_write_region_stream_2(bus_space_tag_t, - bus_space_handle_t, bus_size_t, const u_int16_t *, size_t); -static __inline void bus_space_write_region_stream_4(bus_space_tag_t, - bus_space_handle_t, bus_size_t, const u_int32_t *, size_t); - -static __inline void -bus_space_write_region_stream_2(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - const u_int16_t *addr; - size_t count; -{ - volatile u_int16_t *d; - - d = (volatile u_int16_t *)(bsh + offset); - while (count--) - *d++ = *addr++; - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_write_region_stream_4(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - const u_int32_t *addr; - size_t count; -{ - volatile u_int32_t *d; - - d = (volatile u_int32_t *)(bsh + offset); - while (count--) - *d++ = *addr++; - __asm__ volatile("eieio; sync"); -} - -#define bus_space_write_region_stream_8 \ - !!! bus_space_write_region_stream_8 unimplemented !!! - -/* - * void bus_space_set_multi_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, u_intN_t val, - * size_t count); - * - * Write the 1, 2, 4, or 8 byte value `val' to bus space described - * by tag/handle/offset `count' times. - */ -static __inline void bus_space_set_multi_1(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int8_t, size_t); -static __inline void bus_space_set_multi_2(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int16_t, size_t); -static __inline void bus_space_set_multi_4(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int32_t, size_t); - -static __inline void -bus_space_set_multi_1(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int8_t val; - size_t count; -{ - volatile u_int8_t *d; - - d = (volatile u_int8_t *)(bsh + offset); - while (count--) - *d = val; - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_set_multi_2(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int16_t val; - size_t count; -{ - volatile u_int16_t *d; - - d = (volatile u_int16_t *)(bsh + offset); - while (count--) - __asm__ volatile("sthbrx %0, 0, %1" :: - "r"(val), "r"(d)); - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_set_multi_4(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int32_t val; - size_t count; -{ - volatile u_int32_t *d; - - d = (volatile u_int32_t *)(bsh + offset); - while (count--) - __asm__ volatile("stwbrx %0, 0, %1" :: - "r"(val), "r"(d)); - __asm__ volatile("eieio; sync"); -} - -#define bus_space_set_multi_8 !!! bus_space_set_multi_8 unimplemented !!! - -/* - * void bus_space_set_multi_stream_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, u_intN_t val, - * size_t count); - * - * Write the 2, 4, or 8 byte stream value `val' to bus space described - * by tag/handle/offset `count' times. - */ -static __inline void bus_space_set_multi_stream_2(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int16_t, size_t); -static __inline void bus_space_set_multi_stream_4(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int32_t, size_t); - -static __inline void -bus_space_set_multi_stream_2(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int16_t val; - size_t count; -{ - volatile u_int16_t *d; - - d = (volatile u_int16_t *)(bsh + offset); - while (count--) - *d = val; - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_set_multi_stream_4(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int32_t val; - size_t count; -{ - volatile u_int32_t *d; - - d = (volatile u_int32_t *)(bsh + offset); - while (count--) - *d = val; - __asm__ volatile("eieio; sync"); -} - -#define bus_space_set_multi_stream_8 \ - !!! bus_space_set_multi_stream_8 unimplemented !!! - -/* - * void bus_space_set_region_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, u_intN_t val, - * size_t count); - * - * Write `count' 1, 2, 4, or 8 byte value `val' to bus space described - * by tag/handle starting at `offset'. - */ -static __inline void bus_space_set_region_1(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int8_t, size_t); -static __inline void bus_space_set_region_2(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int16_t, size_t); -static __inline void bus_space_set_region_4(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int32_t, size_t); - -static __inline void -bus_space_set_region_1(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int8_t val; - size_t count; -{ - volatile u_int8_t *d; - - d = (volatile u_int8_t *)(bsh + offset); - while (count--) - *d++ = val; - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_set_region_2(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int16_t val; - size_t count; -{ - volatile u_int16_t *d; - - d = (volatile u_int16_t *)(bsh + offset); - while (count--) - __asm__ volatile("sthbrx %0, 0, %1" :: - "r"(val), "r"(d++)); - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_set_region_4(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int32_t val; - size_t count; -{ - volatile u_int32_t *d; - - d = (volatile u_int32_t *)(bsh + offset); - while (count--) - __asm__ volatile("stwbrx %0, 0, %1" :: - "r"(val), "r"(d++)); - __asm__ volatile("eieio; sync"); -} - -#define bus_space_set_region_8 !!! bus_space_set_region_8 unimplemented !!! - -/* - * void bus_space_set_region_stream_N(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, u_intN_t val, - * size_t count); - * - * Write `count' 2, 4, or 8 byte stream value `val' to bus space described - * by tag/handle starting at `offset'. - */ -static __inline void bus_space_set_region_stream_2(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int16_t, size_t); -static __inline void bus_space_set_region_stream_4(bus_space_tag_t, - bus_space_handle_t, bus_size_t, u_int32_t, size_t); - - -static __inline void -bus_space_set_region_stream_2(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int16_t val; - size_t count; -{ - volatile u_int16_t *d; - - d = (volatile u_int16_t *)(bsh + offset); - while (count--) - *d++ = val; - __asm__ volatile("eieio; sync"); -} - -static __inline void -bus_space_set_region_stream_4(tag, bsh, offset, val, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int32_t val; - size_t count; -{ - volatile u_int32_t *d; - - d = (volatile u_int32_t *)(bsh + offset); - while (count--) - *d++ = val; - __asm__ volatile("eieio; sync"); -} - -#define bus_space_set_region_stream_8 \ - !!! bus_space_set_region_stream_8 unimplemented !!! - -/* - * void bus_space_copy_N(bus_space_tag_t tag, - * bus_space_handle_t bsh1, bus_size_t off1, - * bus_space_handle_t bsh2, bus_size_t off2, - * size_t count); - * - * Copy `count' 1, 2, 4, or 8 byte values from bus space starting - * at tag/bsh1/off1 to bus space starting at tag/bsh2/off2. - */ - -static __inline void bus_space_copy_1(bus_space_tag_t, - bus_space_handle_t, bus_size_t, bus_space_handle_t, - bus_size_t, size_t); -static __inline void bus_space_copy_2(bus_space_tag_t, - bus_space_handle_t, bus_size_t, bus_space_handle_t, - bus_size_t, size_t); -static __inline void bus_space_copy_4(bus_space_tag_t, - bus_space_handle_t, bus_size_t, bus_space_handle_t, - bus_size_t, size_t); - -static __inline void -bus_space_copy_1(t, h1, o1, h2, o2, c) - bus_space_tag_t t; - bus_space_handle_t h1; - bus_size_t o1; - bus_space_handle_t h2; - bus_size_t o2; - size_t c; -{ - bus_addr_t addr1 = h1 + o1; - bus_addr_t addr2 = h2 + o2; - - if (addr1 >= addr2) { - /* src after dest: copy forward */ - for (; c != 0; c--, addr1++, addr2++) - *(volatile u_int8_t *)(addr2) = - *(volatile u_int8_t *)(addr1); - } else { - /* dest after src: copy backwards */ - for (addr1 += (c - 1), addr2 += (c - 1); - c != 0; c--, addr1--, addr2--) - *(volatile u_int8_t *)(addr2) = - *(volatile u_int8_t *)(addr1); - } -} - -static __inline void -bus_space_copy_2(t, h1, o1, h2, o2, c) - bus_space_tag_t t; - bus_space_handle_t h1; - bus_size_t o1; - bus_space_handle_t h2; - bus_size_t o2; - size_t c; -{ - bus_addr_t addr1 = h1 + o1; - bus_addr_t addr2 = h2 + o2; - - if (addr1 >= addr2) { - /* src after dest: copy forward */ - for (; c != 0; c--, addr1 += 2, addr2 += 2) - *(volatile u_int16_t *)(addr2) = - *(volatile u_int16_t *)(addr1); - } else { - /* dest after src: copy backwards */ - for (addr1 += 2 * (c - 1), addr2 += 2 * (c - 1); - c != 0; c--, addr1 -= 2, addr2 -= 2) - *(volatile u_int16_t *)(addr2) = - *(volatile u_int16_t *)(addr1); - } -} - -static __inline void -bus_space_copy_4(t, h1, o1, h2, o2, c) - bus_space_tag_t t; - bus_space_handle_t h1; - bus_size_t o1; - bus_space_handle_t h2; - bus_size_t o2; - size_t c; -{ - bus_addr_t addr1 = h1 + o1; - bus_addr_t addr2 = h2 + o2; - - if (addr1 >= addr2) { - /* src after dest: copy forward */ - for (; c != 0; c--, addr1 += 4, addr2 += 4) - *(volatile u_int32_t *)(addr2) = - *(volatile u_int32_t *)(addr1); - } else { - /* dest after src: copy backwards */ - for (addr1 += 4 * (c - 1), addr2 += 4 * (c - 1); - c != 0; c--, addr1 -= 4, addr2 -= 4) - *(volatile u_int32_t *)(addr2) = - *(volatile u_int32_t *)(addr1); - } -} - -#define bus_space_copy_8 !!! bus_space_copy_8 unimplemented !!! - -/* - * Bus read/write barrier methods. - * - * void bus_space_barrier(bus_space_tag_t tag, - * bus_space_handle_t bsh, bus_size_t offset, - * bus_size_t len, int flags); - * - */ -#define bus_space_barrier(t, h, o, l, f) \ - ((void)((void)(t), (void)(h), (void)(o), (void)(l), (void)(f))) -#define BUS_SPACE_BARRIER_READ 0x01 /* force read barrier */ -#define BUS_SPACE_BARRIER_WRITE 0x02 /* force write barrier */ - -/* - * Bus DMA methods. - */ - -/* - * Flags used in various bus DMA methods. - */ -#define BUS_DMA_WAITOK 0x000 /* safe to sleep (pseudo-flag) */ -#define BUS_DMA_NOWAIT 0x001 /* not safe to sleep */ -#define BUS_DMA_ALLOCNOW 0x002 /* perform resource allocation now */ -#define BUS_DMA_COHERENT 0x008 /* hint: map memory DMA coherent */ -#define BUS_DMA_BUS1 0x010 /* placeholders for bus functions... */ -#define BUS_DMA_BUS2 0x020 -#define BUS_DMA_BUS3 0x040 -#define BUS_DMA_BUS4 0x080 -#define BUS_DMA_READ 0x100 /* mapping is device -> memory only */ -#define BUS_DMA_WRITE 0x200 /* mapping is memory -> device only */ -#define BUS_DMA_STREAMING 0x400 /* hint: sequential, unidirectional */ -#define BUS_DMA_ZERO 0x800 /* zero memory in dmamem_alloc */ - -/* Forwards needed by prototypes below. */ -struct mbuf; -struct uio; - -#define BUS_DMASYNC_PREREAD 0x01 -#define BUS_DMASYNC_POSTREAD 0x02 -#define BUS_DMASYNC_PREWRITE 0x04 -#define BUS_DMASYNC_POSTWRITE 0x08 - -typedef struct powerpc_bus_dma_tag *bus_dma_tag_t; -typedef struct powerpc_bus_dmamap *bus_dmamap_t; - -/* - * bus_dma_segment_t - * - * Describes a single contiguous DMA transaction. Values - * are suitable for programming into DMA registers. - */ -struct powerpc_bus_dma_segment { - bus_addr_t ds_addr; /* DMA address */ - bus_size_t ds_len; /* length of transfer */ -}; -typedef struct powerpc_bus_dma_segment bus_dma_segment_t; - -/* - * bus_dma_tag_t - * - * A machine-dependent opaque type describing the implementation of - * DMA for a given bus. - */ - -struct powerpc_bus_dma_tag { - /* - * The `bounce threshold' is checked while we are loading - * the DMA map. If the physical address of the segment - * exceeds the threshold, an error will be returned. The - * caller can then take whatever action is necessary to - * bounce the transfer. If this value is 0, it will be - * ignored. - */ - bus_addr_t _bounce_thresh; - - /* - * DMA mapping methods. - */ - int (*_dmamap_create)(bus_dma_tag_t, bus_size_t, int, - bus_size_t, bus_size_t, int, bus_dmamap_t *); - void (*_dmamap_destroy)(bus_dma_tag_t, bus_dmamap_t); - int (*_dmamap_load)(bus_dma_tag_t, bus_dmamap_t, void *, - bus_size_t, struct proc *, int); - int (*_dmamap_load_mbuf)(bus_dma_tag_t, bus_dmamap_t, - struct mbuf *, int); - int (*_dmamap_load_uio)(bus_dma_tag_t, bus_dmamap_t, - struct uio *, int); - int (*_dmamap_load_raw)(bus_dma_tag_t, bus_dmamap_t, - bus_dma_segment_t *, int, bus_size_t, int); - void (*_dmamap_unload)(bus_dma_tag_t, bus_dmamap_t); - void (*_dmamap_sync)(bus_dma_tag_t, bus_dmamap_t, - bus_addr_t, bus_size_t, int); - - /* - * DMA memory utility functions. - */ - int (*_dmamem_alloc)(bus_dma_tag_t, bus_size_t, bus_size_t, - bus_size_t, bus_dma_segment_t *, int, int *, int); - void (*_dmamem_free)(bus_dma_tag_t, - bus_dma_segment_t *, int); - int (*_dmamem_map)(bus_dma_tag_t, bus_dma_segment_t *, - int, size_t, caddr_t *, int); - void (*_dmamem_unmap)(bus_dma_tag_t, caddr_t, size_t); - paddr_t (*_dmamem_mmap)(bus_dma_tag_t, bus_dma_segment_t *, - int, off_t, int, int); -}; - -#define bus_dmamap_create(t, s, n, m, b, f, p) \ - (*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p)) -#define bus_dmamap_destroy(t, p) \ - (*(t)->_dmamap_destroy)((t), (p)) -#define bus_dmamap_load(t, m, b, s, p, f) \ - (*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f)) -#define bus_dmamap_load_mbuf(t, m, b, f) \ - (*(t)->_dmamap_load_mbuf)((t), (m), (b), (f)) -#define bus_dmamap_load_uio(t, m, u, f) \ - (*(t)->_dmamap_load_uio)((t), (m), (u), (f)) -#define bus_dmamap_load_raw(t, m, sg, n, s, f) \ - (*(t)->_dmamap_load_raw)((t), (m), (sg), (n), (s), (f)) -#define bus_dmamap_unload(t, p) \ - (*(t)->_dmamap_unload)((t), (p)) -#define bus_dmamap_sync(t, p, a, l, o) \ - (void)((t)->_dmamap_sync ? \ - (*(t)->_dmamap_sync)((t), (p), (a), (l), (o)) : (void)0) - -#define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \ - (*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f)) -#define bus_dmamem_free(t, sg, n) \ - (*(t)->_dmamem_free)((t), (sg), (n)) -#define bus_dmamem_map(t, sg, n, s, k, f) \ - (*(t)->_dmamem_map)((t), (sg), (n), (s), (k), (f)) -#define bus_dmamem_unmap(t, k, s) \ - (*(t)->_dmamem_unmap)((t), (k), (s)) -#define bus_dmamem_mmap(t, sg, n, o, p, f) \ - (*(t)->_dmamem_mmap)((t), (sg), (n), (o), (p), (f)) - -/* - * bus_dmamap_t - * - * Describes a DMA mapping. - */ -struct powerpc_bus_dmamap { - /* - * PRIVATE MEMBERS: not for use by machine-independent code. - */ - bus_size_t _dm_size; /* largest DMA transfer mappable */ - int _dm_segcnt; /* number of segs this map can map */ - bus_size_t _dm_maxsegsz; /* largest possible segment */ - bus_size_t _dm_boundary; /* don't cross this */ - bus_addr_t _dm_bounce_thresh; /* bounce threshold; see tag */ - int _dm_flags; /* misc. flags */ - - void *_dm_cookie; /* cookie for bus-specific functions */ - - /* - * PUBLIC MEMBERS: these are used by machine-independent code. - */ - bus_size_t dm_mapsize; /* size of the mapping */ - int dm_nsegs; /* # valid segments in mapping */ - bus_dma_segment_t dm_segs[1]; /* segments; variable length */ -}; - -#ifdef _POWERPC_BUS_DMA_PRIVATE -int _bus_dmamap_create(bus_dma_tag_t, bus_size_t, int, bus_size_t, - bus_size_t, int, bus_dmamap_t *); -void _bus_dmamap_destroy(bus_dma_tag_t, bus_dmamap_t); -int _bus_dmamap_load(bus_dma_tag_t, bus_dmamap_t, void *, - bus_size_t, struct proc *, int); -int _bus_dmamap_load_mbuf(bus_dma_tag_t, bus_dmamap_t, - struct mbuf *, int); -int _bus_dmamap_load_uio(bus_dma_tag_t, bus_dmamap_t, - struct uio *, int); -int _bus_dmamap_load_raw(bus_dma_tag_t, bus_dmamap_t, - bus_dma_segment_t *, int, bus_size_t, int); -void _bus_dmamap_unload(bus_dma_tag_t, bus_dmamap_t); -void _bus_dmamap_sync(bus_dma_tag_t, bus_dmamap_t, bus_addr_t, - bus_size_t, int); - -int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size, - bus_size_t alignment, bus_size_t boundary, - bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags); -void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs, - int nsegs); -int _bus_dmamem_map(bus_dma_tag_t tag, bus_dma_segment_t *segs, - int nsegs, size_t size, caddr_t *kvap, int flags); -void _bus_dmamem_unmap(bus_dma_tag_t tag, caddr_t kva, - size_t size); -paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs, - int nsegs, off_t off, int prot, int flags); - -int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size, - bus_size_t alignment, bus_size_t boundary, - bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags, - paddr_t low, paddr_t high); -#endif /* _POWERPC_BUS_DMA_PRIVATE */ -#endif /* _MACHINE_BUS_MI_H_ */ diff --git a/sys/arch/mvmeppc/include/cdefs.h b/sys/arch/mvmeppc/include/cdefs.h deleted file mode 100644 index 06151ac459c..00000000000 --- a/sys/arch/mvmeppc/include/cdefs.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: cdefs.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/cdefs.h> diff --git a/sys/arch/mvmeppc/include/conf.h b/sys/arch/mvmeppc/include/conf.h deleted file mode 100644 index f5fefee9599..00000000000 --- a/sys/arch/mvmeppc/include/conf.h +++ /dev/null @@ -1,7 +0,0 @@ -/* $OpenBSD: conf.h,v 1.1 2002/06/08 15:47:33 miod Exp $ */ - -#include <sys/conf.h> - -#define mmread mmrw -#define mmwrite mmrw -cdev_decl(mm); diff --git a/sys/arch/mvmeppc/include/cpu.h b/sys/arch/mvmeppc/include/cpu.h deleted file mode 100644 index 92e258169da..00000000000 --- a/sys/arch/mvmeppc/include/cpu.h +++ /dev/null @@ -1,68 +0,0 @@ -/* $OpenBSD: cpu.h,v 1.8 2004/01/29 21:28:56 miod Exp $ */ -/* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ - -/* - * Copyright (C) 1995, 1996 Wolfgang Solfrank. - * Copyright (C) 1995, 1996 TooLs GmbH. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#ifndef _MACHINE_CPU_H_ -#define _MACHINE_CPU_H_ - -#include <powerpc/cpu.h> - -void install_extint(void (*)(void)); -void nvram_map(void); - -/* - * CPU Configuration registers (in ISA space) - */ - -#define MVME_CPUCONF_REG 0x0800 -#define MVME_FEATURE_REG 0x0802 -#define MVME_STATUS_REG 0x0803 -#define MVME_SEVENSEG_REG 0x08c0 - -/* feature bits */ -#define MVME_FEATURE_SCC 0x40 -#define MVME_FEATURE_PMC2 0x20 -#define MVME_FEATURE_PMC1 0x10 -#define MVME_FEATURE_VME 0x08 -#define MVME_FEATURE_GFX 0x04 -#define MVME_FEATURE_LAN 0x02 -#define MVME_FEATURE_SCSI 0x01 - -/* status values */ -#define MVMETYPE_RESERVED 0xfa -#define MVMETYPE_2600_712 0xfb -#define MVMETYPE_2600_761 0xfc -#define MVMETYPE_3600_712 0xfd -#define MVMETYPE_3600_761 0xfe -#define MVMETYPE_1600 0xff - -#endif /* _MACHINE_CPU_H_ */ diff --git a/sys/arch/mvmeppc/include/db_machdep.h b/sys/arch/mvmeppc/include/db_machdep.h deleted file mode 100644 index 93cfa8077ec..00000000000 --- a/sys/arch/mvmeppc/include/db_machdep.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: db_machdep.h,v 1.8 2002/06/08 16:09:42 miod Exp $ */ - -#include <powerpc/db_machdep.h> diff --git a/sys/arch/mvmeppc/include/disklabel.h b/sys/arch/mvmeppc/include/disklabel.h deleted file mode 100644 index d51cfeae38b..00000000000 --- a/sys/arch/mvmeppc/include/disklabel.h +++ /dev/null @@ -1,40 +0,0 @@ -/* $OpenBSD: disklabel.h,v 1.12 2007/06/20 18:15:45 deraadt Exp $ */ - -/* - * Copyright (c) 1994 Christopher G. Demetriou - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Christopher G. Demetriou. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef _MACHINE_DISKLABEL_H_ -#define _MACHINE_DISKLABEL_H_ - -#define LABELSECTOR 1 /* sector containing label */ -#define LABELOFFSET 0 /* offset of label in sector */ -#define MAXPARTITIONS 16 /* number of partitions */ - -#endif /* _MACHINE_DISKLABEL_H_ */ diff --git a/sys/arch/mvmeppc/include/endian.h b/sys/arch/mvmeppc/include/endian.h deleted file mode 100644 index bdece7fa25f..00000000000 --- a/sys/arch/mvmeppc/include/endian.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: endian.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/endian.h> diff --git a/sys/arch/mvmeppc/include/exec.h b/sys/arch/mvmeppc/include/exec.h deleted file mode 100644 index 0e8fc9334b2..00000000000 --- a/sys/arch/mvmeppc/include/exec.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: exec.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/exec.h> diff --git a/sys/arch/mvmeppc/include/fenv.h b/sys/arch/mvmeppc/include/fenv.h deleted file mode 100644 index c7434bec406..00000000000 --- a/sys/arch/mvmeppc/include/fenv.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: fenv.h,v 1.1 2011/04/28 18:05:39 martynas Exp $ */ - -#include <powerpc/fenv.h> diff --git a/sys/arch/mvmeppc/include/float.h b/sys/arch/mvmeppc/include/float.h deleted file mode 100644 index af76ee48ac2..00000000000 --- a/sys/arch/mvmeppc/include/float.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: float.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/float.h> diff --git a/sys/arch/mvmeppc/include/fpu.h b/sys/arch/mvmeppc/include/fpu.h deleted file mode 100644 index d0687e52823..00000000000 --- a/sys/arch/mvmeppc/include/fpu.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: fpu.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/fpu.h> diff --git a/sys/arch/mvmeppc/include/frame.h b/sys/arch/mvmeppc/include/frame.h deleted file mode 100644 index 9655be8924f..00000000000 --- a/sys/arch/mvmeppc/include/frame.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: frame.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/frame.h> diff --git a/sys/arch/mvmeppc/include/ieee.h b/sys/arch/mvmeppc/include/ieee.h deleted file mode 100644 index 4dd7dabfe58..00000000000 --- a/sys/arch/mvmeppc/include/ieee.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: ieee.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/ieee.h> diff --git a/sys/arch/mvmeppc/include/ieeefp.h b/sys/arch/mvmeppc/include/ieeefp.h deleted file mode 100644 index 23e16044857..00000000000 --- a/sys/arch/mvmeppc/include/ieeefp.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: ieeefp.h,v 1.3 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/ieeefp.h> diff --git a/sys/arch/mvmeppc/include/internal_types.h b/sys/arch/mvmeppc/include/internal_types.h deleted file mode 100644 index 9622f58539c..00000000000 --- a/sys/arch/mvmeppc/include/internal_types.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: internal_types.h,v 1.1 2002/04/24 21:53:11 espie Exp $ */ -/* Public domain */ -#include <powerpc/internal_types.h> diff --git a/sys/arch/mvmeppc/include/intr.h b/sys/arch/mvmeppc/include/intr.h deleted file mode 100644 index 2908fa17f12..00000000000 --- a/sys/arch/mvmeppc/include/intr.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: intr.h,v 1.3 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/intr.h> diff --git a/sys/arch/mvmeppc/include/ipkdb.h b/sys/arch/mvmeppc/include/ipkdb.h deleted file mode 100644 index 038d6a75c8f..00000000000 --- a/sys/arch/mvmeppc/include/ipkdb.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: ipkdb.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/ipkdb.h> diff --git a/sys/arch/mvmeppc/include/kbio.h b/sys/arch/mvmeppc/include/kbio.h deleted file mode 100644 index 58664d1dffa..00000000000 --- a/sys/arch/mvmeppc/include/kbio.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: kbio.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/kbio.h> diff --git a/sys/arch/mvmeppc/include/kcore.h b/sys/arch/mvmeppc/include/kcore.h deleted file mode 100644 index 1a5c90d491a..00000000000 --- a/sys/arch/mvmeppc/include/kcore.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: kcore.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/kcore.h> diff --git a/sys/arch/mvmeppc/include/limits.h b/sys/arch/mvmeppc/include/limits.h deleted file mode 100644 index 115340bf365..00000000000 --- a/sys/arch/mvmeppc/include/limits.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: limits.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/limits.h> diff --git a/sys/arch/mvmeppc/include/loadfile_machdep.h b/sys/arch/mvmeppc/include/loadfile_machdep.h deleted file mode 100644 index 8b8c93ac961..00000000000 --- a/sys/arch/mvmeppc/include/loadfile_machdep.h +++ /dev/null @@ -1,52 +0,0 @@ -/* $OpenBSD: loadfile_machdep.h,v 1.2 2008/06/26 05:42:12 ray Exp $ */ -/* $NetBSD: loadfile_machdep.h,v 1.1 1999/04/29 03:17:12 tsubai Exp $ */ - -/*- - * Copyright (c) 1999 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Christos Zoulas. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#define BOOT_ELF -#ifndef ELFSIZE -#define ELFSIZE 32 -#endif - -#define LOAD_KERNEL (LOAD_ALL & ~LOAD_TEXTA) -#define COUNT_KERNEL (COUNT_ALL & ~COUNT_TEXTA) - -#define LOADADDR(a) (((u_long)(a)) + offset) -#define ALIGNENTRY(a) ((u_long)(a)) -#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c)) -#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c)) -#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c)) -#define WARN(a) (void)(printf a, \ - printf((errno ? ": %s\n" : "\n"), \ - strerror(errno))) -#define PROGRESS(a) (void) printf a -#define ALLOC(a) (void *)alloc(a) -#define FREE(a, b) free(a) -#define OKMAGIC(a) ((a) == OMAGIC) diff --git a/sys/arch/mvmeppc/include/param.h b/sys/arch/mvmeppc/include/param.h deleted file mode 100644 index e10f2bae165..00000000000 --- a/sys/arch/mvmeppc/include/param.h +++ /dev/null @@ -1,51 +0,0 @@ -/* $OpenBSD: param.h,v 1.5 2005/09/12 23:05:05 miod Exp $ */ -/* $NetBSD: param.h,v 1.1 1996/09/30 16:34:28 ws Exp $ */ - -/*- - * Copyright (C) 1995, 1996 Wolfgang Solfrank. - * Copyright (C) 1995, 1996 TooLs GmbH. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifdef _KERNEL -#ifndef _LOCORE -#include <machine/cpu.h> -#endif /* _LOCORE */ -#endif - -#include <powerpc/param.h> - -/* - * Machine dependent constants for PowerPC (32-bit only currently) - */ -#define MACHINE "mvmeppc" -#define _MACHINE mvmeppc - -#define KERNBASE 0x100000 - -#define MSGBUFSIZE (NBPG*2) diff --git a/sys/arch/mvmeppc/include/pcb.h b/sys/arch/mvmeppc/include/pcb.h deleted file mode 100644 index 308c71edaf5..00000000000 --- a/sys/arch/mvmeppc/include/pcb.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: pcb.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/pcb.h> diff --git a/sys/arch/mvmeppc/include/pio.h b/sys/arch/mvmeppc/include/pio.h deleted file mode 100644 index 71110b885c1..00000000000 --- a/sys/arch/mvmeppc/include/pio.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: pio.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/pio.h> diff --git a/sys/arch/mvmeppc/include/pmap.h b/sys/arch/mvmeppc/include/pmap.h deleted file mode 100644 index 76b1223f6ca..00000000000 --- a/sys/arch/mvmeppc/include/pmap.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: pmap.h,v 1.7 2005/11/07 02:19:46 brad Exp $ */ - -#include <powerpc/pmap.h> diff --git a/sys/arch/mvmeppc/include/powerpc.h b/sys/arch/mvmeppc/include/powerpc.h deleted file mode 100644 index 2505e197b5e..00000000000 --- a/sys/arch/mvmeppc/include/powerpc.h +++ /dev/null @@ -1,96 +0,0 @@ -/* $OpenBSD: powerpc.h,v 1.5 2005/12/17 07:31:26 miod Exp $ */ -/* $NetBSD: powerpc.h,v 1.1 1996/09/30 16:34:30 ws Exp $ */ - -/* - * Copyright (C) 1996 Wolfgang Solfrank. - * Copyright (C) 1996 TooLs GmbH. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#ifndef _MACHINE_POWERPC_H_ -#define _MACHINE_POWERPC_H_ - -struct mem_region { - vaddr_t start; - vsize_t size; -}; - -void mem_regions(struct mem_region **, struct mem_region **); - -/* - * These two functions get used solely in boot() in machdep.c. - * - * Not sure whether boot itself should be implementation dependent instead. XXX - */ -typedef void (exit_f)(void) /*__attribute__((__noreturn__))*/ ; -typedef void (boot_f)(char *bootspec) /* __attribute__((__noreturn__))*/ ; -typedef void (vmon_f)(void); - -typedef void (mem_regions_f)(struct mem_region **memp, - struct mem_region **availp); - -/* firmware interface. - * regardless of type of firmware used several items - * are need from firmware to boot up. - * these include: - * memory information - * vmsetup for firmware calls. - * default character print mechanism ??? - * firmware exit (return) - * firmware boot (reset) - * vmon - tell firmware the bsd vm is active. - */ - -struct firmware { - mem_regions_f *mem_regions; - exit_f *exit; - boot_f *boot; - vmon_f *vmon; - -#ifdef FW_HAS_PUTC - boot_f *putc; -#endif -}; -extern struct firmware *fw; - -/* Clock callbacks */ - -typedef unsigned long (tps_t)(void); -typedef int (clock_read_t)(int *sec, int *min, int *hour, int *day, - int *mon, int *yr); -typedef int (clock_write_t)(int sec, int min, int hour, int day, - int mon, int yr); -typedef int (time_read_t)(u_int32_t *sec); -typedef int (time_write_t)(u_int32_t sec); - -extern tps_t *tps; -extern clock_read_t *clock_read; -extern clock_write_t *clock_write; -extern time_read_t *time_read; -extern time_write_t *time_write; - -#endif /* _MACHINE_POWERPC_H_ */ diff --git a/sys/arch/mvmeppc/include/proc.h b/sys/arch/mvmeppc/include/proc.h deleted file mode 100644 index d5bf66404d5..00000000000 --- a/sys/arch/mvmeppc/include/proc.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: proc.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/proc.h> diff --git a/sys/arch/mvmeppc/include/profile.h b/sys/arch/mvmeppc/include/profile.h deleted file mode 100644 index 1506c84e038..00000000000 --- a/sys/arch/mvmeppc/include/profile.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: profile.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/profile.h> diff --git a/sys/arch/mvmeppc/include/prom.h b/sys/arch/mvmeppc/include/prom.h deleted file mode 100644 index 62c48a3ea78..00000000000 --- a/sys/arch/mvmeppc/include/prom.h +++ /dev/null @@ -1,367 +0,0 @@ -/* $OpenBSD: prom.h,v 1.6 2011/03/23 16:54:36 pirofti Exp $ */ -/* - * Copyright (c) 2001 Steve Murphree, Jr. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#ifndef _MACHINE_PROM_H_ -#define _MACHINE_PROM_H_ - -#define MVMEPROM_INCHR 0x0000 -#define MVMEPROM_INSTAT 0x0001 -#define MVMEPROM_INLN 0x0002 -#define MVMEPROM_READSTR 0x0003 -#define MVMEPROM_READLN 0x0004 -#define MVMEPROM_CHKBRK 0x0005 -#define MVMEPROM_DSKRD 0x0010 -#define MVMEPROM_DSKWR 0x0011 -#define MVMEPROM_DSKCFIG 0x0012 -#define MVMEPROM_DSKFMT 0x0014 -#define MVMEPROM_DSKCTRL 0x0015 -#define MVMEPROM_NETRD 0x0018 -#define MVMEPROM_NETWR 0x0019 -#define MVMEPROM_NETCFIG 0x001a -#define MVMEPROM_NETFOPEN 0x001b -#define MVMEPROM_NETFREAD 0x001c -#define MVMEPROM_NETCTRL 0x001d -#define MVMEPROM_OUTCHR 0x0020 -#define MVMEPROM_OUTSTR 0x0021 -#define MVMEPROM_OUTLN 0x0022 -#define MVMEPROM_WRITE 0x0023 -#define MVMEPROM_WRITELN 0x0024 -#define MVMEPROM_WRITDLN 0x0025 -#define MVMEPROM_PCRLF 0x0026 -#define MVMEPROM_ERASLN 0x0027 -#define MVMEPROM_WRITD 0x0028 -#define MVMEPROM_SNDBRK 0x0029 -#define MVMEPROM_DELAY 0x0043 -#define MVMEPROM_RTC_TM 0x0050 -#define MVMEPROM_RTC_DT 0x0051 -#define MVMEPROM_RTC_DSP 0x0052 -#define MVMEPROM_RTC_RD 0x0053 -#define MVMEPROM_REDIR 0x0060 -#define MVMEPROM_REDIR_I 0x0061 -#define MVMEPROM_REDIR_O 0x0062 -#define MVMEPROM_EXIT 0x0063 -#define MVMEPROM_RETURN MVMEPROM_EXIT -#define MVMEPROM_BINDEC 0x0064 -#define MVMEPROM_CHANGEV 0x0067 -#define MVMEPROM_STRCMP 0x0068 -#define MVMEPROM_MUL32 0x0069 -#define MVMEPROM_DIV32 0x006a -#define MVMEPROM_CHKSUM 0x006b -#define MVMEPROM_BRD_ID 0x0070 -#define MVMEPROM_ENVIRON 0x0071 -#define MVMEPROM_PFLASH 0x0073 -#define MVMEPROM_DIAGFCN 0x0074 -#define MVMEPROM_SIOPEPS 0x0090 -#define MVMEPROM_FORKMPU 0x0100 -#define MVMEPROM_FORKMPUR 0x0101 -#define MVMEPROM_IDELMPU 0x0110 -#define MVMEPROM_IOINQ 0x0120 -#define MVMEPROM_IOINFORM 0x0124 -#define MVMEPROM_IOCONFIG 0x0128 -#define MVMEPROM_IODELETE 0x012c -#define MVMEPROM_SYMBOLTA 0x0130 -#define MVMEPROM_SYMBOLTD 0x0131 - -#define NETCTRLCMD_GETETHER 1 -#define ENVIRONCMD_WRITE 1 -#define ENVIRONCMD_READ 2 -#define ENVIRONTYPE_EOL 0 -#define ENVIRONTYPE_START 1 -#define ENVIRONTYPE_DISKBOOT 2 -#define ENVIRONTYPE_ROMBOOT 3 -#define ENVIRONTYPE_NETBOOT 4 -#define ENVIRONTYPE_MEMSIZE 5 - -#define NETSTATUS_SUCCESS 0x00 -#define NETSTATUS_MISALNG 0x01 -#define NETSTATUS_BUFFLMT 0x02 -#define NETSTATUS_BADLEN 0x03 -#define NETSTATUS_INITABRT 0x04 -#define NETSTATUS_TXABRT 0x05 -#define NETSTATUS_PCIADDRERR 0x06 -#define NETSTATUS_NOPORT 0x07 -#define NETSTATUS_ILLIPL 0x08 -#define NETSTATUS_USERABRT 0x09 -#define NETSTATUS_TIMEOUT 0x0A -#define NETSTATUS_SYSERR 0x10 -#define NETSTATUS_TXBABBLE 0x11 -#define NETSTATUS_TXCOL 0x12 -#define NETSTATUS_TXSTOPPED 0x13 -#define NETSTATUS_TXUNDERFL 0x14 -#define NETSTATUS_TXLATECOL 0x15 -#define NETSTATUS_TXLOSTCARR 0x16 -#define NETSTATUS_TXLINKFAIL 0x17 -#define NETSTATUS_TXNOCARR 0x18 -#define NETSTATUS_TXTOPHY 0x19 -#define NETSTATUS_RXCRCERR 0x20 -#define NETSTATUS_RXOVERFL 0x21 -#define NETSTATUS_RXFRAMEERR 0x22 -#define NETSTATUS_RXLDFNS 0x23 -#define NETSTATUS_RXFDCOL 0x24 -#define NETSTATUS_RXRUNTFRAME 0x25 -#define NETSTATUS_TXTONORM 0x28 -#define NETSTATUS_TXTOSETUP 0x29 -#define NETSTATUS_SROMERR 0x30 - -#define NETCTRLCMD_INIT 0 -#define NETCTRLCMD_GETETHER 1 -#define NETCTRLCMD_TX 2 -#define NETCTRLCMD_RX 3 -#define NETCTRLCMD_FLUSH 4 -#define NETCTRLCMD_RESET 5 - -#define NETCFG_FLAG_RD 0 -#define NETCFG_FLAG_WR 1 -#define NETCFG_FLAG_WRNV 2 - -#ifndef LOCORE -extern struct bugenviron bugenviron; -extern int bugenv_init; - -#define BUG_ENV_END 0 -#define BUG_STARTUP_PARAM 1 -struct bug_startup { - char s_mode; - char s_menu; - char s_remotestart; - char s_probe; - char s_negsysfail; - char s_resetscsi; - char s_nocfblk; - char s_scsisync; -}; - -#define BUG_AUTOBOOT_INFO 2 -struct bug_autoboot { - char b_enable; - char b_poweruponly; - char b_clun; - char b_dlun; - char b_delay; - char b_string[22]; /* 0x15 + 0x1 */ -}; - -#define BUG_ROMBOOT_INFO 3 -struct bug_romboot { - char r_enable; - char r_poweruponly; - char r_bootvme; - char r_delay; - unsigned r_start; - unsigned r_end; -}; - -#define BUG_NETBOOT_INFO 4 -struct bug_netboot { - char n_enable; - char n_poweruponly; - char n_clun; - char n_dlun; - char n_delay; - char *n_param; -}; - -#define BUG_MEMORY_INFO 5 -struct bug_memory { - char m_sizeenable; - unsigned m_start; - unsigned m_end; -}; - -struct bugenviron { - struct bug_startup s; - struct bug_autoboot b; - struct bug_romboot r; - struct bug_netboot n; - struct bug_memory m; -}; - -#define bug_localmemsize() (bugenviron.m.m_end - bugenviron.m.m_start) -#define bug_localmemstart() (bugenviron.m.m_start) -#define bug_localmemend() (bugenviron.m.m_end) - -struct mvmeprom_netio { - u_char clun; - u_char dlun; - u_short status; - void *addr; - u_long tlen; - u_long offset; - u_long ttime; - u_long tbytes; - char filename[64]; -}; - -struct mvmeprom_netfopen { - u_char clun; - u_char dlun; - u_short status; - char filename[64]; -}; - -struct mvmeprom_netfread { - u_char clun; - u_char dlun; - u_short status; - void *addr; - u_short bytes; - u_short blk; - u_long timeout; -}; - -struct mvmeprom_netctrl { - u_char clun; - u_char dlun; - u_short status; - u_long cmd; - void *addr; - u_long len; - u_long flags; -}; - -struct mvmeprom_netparam { - u_long ver; - void * nodeaddr; - void * loadaddr; - void * execaddr; - u_long delay; - u_long length; - u_long offset; - void * traceaddr; - u_long client_ip; - u_long server_ip; - u_long subnet; - u_long bcast; - u_long gateway_ip; - u_char rarp_retry; - u_char tftp_retry; - u_char rarp_cntl; - u_char update_cntl; - char filename[64]; - char args[64]; -}; - -struct mvmeprom_netcfg { - u_char clun; - u_char dlun; - u_short status; - struct mvmeprom_netparam *netparam; - u_long flag; -}; - -struct prom_environ_hdr { - u_char type; - u_char len; -}; - -struct mvmeprom_brdid { - u_long eye_catcher; /* "BDID" */ - u_char rev; - u_char month; - u_char day; - u_char year; - u_short size; /* BID packet length */ - u_short rsv1; - u_short model; /* e.g. 1603, 1604 */ - u_short suffix; /* e.g. AT */ - u_long options; /* Board options */ - u_short ctrlun; /* boot clun */ - u_short devlun; /* boot dlun */ - u_short devtype; /* boot device type */ - u_short devnum; /* boot device number */ - u_long opt2; /* reserved */ - u_char version[4]; - /* the folowing are CNFG values */ - u_char board_serial[12]; /* SBC serial number */ - u_char board_id[16]; /* SBC id */ - u_char pwa_id[16]; /* printed wiring assembly id */ - u_char old_speed[4]; /* old cpu speed field */ - u_char etheraddr[6]; /* mac address, all zero if no ether */ - u_char fill[2]; - u_char scsi_id[2]; /* local SCSI id */ - u_char speed[3]; /* cpu speed */ - u_char bus_speed[3]; /* pci bus speed */ - u_char sys_serial[16]; /* system serial (user)*/ - u_char sys_id[31]; /* system id (user)*/ - u_char license_id[9]; /* license ID (for AIX)*/ -}; - -struct mvmeprom_time { - u_char year_BCD; - u_char month_BCD; - u_char day_BCD; - u_char wday_BCD; - u_char hour_BCD; - u_char min_BCD; - u_char sec_BCD; - u_char cal_BCD; -}; - -struct mvmeprom_dskio { - u_char ctrl_lun; - u_char dev_lun; - u_short status; - void *pbuffer; - u_long blk_num; - u_short blk_cnt; - u_char flag; -#define BUG_FILE_MARK 0x80 -#define IGNORE_FILENUM 0x02 -#define END_OF_FILE 0x01 - u_char addr_mod; -}; -#define MVMEPROM_BLOCK_SIZE 256 - -struct mvmeprom_args { - u_int dev_lun; - u_int ctrl_lun; - u_int flags; - u_int ctrl_addr; - u_int entry; - u_int conf_blk; - char *arg_start; - char *arg_end; - char *nbarg_start; - char *nbarg_end; - u_int cputyp; -}; - -#endif - -#define MVMEPROM_REG_CTRLLUN "3" -#define MVMEPROM_REG_DEVLUN "4" -#define MVMEPROM_REG_SCSUPP "5" -#define MVMEPROM_REG_CTRLADDR "6" -#define MVMEPROM_REG_ENTRY "7" -#define MVMEPROM_REG_IPA "8" -#define MVMEPROM_REG_ARGSTART "9" -#define MVMEPROM_REG_ARGEND "10" -#define MVMEPROM_REG_NBARGSTART "11" -#define MVMEPROM_REG_NBARGEND "12" - -#ifndef RB_NOSYM -#define RB_NOSYM 0x4000 -#endif -#endif /* _MACHINE_PROM_H_ */ diff --git a/sys/arch/mvmeppc/include/psl.h b/sys/arch/mvmeppc/include/psl.h deleted file mode 100644 index 2bc77218387..00000000000 --- a/sys/arch/mvmeppc/include/psl.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: psl.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/psl.h> diff --git a/sys/arch/mvmeppc/include/pte.h b/sys/arch/mvmeppc/include/pte.h deleted file mode 100644 index 48f7c8ea980..00000000000 --- a/sys/arch/mvmeppc/include/pte.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: pte.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/pte.h> diff --git a/sys/arch/mvmeppc/include/ptrace.h b/sys/arch/mvmeppc/include/ptrace.h deleted file mode 100644 index 5ef1464bd3d..00000000000 --- a/sys/arch/mvmeppc/include/ptrace.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: ptrace.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/ptrace.h> diff --git a/sys/arch/mvmeppc/include/reg.h b/sys/arch/mvmeppc/include/reg.h deleted file mode 100644 index 1eca0f95ac6..00000000000 --- a/sys/arch/mvmeppc/include/reg.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: reg.h,v 1.2 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/reg.h> diff --git a/sys/arch/mvmeppc/include/reloc.h b/sys/arch/mvmeppc/include/reloc.h deleted file mode 100644 index 767bf71a55d..00000000000 --- a/sys/arch/mvmeppc/include/reloc.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: reloc.h,v 1.3 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/reloc.h> diff --git a/sys/arch/mvmeppc/include/setjmp.h b/sys/arch/mvmeppc/include/setjmp.h deleted file mode 100644 index 089b4d3d2bd..00000000000 --- a/sys/arch/mvmeppc/include/setjmp.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: setjmp.h,v 1.3 2001/09/02 19:40:24 miod Exp $ */ - -#include <powerpc/setjmp.h> diff --git a/sys/arch/mvmeppc/include/signal.h b/sys/arch/mvmeppc/include/signal.h deleted file mode 100644 index 3d9806ff46f..00000000000 --- a/sys/arch/mvmeppc/include/signal.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: signal.h,v 1.2 2001/09/02 19:40:25 miod Exp $ */ - -#include <powerpc/signal.h> diff --git a/sys/arch/mvmeppc/include/spinlock.h b/sys/arch/mvmeppc/include/spinlock.h deleted file mode 100644 index e3bc149b06c..00000000000 --- a/sys/arch/mvmeppc/include/spinlock.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: spinlock.h,v 1.2 2001/09/02 19:40:25 miod Exp $ */ - -#include <powerpc/spinlock.h> diff --git a/sys/arch/mvmeppc/include/stdarg.h b/sys/arch/mvmeppc/include/stdarg.h deleted file mode 100644 index 89e7a51aae6..00000000000 --- a/sys/arch/mvmeppc/include/stdarg.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: stdarg.h,v 1.3 2001/09/02 19:40:25 miod Exp $ */ - -#include <powerpc/stdarg.h> diff --git a/sys/arch/mvmeppc/include/trap.h b/sys/arch/mvmeppc/include/trap.h deleted file mode 100644 index a661ba3dde7..00000000000 --- a/sys/arch/mvmeppc/include/trap.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: trap.h,v 1.4 2001/09/02 19:40:25 miod Exp $ */ - -#include <powerpc/trap.h> diff --git a/sys/arch/mvmeppc/include/va-ppc.h b/sys/arch/mvmeppc/include/va-ppc.h deleted file mode 100644 index b114a9c121e..00000000000 --- a/sys/arch/mvmeppc/include/va-ppc.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: va-ppc.h,v 1.3 2001/09/02 19:40:25 miod Exp $ */ - -#include <powerpc/va-ppc.h> diff --git a/sys/arch/mvmeppc/include/varargs.h b/sys/arch/mvmeppc/include/varargs.h deleted file mode 100644 index 7c9459f0643..00000000000 --- a/sys/arch/mvmeppc/include/varargs.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: varargs.h,v 1.3 2001/09/02 19:40:25 miod Exp $ */ - -#include <powerpc/varargs.h> diff --git a/sys/arch/mvmeppc/include/vmparam.h b/sys/arch/mvmeppc/include/vmparam.h deleted file mode 100644 index b659f3c43fa..00000000000 --- a/sys/arch/mvmeppc/include/vmparam.h +++ /dev/null @@ -1,107 +0,0 @@ -/* $OpenBSD: vmparam.h,v 1.17 2011/05/30 22:25:22 oga Exp $ */ -/* $NetBSD: vmparam.h,v 1.1 1996/09/30 16:34:38 ws Exp $ */ - -/*- - * Copyright (C) 1995, 1996 Wolfgang Solfrank. - * Copyright (C) 1995, 1996 TooLs GmbH. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef MACHINE_VMPARAM_H -#define MACHINE_VMPARAM_H - -#define USRTEXT PAGE_SIZE -#define USRSTACK VM_MAXUSER_ADDRESS - -#ifndef MAXTSIZ -#define MAXTSIZ (16*1024*1024) /* max text size */ -#endif - -#ifndef DFLDSIZ -#define DFLDSIZ (32*1024*1024) /* default data size */ -#endif - -#ifndef MAXDSIZ -#define MAXDSIZ (512*1024*1024) /* max data size */ -#endif - -#ifndef BRKSIZ -#define BRKSIZ MAXDSIZ /* heap gap size */ -#endif - -#ifndef DFLSSIZ -#define DFLSSIZ (1*1024*1024) /* default stack size */ -#endif - -#ifndef MAXSSIZ -#define MAXSSIZ (32*1024*1024) /* max stack size */ -#endif - -#define STACKGAP_RANDOM 256*1024 - -/* - * Size of shared memory map - */ -#ifndef SHMMAXPGS -#define SHMMAXPGS 1024 -#endif - -/* - * Size of User Raw I/O map - */ -#define USRIOSIZE 1024 - -/* - * Would like to have MAX addresses = 0, but this doesn't (currently) work - */ -#define VM_MIN_ADDRESS ((vaddr_t)0) -#define VM_MAXUSER_ADDRESS ((vaddr_t)0xfffff000) -#define VM_MAX_ADDRESS VM_MAXUSER_ADDRESS -#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)(PPC_KERNEL_SR << ADDR_SR_SHIFT)) - -/* ppc_kvm_size is so that vm space can be stolen before vm is fully - * initialized. - */ -extern vaddr_t ppc_kvm_stolen; -#define VM_KERN_ADDRESS_SIZE (PPC_SEGMENT_LENGTH - (32 * 1024 * 1024)) -#define VM_MAX_KERNEL_ADDRESS (VM_MIN_KERNEL_ADDRESS + VM_KERN_ADDRESS_SIZE) - -#define VM_PHYS_SIZE (USRIOSIZE * PAGE_SIZE) - -#define __HAVE_PMAP_PHYSSEG -struct pmap_physseg { - struct pted_pv_head *pvent; - char *attrs; - /* NULL ??? */ -}; - -#define VM_PHYSSEG_MAX 32 /* actually we could have this many segments */ -#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH -#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */ - -#endif diff --git a/sys/arch/mvmeppc/isa/isa_machdep.c b/sys/arch/mvmeppc/isa/isa_machdep.c deleted file mode 100644 index df14e45b7c3..00000000000 --- a/sys/arch/mvmeppc/isa/isa_machdep.c +++ /dev/null @@ -1,138 +0,0 @@ -/* $OpenBSD: isa_machdep.c,v 1.8 2008/07/03 02:59:38 ray Exp $ */ -/* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */ - -#define ISA_DMA_STATS - -/*- - * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, - * NASA Ames Research Center. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/*- - * Copyright (c) 1993, 1994, 1996, 1997 - * Charles M. Hannum. All rights reserved. - * Copyright (c) 1991 The Regents of the University of California. - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)isa.c 7.2 (Berkeley) 5/13/91 - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/syslog.h> -#include <sys/device.h> -#include <sys/malloc.h> -#include <sys/proc.h> - -#include <uvm/uvm_extern.h> - -#include <machine/bus.h> - -#include <machine/pio.h> - -#include <dev/isa/isareg.h> -#include <dev/isa/isavar.h> -#include <dev/isa/isadmavar.h> -#include <mvmeppc/isa/isa_machdep.h> - -void *i8259_intr_establish( void * lcv, int irq, int type, int level, - int (*ih_fun)(void *), void *ih_arg, char *name); -void openpic_intr_disestablish(void *, void *); - -int isa_has_been_seen = 0; - -/* - * Set up an interrupt handler to start being called. - * XXX PRONE TO RACE CONDITIONS, UGLY, 'INTERESTING' INSERTION ALGORITHM. - */ -void * -isa_intr_establish(ic, irq, type, level, ih_fun, ih_arg, ih_what) - isa_chipset_tag_t ic; - int irq; - int type; - int level; - int (*ih_fun)(void *); - void *ih_arg; - char *ih_what; -{ - return(i8259_intr_establish(ic, irq, type, level, ih_fun, ih_arg, ih_what)); -} - -/* - * Deregister an interrupt handler. - */ -void -isa_intr_disestablish(ic, arg) - isa_chipset_tag_t ic; - void *arg; -{ - openpic_intr_disestablish(ic, arg); -} - -void -isa_attach_hook(parent, self, iba) - struct device *parent, *self; - struct isabus_attach_args *iba; -{ - - /* - * Notify others that might need to know that the ISA bus - * has now been attached. - */ - if (isa_has_been_seen) - panic("isaattach: ISA bus already seen!"); - isa_has_been_seen = 1; -} - diff --git a/sys/arch/mvmeppc/isa/isa_machdep.h b/sys/arch/mvmeppc/isa/isa_machdep.h deleted file mode 100644 index 90fdacf719f..00000000000 --- a/sys/arch/mvmeppc/isa/isa_machdep.h +++ /dev/null @@ -1,65 +0,0 @@ -/* $OpenBSD: isa_machdep.h,v 1.4 2003/06/02 23:27:53 millert Exp $ */ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)isa.h 5.7 (Berkeley) 5/9/91 - */ -#ifndef _MVMEPPC_ISA_MACHDEP_H_ /* XXX */ -#define _MVMEPPC_ISA_MACHDEP_H_ /* XXX */ - -#include <machine/bus.h> - -/* - * Types provided to machine-independent ISA code. - */ -typedef void *isa_chipset_tag_t; - -struct device; /* XXX */ -struct isabus_attach_args; /* XXX */ - -/* - * Functions provided to machine-independent ISA code. - */ -void isa_attach_hook(struct device *, struct device *, - struct isabus_attach_args *); -void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type, - int level, int (*ih_fun)(void *), void *ih_arg, char *ih_what); -void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler); - -#define __NO_ISA_INTR_CHECK -/* - * ALL OF THE FOLLOWING ARE MACHINE-DEPENDENT, AND SHOULD NOT BE USED - * BY PORTABLE CODE. - */ - -extern struct powerpc_bus_dma_tag isa_bus_dma_tag; - -#endif /* _MVMEPPC_ISA_MACHDEP_H_ XXX */ diff --git a/sys/arch/mvmeppc/mvmeppc/autoconf.c b/sys/arch/mvmeppc/mvmeppc/autoconf.c deleted file mode 100644 index 14d7a616239..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/autoconf.c +++ /dev/null @@ -1,156 +0,0 @@ -/* $OpenBSD: autoconf.c,v 1.23 2009/08/29 11:41:34 miod Exp $ */ -/* - * Copyright (c) 1996, 1997 Per Fogelstrom - * Copyright (c) 1995 Theo de Raadt - * Copyright (c) 1988 University of Utah. - * Copyright (c) 1992, 1993 - * The Regents of the University of California. All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * the Systems Programming Group of the University of Utah Computer - * Science Department and Ralph Campbell. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: Utah Hdr: autoconf.c 1.31 91/01/21 - * - * from: @(#)autoconf.c 8.1 (Berkeley) 6/10/93 - * $Id: autoconf.c,v 1.23 2009/08/29 11:41:34 miod Exp $ - */ - -/* - * Setup the system to run on the current machine. - * - * cpu_configure() is called at boot time. Available - * devices are determined (from possibilities mentioned in ioconf.c), - * and the drivers are initialized. - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/buf.h> -#include <sys/disklabel.h> -#include <sys/conf.h> -#include <sys/reboot.h> -#include <sys/device.h> - -#include <machine/autoconf.h> -#include <machine/bugio.h> - -extern void dumpconf(void); -void calc_delayconst(void); /* clock.c */ - -/* - * The following several variables are related to - * the configuration process, and are used in initializing - * the machine. - */ -int cold = 1; /* if 1, still working on cold-start */ -int bootdev; /* boot device as provided by locore */ -struct device *bootdv = NULL; - -/* - * Configure all devices found that we know about. - * This is done at boot time. - */ -void -cpu_configure() -{ - (void)splhigh(); /* To be really sure.. */ - calc_delayconst(); - - if (config_rootfound("mainbus", "mainbus") == 0) - panic("no mainbus found"); - - ppc_intr_enable(1); - spl0(); - - /* - * We can not select the root device yet, because we use bugtty - * as the console for now, and it requires the clock to be ticking - * for proper operation (think boot -a ...) - */ - cold = 0; -} - -void -diskconf(void) -{ - printf("boot device: %s\n", - (bootdv != NULL) ? bootdv->dv_xname : "<unknown>"); - setroot(bootdv, 0, RB_USERREQ); -#if 0 - dumpconf(); -#endif -} - -/* - * Crash dump handling. - */ -u_long dumpmag = 0x8fca0101; /* magic number */ -int dumpsize = 0; /* size of dump in pages */ -long dumplo = -1; /* blocks */ - -/* - * This is called by configure to set dumplo and dumpsize. - * Dumps always skip the first CLBYTES of disk space - * in case there might be a disk label stored there. - * If there is extra space, put dump at the end to - * reduce the chance that swapping trashes it. - */ -#if 0 -void -dumpconf(void) -{ - int nblks; /* size of dump area */ - - if (dumpdev == NODEV || - (nblks = (bdevsw[major(dumpdev)].d_psize)(dumpdev)) == 0) - return; - if (nblks <= ctod(1)) - return; - - dumpsize = atop(IOM_END + ptoa(dumpmem_high)); - - /* Always skip the first CLBYTES, in case there is a label there. */ - if (dumplo < ctod(1)) - dumplo = ctod(1); - - /* Put dump at end of partition, and make it fit. */ - if (dumpsize > dtoc(nblks - dumplo)) - dumpsize = dtoc(nblks - dumplo); - if (dumplo < nblks - ctod(dumpsize)) - dumplo = nblks - ctod(dumpsize); -} -#endif - -struct nam2blk nam2blk[] = { - { "wd", 0 }, - { "sd", 2 }, - { "rd", 17 }, - { "raid", 19 }, - { "vnd", 14 }, - { NULL, -1 } -}; diff --git a/sys/arch/mvmeppc/mvmeppc/bus_dma.c b/sys/arch/mvmeppc/mvmeppc/bus_dma.c deleted file mode 100644 index c4f66441c54..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/bus_dma.c +++ /dev/null @@ -1,654 +0,0 @@ -/* $OpenBSD: bus_dma.c,v 1.29 2011/06/23 20:44:39 ariane Exp $ */ -/* $NetBSD: bus_dma.c,v 1.2 2001/06/10 02:31:25 briggs Exp $ */ - -/*- - * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, - * NASA Ames Research Center. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/param.h> -#include <sys/proc.h> -#include <sys/extent.h> -#include <sys/buf.h> -#include <sys/device.h> -#include <sys/systm.h> -#include <sys/conf.h> -#include <sys/file.h> -#include <sys/malloc.h> -#include <sys/mbuf.h> -#include <sys/mount.h> - -#include <uvm/uvm.h> -#include <uvm/uvm_page.h> - -#define _POWERPC_BUS_DMA_PRIVATE -#include <machine/bus.h> -#include <machine/intr.h> - -int _bus_dmamap_load_buffer (bus_dma_tag_t, bus_dmamap_t, void *, - bus_size_t, struct proc *, int, paddr_t *, int *, int); - -/* - * Common function for DMA map creation. May be called by bus-specific - * DMA map creation functions. - */ -int -_bus_dmamap_create(t, size, nsegments, maxsegsz, boundary, flags, dmamp) - bus_dma_tag_t t; - bus_size_t size; - int nsegments; - bus_size_t maxsegsz; - bus_size_t boundary; - int flags; - bus_dmamap_t *dmamp; -{ - struct powerpc_bus_dmamap *map; - void *mapstore; - size_t mapsize; - - /* - * Allocate and initialize the DMA map. The end of the map - * is a variable-sized array of segments, so we allocate enough - * room for them in one shot. - * - * Note we don't preserve the WAITOK or NOWAIT flags. Preservation - * of ALLOCNOW notifies others that we've reserved these resources, - * and they are not to be freed. - * - * The bus_dmamap_t includes one bus_dma_segment_t, hence - * the (nsegments - 1). - */ - mapsize = sizeof(struct powerpc_bus_dmamap) + - (sizeof(bus_dma_segment_t) * (nsegments - 1)); - if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ? - (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL) - return (ENOMEM); - - map = (struct powerpc_bus_dmamap *)mapstore; - map->_dm_size = size; - map->_dm_segcnt = nsegments; - map->_dm_maxsegsz = maxsegsz; - map->_dm_boundary = boundary; - map->_dm_bounce_thresh = t->_bounce_thresh; - map->_dm_flags = flags & ~(BUS_DMA_WAITOK|BUS_DMA_NOWAIT); - map->dm_mapsize = 0; /* no valid mappings */ - map->dm_nsegs = 0; - - *dmamp = map; - return (0); -} - -/* - * Common function for DMA map destruction. May be called by bus-specific - * DMA map destruction functions. - */ -void -_bus_dmamap_destroy(t, map) - bus_dma_tag_t t; - bus_dmamap_t map; -{ - - free(map, M_DEVBUF); -} - -/* - * Utility function to load a linear buffer. lastaddrp holds state - * between invocations (for multiple-buffer loads). segp contains - * the starting segment on entrance, and the ending segment on exit. - * first indicates if this is the first invocation of this function. - */ -int -_bus_dmamap_load_buffer(t, map, buf, buflen, p, flags, lastaddrp, segp, first) - bus_dma_tag_t t; - bus_dmamap_t map; - void *buf; - bus_size_t buflen; - struct proc *p; - int flags; - paddr_t *lastaddrp; - int *segp; - int first; -{ - bus_size_t sgsize; - bus_addr_t curaddr, lastaddr, baddr, bmask; - vaddr_t vaddr = (vaddr_t)buf; - int seg; - pmap_t pmap; - - if (p != NULL) - pmap = p->p_vmspace->vm_map.pmap; - else - pmap = pmap_kernel(); - - lastaddr = *lastaddrp; - bmask = ~(map->_dm_boundary - 1); - - for (seg = *segp; buflen > 0 ; ) { - /* - * Get the physical address for this segment. - */ - if (pmap_extract(pmap, vaddr, (paddr_t *)&curaddr) == FALSE) { - panic("dmamap_load_buffer pmap %p vaddr %lx " - "pmap_extract failed", pmap, vaddr); - } - - /* - * If we're beyond the bounce threshold, notify - * the caller. - */ - if (map->_dm_bounce_thresh != 0 && - curaddr >= map->_dm_bounce_thresh) - return (EINVAL); - - /* - * Compute the segment size, and adjust counts. - */ - sgsize = NBPG - ((u_long)vaddr & PGOFSET); - if (buflen < sgsize) - sgsize = buflen; - - /* - * Make sure we don't cross any boundaries. - */ - if (map->_dm_boundary > 0) { - baddr = (curaddr + map->_dm_boundary) & bmask; - if (sgsize > (baddr - curaddr)) - sgsize = (baddr - curaddr); - } - - /* - * Insert chunk into a segment, coalescing with - * the previous segment if possible. - */ - if (first) { - map->dm_segs[seg].ds_addr = PHYS_TO_PCI_MEM(curaddr); - map->dm_segs[seg].ds_len = sgsize; - first = 0; - } else { - if (curaddr == lastaddr && - (map->dm_segs[seg].ds_len + sgsize) <= - map->_dm_maxsegsz && - (map->_dm_boundary == 0 || - (map->dm_segs[seg].ds_addr & bmask) == - (PHYS_TO_PCI_MEM(curaddr) & bmask))) - map->dm_segs[seg].ds_len += sgsize; - else { - if (++seg >= map->_dm_segcnt) - break; - map->dm_segs[seg].ds_addr = - PHYS_TO_PCI_MEM(curaddr); - map->dm_segs[seg].ds_len = sgsize; - } - } - - lastaddr = curaddr + sgsize; - vaddr += sgsize; - buflen -= sgsize; - } - - *segp = seg; - *lastaddrp = lastaddr; - - /* - * Did we fit? - */ - if (buflen != 0) - return (EFBIG); /* XXX better return value here? */ - - return (0); -} - -/* - * Common function for loading a DMA map with a linear buffer. May - * be called by bus-specific DMA map load functions. - */ -int -_bus_dmamap_load(t, map, buf, buflen, p, flags) - bus_dma_tag_t t; - bus_dmamap_t map; - void *buf; - bus_size_t buflen; - struct proc *p; - int flags; -{ - paddr_t lastaddr; - int seg, error; - - /* - * Make sure that on error condition we return "no valid mappings". - */ - map->dm_mapsize = 0; - map->dm_nsegs = 0; - - if (buflen > map->_dm_size) - return (EINVAL); - - seg = 0; - error = _bus_dmamap_load_buffer(t, map, buf, buflen, p, flags, - &lastaddr, &seg, 1); - if (error == 0) { - map->dm_mapsize = buflen; - map->dm_nsegs = seg + 1; - } - return (error); -} - -/* - * Like _bus_dmamap_load(), but for mbufs. - */ -int -_bus_dmamap_load_mbuf(t, map, m0, flags) - bus_dma_tag_t t; - bus_dmamap_t map; - struct mbuf *m0; - int flags; -{ - paddr_t lastaddr; - int seg, error, first; - struct mbuf *m; - - /* - * Make sure that on error condition we return "no valid mappings." - */ - map->dm_mapsize = 0; - map->dm_nsegs = 0; - -#ifdef DIAGNOSTIC - if ((m0->m_flags & M_PKTHDR) == 0) - panic("_bus_dmamap_load_mbuf: no packet header"); -#endif - - if (m0->m_pkthdr.len > map->_dm_size) - return (EINVAL); - - first = 1; - seg = 0; - error = 0; - for (m = m0; m != NULL && error == 0; m = m->m_next) { - if (m->m_len == 0) - continue; - error = _bus_dmamap_load_buffer(t, map, m->m_data, m->m_len, - NULL, flags, &lastaddr, &seg, first); - first = 0; - } - if (error == 0) { - map->dm_mapsize = m0->m_pkthdr.len; - map->dm_nsegs = seg + 1; - } - return (error); -} - -/* - * Like _bus_dmamap_load(), but for uios. - */ -int -_bus_dmamap_load_uio(t, map, uio, flags) - bus_dma_tag_t t; - bus_dmamap_t map; - struct uio *uio; - int flags; -{ - paddr_t lastaddr; - int seg, i, error, first; - bus_size_t minlen, resid; - struct proc *p = NULL; - struct iovec *iov; - caddr_t addr; - - /* - * Make sure that on error condition we return "no valid mappings." - */ - map->dm_mapsize = 0; - map->dm_nsegs = 0; - - resid = uio->uio_resid; - iov = uio->uio_iov; - - if (resid > map->_dm_size) - return (EINVAL); - - if (uio->uio_segflg == UIO_USERSPACE) { - p = uio->uio_procp; -#ifdef DIAGNOSTIC - if (p == NULL) - panic("_bus_dmamap_load_uio: USERSPACE but no proc"); -#endif - } - - first = 1; - seg = 0; - error = 0; - for (i = 0; i < uio->uio_iovcnt && resid != 0 && error == 0; i++) { - /* - * Now at the first iovec to load. Load each iovec - * until we have exhausted the residual count. - */ - minlen = resid < iov[i].iov_len ? resid : iov[i].iov_len; - addr = (caddr_t)iov[i].iov_base; - - error = _bus_dmamap_load_buffer(t, map, addr, minlen, - p, flags, &lastaddr, &seg, first); - first = 0; - - resid -= minlen; - } - if (error == 0) { - map->dm_mapsize = uio->uio_resid; - map->dm_nsegs = seg + 1; - } - return (error); -} - -/* - * Like _bus_dmamap_load(), but for raw memory allocated with - * bus_dmamem_alloc(). - */ -int -_bus_dmamap_load_raw(t, map, segs, nsegs, size, flags) - bus_dma_tag_t t; - bus_dmamap_t map; - bus_dma_segment_t *segs; - int nsegs; - bus_size_t size; - int flags; -{ - - panic("_bus_dmamap_load_raw: not implemented"); -} - -/* - * Common function for unloading a DMA map. May be called by - * chipset-specific DMA map unload functions. - */ -void -_bus_dmamap_unload(t, map) - bus_dma_tag_t t; - bus_dmamap_t map; -{ - - /* - * No resources to free; just mark the mappings as - * invalid. - */ - map->dm_mapsize = 0; - map->dm_nsegs = 0; -} - -/* - * Common function for DMA map synchronization. May be called - * by chipset-specific DMA map synchronization functions. - */ - -void -_bus_dmamap_sync(t, map, offset, len, op) - bus_dma_tag_t t; - bus_dmamap_t map; - bus_addr_t offset; - bus_size_t len; - int op; -{ - int i; - - /* XXX and if it's not a PCI device??? */ - if ((op & (BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE)) == 0) - return; - - for (i = map->dm_nsegs; i--; ) - invdcache((void *)PCI_MEM_TO_PHYS(map->dm_segs[i].ds_addr), - len); -} - -/* - * Common function for DMA-safe memory allocation. May be called - * by bus-specific DMA memory allocation functions. - */ -int -_bus_dmamem_alloc(t, size, alignment, boundary, segs, nsegs, rsegs, flags) - bus_dma_tag_t t; - bus_size_t size, alignment, boundary; - bus_dma_segment_t *segs; - int nsegs; - int *rsegs; - int flags; -{ - return _bus_dmamem_alloc_range(t, size, alignment, boundary, segs, - nsegs, rsegs, flags, 0, -1); -} - -/* - * Common function for freeing DMA-safe memory. May be called by - * bus-specific DMA memory free functions. - */ -void -_bus_dmamem_free(t, segs, nsegs) - bus_dma_tag_t t; - bus_dma_segment_t *segs; - int nsegs; -{ - struct vm_page *m; - bus_addr_t addr; - struct pglist mlist; - int curseg; - - /* - * Build a list of pages to free back to the VM system. - */ - TAILQ_INIT(&mlist); - for (curseg = 0; curseg < nsegs; curseg++) { - for (addr = PCI_MEM_TO_PHYS(segs[curseg].ds_addr); - addr < (PCI_MEM_TO_PHYS(segs[curseg].ds_addr) - + segs[curseg].ds_len); - addr += PAGE_SIZE) { - m = PHYS_TO_VM_PAGE(addr); - TAILQ_INSERT_TAIL(&mlist, m, pageq); - } - } - - uvm_pglistfree(&mlist); -} - -/* - * Common function for mapping DMA-safe memory. May be called by - * bus-specific DMA memory map functions. - */ -int -_bus_dmamem_map(t, segs, nsegs, size, kvap, flags) - bus_dma_tag_t t; - bus_dma_segment_t *segs; - int nsegs; - size_t size; - caddr_t *kvap; - int flags; -{ - vaddr_t va, sva; - size_t ssize; - bus_addr_t addr; - int curseg, error; - - size = round_page(size); - - va = uvm_km_valloc(kernel_map, size); - - if (va == 0) - return (ENOMEM); - - *kvap = (caddr_t)va; - - sva = va; - ssize = size; - for (curseg = 0; curseg < nsegs; curseg++) { - for (addr = PCI_MEM_TO_PHYS(segs[curseg].ds_addr); - addr < (PCI_MEM_TO_PHYS(segs[curseg].ds_addr) - + segs[curseg].ds_len); - addr += NBPG, va += NBPG, size -= NBPG) { - if (size == 0) - panic("_bus_dmamem_map: size botch"); - error = pmap_enter(pmap_kernel(), va, addr, - VM_PROT_READ | VM_PROT_WRITE, VM_PROT_READ | - VM_PROT_WRITE | PMAP_WIRED | PMAP_CANFAIL); - if (error) { - pmap_update(pmap_kernel()); - uvm_km_free(kernel_map, sva, ssize); - return (error); - } - } - } - pmap_update(pmap_kernel()); - - return (0); -} - -/* - * Common function for unmapping DMA-safe memory. May be called by - * bus-specific DMA memory unmapping functions. - */ -void -_bus_dmamem_unmap(t, kva, size) - bus_dma_tag_t t; - caddr_t kva; - size_t size; -{ - -#ifdef DIAGNOSTIC - if ((u_long)kva & PGOFSET) - panic("_bus_dmamem_unmap"); -#endif - - size = round_page(size); - - uvm_km_free(kernel_map, (vaddr_t)kva, size); -} - -/* - * Common function for mmap(2)'ing DMA-safe memory. May be called by - * bus-specific DMA mmap(2)'ing functions. - */ -paddr_t -_bus_dmamem_mmap(t, segs, nsegs, off, prot, flags) - bus_dma_tag_t t; - bus_dma_segment_t *segs; - int nsegs; - off_t off; - int prot, flags; -{ - int i; - - for (i = 0; i < nsegs; i++) { -#ifdef DIAGNOSTIC - if (off & PGOFSET) - panic("_bus_dmamem_mmap: offset unaligned"); - if (PCI_MEM_TO_PHYS(segs[i].ds_addr) & PGOFSET) - panic("_bus_dmamem_mmap: segment unaligned"); - if (segs[i].ds_len & PGOFSET) - panic("_bus_dmamem_mmap: segment size not multiple" - " of page size"); -#endif - if (off >= segs[i].ds_len) { - off -= segs[i].ds_len; - continue; - } - - return (PCI_MEM_TO_PHYS(segs[i].ds_addr) + off); - } - - /* Page not found. */ - return (-1); -} - -/* - * Allocate physical memory from the given physical address range. - * Called by DMA-safe memory allocation methods. - */ -int -_bus_dmamem_alloc_range(t, size, alignment, boundary, segs, nsegs, rsegs, - flags, low, high) - bus_dma_tag_t t; - bus_size_t size, alignment, boundary; - bus_dma_segment_t *segs; - int nsegs; - int *rsegs; - int flags; - paddr_t low; - paddr_t high; -{ - paddr_t curaddr, lastaddr; - struct vm_page *m; - struct pglist mlist; - int curseg, error, plaflag; - - /* Always round the size. */ - size = round_page(size); - - /* - * Allocate pages from the VM system. - */ - plaflag = flags & BUS_DMA_NOWAIT ? UVM_PLA_NOWAIT : UVM_PLA_WAITOK; - if (flags & BUS_DMA_ZERO) - plaflag |= UVM_PLA_ZERO; - - TAILQ_INIT(&mlist); - error = uvm_pglistalloc(size, low, high, alignment, boundary, - &mlist, nsegs, plaflag); - if (error) - return (error); - - /* - * Compute the location, size, and number of segments actually - * returned by the VM code. - */ - m = TAILQ_FIRST(&mlist); - curseg = 0; - lastaddr = VM_PAGE_TO_PHYS(m); - segs[curseg].ds_addr = PHYS_TO_PCI_MEM(lastaddr); - segs[curseg].ds_len = PAGE_SIZE; - m = TAILQ_NEXT(m, pageq); - - for (; m != TAILQ_END(&mlist); m = TAILQ_NEXT(m, pageq)) { - curaddr = VM_PAGE_TO_PHYS(m); -#ifdef DIAGNOSTIC - if (curaddr < low || curaddr >= high) { - printf("vm_page_alloc_memory returned non-sensical" - " address 0x%lx\n", curaddr); - panic("_bus_dmamem_alloc_range"); - } -#endif - if (curaddr == (lastaddr + PAGE_SIZE)) - segs[curseg].ds_len += PAGE_SIZE; - else { - curseg++; - segs[curseg].ds_addr = PHYS_TO_PCI_MEM(curaddr); - segs[curseg].ds_len = PAGE_SIZE; - } - lastaddr = curaddr; - } - - *rsegs = curseg + 1; - - return (0); -} - diff --git a/sys/arch/mvmeppc/mvmeppc/bus_space.c b/sys/arch/mvmeppc/mvmeppc/bus_space.c deleted file mode 100644 index 3789ed2ada8..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/bus_space.c +++ /dev/null @@ -1,220 +0,0 @@ -/* $OpenBSD: bus_space.c,v 1.7 2008/06/26 05:42:12 ray Exp $ */ -/* $NetBSD: bus_space.c,v 1.4 2001/06/15 15:50:05 nonaka Exp $ */ - -/*- - * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace - * Simulation Facility, NASA Ames Research Center. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/kernel.h> -#include <sys/extent.h> -#include <sys/mbuf.h> - -#include <uvm/uvm_extern.h> - -#include <machine/bus.h> - -static int prep_memio_map(bus_space_tag_t, bus_addr_t, bus_size_t, int, - bus_space_handle_t *); -static void prep_memio_unmap(bus_space_tag_t, bus_space_handle_t, bus_size_t); -static int prep_memio_alloc(bus_space_tag_t, bus_addr_t, bus_addr_t, - bus_size_t, bus_size_t, bus_size_t, int, bus_addr_t *, - bus_space_handle_t *); -static void prep_memio_free(bus_space_tag_t, bus_space_handle_t, bus_size_t); - -const struct ppc_bus_space prep_io_space_tag = { - PREP_BUS_SPACE_IO, 0x80000000, 0x80000000, 0x3f800000, - prep_memio_map, prep_memio_unmap, prep_memio_alloc, prep_memio_free -}; -const struct ppc_bus_space prep_isa_io_space_tag = { - PREP_BUS_SPACE_IO, 0x80000000, 0x80000000, 0x00010000, - prep_memio_map, prep_memio_unmap, prep_memio_alloc, prep_memio_free -}; -const struct ppc_bus_space prep_mem_space_tag = { - PREP_BUS_SPACE_MEM, 0xC0000000, 0xC0000000, 0x3f000000, - prep_memio_map, prep_memio_unmap, prep_memio_alloc, prep_memio_free -}; -const struct ppc_bus_space prep_isa_mem_space_tag = { - PREP_BUS_SPACE_MEM, 0xC0000000, 0xC0000000, 0x01000000, - prep_memio_map, prep_memio_unmap, prep_memio_alloc, prep_memio_free -}; -static long ioport_ex_storage[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof(long)]; -static long iomem_ex_storage[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof(long)]; - -struct extent *ioport_ex; -struct extent *iomem_ex; - -static int ioport_malloc_safe; - -void -prep_bus_space_init() -{ - int error; - - ioport_ex = extent_create("ioport", 0, 0x3f7fffff, M_DEVBUF, - (caddr_t)ioport_ex_storage, sizeof(ioport_ex_storage), - EX_NOCOALESCE|EX_NOWAIT); - error = extent_alloc_region(ioport_ex, 0x10000, 0x7F0000, EX_NOWAIT); - if (error) - panic("prep_bus_space_init: can't block out reserved I/O space 0x10000-0x7fffff: error=%d", error); - iomem_ex = extent_create("iomem", 0, 0x3effffff, M_DEVBUF, - (caddr_t)iomem_ex_storage, sizeof(iomem_ex_storage), - EX_NOCOALESCE|EX_NOWAIT); -} - -void -prep_bus_space_mallocok() -{ - - ioport_malloc_safe = 1; -} - -static int -prep_memio_map(t, bpa, size, flags, bshp) - bus_space_tag_t t; - bus_addr_t bpa; - bus_size_t size; - int flags; - bus_space_handle_t *bshp; -{ - int error; - struct extent *ex; - - if (bpa + size > t->pbs_limit) - return (EINVAL); - /* - * Pick the appropriate extent map. - */ - if (t->pbs_type == PREP_BUS_SPACE_IO) { - if (flags & BUS_SPACE_MAP_LINEAR) - return (EOPNOTSUPP); - ex = ioport_ex; - } else if (t->pbs_type == PREP_BUS_SPACE_MEM) { - ex = iomem_ex; - } else - panic("prep_memio_map: bad bus space tag"); - - /* - * Before we go any further, let's make sure that this - * region is available. - */ - if ((error = extent_alloc_region(ex, bpa, size, - EX_NOWAIT | (ioport_malloc_safe ? EX_MALLOCOK : 0))) != 0) - return (error); - - *bshp = (bus_space_handle_t)mapiodev(t->pbs_base + bpa, size); - - return (0); -} - -static void -prep_memio_unmap(t, bsh, size) - bus_space_tag_t t; - bus_space_handle_t bsh; - bus_size_t size; -{ - struct extent *ex; - bus_addr_t bpa; - - /* - * Find the correct extent and bus physical address. - */ - if (t->pbs_type == PREP_BUS_SPACE_IO) - ex = ioport_ex; - else if (t->pbs_type == PREP_BUS_SPACE_MEM) - ex = iomem_ex; - else - panic("prep_memio_unmap: bad bus space tag"); - - pmap_extract(pmap_kernel(), (vaddr_t)bsh, (paddr_t *)&bpa); - unmapiodev((void *)bsh, size); - - if (extent_free(ex, bpa, size, - EX_NOWAIT | (ioport_malloc_safe ? EX_MALLOCOK : 0))) { - printf("prep_memio_unmap: %s 0x%lx, size 0x%lx\n", - (t->pbs_type == PREP_BUS_SPACE_IO) ? "port" : "mem", - (unsigned long)bpa, (unsigned long)size); - printf("prep_memio_unmap: can't free region\n"); - } -} - -static int -prep_memio_alloc(t, rstart, rend, size, alignment, boundary, flags, - bpap, bshp) - bus_space_tag_t t; - bus_addr_t rstart, rend; - bus_size_t size, alignment, boundary; - int flags; - bus_addr_t *bpap; - bus_space_handle_t *bshp; -{ - struct extent *ex; - u_long bpa; - int error; - - if (rstart + size > t->pbs_limit) - return (EINVAL); - - if (t->pbs_type == PREP_BUS_SPACE_IO) { - if (flags & BUS_SPACE_MAP_LINEAR) - return (EOPNOTSUPP); - ex = ioport_ex; - } else if (t->pbs_type == PREP_BUS_SPACE_MEM) { - ex = iomem_ex; - } else - panic("prep_memio_alloc: bad bus space tag"); - - if (rstart < ex->ex_start || rend > ex->ex_end) - panic("prep_memio_alloc: bad region start/end"); - - error = extent_alloc_subregion(ex, rstart, rend, size, alignment, 0, - boundary, - EX_FAST | EX_NOWAIT | (ioport_malloc_safe ? EX_MALLOCOK : 0), - &bpa); - - if (error) - return (error); - - *bpap = bpa; - *bshp = t->pbs_base + bpa; - - return (0); -} - -static void -prep_memio_free(t, bsh, size) - bus_space_tag_t t; - bus_space_handle_t bsh; - bus_size_t size; -{ - - /* prep_memio_unmap() does all that we need to do. */ - prep_memio_unmap(t, bsh, size); -} diff --git a/sys/arch/mvmeppc/mvmeppc/conf.c b/sys/arch/mvmeppc/mvmeppc/conf.c deleted file mode 100644 index d5cf1369a41..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/conf.c +++ /dev/null @@ -1,293 +0,0 @@ -/* $OpenBSD: conf.c,v 1.30 2011/01/14 19:04:08 jasper Exp $ */ - -/* - * Copyright (c) 1997 Per Fogelstrom - * Copyright (c) 1997 RTMX Inc, North Carolina - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed under OpenBSD for RTMX Inc, - * North Carolina, USA, by Per Fogelstrom, Opsycon AB, Sweden. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - */ -#include <sys/param.h> -#include <sys/buf.h> -#include <sys/ioctl.h> -#include <sys/systm.h> -#include <sys/tty.h> -#include <sys/vnode.h> - -#include <machine/conf.h> - -#if 0 -#include "wd.h" -#else -#define NWD 0 -#endif -bdev_decl(wd); -#include "sd.h" -#include "cd.h" - -#include "rd.h" - -#include "vnd.h" -#include "ccd.h" -#include "raid.h" - -struct bdevsw bdevsw[] = { - bdev_disk_init(NWD,wd), /* 0: ST506/ESDI/IDE disk */ - bdev_swap_init(1,sw), /* 1 swap pseudo device */ - bdev_disk_init(NSD,sd), /* 2 SCSI Disk */ - bdev_disk_init(NCD,cd), /* 3 SCSI CD-ROM */ - bdev_notdef(), /* 4 unknown*/ - bdev_tape_init(NST,st), /* 5 SCSI tape */ - bdev_notdef(), /* 6 unknown*/ - bdev_notdef(), /* 7 unknown*/ - bdev_lkm_dummy(), /* 8 */ - bdev_lkm_dummy(), /* 9 */ - bdev_lkm_dummy(), /* 10 */ - bdev_lkm_dummy(), /* 11 */ - bdev_lkm_dummy(), /* 12 */ - bdev_lkm_dummy(), /* 13 */ - bdev_disk_init(NVND,vnd), /* 14 vnode disk driver*/ - bdev_notdef(), /* 15 unknown*/ - bdev_disk_init(NCCD,ccd), /* 16 concatenated disk driver*/ - bdev_disk_init(NRD,rd), /* 17 ram disk driver*/ - bdev_notdef(), /* 18 unknown*/ - bdev_disk_init(NRAID,raid), /* 19: RAIDframe disk driver */ -}; -int nblkdev = nitems(bdevsw); - -#include "bio.h" -#include "pty.h" - -#include "bugtty.h" -cdev_decl(bugtty); - -#include "st.h" -#include "uk.h" - -cdev_decl(wd); - -#include "bpfilter.h" - -#include "tun.h" - -#ifdef NNPFS -#include <nnpfs/nnnpfs.h> -cdev_decl(nnpfs_dev); -#endif - -#ifdef LKM -#define NLKM 1 -#else -#define NLKM 0 -#endif - -#include "ksyms.h" - -#include "pf.h" - -#include "systrace.h" - -#include "vscsi.h" -#include "pppx.h" - -struct cdevsw cdevsw[] = { - cdev_cn_init(1,cn), /* 0: virtual console */ - cdev_ctty_init(1,ctty), /* 1: controlling terminal */ - cdev_mm_init(1,mm), /* 2: /dev/{null,mem,kmem,...} */ - cdev_notdef(), /* 3 was /dev/drum */ - cdev_tty_init(NPTY,pts), /* 4: pseudo-tty slave */ - cdev_ptc_init(NPTY,ptc), /* 5: pseudo-tty master */ - cdev_log_init(1,log), /* 6: /dev/klog */ -#if 0 - cdev_tty_init(NCOM,com), /* 7: Serial ports */ -#else - cdev_notdef(), /* 7 */ -#endif - cdev_disk_init(NSD,sd), /* 8: SCSI disk */ - cdev_disk_init(NCD,cd), /* 9: SCSI CD-ROM */ - cdev_notdef(), /* 10: SCSI changer */ - cdev_disk_init(NWD,wd), /* 11: ST506/ESDI/IDE disk */ - cdev_notdef(), /* 12 */ - cdev_notdef(), /* 13 */ - cdev_tty_init(NBUGTTY,bugtty), /* 14: BUGtty (ttyB) */ - cdev_notdef(), /* 15 */ - cdev_notdef(), /* 16 */ - cdev_disk_init(NRD,rd), /* 17: ram disk driver*/ - cdev_disk_init(NCCD,ccd), /* 18: concatenated disk driver */ - cdev_disk_init(NVND,vnd), /* 19: vnode disk */ - cdev_tape_init(NST,st), /* 20: SCSI tape */ - cdev_fd_init(1,filedesc), /* 21: file descriptor pseudo-dev */ - cdev_bpf_init(NBPFILTER,bpf), /* 22: berkeley packet filter */ - cdev_tun_init(NTUN,tun), /* 23: network tunnel */ - cdev_lkm_init(NLKM,lkm), /* 24: loadable module driver */ - cdev_notdef(), /* 25 */ - cdev_notdef(), /* 26 */ - cdev_notdef(), /* 27 */ - cdev_notdef(), /* 28 */ - cdev_notdef(), /* 29 */ - cdev_notdef(), /* 30 */ - cdev_notdef(), /* 31 */ - cdev_notdef(), /* 32 */ - cdev_lkm_dummy(), /* 33 */ - cdev_lkm_dummy(), /* 34 */ - cdev_lkm_dummy(), /* 35 */ - cdev_lkm_dummy(), /* 36 */ - cdev_lkm_dummy(), /* 37 */ - cdev_lkm_dummy(), /* 38 */ - cdev_pf_init(NPF,pf), /* 39: packet filter */ - cdev_random_init(1,random), /* 40: random data source */ - cdev_uk_init(NUK,uk), /* 41: unknown SCSI */ - cdev_notdef(), /* 42 */ - cdev_ksyms_init(NKSYMS,ksyms), /* 43: Kernel symbols device */ - cdev_notdef(), /* 44 */ - cdev_notdef(), /* 45 */ - cdev_notdef(), /* 46 */ - cdev_notdef(), /* 47 */ - cdev_notdef(), /* 48 */ - cdev_notdef(), /* 49 */ - cdev_systrace_init(NSYSTRACE,systrace), /* 50: system call tracing */ -#ifdef NNPFS - cdev_nnpfs_init(NNNPFS,nnpfs_dev), /* 51: nnpfs communication device */ -#else - cdev_notdef(), /* 51 */ -#endif - cdev_notdef(), /* 52 */ - cdev_bio_init(NBIO,bio), /* 53: ioctl tunnel */ - cdev_disk_init(NRAID,raid), /* 54: RAIDframe disk driver */ - cdev_ptm_init(NPTY,ptm), /* 55: pseudo-tty ptm device */ - cdev_vscsi_init(NVSCSI,vscsi), /* 56: vscsi */ - cdev_disk_init(1,diskmap), /* 57: disk mapper */ - cdev_pppx_init(NPPPX,pppx), /* 58: pppx */ -}; -int nchrdev = nitems(cdevsw); - -int mem_no = 2; /* major number of /dev/mem */ - -/* - * Swapdev is a fake device implemented in sw.c. - * It is used only internally to get to swstrategy. - */ -dev_t swapdev = makedev(1, 0); - -/* - * Check whether dev is /dev/mem or /dev/kmem. - */ -int -iskmemdev(dev) - dev_t dev; -{ - return major(dev) == mem_no && minor(dev) < 2; -} - -/* - * Check whether dev is /dev/zero. - */ -int -iszerodev(dev) - dev_t dev; -{ - return major(dev) == mem_no && minor(dev) == 12; -} - -dev_t -getnulldev() -{ - return makedev(mem_no, 2); -} - -int chrtoblktbl[] = { - /*VCHR*/ /*VBLK*/ - /* 0 */ NODEV, - /* 1 */ NODEV, - /* 2 */ NODEV, - /* 3 */ NODEV, - /* 4 */ NODEV, - /* 5 */ NODEV, - /* 6 */ NODEV, - /* 7 */ NODEV, - /* 8 */ 2, /* sd */ - /* 9 */ 3, /* cd */ - /* 10 */ NODEV, - /* 11 */ 0, /* wd */ - /* 12 */ NODEV, - /* 13 */ NODEV, - /* 14 */ NODEV, - /* 15 */ NODEV, - /* 16 */ NODEV, - /* 17 */ 17, /* rd */ - /* 18 */ 16, /* ccd */ - /* 19 */ 14, /* vnd */ - /* 20 */ 5, /* st */ - /* 21 */ NODEV, - /* 22 */ NODEV, - /* 23 */ NODEV, - /* 24 */ NODEV, - /* 25 */ NODEV, - /* 26 */ NODEV, - /* 27 */ NODEV, - /* 28 */ NODEV, - /* 29 */ NODEV, - /* 30 */ NODEV, - /* 31 */ NODEV, - /* 32 */ NODEV, - /* 33 */ NODEV, - /* 34 */ NODEV, - /* 35 */ NODEV, - /* 36 */ NODEV, - /* 37 */ NODEV, - /* 38 */ NODEV, - /* 39 */ NODEV, - /* 40 */ NODEV, - /* 41 */ NODEV, - /* 42 */ NODEV, - /* 43 */ NODEV, - /* 44 */ NODEV, - /* 45 */ NODEV, - /* 46 */ NODEV, - /* 47 */ NODEV, - /* 48 */ NODEV, - /* 49 */ NODEV, - /* 50 */ NODEV, - /* 51 */ NODEV, - /* 52 */ NODEV, - /* 53 */ NODEV, - /* 54 */ 19, /* raid */ -}; -int nchrtoblktbl = nitems(chrtoblktbl); - -#include <dev/cons.h> - -#define bugttycnpollc nullcnpollc -cons_decl(bugtty); - -struct consdev constab[] = { -#if NBUGTTY > 0 - cons_init(bugtty), -#endif - { 0 }, -}; diff --git a/sys/arch/mvmeppc/mvmeppc/db_interface.c b/sys/arch/mvmeppc/mvmeppc/db_interface.c deleted file mode 100644 index 2054f8e151d..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/db_interface.c +++ /dev/null @@ -1,54 +0,0 @@ -/* $OpenBSD: db_interface.c,v 1.1 2002/06/08 16:02:14 miod Exp $ */ -/* $NetBSD: db_interface.c,v 1.12 2001/07/22 11:29:46 wiz Exp $ */ - -#include <sys/param.h> -#include <sys/proc.h> -#include <sys/systm.h> - -#include <dev/cons.h> - -#include <machine/db_machdep.h> -#include <ddb/db_extern.h> - -int ddb_trap_glue(struct trapframe *frame); /* called from locore */ - -void -Debugger() -{ -#ifdef DDB - ddb_trap(); -#else - mvmeprom_return(); -#endif -} - -#ifdef DDB - -int -ddb_trap_glue(frame) - struct trapframe *frame; -{ - if (!(frame->srr1 & PSL_PR) - && (frame->exc == EXC_TRC - || (frame->exc == EXC_PGM - && (frame->srr1 & 0x20000)) - || frame->exc == EXC_BPT)) { - - bcopy(frame->fixreg, DDB_REGS->tf.fixreg, - 32 * sizeof(u_int32_t)); - DDB_REGS->tf.srr0 = frame->srr0; - DDB_REGS->tf.srr1 = frame->srr1; - - cnpollc(TRUE); - db_trap(T_BREAKPOINT, 0); - cnpollc(FALSE); - - bcopy(DDB_REGS->tf.fixreg, frame->fixreg, - 32 * sizeof(u_int32_t)); - - return 1; - } - return 0; -} - -#endif diff --git a/sys/arch/mvmeppc/mvmeppc/disksubr.c b/sys/arch/mvmeppc/mvmeppc/disksubr.c deleted file mode 100644 index 7a876187013..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/disksubr.c +++ /dev/null @@ -1,135 +0,0 @@ -/* $OpenBSD: disksubr.c,v 1.63 2011/07/06 16:05:54 krw Exp $ */ -/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ - -/* - * Copyright (c) 1996 Theo de Raadt - * Copyright (c) 1982, 1986, 1988 Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/buf.h> -#include <sys/disklabel.h> -#include <sys/disk.h> - -/* - * Attempt to read a disk label from a device - * using the indicated strategy routine. - * The label must be partly set up before this: - * secpercyl, secsize and anything required for a block i/o read - * operation in the driver's strategy/start routines - * must be filled in before calling us. - * - * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. - * - * We would like to check if each MBR has a valid DOSMBR_SIGNATURE, but - * we cannot because it doesn't always exist. So.. we assume the - * MBR is valid. - */ -int -readdisklabel(dev_t dev, void (*strat)(struct buf *), - struct disklabel *lp, int spoofonly) -{ - struct buf *bp = NULL; - int error; - - if ((error = initdisklabel(lp))) - goto done; - - /* get a buffer and initialize it */ - bp = geteblk((int)lp->d_secsize); - bp->b_dev = dev; - - error = readdoslabel(bp, strat, lp, NULL, spoofonly); - if (error == 0) - goto done; - -#if defined(CD9660) - error = iso_disklabelspoof(dev, strat, lp); - if (error == 0) - goto done; -#endif -#if defined(UDF) - error = udf_disklabelspoof(dev, strat, lp); - if (error == 0) - goto done; -#endif - -done: - if (bp) { - bp->b_flags |= B_INVAL; - brelse(bp); - } - disk_change = 1; - return (error); -} - -/* - * Write disk label back to device after modification. - */ -int -writedisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp) -{ - int error = EIO, partoff = -1, cyl = 0; - int offset; - struct disklabel *dlp; - struct buf *bp = NULL; - - /* get a buffer and initialize it */ - bp = geteblk((int)lp->d_secsize); - bp->b_dev = dev; - - if (readdoslabel(bp, strat, lp, &partoff, 1) != 0) - goto done; - - /* Read it in, slap the new label in, and write it back out */ - bp->b_blkno = DL_BLKTOSEC(lp, partoff+LABELSECTOR) * DL_BLKSPERSEC(lp); - offset = DL_BLKOFFSET(lp, partoff + LABELSECTOR) + LABELOFFSET; - bp->b_bcount = lp->d_secsize; - CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); - SET(bp->b_flags, B_BUSY | B_READ | B_RAW); - (*strat)(bp); - if ((error = biowait(bp)) != 0) - goto done; - - dlp = (struct disklabel *)(bp->b_data + offset); - *dlp = *lp; - CLR(bp->b_flags, B_READ | B_WRITE | B_DONE); - SET(bp->b_flags, B_BUSY | B_WRITE | B_RAW); - (*strat)(bp); - error = biowait(bp); - -done: - if (bp) { - bp->b_flags |= B_INVAL; - brelse(bp); - } - disk_change = 1; - return (error); -} diff --git a/sys/arch/mvmeppc/mvmeppc/genassym.cf b/sys/arch/mvmeppc/mvmeppc/genassym.cf deleted file mode 100644 index aaf0c2c59fe..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/genassym.cf +++ /dev/null @@ -1,80 +0,0 @@ -# $OpenBSD: genassym.cf,v 1.9 2005/08/02 21:27:58 drahn Exp $ -# -# Copyright (c) 1982, 1990 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. Neither the name of the University nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# -# @(#)genassym.c 7.8 (Berkeley) 5/7/91 -# - -include <sys/param.h> -include <sys/time.h> -include <sys/proc.h> -include <uvm/uvm_extern.h> - -include <machine/pcb.h> -include <machine/pmap.h> - -export FRAMELEN -struct trapframe FRAME_ -member 0 fixreg[0] -member 1 fixreg[1] -member 2 fixreg[2] -member 3 fixreg[3] -member lr -member cr -member ctr -member xer -member srr0 -member srr1 -member dar -member dsisr -member exc - -define SFRAMELEN roundup(sizeof(struct switchframe), 16) - -struct pcb -member PCB_PMR pcb_pmreal -member pcb_sp -member pcb_spl -member PCB_FAULT pcb_onfault - -struct pmap -member PM_USRSR pm_sr[PPC_USER_SR] -member PM_KERNELSR pm_sr[PPC_KERNEL_SR] - -struct proc -member p_forw -member p_back -member p_addr -member p_stat - -struct sigframe -member sf_sc - -struct fpsig - -export SONPROC diff --git a/sys/arch/mvmeppc/mvmeppc/locore.S b/sys/arch/mvmeppc/mvmeppc/locore.S deleted file mode 100644 index 381cb10e373..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/locore.S +++ /dev/null @@ -1,1213 +0,0 @@ -/* $OpenBSD: locore.S,v 1.13 2008/07/28 19:08:46 miod Exp $ */ -/* $NetBSD: locore.S,v 1.2 1996/10/16 19:33:09 ws Exp $ */ - -/* - * Copyright (C) 1995, 1996 Wolfgang Solfrank. - * Copyright (C) 1995, 1996 TooLs GmbH. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "assym.h" - -#include <sys/syscall.h> - -#include <machine/asm.h> -#include <machine/param.h> -#include <machine/pmap.h> -#include <machine/psl.h> -#include <machine/trap.h> - -/* - * Globals - */ - .globl _C_LABEL(esym),_C_LABEL(proc0paddr) - .type _C_LABEL(esym),@object - .type _C_LABEL(proc0paddr),@object - .data -_C_LABEL(esym): .long 0 /* end of symbol table */ -_C_LABEL(proc0paddr): .long 0 /* proc0 p_addr */ -idle_u: .long 0 /* fake uarea during idle after exit */ - -/* - * Startup entry - */ -_ENTRY(_C_LABEL(kernel_text)) -_ENTRY(_ASM_LABEL(start)) -/* - * Arguments to start for mvmeppc - * r1 - stack provided by firmware/bootloader - * r3 - boot flags - * r4 - boot device - * r5 - firmware pointer (NULL for PPC1bug) - * r6 - arg list (NULL) - * r7 - length (0) - * r8 - end of symbol table - */ - .globl start - .type start,@function -start: - li %r0,0 - mtmsr %r0 /* Disable FPU/MMU/exceptions */ - isync - - /* save boot device and flags */ - lis %r9, _C_LABEL(boothowto)@ha - stw %r3, _C_LABEL(boothowto)@l(%r9) - lis %r9, _C_LABEL(bootdev)@ha - stw %r4, _C_LABEL(bootdev)@l(%r9) - -/* compute end of kernel memory */ -#if defined(DDB) - lis %r9,_C_LABEL(esym)@ha - stw %r8,_C_LABEL(esym)@l(%r9) /* save for symbol handling */ -#else - lis %r8,_end@ha - addi %r8,%r8,_end@l -#endif - li %r9,PGOFSET - add %r8,%r8,%r9 - andc %r8,%r8,%r9 - lis %r9,idle_u@ha - stw %r8,idle_u@l(%r9) - addi %r8,%r8,USPACE /* space for idle_u */ - lis %r9,_C_LABEL(proc0paddr)@ha - stw %r8,_C_LABEL(proc0paddr)@l(%r9) - addi %r1,%r8,USPACE-FRAMELEN /* stackpointer for proc0 */ - mr %r4,%r1 /* end of mem reserved for kernel */ - li %r0,0 - stwu %r0,-16(%r1) /* end of stack chain */ - - lis %r3,start@ha - addi %r3,%r3,start@l - mr %r5,%r6 /* args string */ - bl _C_LABEL(initppc) - bl _C_LABEL(main) - b _C_LABEL(PPC1_exit) - -/* - * No processes are runnable, so loop waiting for one. - * Separate label here for accounting purposes. - */ -_C_LABEL(idle): - mfmsr %r3 - /* disable interrupts while manipulating runque */ - andi. %r3,%r3,~PSL_EE@l - mtmsr %r3 - - lis %r8,_C_LABEL(whichqs)@ha - lwz %r9,_C_LABEL(whichqs)@l(%r8) - - or. %r9,%r9,%r9 - bne- _C_LABEL(sw1) /* at least one queue non-empty */ - - ori %r3,%r3,PSL_EE /* reenable ints again */ - mtmsr %r3 - isync - sync - /* low power mode */ - mfmsr %r3 - oris %r3, %r3, PSL_POW@h - mtmsr %r3 - isync - -/* May do some power saving here? */ - - b _C_LABEL(idle) - -/* - * switchexit gets called from cpu_exit to free the user structure - * and kernel stack of the current process. - */ -_ENTRY(_C_LABEL(switchexit)) -/* First switch to the idle pcb/kernel stack */ - lis %r6,idle_u@ha - lwz %r6,idle_u@l(%r6) - lis %r7,_C_LABEL(curpcb)@ha - stw %r6,_C_LABEL(curpcb)@l(%r7) - addi %r1,%r6,USPACE-16 /* 16 bytes are reserved at stack top */ - /* - * Schedule the vmspace and stack to be freed (the proc arg is - * already in r3). - */ - bl _C_LABEL(exit2) - - /* Fall through to cpu_switch to actually select another proc */ - li %r3,0 /* indicate exited process */ - -/* Fall through to cpu_switch to actually select another proc */ - -/* - * void cpu_switch(struct proc *p) - * Find a runnable process and switch to it. - */ -_ENTRY(_C_LABEL(cpu_switch)) - mflr %r0 /* save lr */ - stw %r0,4(%r1) - stwu %r1,-16(%r1) - stw %r31,12(%r1) - stw %r30,8(%r1) - - mr %r30,%r3 - lis %r3,_C_LABEL(curproc)@ha - li %r31,0 - /* Zero to not accumulate cpu time */ - stw %r31,_C_LABEL(curproc)@l(%r3) - lis %r3,_C_LABEL(curpcb)@ha - lwz %r31,_C_LABEL(curpcb)@l(%r3) - - li %r3,0 - bl _C_LABEL(lcsplx) - stw %r3,PCB_SPL(%r31) /* save spl */ - -/* Find a new process */ - mfmsr %r3 - andi. %r3,%r3,~PSL_EE@l /* disable interrupts while - manipulating runque */ - mtmsr %r3 - isync - - lis %r8,_C_LABEL(whichqs)@ha - lwz %r9,_C_LABEL(whichqs)@l(%r8) - - or. %r9,%r9,%r9 - beq- _C_LABEL(idle) /* all queues empty */ -_C_LABEL(sw1): - cntlzw %r10,%r9 - lis %r4,_C_LABEL(qs)@ha - addi %r4,%r4,_C_LABEL(qs)@l - slwi %r3,%r10,3 - add %r3,%r3,%r4 /* select queue */ - - lwz %r31,P_FORW(%r3) /* unlink first proc from queue */ - lwz %r4,P_FORW(%r31) - stw %r4,P_FORW(%r3) - stw %r3,P_BACK(%r4) - - cmpl 0,%r3,%r4 /* queue empty? */ - bne 1f - - lis %r3,0x80000000@ha - srw %r3,%r3,%r10 - andc %r9,%r9,%r3 - stw %r9,_C_LABEL(whichqs)@l(%r8) /* mark it empty */ - -1: - stw %r3,P_BACK(%r31) /* probably superfluous */ - - lis %r4,_C_LABEL(curproc)@ha - stw %r31,_C_LABEL(curproc)@l(%r4) /* record new process */ - - li %r3,SONPROC - stb %r3,P_STAT(%r31) - - mfmsr %r3 - ori %r3,%r3,PSL_EE /* Now we can interrupt again */ - mtmsr %r3 - - cmpl 0,%r31,%r30 /* is it the same process? */ - beq switch_return - - or. %r30,%r30,%r30 /* old process was exiting? */ - beq switch_exited - - mfsr %r10,PPC_USER_SR /* save PPC_USER_SR for copyin/copyout*/ - mfcr %r11 /* save cr */ - mr %r12,%r2 /* save r2 */ - stwu %r1,-SFRAMELEN(%r1) /* still running on old stack */ - stmw %r10,8(%r1) - lwz %r3,P_ADDR(%r30) - stw %r1,PCB_SP(%r3) /* save SP */ - -switch_exited: - /* disable interrupts while actually switching */ - mfmsr %r3 - andi. %r3,%r3,~PSL_EE@l - mtmsr %r3 - - lwz %r4,P_ADDR(%r31) - lis %r5,_C_LABEL(curpcb)@ha - stw %r4,_C_LABEL(curpcb)@l(%r5) /* indicate new pcb */ - - lwz %r5,PCB_PMR(%r4) - - /* save real pmap pointer for spill fill */ - lis %r6,_C_LABEL(curpm)@ha - stwu %r5,_C_LABEL(curpm)@l(%r6) - stwcx. %r5,%r0,%r6 /* clear possible reservation */ - - addic. %r5,%r5,64 - li %r6,0 - mfsr %r8,PPC_KERNEL_SR /* save kernel SR */ -1: - addis %r6,%r6,-0x10000000@ha /* set new procs segment registers */ - or. %r6,%r6,%r6 /* This is done from the real address pmap */ - lwzu %r7,-4(%r5) /* so we don't have to worry */ - mtsrin %r7,%r6 /* about accessibility */ - bne 1b - mtsr PPC_KERNEL_SR,%r8 /* restore kernel SR */ - isync - - lwz %r1,PCB_SP(%r4) /* get new procs SP */ - - ori %r3,%r3,PSL_EE /* interrupts are okay again */ - mtmsr %r3 - - lmw %r10,8(%r1) /* get other regs */ - lwz %r1,0(%r1) /* get saved SP */ - mr %r2,%r12 /* get saved r2 */ - mtcr %r11 /* get saved cr */ - isync - mtsr PPC_USER_SR,%r10 /* get saved PPC_USER_SR */ - isync - -switch_return: - mr %r30,%r7 /* save proc pointer */ - lwz %r3,PCB_SPL(%r4) - bl _C_LABEL(lcsplx) - - mr %r3,%r30 /* curproc for special fork returns */ - - lwz %r31,12(%r1) - lwz %r30,8(%r1) - addi %r1,%r1,16 - lwz %r0,4(%r1) - mtlr %r0 - blr - - -/* - * Data used during primary/secondary traps/interrupts - */ -#define tempsave 0x2e0 /* primary save area for trap handling */ -#define disisave 0x3e0 /* primary save area for dsi/isi traps */ -#define INTSTK (8*1024) /* 8K interrupt stack */ - .data -intstk: .space INTSTK /* interrupt stack */ - .global _C_LABEL(intr_depth) - .type _C_LABEL(intr_depth),@object -_C_LABEL(intr_depth): - .long -1 /* in-use marker */ -#define SPILLSTK 1024 /* 1K spill stack */ -.lcomm spillstk,SPILLSTK,8 - -/* - * This code gets copied to all the trap vectors - * except ISI/DSI, ALI, and the interrupts - */ - .text - .globl _C_LABEL(trapcode),_C_LABEL(trapsize) - .type _C_LABEL(trapcode),@function - .type _C_LABEL(trapsize),@object -_C_LABEL(trapcode): - mtsprg 1,%r1 /* save SP */ - stmw %r28,tempsave(%r0) /* free r28-r31 */ - mflr %r28 /* save LR */ - mfcr %r29 /* save CR */ - - /* Test whether we already had PR set */ - mfsrr1 %r31 - mtcr %r31 - bc 4,17,1f /* branch if PSL_PR is clear */ - lis %r1,_C_LABEL(curpcb)@ha - lwz %r1,_C_LABEL(curpcb)@l(%r1) - addi %r1,%r1,USPACE /* stack is top of user struct */ -1: - bla s_trap -_C_LABEL(trapsize) = .-_C_LABEL(trapcode) - -/* - * For ALI: has to save DSISR and DAR - */ - .globl _C_LABEL(alitrap),_C_LABEL(alisize) -_C_LABEL(alitrap): - mtsprg 1,%r1 /* save SP */ - stmw %r28,tempsave(0) /* free r28-r31 */ - mfdar %r30 - mfdsisr %r31 - stmw %r30,tempsave+16(0) - mflr %r28 /* save LR */ - mfcr %r29 /* save CR */ - - /* Test whether we already had PR set */ - mfsrr1 %r31 - mtcr %r31 - bc 4,17,1f /* branch if PSL_PR is clear */ - lis %r1,_C_LABEL(curpcb)@ha - lwz %r1,_C_LABEL(curpcb)@l(%r1) - addi %r1,%r1,USPACE /* stack is top of user struct */ -1: - bla s_trap -_C_LABEL(alisize) = .-_C_LABEL(alitrap) - -/* - * Similar to the above for DSI - * Has to handle BAT spills - * and standard pagetable spills - */ - .globl _C_LABEL(dsitrap),_C_LABEL(dsisize) - .type _C_LABEL(dsitrap),@function - .type _C_LABEL(dsisize),@object -_C_LABEL(dsitrap): - stmw %r28,disisave(0) /* free r28-r31 */ - mfcr %r29 /* save CR */ - mfxer %r30 /* save XER */ - mtsprg 2,%r30 /* in SPRG2 */ - mfsrr1 %r31 /* test kernel mode */ -#if 0 - mtcr %r31 - bc 12,17,1f /* branch if PSL_PR is set */ - mfdar %r31 /* get fault address */ - rlwinm %r31,%r31,7,25,28 /* get segment * 8 */ - addis %r31,%r31,_C_LABEL(battable)@ha - lwz %r30,_C_LABEL(battable)@l(%r31) /* get batu */ - mtcr %r30 - bc 4,30,1f /* branch if supervisor valid is false */ - lwz %r31,_C_LABEL(battable)+4@l(%r31) /* get batl */ -/* We randomly use the highest two bat registers here */ - mftb %r28 - andi. %r28,%r28,1 - bne 2f - mtdbatu 2,%r30 - mtdbatl 2,%r31 - b 3f -2: - mtdbatu 3,%r30 - mtdbatl 3,%r31 -3: - mfsprg %r30,2 /* restore XER */ - mtxer %r30 - mtcr %r29 /* restore CR */ - lmw %r28,disisave(0) /* restore r28-r31 */ - rfi /* return to trapped code */ -1: -#endif - mflr %r28 /* save LR */ - bla s_dsitrap -_C_LABEL(dsisize) = .-_C_LABEL(dsitrap) - -/* - * Similar to the above for ISI - */ - .globl _C_LABEL(isitrap),_C_LABEL(isisize) - .type _C_LABEL(isitrap),@function - .type _C_LABEL(isisize),@object -_C_LABEL(isitrap): - stmw %r28,disisave(0) /* free r28-r31 */ - mflr %r28 /* save LR */ - mfcr %r29 /* save CR */ - mfsrr1 %r31 /* test kernel mode */ -#if 0 - mtcr %r31 - bc 12,17,1f /* branch if PSL_PR is set */ - mfsrr0 %r31 /* get fault address */ - rlwinm %r31,%r31,7,25,28 /* get segment * 8 */ - addis %r31,%r31,_C_LABEL(battable)@ha - lwz %r30,_C_LABEL(battable)@l(%r31) /* get batu */ - mtcr %r30 - bc 4,30,1f /* branch if supervisor valid is false */ - mtibatu 3,%r30 - lwz %r30,_C_LABEL(battable)+4@l(%r31) /* get batl */ - mtibatl 3,%r30 - mtcr %r29 /* restore CR */ - lmw %r28,disisave(0) /* restore r28-r31 */ - rfi /* return to trapped code */ -1: -#endif - bla s_isitrap -_C_LABEL(isisize) = .-_C_LABEL(isitrap) - -/* - * This one for the external interrupt handler. - */ - .globl _C_LABEL(extint),_C_LABEL(extsize) - .type _C_LABEL(extint),@function - .type _C_LABEL(extsize),@object -_C_LABEL(extint): - mtsprg 1,%r1 /* save SP */ - stmw %r28,tempsave(0) /* free r28-r31 */ - mflr %r28 /* save LR */ - mfcr %r29 /* save CR */ - mfxer %r30 /* save XER */ - lis %r1,intstk+INTSTK@ha /* get interrupt stack */ - addi %r1,%r1,intstk+INTSTK@l - lwz %r31,0(%r1) /* were we already running on intstk? */ - addic. %r31,%r31,%r1 - stw %r31,0(%r1) - beq 1f - mfsprg %r1,1 /* yes, get old SP */ -1: - ba extintr -_C_LABEL(extsize) = .-_C_LABEL(extint) - -/* - * And this one for the decrementer interrupt handler. - */ - .globl _C_LABEL(decrint),_C_LABEL(decrsize) - .type _C_LABEL(decrint),@function - .type _C_LABEL(decrsize),@object -_C_LABEL(decrint): - mtsprg 1,%r1 /* save SP */ - stmw %r28,tempsave(0) /* free r28-r31 */ - mflr %r28 /* save LR */ - mfcr %r29 /* save CR */ - mfxer %r30 /* save XER */ - lis %r1,intstk+INTSTK@ha /* get interrupt stack */ - addi %r1,%r1,intstk+INTSTK@l - lwz %r31,0(%r1) /* were we already running on intstk? */ - addic. %r31,%r31,%r1 - stw %r31,0(%r1) - beq 1f - mfsprg %r1,1 /* yes, get old SP */ -1: - ba decrintr -_C_LABEL(decrsize) = .-_C_LABEL(decrint) - -/* - * Now the tlb software load for 603 processors: - * (Code essentially from the 603e User Manual, Chapter 5) - */ -#define DMISS 976 -#define DCMP 977 -#define HASH1 978 -#define HASH2 979 -#define IMISS 980 -#define ICMP 981 -#define RPA 982 - -#define bdneq bdnzf 2, -#define tlbli .long 0x7c0007e4+0x800* -#define tlbld .long 0x7c0007a4+0x800* - - .globl _C_LABEL(tlbimiss),_C_LABEL(tlbimsize) - .type _C_LABEL(tlbimiss),@function - .type _C_LABEL(tlbimsize),@object -_C_LABEL(tlbimiss): - mfspr %r2,HASH1 /* get first pointer */ - li %r1,8 - mfctr %r0 /* save counter */ - mfspr %r3,ICMP /* get first compare value */ - addi %r2,%r2,-8 /* predec pointer */ -1: - mtctr %r1 /* load counter */ -2: - lwzu %r1,8(%r2) /* get next pte */ - cmpl 0,%r1,%r3 /* see if found pte */ - bdneq 2b /* loop if not eq */ - bne 3f /* not found */ - lwz %r1,4(%r2) /* load tlb entry lower word */ - andi. %r3,%r1,8 /* check G-bit */ - bne 4f /* if guarded, take ISI */ - mtctr %r0 /* restore counter */ - mfspr %r0,IMISS /* get the miss address for the tlbli */ - mfsrr1 %r3 /* get the saved cr0 bits */ - mtcrf 0x80,%r3 /* and restore */ - ori %r1,%r1,0x100 /* set the reference bit */ - mtspr RPA,%r1 /* set the pte */ - srwi %r1,%r1,8 /* get byte 7 of pte */ - tlbli 0 /* load the itlb */ - stb %r1,6(%r2) /* update page table */ - rfi - -3: /* not found in pteg */ - andi. %r1,%r3,0x40 /* have we already done second hash? */ - bne 5f - mfspr %r2,HASH2 /* get the second pointer */ - ori %r3,%r3,0x40 /* change the compare value */ - li %r1,8 - addi %r2,%r2,-8 /* predec pointer */ - b 1b -4: /* guarded */ - mfsrr1 %r3 - andi. %r2,%r3,0xffff /* clean upper srr1 */ - addis %r2,%r2,0x800 /* set srr<4> to flag prot violation */ - b 6f -5: /* not found anywhere */ - mfsrr1 %r3 - andi. %r2,%r3,0xffff /* clean upper srr1 */ - addis %r2,%r2,0x4000 /* set srr1<1> to flag pte not found */ -6: - mtctr %r0 /* restore counter */ - mtsrr1 %r2 - mfmsr %r0 - xoris %r0,%r0,2 /* flip the msr<tgpr> bit */ - mtcrf 0x80,%r3 /* restore cr0 */ - mtmsr %r0 /* now with native gprs */ - isync - ba EXC_ISI -_C_LABEL(tlbimsize) = .-_C_LABEL(tlbimiss) - - .globl _C_LABEL(tlbdlmiss),_C_LABEL(tlbdlmsize) - .type _C_LABEL(tlbdlmiss),@function - .type _C_LABEL(tlbdlmsize),@object -_C_LABEL(tlbdlmiss): - mfspr %r2,HASH1 /* get first pointer */ - li %r1,8 - mfctr %r0 /* save counter */ - mfspr %r3,DCMP /* get first compare value */ - addi %r2,%r2,-8 /* predec pointer */ -1: - mtctr %r1 /* load counter */ -2: - lwzu %r1,8(%r2) /* get next pte */ - cmpl 0,%r1,%r3 /* see if found pte */ - bdneq 2b /* loop if not eq */ - bne 3f /* not found */ - lwz %r1,4(%r2) /* load tlb entry lower word */ - mtctr %r0 /* restore counter */ - mfspr %r0,DMISS /* get the miss address for the tlbld */ - mfsrr1 %r3 /* get the saved cr0 bits */ - mtcrf 0x80,%r3 /* and restore */ - ori %r1,%r1,0x100 /* set the reference bit */ - mtspr RPA,%r1 /* set the pte */ - srwi %r1,%r1,8 /* get byte 7 of pte */ - tlbld 0 /* load the dtlb */ - stb %r1,6(%r2) /* update page table */ - rfi - -3: /* not found in pteg */ - andi. %r1,%r3,0x40 /* have we already done second hash? */ - bne 5f - mfspr %r2,HASH2 /* get the second pointer */ - ori %r3,%r3,0x40 /* change the compare value */ - li %r1,8 - addi %r2,%r2,-8 /* predec pointer */ - b 1b -5: /* not found anywhere */ - mfsrr1 %r3 - lis %r1,0x4000 /* set dsisr<1> to flag pte not found */ - mtctr %r0 /* restore counter */ - andi. %r2,%r3,0xffff /* clean upper srr1 */ - mtsrr1 %r2 - mtdsisr %r1 /* load the dsisr */ - mfspr %r1,DMISS /* get the miss address */ - mtdar %r1 /* put in dar */ - mfmsr %r0 - xoris %r0,%r0,2 /* flip the msr<tgpr> bit */ - mtcrf 0x80,%r3 /* restore cr0 */ - mtmsr %r0 /* now with native gprs */ - isync - ba EXC_DSI -_C_LABEL(tlbdlmsize) = .-_C_LABEL(tlbdlmiss) - - .globl _C_LABEL(tlbdsmiss),_C_LABEL(tlbdsmsize) - .type _C_LABEL(tlbdsmiss),@function - .type _C_LABEL(tlbdsmsize),@object -_C_LABEL(tlbdsmiss): - mfspr %r2,HASH1 /* get first pointer */ - li %r1,8 - mfctr %r0 /* save counter */ - mfspr %r3,DCMP /* get first compare value */ - addi %r2,%r2,-8 /* predec pointer */ -1: - mtctr %r1 /* load counter */ -2: - lwzu %r1,8(%r2) /* get next pte */ - cmpl 0,%r1,%r3 /* see if found pte */ - bdneq 2b /* loop if not eq */ - bne 3f /* not found */ - lwz %r1,4(%r2) /* load tlb entry lower word */ - andi. %r3,%r1,0x80 /* check the C-bit */ - beq 4f -5: - mtctr %r0 /* restore counter */ - mfspr %r0,DMISS /* get the miss address for the tlbld */ - mfsrr1 %r3 /* get the saved cr0 bits */ - mtcrf 0x80,%r3 /* and restore */ - mtspr RPA,%r1 /* set the pte */ - tlbld 0 /* load the dtlb */ - rfi - -3: /* not found in pteg */ - andi. %r1,%r3,0x40 /* have we already done second hash? */ - bne 5f - mfspr %r2,HASH2 /* get the second pointer */ - ori %r3,%r3,0x40 /* change the compare value */ - li %r1,8 - addi %r2,%r2,-8 /* predec pointer */ - b 1b -4: /* found, but C-bit = 0 */ - rlwinm. %r3,%r1,30,0,1 /* test PP */ - bge- 7f - andi. %r3,%r1,1 - beq+ 8f -9: /* found, but protection violation (PP==00)*/ - mfsrr1 %r3 - lis %r1,0xa00 /* indicate protection violation on store */ - b 1f -7: /* found, PP=1x */ - mfspr %r3,DMISS /* get the miss address */ - mfsrin %r1,%r3 /* get the segment register */ - mfsrr1 %r3 - rlwinm %r3,%r3,18,31,31 /* get PR-bit */ - rlwnm. %r2,%r2,3,1,1 /* get the key */ - bne- 9b /* protection violation */ -8: /* found, set reference/change bits */ - lwz %r1,4(%r2) /* reload tlb entry */ - ori %r1,%r1,0x180 - sth %r1,6(%r2) - b 5b -5: /* not found anywhere */ - mfsrr1 %r3 - lis %r1,0x4200 /* set dsisr<1> to flag pte not found */ - /* dsisr<6> to flag store */ -1: - mtctr %r0 /* restore counter */ - andi. %r2,%r3,0xffff /* clean upper srr1 */ - mtsrr1 %r2 - mtdsisr %r1 /* load the dsisr */ - mfspr %r1,DMISS /* get the miss address */ - mtdar %r1 /* put in dar */ - mfmsr %r0 - xoris %r0,%r0,2 /* flip the msr<tgpr> bit */ - mtcrf 0x80,%r3 /* restore cr0 */ - mtmsr %r0 /* now with native gprs */ - isync - ba EXC_DSI -_C_LABEL(tlbdsmsize) = .-_C_LABEL(tlbdsmiss) - -#ifdef DDB -#define ddbsave 0xde0 /* primary save area for DDB */ -/* - * In case of DDB we want a separate trap catcher for it - */ - .local ddbstk - .comm ddbstk,INTSTK,8 /* ddb stack */ - - .globl _C_LABEL(ddblow),_C_LABEL(ddbsize) -_C_LABEL(ddblow): - mtsprg 1,%r1 /* save SP */ - stmw %r28,ddbsave(0) /* free r28-r31 */ - mflr %r28 /* save LR */ - mfcr %r29 /* save CR */ - lis %r1,ddbstk+INTSTK@ha /* get new SP */ - addi %r1,%r1,ddbstk+INTSTK@l - bla ddbtrap -_C_LABEL(ddbsize) = .-_C_LABEL(ddblow) -#endif /* DDB */ - - -/* - * FRAME_SETUP assumes: - * SPRG1 SP (1) - * savearea r28-r31,DAR,DSISR (DAR & DSISR only for DSI traps) - * 28 LR - * 29 CR - * 1 kernel stack - * LR trap type - * SRR0/1 as at start of trap - */ -#define FRAME_SETUP(savearea) \ -/* Have to enable translation to allow access of kernel stack: */ \ - mfsrr0 %r30; \ - mfsrr1 %r31; \ - stmw %r30,savearea+24(0); \ - mfmsr %r30; \ - ori %r30,%r30,(PSL_DR|PSL_IR); \ - mtmsr %r30; \ - isync; \ - mfsprg %r31,1; \ - stwu %r31,-FRAMELEN(%r1); \ - stw %r0,FRAME_0+8(%r1); \ - stw %r31,FRAME_1+8(%r1); \ - stw %r28,FRAME_LR+8(%r1); \ - stw %r29,FRAME_CR+8(%r1); \ - lmw %r28,savearea(0); \ - stmw %r2,FRAME_2+8(%r1); \ - lmw %r28,savearea+16(0); \ - mfxer %r3; \ - mfctr %r4; \ - mflr %r5; \ - andi. %r5,%r5,0xff00; \ - stw %r3,FRAME_XER+8(%r1); \ - stw %r4,FRAME_CTR+8(%r1); \ - stw %r5,FRAME_EXC+8(%r1); \ - stw %r28,FRAME_DAR+8(%r1); \ - stw %r29,FRAME_DSISR+8(%r1); \ - stw %r30,FRAME_SRR0+8(%r1); \ - stw %r31,FRAME_SRR1+8(%r1) - -#define FRAME_LEAVE(savearea) \ -/* Now restore regs: */ \ - lwz %r2,FRAME_SRR0+8(%r1); \ - lwz %r3,FRAME_SRR1+8(%r1); \ - lwz %r4,FRAME_CTR+8(%r1); \ - lwz %r5,FRAME_XER+8(%r1); \ - lwz %r6,FRAME_LR+8(%r1); \ - lwz %r7,FRAME_CR+8(%r1); \ - stw %r2,savearea(0); \ - stw %r3,savearea+4(0); \ - mtctr %r4; \ - mtxer %r5; \ - mtlr %r6; \ - mtsprg 1,%r7; /* save cr */ \ - lmw %r2,FRAME_2+8(%r1); \ - lwz %r0,FRAME_0+8(%r1); \ - lwz %r1,FRAME_1+8(%r1); \ - mtsprg 2,%r2; /* save r2 & r3 */ \ - mtsprg 3,%r3; \ -/* Disable translation, machine check and recoverability: */ \ - mfmsr %r2; \ - lis %r3,(PSL_DR|PSL_IR|PSL_ME|PSL_RI)@ha; \ - addi %r3,%r3,(PSL_DR|PSL_IR|PSL_ME|PSL_RI)@l; \ - andc %r2,%r2,%r3; \ - mtmsr %r2; \ - isync; \ -/* Decide whether we return to user mode: */ \ - lwz %r3,savearea+4(0); \ - mtcr %r3; \ - bc 4,17,1f; /* branch if PSL_PR is false */ \ -/* Restore user & kernel access SR: */ \ - lis %r2,_C_LABEL(curpm)@ha; /* get real address of pmap */ \ - lwz %r2,_C_LABEL(curpm)@l(%r2); \ - lwz %r3,PM_USRSR(%r2); \ - mtsr PPC_USER_SR,%r3; \ - lwz %r3,PM_KERNELSR(%r2); \ - mtsr PPC_KERNEL_SR,%r3; \ -1: mfsprg %r2,1; /* restore cr */ \ - mtcr %r2; \ - lwz %r2,savearea(0); \ - lwz %r3,savearea+4(0); \ - mtsrr0 %r2; \ - mtsrr1 %r3; \ - mfsprg %r2,2; /* restore r2 & r3 */ \ - mfsprg %r3,3 - -/* - * Preamble code for DSI/ISI traps - */ -disitrap: - lmw %r30,disisave(0) - stmw %r30,tempsave(0) - lmw %r30,disisave+8(0) - stmw %r30,tempsave+8(0) - mfdar %r30 - mfdsisr %r31 - stmw %r30,tempsave+16(0) -realtrap: - /* Test whether we already had PR set */ - mfsrr1 %r1 - mtcr %r1 - /* restore SP (might have been overwritten) */ - mfsprg %r1,1 - bc 4,17,s_trap /* branch if PSL_PR is false */ - lis %r1,_C_LABEL(curpcb)@ha - lwz %r1,_C_LABEL(curpcb)@l(%r1) - addi %r1,%r1,USPACE /* stack is top of user struct */ -/* - * Now the common trap catching code. - */ -s_trap: -/* First have to enable KERNEL mapping */ - lis %r31,PPC_KERNEL_SEGMENT@ha - addi %r31,%r31,PPC_KERNEL_SEGMENT@l - mtsr PPC_KERNEL_SR,%r31 - FRAME_SETUP(tempsave) -/* Now we can recover interrupts again: */ - mfmsr %r7 - mfsrr1 %r31 - andi. %r31,%r31,PSL_EE /* restore EE from previous context */ - or %r7,%r7,%r31 - ori %r7,%r7,(PSL_ME|PSL_RI) - mtmsr %r7 - isync -/* Call C trap code: */ -trapagain: - addi %r3,%r1,8 - bl _C_LABEL(trap) -trapexit: -/* Disable interrupts: */ - mfmsr %r3 - andi. %r3,%r3,~PSL_EE@l - mtmsr %r3 -/* Test AST pending: */ - lwz %r5,FRAME_SRR1+8(%r1) - mtcr %r5 - bc 4,17,1f /* branch if PSL_PR is false */ - lis %r3,_C_LABEL(astpending)@ha - lwz %r4,_C_LABEL(astpending)@l(%r3) - andi. %r4,%r4,1 - beq 1f - li %r6,EXC_AST - stw %r6,FRAME_EXC+8(%r1) - b trapagain -1: - FRAME_LEAVE(tempsave) - rfi - -/* - * Child comes here at the end of a fork. - * Mostly similar to the above. - */ - .globl _C_LABEL(fork_trampoline) - .type _C_LABEL(fork_trampoline),@function -_C_LABEL(fork_trampoline): - li %r3,0 - bl _C_LABEL(lcsplx) - mtlr %r31 - mr %r3,%r30 - blrl /* jump indirect to r31 */ - b trapexit - -/* - * DSI second stage fault handler - */ -s_dsitrap: - mfdsisr %r31 /* test if this is spill fault */ - mtcr %r31 - mtsprg 1,%r1 /* save SP */ - bc 4,1,disitrap /* branch if table miss is false */ - lis %r1,spillstk+SPILLSTK@ha - addi %r1,%r1,spillstk+SPILLSTK@l /* get spill stack */ - stwu %r1,-52(%r1) - stw %r0,48(%r1) /* save non-volatile registers */ - stw %r3,44(%r1) - stw %r4,40(%r1) - stw %r5,36(%r1) - stw %r6,32(%r1) - stw %r7,28(%r1) - stw %r8,24(%r1) - stw %r9,20(%r1) - stw %r10,16(%r1) - stw %r11,12(%r1) - stw %r12,8(%r1) - mfxer %r30 /* save XER */ - mtsprg 2,%r30 - mflr %r30 /* save trap type */ - mfctr %r31 /* & CTR */ - mfdar %r3 - mfsrr1 %r4 - mfdsisr %r5 - li %r6, 0 -s_pte_spill: - bl _C_LABEL(pte_spill_r) /* try a spill */ - cmpwi 0,%r3,0 - mtctr %r31 /* restore CTR */ - mtlr %r30 /* and trap type */ - mfsprg %r31,2 /* get saved XER */ - mtxer %r31 /* restore XER */ - lwz %r12,8(%r1) /* restore non-volatile registers */ - lwz %r11,12(%r1) - lwz %r10,16(%r1) - lwz %r9,20(%r1) - lwz %r8,24(%r1) - lwz %r7,28(%r1) - lwz %r6,32(%r1) - lwz %r5,36(%r1) - lwz %r4,40(%r1) - lwz %r3,44(%r1) - lwz %r0,48(%r1) - beq disitrap - mfsprg %r1,1 /* restore SP */ - mtcr %r29 /* restore CR */ - mtlr %r28 /* restore LR */ - lmw %r28,disisave(0) /* restore r28-r31 */ - rfi /* return to trapped code */ - -/* - * ISI second stage fault handler - */ -s_isitrap: - mfsrr1 %r31 /* test if this may be a spill fault */ - mtcr %r31 - mtsprg 1,%r1 /* save SP */ - bc 4,%r1,disitrap /* branch if table miss is false */ - lis %r1,spillstk+SPILLSTK@ha - addi %r1,%r1,spillstk+SPILLSTK@l /* get spill stack */ - stwu %r1,-52(%r1) - stw %r0,48(%r1) /* save non-volatile registers */ - stw %r3,44(%r1) - stw %r4,40(%r1) - stw %r5,36(%r1) - stw %r6,32(%r1) - stw %r7,28(%r1) - stw %r8,24(%r1) - stw %r9,20(%r1) - stw %r10,16(%r1) - stw %r11,12(%r1) - stw %r12,8(%r1) - mfxer %r30 /* save XER */ - mtsprg 2,%r30 - mflr %r30 /* save trap type */ - mfctr %r31 /* & ctr */ - mfsrr0 %r3 - mfsrr1 %r4 - li %r5, 0 - li %r6, 1 - b s_pte_spill /* above */ - -/* - * External interrupt second level handler - */ -#define INTRENTER \ -/* Save non-volatile registers: */ \ - stwu %r1,-88(%r1); /* temporarily */ \ - stw %r0,84(%r1); \ - mfsprg %r0,1; /* get original SP */ \ - stw %r0,0(%r1); /* and store it */ \ - stw %r3,80(%r1); \ - stw %r4,76(%r1); \ - stw %r5,72(%r1); \ - stw %r6,68(%r1); \ - stw %r7,64(%r1); \ - stw %r8,60(%r1); \ - stw %r9,56(%r1); \ - stw %r10,52(%r1); \ - stw %r11,48(%r1); \ - stw %r12,44(%r1); \ - stw %r28,40(%r1); /* saved LR */ \ - stw %r29,36(%r1); /* saved CR */ \ - stw %r30,32(%r1); /* saved XER */ \ - lmw %r28,tempsave(0); /* restore r28-r31 */ \ - mfctr %r6; \ - lis %r5,_C_LABEL(intr_depth)@ha; \ - lwz %r5,_C_LABEL(intr_depth)@l(%r5); \ - mfsrr0 %r4; \ - mfsrr1 %r3; \ - stw %r6,28(%r1); \ - stw %r5,20(%r1); \ - stw %r4,12(%r1); \ - stw %r3,8(%r1); \ -/* interrupts are recoverable here, and enable translation */ \ - lis %r3,(PPC_KERNEL_SEGMENT|SR_SUKEY|SR_PRKEY)@ha; \ - addi %r3,%r3,(PPC_KERNEL_SEGMENT|SR_SUKEY|SR_PRKEY)@l; \ - mtsr PPC_KERNEL_SR,%r3; \ - mfmsr %r5; \ - ori %r5,%r5,(PSL_IR|PSL_DR|PSL_RI); \ - mtmsr %r5; \ - isync - - .globl _C_LABEL(extint_call) - .type _C_LABEL(extint_call),@function -extintr: - INTRENTER -_C_LABEL(extint_call): - bl _C_LABEL(extint_call) /* to be filled in later */ -intr_exit: -/* Disable interrupts (should already be disabled) and MMU here: */ - mfmsr %r3 - andi. %r3,%r3,~(PSL_EE|PSL_ME|PSL_RI|PSL_DR|PSL_IR)@l - mtmsr %r3 - isync -/* restore possibly overwritten registers: */ - lwz %r12,44(%r1) - lwz %r11,48(%r1) - lwz %r10,52(%r1) - lwz %r9,56(%r1) - lwz %r8,60(%r1) - lwz %r7,64(%r1) - lwz %r6,8(%r1) - lwz %r5,12(%r1) - lwz %r4,28(%r1) - lwz %r3,32(%r1) - mtsrr1 %r6 - mtsrr0 %r5 - mtctr %r4 - mtxer %r3 -/* Returning to user mode? */ - mtcr %r6 /* saved SRR1 */ - bc 4,17,1f /* branch if PSL_PR is false */ - lis %r3,_C_LABEL(curpm)@ha /* get current pmap real address */ - lwz %r3,_C_LABEL(curpm)@l(%r3) - lwz %r3,PM_KERNELSR(%r3) - mtsr PPC_KERNEL_SR,%r3 /* Restore kernel SR */ - lis %r3,_C_LABEL(astpending)@ha /* Test AST pending */ - lwz %r4,_C_LABEL(astpending)@l(%r3) - andi. %r4,%r4,1 - beq 1f -/* Setup for entry to realtrap: */ - lwz %r3,0(%r1) /* get saved SP */ - mtsprg %r1,3 - li %r6,EXC_AST - stmw %r28,tempsave(0) /* establish tempsave again */ - mtlr %r6 - lwz %r28,40(%r1) /* saved LR */ - lwz %r29,36(%r1) /* saved CR */ - lwz %r6,68(%r1) - lwz %r5,72(%r1) - lwz %r4,76(%r1) - lwz %r3,80(%r1) - lwz %r0,84(%r1) - lis %r30,_C_LABEL(intr_depth)@ha /* adjust reentrancy count */ - lwz %r31,_C_LABEL(intr_depth)@l(%r30) - addi %r31,%r31,-1 - stw %r31,_C_LABEL(intr_depth)@l(%r30) - b realtrap -1: -/* Here is the normal exit of extintr: */ - lwz %r5,36(%r1) - lwz %r6,40(%r1) - mtcr %r5 - mtlr %r6 - lwz %r6,68(%r1) - lwz %r5,72(%r1) - lis %r3,_C_LABEL(intr_depth)@ha /* adjust reentrancy count */ - lwz %r4,_C_LABEL(intr_depth)@l(%r3) - addi %r4,%r4,-1 - stw %r4,_C_LABEL(intr_depth)@l(%r3) - lwz %r4,76(%r1) - lwz %r3,80(%r1) - lwz %r0,84(%r1) - lwz %r1,0(%r1) - rfi - -/* - * Decrementer interrupt second level handler - */ -decrintr: - INTRENTER - addi %r3,%r1,8 /* intr frame */ - bl _C_LABEL(decr_intr) - b intr_exit - - -/* - * int setfault() - * - * Similar to setjmp to setup for handling faults on accesses to user memory. - * Any routine using this may only call bcopy, either the form below, - * or the (currently used) C code optimized, so it doesn't use any non-volatile - * registers. - */ - .globl _C_LABEL(setfault) - .type _C_LABEL(setfault),@function -_C_LABEL(setfault): - mflr %r0 - mfcr %r12 - mfmsr %r2 - lis %r4,_C_LABEL(curpcb)@ha - lwz %r4,_C_LABEL(curpcb)@l(%r4) - stw %r3,PCB_FAULT(%r4) - stw %r0,0(%r3) - stw %r2,4(%r3) - stw %r1,8(%r3) - stmw %r12,12(%r3) - li %r3,0 - blr - -/* - * The following code gets copied to the top of the user stack on process - * execution. It does signal trampolining on signal delivery. - * - * On entry r1 points to a struct sigframe at bottom of current stack. - * All other registers are unchanged. - */ - .globl _C_LABEL(sigcode),_C_LABEL(esigcode) - .type _C_LABEL(sigcode),@function - .type _C_LABEL(esigcode),@function -_C_LABEL(sigcode): - addi %r1,%r1,-((16+FPSIG_SIZEOF+15)& ~0xf) /* reserved space for callee */ - addi %r6,%r1,8 - stfd %f0,0(%r6) - stfd %f1,8(%r6) - stfd %f2,16(%r6) - stfd %f3,24(%r6) - stfd %f4,32(%r6) - stfd %f5,40(%r6) - stfd %f6,48(%r6) - stfd %f7,56(%r6) - stfd %f8,64(%r6) - stfd %f9,72(%r6) - stfd %f10,80(%r6) - stfd %f11,88(%r6) - stfd %f12,96(%r6) - stfd %f13,104(%r6) - mffs %f0 - stfd %f0,112(%r6) - lfd %f0,0(%r6) /* restore the clobbered register */ - - blrl - addi %r6,%r1,8 - lfd %f0,112(%r6) - mtfsf 0xff,%f0 - lfd %f0,0(%r6) - lfd %f1,8(%r6) - lfd %f2,16(%r6) - lfd %f3,24(%r6) - lfd %f4,32(%r6) - lfd %f5,40(%r6) - lfd %f6,48(%r6) - lfd %f7,56(%r6) - lfd %f8,64(%r6) - lfd %f9,72(%r6) - lfd %f10,80(%r6) - lfd %f11,88(%r6) - lfd %f12,96(%r6) - lfd %f13,104(%r6) - addi %r3,%r1,((16+FPSIG_SIZEOF+15)&~0xf)+SF_SC /* compute &sf_sc */ - li %r0,SYS_sigreturn - sc /* sigreturn(scp) */ - li %r0,SYS_exit - sc /* exit(errno) */ -_C_LABEL(esigcode): - - -#ifdef DDB -/* - * Deliberate entry to ddbtrap - */ - .globl _C_LABEL(ddb_trap) -_C_LABEL(ddb_trap): - mtsprg %r1,1 - mfmsr %r3 - mtsrr1 %r3 - andi. %r3,%r3,~(PSL_EE|PSL_ME)@l - mtmsr %r3 /* disable interrupts */ - isync - stmw %r28,ddbsave(0) - mflr %r28 - li %r29,EXC_BPT - mtlr %r29 - mfcr %r29 - mtsrr0 %r28 - -/* - * Now the ddb trap catching code. - */ -ddbtrap: - FRAME_SETUP(ddbsave) -/* Call C trap code: */ - addi %r3,%r1,8 - bl _C_LABEL(ddb_trap_glue) - or. %r3,%r3,%r3 - bne ddbleave -/* This wasn't for DDB, so switch to real trap: */ - lwz %r3,FRAME_EXC+8(%r1) /* save exception */ - stw %r3,ddbsave+8(0) - FRAME_LEAVE(ddbsave) - mtsprg %r1,1 /* prepare for entrance to realtrap */ - stmw %r28,tempsave(0) - mflr %r28 - mfcr %r29 - lwz %r31,ddbsave+8(0) - mtlr %r31 - b realtrap -ddbleave: - FRAME_LEAVE(ddbsave) - rfi -#endif /* DDB */ - diff --git a/sys/arch/mvmeppc/mvmeppc/machdep.c b/sys/arch/mvmeppc/mvmeppc/machdep.c deleted file mode 100644 index e5a2f77c2da..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/machdep.c +++ /dev/null @@ -1,796 +0,0 @@ -/* $OpenBSD: machdep.c,v 1.69 2011/07/05 04:48:01 guenther Exp $ */ -/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ - -/* - * Copyright (C) 1995, 1996 Wolfgang Solfrank. - * Copyright (C) 1995, 1996 TooLs GmbH. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/param.h> -#include <sys/buf.h> -#include <sys/timeout.h> -#include <sys/exec.h> -#include <sys/malloc.h> -#include <sys/mbuf.h> -#include <sys/mount.h> -#include <sys/msgbuf.h> -#include <sys/proc.h> -#include <sys/signalvar.h> -#include <sys/reboot.h> -#include <sys/syscallargs.h> -#include <sys/syslog.h> -#include <sys/extent.h> -#include <sys/systm.h> -#include <sys/user.h> - -#include <machine/bat.h> -#include <machine/bugio.h> -#include <machine/pmap.h> -#include <machine/powerpc.h> -#include <machine/trap.h> -#include <machine/autoconf.h> -#include <machine/bus.h> -#include <machine/conf.h> -#include <machine/pio.h> -#include <machine/prom.h> - -#include <dev/cons.h> - -#include <net/if.h> -#include <uvm/uvm_extern.h> - -#ifdef DDB -#include <machine/db_machdep.h> -#include <ddb/db_access.h> -#include <ddb/db_sym.h> -#include <ddb/db_extern.h> -#endif - -void initppc(u_int, u_int, char *); -void dumpsys(void); -int lcsplx(int); -void myetheraddr(u_char *); - -/* - * Global variables used here and there - */ -struct pcb *curpcb; -struct pmap *curpm; -struct proc *fpuproc; - -extern struct user *proc0paddr; - -/* - * This is to fake out the console routines, while booting. - */ -cons_decl(boot); -#define bootcnpollc nullcnpollc - -static struct consdev bootcons = { - NULL, - NULL, - bootcngetc, - bootcnputc, - bootcnpollc, - NULL, - makedev(14, 0), - CN_LOWPRI, -}; - -struct bat battable[16]; - -struct vm_map *exec_map = NULL; -struct vm_map *phys_map = NULL; - -int ppc_malloc_ok; - -#ifndef SYS_TYPE -/* XXX Hardwire it for now */ -#define SYS_TYPE MVME -#endif - -int system_type = SYS_TYPE; /* XXX Hardwire it for now */ - -struct firmware *fw = NULL; -extern struct firmware ppc1_firmware; - -/* - * Extent maps to manage I/O. Allocate storage for 8 regions in each, - * initially. Later devio_malloc_safe will indicate that it's safe to - * use malloc() to dynamically allocate region descriptors. - */ -static long devio_ex_storage[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof (long)]; -struct extent *devio_ex; -static int devio_malloc_safe = 0; - -void -initppc(startkernel, endkernel, args) - u_int startkernel, endkernel; - char *args; -{ - extern void *trapcode; extern int trapsize; - extern void *dsitrap; extern int dsisize; - extern void *isitrap; extern int isisize; - extern void *alitrap; extern int alisize; - extern void *decrint; extern int decrsize; - extern void *tlbimiss; extern int tlbimsize; - extern void *tlbdlmiss; extern int tlbdlmsize; - extern void *tlbdsmiss; extern int tlbdsmsize; -#ifdef DDB - extern void *ddblow; extern int ddbsize; -#endif - extern void consinit(void); - extern void *msgbuf_addr; - int exc, scratch; - - proc0.p_addr = proc0paddr; - bzero(proc0.p_addr, sizeof *proc0.p_addr); - - fw = &ppc1_firmware; /* Just PPC1-Bug for now... */ - buginit(); - - curpcb = &proc0paddr->u_pcb; - - curpm = curpcb->pcb_pmreal = curpcb->pcb_pm = pmap_kernel(); - - /* startup fake console driver. It will be replaced by consinit() */ - cn_tab = &bootcons; - - /* - * Initialize BAT registers to unmapped to not generate - * overlapping mappings below. - */ - ppc_mtibat0u(0); - ppc_mtibat1u(0); - ppc_mtibat2u(0); - ppc_mtibat3u(0); - ppc_mtdbat0u(0); - ppc_mtdbat1u(0); - ppc_mtdbat2u(0); - ppc_mtdbat3u(0); - - /* - * Set up initial BAT table - */ - battable[0].batl = BATL(0x00000000, BAT_M); - battable[0].batu = BATU(0x00000000); - - /* - * Now setup fixed bat registers - * - * Note that we still run in real mode, and the BAT - * registers were cleared above. - */ - /* IBAT0 used for initial 256 MB segment */ - ppc_mtibat0l(battable[0].batl); - ppc_mtibat0u(battable[0].batu); - - /* DBAT0 used similar */ - ppc_mtdbat0l(battable[0].batl); - ppc_mtdbat0u(battable[0].batu); - - /* - * Set up trap vectors - */ - for (exc = EXC_RSVD; exc <= EXC_LAST; exc += 0x100) { - switch (exc) { - default: - bcopy(&trapcode, (void *)exc, (size_t)&trapsize); - break; - case EXC_EXI: - /* - * This one is (potentially) installed during autoconf - */ - break; - - case EXC_DSI: - bcopy(&dsitrap, (void *)exc, (size_t)&dsisize); - break; - case EXC_ISI: - bcopy(&isitrap, (void *)exc, (size_t)&isisize); - break; - case EXC_ALI: - bcopy(&alitrap, (void *)exc, (size_t)&alisize); - break; - case EXC_DECR: - bcopy(&decrint, (void *)exc, (size_t)&decrsize); - break; - case EXC_IMISS: - bcopy(&tlbimiss, (void *)exc, (size_t)&tlbimsize); - break; - case EXC_DLMISS: - bcopy(&tlbdlmiss, (void *)exc, (size_t)&tlbdlmsize); - break; - case EXC_DSMISS: - bcopy(&tlbdsmiss, (void *)exc, (size_t)&tlbdsmsize); - break; -#ifdef DDB - case EXC_PGM: - case EXC_TRC: - case EXC_BPT: - bcopy(&ddblow, (void *)exc, (size_t)&ddbsize); - break; -#endif - } - } - - /* Grr, ALTIVEC_UNAVAIL is a vector not ~0xff aligned: 0x0f20 */ - bcopy(&trapcode, (void *)0xf20, (size_t)&trapsize); - - /* - * since trapsize is > 0x20, we just overwrote the EXC_PERF handler - * since we do not use it, we will "share" it with the EXC_VEC, - * we dont support EXC_VEC either. - * should be a 'ba 0xf20 written' at address 0xf00, but we - * do not generate EXC_PERF exceptions... - */ - - syncicache((void *)EXC_RST, EXC_LAST - EXC_RST + 0x100); - - /* - * Initialize pmap module. - */ - uvmexp.pagesize = 4096; - uvm_setpagesize(); - pmap_bootstrap(startkernel, endkernel); - -#if 1 - /* MVME2[67]00 max out at 256MB, and we need BAT2 for now. */ -#else - /* use BATs to map 1GB memory, no pageable BATs now */ - if (physmem > atop(0x10000000)) { - ppc_mtdbat1l(BATL(0x10000000, BAT_M)); - ppc_mtdbat1u(BATU(0x10000000)); - } - if (physmem > atop(0x20000000)) { - ppc_mtdbat2l(BATL(0x20000000, BAT_M)); - ppc_mtdbat2u(BATU(0x20000000)); - } - if (physmem > atop(0x30000000)) { - ppc_mtdbat3l(BATL(0x30000000, BAT_M)); - ppc_mtdbat3u(BATU(0x30000000)); - } -#endif - - /* - * Now enable translation (and machine checks/recoverable interrupts). - * This will also start using the exception vector prefix of 0x000. - */ - (fw->vmon)(); - - __asm__ volatile ("eieio; mfmsr %0; ori %0,%0,%1; mtmsr %0; sync;isync" - : "=r"(scratch) : "K"(PSL_IR|PSL_DR|PSL_ME|PSL_RI)); - - /* - * use the memory provided by pmap_bootstrap for message buffer - */ - initmsgbuf(msgbuf_addr, MSGBUFSIZE); - -#ifdef DDB -#ifdef notyet - db_machine_init(); -#endif - ddb_init(); -#endif - - /* - * Set up extents for pci mappings - * Is this too late? - * - * what are good start and end values here?? - * 0x0 - 0x80000000 mcu bus - * MAP A MAP B - * 0x80000000 - 0xbfffffff io 0x80000000 - 0xefffffff mem - * 0xc0000000 - 0xffffffff mem 0xf0000000 - 0xffffffff io - * - * of course bsd uses 0xe and 0xf - * So the BSD PPC memory map will look like this - * 0x0 - 0x80000000 memory (whatever is filled) - * 0x80000000 - 0xdfffffff (pci space, memory or io) - * 0xe0000000 - kernel vm segment - * 0xf0000000 - kernel map segment (user space mapped here) - */ - - devio_ex = extent_create("devio", 0x80000000, 0xffffffff, M_DEVBUF, - (caddr_t)devio_ex_storage, sizeof(devio_ex_storage), - EX_NOCOALESCE|EX_NOWAIT); - - /* - * Now we can set up the console as mapping is enabled. - */ - consinit(); - - if (boothowto & RB_CONFIG) { -#ifdef BOOT_CONFIG - user_config(); -#else - printf("kernel does not support -c; continuing..\n"); -#endif - } - -#ifdef DDB - if (boothowto & RB_KDB) - Debugger(); -#endif -} - -void -install_extint(handler) - void (*handler)(void); -{ - extern caddr_t extint, extsize; - extern u_long extint_call; - u_long offset = (u_long)handler - (u_long)&extint_call; - int msr; - -#ifdef DIAGNOSTIC - if (offset > 0x1ffffff) - panic("install_extint: too far away"); -#endif - msr = ppc_intr_disable(); - extint_call = (extint_call & 0xfc000003) | offset; - bcopy(&extint, (void *)EXC_EXI, (size_t)&extsize); - syncicache((void *)&extint_call, sizeof extint_call); - syncicache((void *)EXC_EXI, (int)&extsize); - ppc_intr_enable(msr); -} - -/* - * Machine dependent startup code. - */ -void -cpu_startup() -{ - vaddr_t minaddr, maxaddr; - - proc0.p_addr = proc0paddr; - - printf("%s", version); - - printf("real mem = %u (%uMB)\n", ptoa(physmem), - ptoa(physmem)/1024/1024); - - /* - * Allocate a submap for exec arguments. This map effectively - * limits the number of processes exec'ing at any time. - */ - minaddr = vm_map_min(kernel_map); - exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS, - VM_MAP_PAGEABLE, FALSE, NULL); - - /* - * Allocate a submap for physio - */ - phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - VM_PHYS_SIZE, 0, FALSE, NULL); - ppc_malloc_ok = 1; - - printf("avail mem = %lu (%luMB)\n", ptoa(uvmexp.free), - ptoa(uvmexp.free) / 1024 / 1024); - - /* - * Set up the buffers. - */ - bufinit(); - - /* - * Set up early mappings - */ - devio_malloc_safe = 1; - nvram_map(); - prep_bus_space_init(); -} - -/* - * consinit - * Initialize system console. - */ -void -consinit() -{ - static int cons_initted = 0; - - if (cons_initted) - return; - cn_tab = NULL; - cninit(); - cons_initted = 1; -} - -/* - * Clear registers on exec - */ -void -setregs(p, pack, stack, retval) - struct proc *p; - struct exec_package *pack; - u_long stack; - register_t *retval; -{ - u_int32_t newstack; - u_int32_t pargs; - u_int32_t args[4]; - - struct trapframe *tf = trapframe(p); - pargs = -roundup(-stack + 8, 16); - newstack = (u_int32_t)(pargs - 32); - - copyin ((void *)(VM_MAX_ADDRESS-0x10), &args, 0x10); - - bzero(tf, sizeof *tf); - tf->fixreg[1] = newstack; - tf->fixreg[3] = retval[0] = args[1]; /* XXX */ - tf->fixreg[4] = retval[1] = args[0]; /* XXX */ - tf->fixreg[5] = args[2]; /* XXX */ - tf->fixreg[6] = args[3]; /* XXX */ - tf->srr0 = pack->ep_entry; - tf->srr1 = PSL_MBO | PSL_USERSET | PSL_FE_DFLT; - p->p_addr->u_pcb.pcb_flags = 0; -} - -/* - * Send a signal to process. - */ -void -sendsig(catcher, sig, mask, code, type, val) - sig_t catcher; - int sig, mask; - u_long code; - int type; - union sigval val; -{ - struct proc *p = curproc; - struct trapframe *tf; - struct sigframe *fp, frame; - struct sigacts *psp = p->p_sigacts; - int oldonstack; - - frame.sf_signum = sig; - - tf = trapframe(p); - oldonstack = p->p_sigstk.ss_flags & SS_ONSTACK; - - /* - * Allocate stack space for signal handler. - */ - if ((p->p_sigstk.ss_flags & SS_DISABLE) == 0 - && !oldonstack - && (psp->ps_sigonstack & sigmask(sig))) { - fp = (struct sigframe *)(p->p_sigstk.ss_sp - + p->p_sigstk.ss_size); - p->p_sigstk.ss_flags |= SS_ONSTACK; - } else - fp = (struct sigframe *)tf->fixreg[1]; - - fp = (struct sigframe *)((int)(fp - 1) & ~0xf); - - /* - * Generate signal context for SYS_sigreturn. - */ - frame.sf_sc.sc_onstack = oldonstack; - frame.sf_sc.sc_mask = mask; - frame.sf_sip = NULL; - bcopy(tf, &frame.sf_sc.sc_frame, sizeof *tf); - if (psp->ps_siginfo & sigmask(sig)) { - frame.sf_sip = &fp->sf_si; - initsiginfo(&frame.sf_si, sig, code, type, val); - } - if (copyout(&frame, fp, sizeof frame) != 0) - sigexit(p, SIGILL); - - - tf->fixreg[1] = (int)fp; - tf->lr = (int)catcher; - tf->fixreg[3] = (int)sig; - tf->fixreg[4] = (psp->ps_siginfo & sigmask(sig)) ? (int)&fp->sf_si : 0; - tf->fixreg[5] = (int)&fp->sf_sc; - tf->srr0 = p->p_sigcode; - -#if WHEN_WE_ONLY_FLUSH_DATA_WHEN_DOING_PMAP_ENTER - pmap_extract(vm_map_pmap(&p->p_vmspace->vm_map),tf->srr0, &pa); - syncicache(pa, (p->p_emul->e_esigcode - p->p_emul->e_sigcode)); -#endif -} - -/* - * System call to cleanup state after a signal handler returns. - */ -int -sys_sigreturn(p, v, retval) - struct proc *p; - void *v; - register_t *retval; -{ - struct sys_sigreturn_args /* { - syscallarg(struct sigcontext *) sigcntxp; - } */ *uap = v; - struct sigcontext sc; - struct trapframe *tf; - int error; - - if ((error = copyin(SCARG(uap, sigcntxp), &sc, sizeof sc)) != 0) - return error; - tf = trapframe(p); - if ((sc.sc_frame.srr1 & PSL_USERSTATIC) != (tf->srr1 & PSL_USERSTATIC)) - return EINVAL; - bcopy(&sc.sc_frame, tf, sizeof *tf); - if (sc.sc_onstack & 1) - p->p_sigstk.ss_flags |= SS_ONSTACK; - else - p->p_sigstk.ss_flags &= ~SS_ONSTACK; - p->p_sigmask = sc.sc_mask & ~sigcantmask; - return EJUSTRETURN; -} - -/* - * Machine dependent system variables. - * None for now. - */ -int -cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) - int *name; - u_int namelen; - void *oldp; - size_t *oldlenp; - void *newp; - size_t newlen; - struct proc *p; -{ - /* all sysctl names at this level are terminal */ - if (namelen != 1) - return ENOTDIR; - switch (name[0]) { - default: - return EOPNOTSUPP; - } -} - -void -dumpsys() -{ - printf("dumpsys: TBD\n"); -} - -volatile int cpl, ipending, astpending; -int imask[IPL_NUM]; - -int -lcsplx(ipl) - int ipl; -{ - int oldcpl; - - oldcpl = cpl; - splx(ipl); - return oldcpl; -} - -/* - * Halt or reboot the machine after syncing/dumping according to howto. - */ -void -boot(howto) - int howto; -{ - static int syncing; - static char str[256]; - - boothowto = howto; - if (!cold && !(howto & RB_NOSYNC) && !syncing) { - syncing = 1; - vfs_shutdown(); /* sync */ - - /* - * If we've been adjusting the clock, the todr - * will be out of synch; adjust it now unless - * the system was sitting in ddb. - */ - if ((howto & RB_TIMEBAD) == 0) { - resettodr(); - } else { - printf("WARNING: not updating battery clock\n"); - } - } - if_downall(); - - uvm_shutdown(); - splhigh(); - if (howto & RB_HALT) { - doshutdownhooks(); - printf("halted\n\n"); - (fw->exit)(); - } - if (!cold && (howto & RB_DUMP)) - dumpsys(); - doshutdownhooks(); - printf("rebooting\n\n"); - - (fw->boot)(str); - for (;;) ; /* spinning */ -} - -/* - * Get Ethernet address for the onboard ethernet chip. - */ -void -myetheraddr(cp) - u_char *cp; -{ - struct mvmeprom_brdid brdid; - - mvmeprom_brdid(&brdid); - bcopy(&brdid.etheraddr, cp, 6); -} - -typedef void (void_f) (void); -void_f *pending_int_f = NULL; - -/* call the bus/interrupt controller specific pending interrupt handler - * would be nice if the offlevel interrupt code was handled here - * instead of being in each of the specific handler code - */ -void -do_pending_int() -{ - if (pending_int_f != NULL) { - (*pending_int_f)(); - } -} - -/* - * one attempt at interrupt stuff.. - * - */ -#include <dev/pci/pcivar.h> -typedef void *(intr_establish_t)(void *, pci_intr_handle_t, - int, int, int (*func)(void *), void *, char *); -typedef void (intr_disestablish_t)(void *, void *); - -int ppc_configed_intr_cnt = 0; -struct intrhand ppc_configed_intr[MAX_PRECONF_INTR]; - -void *ppc_intr_establish(void *, pci_intr_handle_t, int, int, int (*)(void *), - void *, const char *); -void ppc_intr_setup(intr_establish_t *, intr_disestablish_t *); -void ppc_intr_enable(int); -int ppc_intr_disable(void); - -void * -ppc_intr_establish(lcv, ih, type, level, func, arg, name) - void *lcv; - pci_intr_handle_t ih; - int type; - int level; - int (*func)(void *); - void *arg; - const char *name; -{ - if (ppc_configed_intr_cnt < MAX_PRECONF_INTR) { - ppc_configed_intr[ppc_configed_intr_cnt].ih_fun = func; - ppc_configed_intr[ppc_configed_intr_cnt].ih_arg = arg; - ppc_configed_intr[ppc_configed_intr_cnt].ih_level = level; - ppc_configed_intr[ppc_configed_intr_cnt].ih_irq = ih; - ppc_configed_intr[ppc_configed_intr_cnt].ih_what = name; - ppc_configed_intr_cnt++; - } else { - panic("ppc_intr_establish called before interrupt controller" - " configured: driver %s has too many interrupts", name); - } - /* disestablish is going to be tricky to supported for these :-) */ - return (void *)ppc_configed_intr_cnt; -} - -intr_establish_t *intr_establish_func = ppc_intr_establish; -intr_disestablish_t *intr_disestablish_func; - -void -ppc_intr_setup(intr_establish_t *establish, intr_disestablish_t *disestablish) -{ - intr_establish_func = establish; - intr_disestablish_func = disestablish; -} - -vaddr_t ppc_kvm_stolen = VM_KERN_ADDRESS_SIZE; - -void * -mapiodev(pa, len) - paddr_t pa; - psize_t len; -{ - paddr_t spa; - vaddr_t vaddr, va; - int off; - int size; - - spa = trunc_page(pa); - off = pa - spa; - size = round_page(off+len); - - if (ppc_malloc_ok == 0) { - /* need to steal vm space before kernel vm is initialized */ - va = VM_MIN_KERNEL_ADDRESS + ppc_kvm_stolen; - ppc_kvm_stolen += size; - if (ppc_kvm_stolen > PPC_SEGMENT_LENGTH) { - panic("ppc_kvm_stolen: out of space"); - } - } else { - va = uvm_km_valloc_wait(phys_map, size); - } - - if (va == 0) - return NULL; - - for (vaddr = va; size > 0; size -= PAGE_SIZE) { - pmap_kenter_cache(vaddr, spa, - VM_PROT_READ | VM_PROT_WRITE, PMAP_CACHE_DEFAULT); - spa += PAGE_SIZE; - vaddr += PAGE_SIZE; - } - return (void *) (va+off); -} -void -unmapiodev(kva, p_size) - void *kva; - psize_t p_size; -{ - vaddr_t vaddr; - int size; - - size = p_size; - - vaddr = trunc_page((vaddr_t)kva); - - uvm_km_free_wakeup(phys_map, vaddr, size); - - for (; size > 0; size -= PAGE_SIZE) { - pmap_remove(pmap_kernel(), vaddr, vaddr+PAGE_SIZE-1); - vaddr += PAGE_SIZE; - } - pmap_update(pmap_kernel()); -} - -/* bcopy(), error on fault */ -int -kcopy(from, to, size) - const void *from; - void *to; - size_t size; -{ - faultbuf env; - void *oldh = curproc->p_addr->u_pcb.pcb_onfault; - - if (setfault(&env)) { - curproc->p_addr->u_pcb.pcb_onfault = oldh; - return EFAULT; - } - bcopy(from, to, size); - curproc->p_addr->u_pcb.pcb_onfault = oldh; - - return 0; -} diff --git a/sys/arch/mvmeppc/mvmeppc/ppc1_machdep.c b/sys/arch/mvmeppc/mvmeppc/ppc1_machdep.c deleted file mode 100644 index fad9b92ab8f..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/ppc1_machdep.c +++ /dev/null @@ -1,387 +0,0 @@ -/* $OpenBSD: ppc1_machdep.c,v 1.18 2008/01/23 16:37:57 jsing Exp $ */ -/* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */ - -/* - * Copyright (C) 1996 Wolfgang Solfrank. - * Copyright (C) 1996 TooLs GmbH. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#include <sys/param.h> -#include <sys/conf.h> -#include <sys/extent.h> -#include <sys/systm.h> - -#include <uvm/uvm_extern.h> - -#include <machine/powerpc.h> -#include <machine/autoconf.h> -#include <machine/bugio.h> - -#include <mvmeppc/dev/nvramreg.h> -#include <mvmeppc/dev/ravenreg.h> - -#include <dev/cons.h> - -void PPC1_exit(void) __attribute__((__noreturn__)); -void PPC1_boot(char *bootspec) __attribute__((__noreturn__)); -void PPC1_mem_regions(struct mem_region **memp, struct mem_region **availp); -void PPC1_vmon(void); - -unsigned char PPC1_nvram_rd(unsigned long offset); -void PPC1_nvram_wr(unsigned long offset, unsigned char val); -unsigned long PPC1_tps(void); - -int PPC1_clock_read(int *sec, int *min, int *hour, int *day, int *mon, int *yr); -int PPC1_clock_write(int sec, int min, int hour, int day, int mon, int yr); - -vsize_t size_memory(void); - -struct firmware ppc1_firmware = { - PPC1_mem_regions, - PPC1_exit, - PPC1_boot, - PPC1_vmon, -#ifdef FW_HAS_PUTC - mvmeprom_outchar, -#endif -}; - -#define PPC1_REGIONS 32 -struct mem_region PPC1mem[PPC1_REGIONS + 1], PPC1avail[PPC1_REGIONS + 3]; - -/* - * 1 - Figure and find the end of local memory. This is now a Bug call. - * This requires that the correct amount of local memory be entered - * in the Bug environment. (see: Bug ENV command.) - * 2 - Start looking from the megabyte after the end of the kernel data, - * until we find non-memory to figure the total memory available. - * 3 - Initialize from the end of local memory to the end of total - * memory. (As required by some VME memory boards) - smurph - */ -#define MAXPHYSMEM 0x10000000 /* max physical memory */ - -vsize_t -size_memory(void) -{ - volatile unsigned int *look; - unsigned int *max; - extern char *end; - vsize_t total_mem; -#ifdef USE_BUG - vsize_t local_mem; -#endif - -#ifdef USE_BUG - bugenvrd(); /* read the bug environment */ - local_mem = (vsize_t)bug_localmemsize(); -#endif -#define PATTERN 0x5a5a5a5a -#define STRIDE (4*1024) /* 4k at a time */ -#define Roundup(value, stride) (((unsigned)(value) + (stride) - 1) & ~((stride)-1)) - /* - * count it up. - */ - max = (void *)MAXPHYSMEM; - for (look = (void *)Roundup(&end, STRIDE); look < max; - look = (int *)((unsigned)look + STRIDE)) { - unsigned save; - - /* if can't access, we've reached the end */ - if (badaddr((char *)look, 4)) { -#if defined(DEBUG) - printf("%x\n", look); -#endif - look = (int *)((int)look - STRIDE); - break; - } - - /* - * If we write a value, we expect to read the same value back. - * We'll do this twice, the 2nd time with the opposite bit - * pattern from the first, to make sure we check all bits. - */ - save = *look; - if (*look = PATTERN, *look != PATTERN) - break; - if (*look = ~PATTERN, *look != ~PATTERN) - break; - *look = save; - } - physmem = atop(trunc_page((unsigned)look)); /* in pages */ - total_mem = trunc_page((unsigned)look); -#ifdef USE_BUG - /* Initialize the off-board (non-local) memory. */ - printf("Initializing %d bytes of off-board memory.\n", total_mem - local_mem); - bzero((void *)local_mem, total_mem - local_mem); -#endif - return (total_mem); -} - -/* - * This is called during initppc, before the system is really initialized. - * It shall provide the total and the available regions of RAM. - * Both lists must have a zero-size entry as terminator. - * The available regions need not take the kernel into account, but needs - * to provide space for two additional entry beyond the terminating one. - */ -void -PPC1_mem_regions(memp, availp) - struct mem_region **memp, **availp; -{ - extern char *start; - - /* - * Get memory. - */ - PPC1mem[0].start = 0; - PPC1mem[0].size = size_memory(); - - /* - * PPC1Bug manual states that the BUG uses ``about 768KB'' at the - * top at the physical memory, but then only shows 512KB in the - * example! - * Reserve 1MB to be on the safe side. - * - * We also need to reserve space below kernelstart, if only because - * the trap vectors lie there. - */ - PPC1avail[0].start = (u_long)&start; - PPC1avail[0].size = PPC1mem[0].size - 1024 * 1024 - PPC1avail[0].start; - - *memp = PPC1mem; - *availp = PPC1avail; -} - -void -PPC1_vmon() -{ - /* - * Now is a good time to setup the clock callbacks, though this - * could have been done earlier... - */ - clock_read = PPC1_clock_read; - clock_write = PPC1_clock_write; - tps = PPC1_tps; -} - -void -PPC1_exit() -{ - mvmeprom_return(); - for (;;) ; -} - -void -PPC1_boot(bootspec) - char *bootspec; -{ - u_int32_t msr, i = 10000; - - /* set exception prefix high - to the prom */ - msr = ppc_mfmsr(); - msr |= PSL_IP; - ppc_mtmsr(msr); - - /* make sure bit 0 (reset) is a 0 */ - outb(0x80000092, inb(0x80000092) & ~1L); - /* signal a reset to system control port A - soft reset */ - outb(0x80000092, inb(0x92) | 1); - - while (i != 0) i++; - panic("restart failed"); - mvmeprom_return(); - printf("PPC1_boot returned!"); /* just in case */ - for (;;) ; -} - -/* - * Clock and NVRAM functions - * - * This needs to become a real device, but it needs to be mapped early - * because we need to setup the clocks before autoconf. - */ - -vaddr_t isaspace_va; - -void -nvram_map() -{ - int error; - extern struct extent *devio_ex; - extern int ppc_malloc_ok; - - if ((error = extent_alloc_region(devio_ex, RAVEN_P_ISA_IO_SPACE, - ISA_SIZE, EX_NOWAIT | (ppc_malloc_ok ? EX_MALLOCOK : 0))) != 0) - panic("nvram_map: can't map ISA space, extent error %d", error); - - if ((isaspace_va = (vaddr_t)mapiodev(RAVEN_P_ISA_IO_SPACE, - ISA_SIZE)) == NULL) - panic("nvram_map: map failed"); -} - -unsigned char -PPC1_nvram_rd(addr) - unsigned long addr; -{ - outb(isaspace_va + NVRAM_S0, addr); - outb(isaspace_va + NVRAM_S1, addr>>8); - return inb(isaspace_va + NVRAM_DATA); -} - -void -PPC1_nvram_wr(addr, val) - unsigned long addr; - unsigned char val; -{ - outb(isaspace_va + NVRAM_S0, addr); - outb(isaspace_va + NVRAM_S1, addr>>8); - outb(isaspace_va + NVRAM_DATA, val); -} - -/* Function to get ticks per second. */ -unsigned long -PPC1_tps() -{ - unsigned long start_val, ticks; - unsigned char val, sec; - - /* Start RTC */ - val = PPC1_nvram_rd(RTC_CONTROLB); - PPC1_nvram_wr(RTC_CONTROLA, (val & (~RTC_CB_STOP))); - val = PPC1_nvram_rd(RTC_CONTROLA); - PPC1_nvram_wr(RTC_CONTROLA, (val & (~RTC_CA_READ))); - - /* look at seconds. */ - sec = PPC1_nvram_rd(RTC_SECONDS); - for (;;) { - if (PPC1_nvram_rd(RTC_SECONDS) != sec) - break; - } - - start_val = ppc_mfdec(); - - /* wait until it changes. */ - sec = PPC1_nvram_rd(RTC_SECONDS); - for (;;) { - if (PPC1_nvram_rd(RTC_SECONDS) != sec) - break; - } - ticks = start_val - ppc_mfdec(); - return (ticks); -} - -int -PPC1_clock_write(int sec, int min, int hour, int day, int mon, int yr) -{ - unsigned char val; - - /* write command */ - val = PPC1_nvram_rd(RTC_CONTROLA); - PPC1_nvram_wr(RTC_CONTROLA, (val | RTC_CA_WRITE)); - - PPC1_nvram_wr(RTC_SECONDS, sec); - PPC1_nvram_wr(RTC_MINUTES, min); - PPC1_nvram_wr(RTC_HOURS, hour); - PPC1_nvram_wr(RTC_MONTH, mon); - PPC1_nvram_wr(RTC_DAY_OF_MONTH, day); - PPC1_nvram_wr(RTC_YEAR, yr); - - /* cancel write */ - PPC1_nvram_wr(RTC_CONTROLA, val); - - return 0; -} - -int -PPC1_clock_read(int *sec, int *min, int *hour, int *day, int *mon, int *yr) -{ - unsigned char val; - int i; - - /* Is there time? */ - val = PPC1_nvram_rd(RTC_CONTROLB); - PPC1_nvram_wr(RTC_CONTROLA, (val & (~RTC_CB_STOP))); - val = PPC1_nvram_rd(RTC_CONTROLA); - val &= ~RTC_CA_READ; - PPC1_nvram_wr(RTC_CONTROLA, val); - - /* Read the seconds value. */ - *sec = PPC1_nvram_rd(RTC_SECONDS); - - /* Wait for a new second. */ - for (i = 0 ; i < 1000000 ; i++) { - if (PPC1_nvram_rd(RTC_SECONDS) != *sec) { - break; - } - } - - /* stop time. */ - PPC1_nvram_wr(RTC_CONTROLA, (val | RTC_CA_READ)); - - *sec = PPC1_nvram_rd(RTC_SECONDS); - *min = PPC1_nvram_rd(RTC_MINUTES); - *hour = PPC1_nvram_rd(RTC_HOURS); - *day = PPC1_nvram_rd(RTC_DAY_OF_MONTH); - *mon = PPC1_nvram_rd(RTC_MONTH); - *yr = PPC1_nvram_rd(RTC_YEAR); - - /* restart time. */ - PPC1_nvram_wr(RTC_CONTROLA, val); - return 0; -} - -/* - * Boot console routines: - * Enables printing of boot messages before consinit(). - */ -cons_decl(boot); - -void -bootcnprobe(struct consdev *cp) -{ - cp->cn_dev = makedev(14, 0); - cp->cn_pri = CN_LOWPRI; -} - -void -bootcninit(struct consdev *cp) -{ - /* Nothing to do */ -} - -int -bootcngetc(dev_t dev) -{ - return (mvmeprom_getchar()); -} - -void -bootcnputc(dev_t dev, int c) -{ - mvmeprom_outchar(c); -} diff --git a/sys/arch/mvmeppc/mvmeppc/wscons_machdep.c b/sys/arch/mvmeppc/mvmeppc/wscons_machdep.c deleted file mode 100644 index d539483beef..00000000000 --- a/sys/arch/mvmeppc/mvmeppc/wscons_machdep.c +++ /dev/null @@ -1,96 +0,0 @@ -/* $OpenBSD: wscons_machdep.c,v 1.5 2008/01/23 16:37:57 jsing Exp $ */ - -/* - * Copyright (c) 2001 Aaron Campbell - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF - * THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/kernel.h> -#include <sys/conf.h> -#include <sys/device.h> -#include <sys/extent.h> - -#include <machine/bus.h> - -#include <dev/cons.h> - -#include "wsdisplay.h" -#if NWSDISPLAY > 0 -#include <dev/wscons/wsdisplayvar.h> -#endif - -cons_decl(ws); - -void -wscnprobe(cp) - struct consdev *cp; -{ - int maj; - - /* locate the major number */ - for (maj = 0; maj < nchrdev; maj++) { - if (cdevsw[maj].d_open == wsdisplayopen) - break; - } - - if (maj == nchrdev) { - /* we are not in cdevsw[], give up */ - panic("wsdisplay is not in cdevsw[]"); - } - - cp->cn_dev = makedev(maj, 0); - cp->cn_pri = CN_MIDPRI; -} - -void -wscninit(cp) - struct consdev *cp; -{ - return; -} - -void -wscnputc(dev, i) - dev_t dev; - int i; -{ - wsdisplay_cnputc(dev, i); -} - -int -wscngetc(dev) - dev_t dev; -{ - return (wskbd_cngetc(dev)); -} - -void -wscnpollc(dev, on) - dev_t dev; - int on; -{ - wskbd_cnpollc(dev, on); -} diff --git a/sys/arch/mvmeppc/pci/mpcpcibr.c b/sys/arch/mvmeppc/pci/mpcpcibr.c deleted file mode 100644 index 8461a5390f3..00000000000 --- a/sys/arch/mvmeppc/pci/mpcpcibr.c +++ /dev/null @@ -1,665 +0,0 @@ -/* $OpenBSD: mpcpcibr.c,v 1.21 2010/12/04 17:06:31 miod Exp $ */ - -/* - * Copyright (c) 2001 Steve Murphree, Jr. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed under OpenBSD for RTMX Inc - * by Per Fogelstrom, Opsycon AB. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - */ - -/* - * Motorola 'Raven' PCI BUS Bridge driver. - * specialized hooks for different config methods. - */ - -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/kernel.h> -#include <sys/malloc.h> -#include <sys/device.h> -#include <sys/proc.h> -#include <uvm/uvm_extern.h> - -#include <machine/autoconf.h> -#include <machine/bus.h> -#include <machine/pcb.h> - -#include <dev/pci/pcireg.h> -#include <dev/pci/pcivar.h> -#include <dev/pci/pcidevs.h> - -#include <mvmeppc/pci/pcibrvar.h> -#include <mvmeppc/dev/ravenreg.h> -#include <mvmeppc/dev/ravenvar.h> - -int mpcpcibrmatch(struct device *, void *, void *); -void mpcpcibrattach(struct device *, struct device *, void *); - -void mpc_attach_hook(struct device *, struct device *, - struct pcibus_attach_args *); -int mpc_bus_maxdevs(void *, int); -pcitag_t mpc_make_tag(void *, int, int, int); -void mpc_decompose_tag(void *, pcitag_t, int *, int *, int *); -int mpc_conf_size(void *, pcitag_t); -pcireg_t mpc_conf_read(void *, pcitag_t, int); -void mpc_conf_write(void *, pcitag_t, int, pcireg_t); - -int mpc_intr_map(void *, pcitag_t, int, int, pci_intr_handle_t *); -const char *mpc_intr_string(void *, pci_intr_handle_t); -int mpc_intr_line(void *, pci_intr_handle_t); -void *mpc_intr_establish(void *, pci_intr_handle_t, - int, int (*)(void *), void *, const char *); -void mpc_intr_disestablish(void *, void *); -int mpc_ether_hw_addr(struct ppc_pci_chipset *, u_int8_t *); - -void mpc_cfg_write_1(struct pcibr_config *, u_int32_t, u_int8_t); -void mpc_cfg_write_2(struct pcibr_config *, u_int32_t, u_int16_t); -void mpc_cfg_write_4(struct pcibr_config *, u_int32_t, u_int32_t); - -u_int8_t mpc_cfg_read_1(struct pcibr_config *, u_int32_t); -u_int16_t mpc_cfg_read_2(struct pcibr_config *, u_int32_t); -u_int32_t mpc_cfg_read_4(struct pcibr_config *, u_int32_t); - -u_int32_t pci_iack(void); -u_int32_t mpc_gen_config_reg(void *, pcitag_t, int); - -struct cfattach mpcpcibr_ca = { - sizeof(struct pcibr_softc), mpcpcibrmatch, mpcpcibrattach, -}; - -struct cfdriver mpcpcibr_cd = { - NULL, "mpcpcibr", DV_DULL, -}; - -int mpcpcibrprint(void *, const char *pnp); - -struct pcibr_config mpc_config; - -struct powerpc_bus_dma_tag pci_bus_dma_tag = { - NULL, - _bus_dmamap_create, - _bus_dmamap_destroy, - _bus_dmamap_load, - _bus_dmamap_load_mbuf, - _bus_dmamap_load_uio, - _bus_dmamap_load_raw, - _bus_dmamap_unload, - _bus_dmamap_sync, - _bus_dmamem_alloc, - _bus_dmamem_free, - _bus_dmamem_map, - _bus_dmamem_unmap, - _bus_dmamem_mmap -}; - -extern u_int8_t *ravenregs; -extern vaddr_t isaspace_va; - -struct raven_setup { - unsigned int pci_reg; - u_int32_t value; -}; - -const struct raven_setup raven_prep_setup[] = { - /* PCI registers */ - { RAVEN_PCI_MEM, RAVEN_PCI_MEM_VAL }, - { RAVEN_PCI_PSADD0, RAVEN_PCI_PSADD0_VAL }, - { RAVEN_PCI_PSOFF0, RAVEN_PCI_PSOFF0_VAL }, - { RAVEN_PCI_PSADD1, RAVEN_PCI_PSADD1_VAL }, - { RAVEN_PCI_PSOFF1, RAVEN_PCI_PSOFF1_VAL }, - { RAVEN_PCI_PSADD2, RAVEN_PCI_PSADD2_VAL }, - { RAVEN_PCI_PSOFF2, RAVEN_PCI_PSOFF2_VAL }, - { RAVEN_PCI_PSADD3, RAVEN_PCI_PSADD3_VAL }, - { RAVEN_PCI_PSOFF3, RAVEN_PCI_PSOFF3_VAL }, - -#ifdef notyet - /* Universe PCI registers */ - { 0x100, 0xc0825100 }, - { 0x104, 0x01000000 }, - { 0x108, 0x30000000 }, - { 0x10c, 0x00000000 }, - { 0x114, 0xc0425100 }, - { 0x118, 0x30000000 }, - { 0x11c, 0x38000000 }, - { 0x120, 0x00000000 }, - { 0x128, 0x00000000 }, - { 0x12c, 0x00000000 }, - { 0x130, 0x00000000 }, - { 0x134, 0x00000000 }, - { 0x13c, 0x00000000 }, - { 0x140, 0x00000000 }, - { 0x144, 0x00000000 }, - { 0x148, 0x00000000 }, - { 0x188, 0xc0a05338 }, - - /* Default Universe VME Slave Map */ - { 0xf00, 0xc0f20001 }, - { 0xf04, 0x40000000 }, - { 0xf08, 0x40001000 }, - { 0xf0c, 0xc0001000 }, - { 0xf14, 0xe0f200c0 }, - { 0xf18, 0x10000000 }, - { 0xf1c, 0x20000000 }, - { 0xf20, 0x70000000 }, - { 0xf28, 0x00000000 }, - { 0xf2c, 0x00000000 }, - { 0xf30, 0x00000000 }, - { 0xf34, 0x00000000 }, - { 0xf3c, 0x00000000 }, - { 0xf40, 0x00000000 }, - { 0xf44, 0x00000000 }, - { 0xf48, 0x00000000 }, -#endif - - { 0, 0 }, -}; - -int -mpcpcibrmatch(parent, match, aux) - struct device *parent; - void *match, *aux; -{ - /* We must be a child of the raven device */ - if (strcmp(parent->dv_cfdata->cf_driver->cd_name, "raven") != 0) - return (0); - - return 1; -} - -void -mpcpcibrattach(parent, self, aux) - struct device *parent, *self; - void *aux; -{ - struct pcibr_softc *sc = (struct pcibr_softc *)self; - struct pcibr_config *lcp; - struct pcibus_attach_args pba; - const struct raven_setup *rs; - - lcp = sc->sc_pcibr = &mpc_config; - - sc->sc_membus_space = prep_mem_space_tag; - sc->sc_iobus_space = prep_io_space_tag; - - lcp->lc_pc.pc_conf_v = lcp; - lcp->lc_pc.pc_attach_hook = mpc_attach_hook; - lcp->lc_pc.pc_bus_maxdevs = mpc_bus_maxdevs; - lcp->lc_pc.pc_make_tag = mpc_make_tag; - lcp->lc_pc.pc_decompose_tag = mpc_decompose_tag; - lcp->lc_pc.pc_conf_size = mpc_conf_size; - lcp->lc_pc.pc_conf_read = mpc_conf_read; - lcp->lc_pc.pc_conf_write = mpc_conf_write; - lcp->lc_pc.pc_ether_hw_addr = mpc_ether_hw_addr; - lcp->lc_iot = &sc->sc_iobus_space; - lcp->lc_memt = &sc->sc_membus_space; - - lcp->ioh_cf8 = (PREP_CONFIG_ADD - RAVEN_P_ISA_IO_SPACE) + - (bus_space_handle_t)isaspace_va; - lcp->ioh_cfc = (PREP_CONFIG_DAT - RAVEN_P_ISA_IO_SPACE) + - (bus_space_handle_t)isaspace_va; - - lcp->config_type = 0; - - lcp->lc_pc.pc_intr_v = lcp; - lcp->lc_pc.pc_intr_map = mpc_intr_map; - lcp->lc_pc.pc_intr_string = mpc_intr_string; - lcp->lc_pc.pc_intr_line = mpc_intr_line; - lcp->lc_pc.pc_intr_establish = mpc_intr_establish; - lcp->lc_pc.pc_intr_disestablish = mpc_intr_disestablish; - - printf(": revision 0x%x\n", - mpc_cfg_read_1(lcp, RAVEN_PCI_REVID)); - - bzero(&pba, sizeof(pba)); - pba.pba_dmat = &pci_bus_dma_tag; - - pba.pba_busname = "pci"; - pba.pba_iot = &sc->sc_iobus_space; - pba.pba_memt = &sc->sc_membus_space; - pba.pba_pc = &lcp->lc_pc; - pba.pba_domain = pci_ndomains++; - pba.pba_bus = 0; - - /* - * Set up PREP environment - */ - - *(u_int32_t *)(ravenregs + RAVEN_MSADD0) = RAVEN_MSADD0_PREP; - *(u_int32_t *)(ravenregs + RAVEN_MSOFF0) = RAVEN_MSOFF0_PREP; - *(u_int32_t *)(ravenregs + RAVEN_MSADD1) = RAVEN_MSADD1_PREP; - *(u_int32_t *)(ravenregs + RAVEN_MSOFF1) = RAVEN_MSOFF1_PREP; - *(u_int32_t *)(ravenregs + RAVEN_MSADD2) = RAVEN_MSADD2_PREP; - *(u_int32_t *)(ravenregs + RAVEN_MSOFF2) = RAVEN_MSOFF2_PREP; - *(u_int32_t *)(ravenregs + RAVEN_MSADD3) = RAVEN_MSADD3_PREP; - *(u_int32_t *)(ravenregs + RAVEN_MSOFF3) = RAVEN_MSOFF3_PREP; - - for (rs = raven_prep_setup; rs->pci_reg != 0; rs++) { - mpc_cfg_write_4(lcp, rs->pci_reg, rs->value); - } - - /* enable mem and io mapping, and bus master */ - mpc_cfg_write_2(lcp, RAVEN_PCI_CMD, - RAVEN_CMD_IOSP | RAVEN_CMD_MEMSP | RAVEN_CMD_MASTR); - - config_found(self, &pba, mpcpcibrprint); -} - -int -mpcpcibrprint(aux, pnp) - void *aux; - const char *pnp; -{ - struct pcibus_attach_args *pba = aux; - - if (pnp) - printf("%s at %s", pba->pba_busname, pnp); - printf(" bus %d", pba->pba_bus); - return (UNCONF); -} - -void -mpc_attach_hook(parent, self, pba) - struct device *parent, *self; - struct pcibus_attach_args *pba; -{ -} - -int -mpc_ether_hw_addr(p, ethaddr) - struct ppc_pci_chipset *p; - u_int8_t *ethaddr; -{ - printf("mpc_ether_hw_addr not supported\n"); - return (0); -} - -int -mpc_bus_maxdevs(cpv, busno) - void *cpv; - int busno; -{ - return (32); -} - -#define BUS_SHIFT 16 -#define DEVICE_SHIFT 11 -#define FNC_SHIFT 8 - -pcitag_t -mpc_make_tag(cpv, bus, dev, fnc) - void *cpv; - int bus, dev, fnc; -{ - return (bus << BUS_SHIFT) | (dev << DEVICE_SHIFT) | (fnc << FNC_SHIFT); -} - -void -mpc_decompose_tag(cpv, tag, busp, devp, fncp) - void *cpv; - pcitag_t tag; - int *busp, *devp, *fncp; -{ - if (busp != NULL) - *busp = (tag >> BUS_SHIFT) & 0xff; - if (devp != NULL) - *devp = (tag >> DEVICE_SHIFT) & 0x1f; - if (fncp != NULL) - *fncp = (tag >> FNC_SHIFT) & 0x7; -} - -u_int32_t -mpc_gen_config_reg(cpv, tag, offset) - void *cpv; - pcitag_t tag; - int offset; -{ -#if 0 - struct pcibr_config *cp = cpv; - unsigned int bus, dev, fcn; -#endif - u_int32_t reg; - -#if 0 - mpc_decompose_tag(cpv, tag, &bus, &dev, &fcn); - - if (cp->config_type & 1) { - /* Config Mechanism #2 */ - if (bus == 0) { - if (dev < 11) { - return 0xffffffff; - } - /* - * Need to do config type 0 operation - * 1 << (11?+dev) | fcn << 8 | reg - * 11? is because pci spec states - * that 11-15 is reserved. - */ - reg = 1 << (dev) | fcn << 8 | offset; - - } else { - if (dev > 15) { - return 0xffffffff; - } - /* - * config type 1 - */ - reg = tag | offset | 1; - - } - } else { -#else - { -#endif - /* config mechanism #2, type 0 */ - /* standard cf8/cfc config */ - reg = 0x80000000 | tag | offset; - - } - return reg; -} - -int -mpc_conf_size(void *cpv, pcitag_t tag) -{ - return PCI_CONFIG_SPACE_SIZE; -} - -/*#define DEBUG_CONFIG */ -pcireg_t -mpc_conf_read(cpv, tag, offset) - void *cpv; - pcitag_t tag; - int offset; -{ - struct pcibr_config *cp = cpv; - pcireg_t data; - u_int32_t reg; - int s; - int daddr = 0; - faultbuf env; - void *oldh; - - if (offset & 3 || - offset < 0 || offset >= PCI_CONFIG_SPACE_SIZE) { -#ifdef DEBUG_CONFIG - printf ("pci_conf_read: bad reg %x\n", offset); -#endif - return (~0); - } - - reg = mpc_gen_config_reg(cpv, tag, offset); - /* if invalid tag, return -1 */ - if (reg == 0xffffffff) { - return (~0); - } - - if ((cp->config_type & 2) && (offset & 0x04)) { - daddr += 4; - } - - s = splhigh(); - - oldh = curpcb->pcb_onfault; - if (setfault(&env)) { - /* did we fault during the read? */ - curpcb->pcb_onfault = oldh; - return (~0); - } - - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, reg); - bus_space_read_4(cp->lc_iot, cp->ioh_cf8, 0); /* XXX */ - data = bus_space_read_4(cp->lc_iot, cp->ioh_cfc, daddr); - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, 0); /* disable */ - bus_space_read_4(cp->lc_iot, cp->ioh_cf8, 0); /* XXX */ - - curpcb->pcb_onfault = oldh; - - splx(s); -#ifdef DEBUG_CONFIG - if (!((offset == 0) && (data == 0xffffffff))) { - unsigned int bus, dev, fcn; - mpc_decompose_tag(cpv, tag, &bus, &dev, &fcn); - printf("mpc_conf_read bus %x dev %x fcn %x offset %x", bus, dev, fcn, - offset); - printf(" daddr %x reg %x",daddr, reg); - printf(" data %x\n", data); - } -#endif - - return (data); -} - -void -mpc_conf_write(cpv, tag, offset, data) - void *cpv; - pcitag_t tag; - int offset; - pcireg_t data; -{ - struct pcibr_config *cp = cpv; - u_int32_t reg; - int s; - int daddr = 0; - - reg = mpc_gen_config_reg(cpv, tag, offset); - - /* if invalid tag, return ??? */ - if (reg == 0xffffffff) { - return; - } - if ((cp->config_type & 2) && (offset & 0x04)) - daddr += 4; - -#ifdef DEBUG_CONFIG - { - unsigned int bus, dev, fcn; - mpc_decompose_tag(cpv, tag, &bus, &dev, &fcn); - printf("mpc_conf_write bus %x dev %x fcn %x offset %x", bus, - dev, fcn, offset); - printf(" daddr %x reg %x",daddr, reg); - printf(" data %x\n", data); - } -#endif - - s = splhigh(); - - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, reg); - bus_space_read_4(cp->lc_iot, cp->ioh_cf8, 0); /* XXX */ - bus_space_write_4(cp->lc_iot, cp->ioh_cfc, daddr, data); - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, 0); /* disable */ - bus_space_read_4(cp->lc_iot, cp->ioh_cf8, 0); /* XXX */ - - splx(s); -} - -/*ARGSUSED*/ -int -mpc_intr_map(lcv, bustag, buspin, line, ihp) - void *lcv; - pcitag_t bustag; - int buspin, line; - pci_intr_handle_t *ihp; -{ - int error = 0; - - *ihp = -1; - if (buspin == 0) { - error = 1; /* No IRQ used. */ - } else if (buspin > 4) { - printf("mpc_intr_map: bad interrupt pin %d\n", buspin); - error = 1; - } - - if (!error) - *ihp = line; - return error; -} - -const char * -mpc_intr_string(lcv, ih) - void *lcv; - pci_intr_handle_t ih; -{ - static char str[16]; - - snprintf(str, sizeof str, "irq %ld", ih); - return (str); -} - -int -mpc_intr_line(lcv, ih) - void *lcv; - pci_intr_handle_t ih; -{ - return (ih); -} - -typedef void *(intr_establish_t)(void *, pci_intr_handle_t, int, int, - int (*func)(void *), void *, char *); -typedef void (intr_disestablish_t)(void *, void *); -extern intr_establish_t *intr_establish_func; -extern intr_disestablish_t *intr_disestablish_func; - -void * -mpc_intr_establish(lcv, ih, level, func, arg, name) - void *lcv; - pci_intr_handle_t ih; - int level; - int (*func)(void *); - void *arg; - const char *name; -{ - return (*intr_establish_func)(lcv, ih, IST_LEVEL, level, func, arg, - name); -} - -void -mpc_intr_disestablish(lcv, cookie) - void *lcv, *cookie; -{ - (*intr_disestablish_func)(lcv, cookie); -} - -u_int32_t -pci_iack() -{ - /* do pci IACK cycle */ - /* this should be bus allocated. */ - volatile u_int8_t *iack = ravenregs + RAVEN_PIACK; - u_int8_t val; - - val = *iack; - return val; -} - -void -mpc_cfg_write_1(cp, reg, val) - struct pcibr_config *cp; - u_int32_t reg; - u_int8_t val; -{ - int s; - - s = splhigh(); - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, RAVEN_REGOFFS(reg)); - bus_space_write_1(cp->lc_iot, cp->ioh_cfc, 0, val); - splx(s); -} - -void -mpc_cfg_write_2(cp, reg, val) - struct pcibr_config *cp; - u_int32_t reg; - u_int16_t val; -{ - int s; - - s = splhigh(); - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, RAVEN_REGOFFS(reg)); - bus_space_write_2(cp->lc_iot, cp->ioh_cfc, 0, val); - splx(s); -} - -void -mpc_cfg_write_4(cp, reg, val) - struct pcibr_config *cp; - u_int32_t reg; - u_int32_t val; -{ - int s; - - s = splhigh(); - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, RAVEN_REGOFFS(reg)); - bus_space_write_4(cp->lc_iot, cp->ioh_cfc, 0, val); - splx(s); -} - -u_int8_t -mpc_cfg_read_1(cp, reg) - struct pcibr_config *cp; - u_int32_t reg; -{ - u_int8_t _v_; - int s; - - s = splhigh(); - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, RAVEN_REGOFFS(reg)); - _v_ = bus_space_read_1(cp->lc_iot, cp->ioh_cfc, 0); - splx(s); - return (_v_); -} - -u_int16_t -mpc_cfg_read_2(cp, reg) - struct pcibr_config *cp; - u_int32_t reg; -{ - u_int16_t _v_; - int s; - - s = splhigh(); - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, RAVEN_REGOFFS(reg)); - _v_ = bus_space_read_2(cp->lc_iot, cp->ioh_cfc, 0); - splx(s); - return (_v_); -} - -u_int32_t -mpc_cfg_read_4(cp, reg) - struct pcibr_config *cp; - u_int32_t reg; -{ - u_int32_t _v_; - int s; - - s = splhigh(); - bus_space_write_4(cp->lc_iot, cp->ioh_cf8, 0, RAVEN_REGOFFS(reg)); - _v_ = bus_space_read_4(cp->lc_iot, cp->ioh_cfc, 0); - splx(s); - return (_v_); -} diff --git a/sys/arch/mvmeppc/pci/pchb.c b/sys/arch/mvmeppc/pci/pchb.c deleted file mode 100644 index 8b7d32bef29..00000000000 --- a/sys/arch/mvmeppc/pci/pchb.c +++ /dev/null @@ -1,102 +0,0 @@ -/* $OpenBSD: pchb.c,v 1.6 2008/06/26 05:42:12 ray Exp $ */ -/* $NetBSD: pchb.c,v 1.4 2000/01/25 07:19:11 tsubai Exp $ */ - -/*- - * Copyright (c) 1996 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Jason R. Thorpe. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/types.h> -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/device.h> - -#include <machine/bus.h> - -#include <dev/pci/pcivar.h> -#include <dev/pci/pcireg.h> -#include <dev/pci/pcidevs.h> - -int pchbmatch(struct device *, void *, void *); -void pchbattach(struct device *, struct device *, void *); - -struct cfattach pchb_ca = { - sizeof(struct device), pchbmatch, pchbattach -}; - -struct cfdriver pchb_cd = { - NULL, "pchb", DV_DULL -}; - -int -pchbmatch(parent, cf, aux) - struct device *parent; - void *cf; - void *aux; -{ - struct pci_attach_args *pa = aux; - - /* - * Match all known PCI host chipsets. - */ - switch (PCI_VENDOR(pa->pa_id)) { - - case PCI_VENDOR_MOT: - switch (PCI_PRODUCT(pa->pa_id)) { - case PCI_PRODUCT_MOT_RAVEN: - return (1); - } - break; - } - - return (0); -} - -void -pchbattach(parent, self, aux) - struct device *parent, *self; - void *aux; -{ - /* - struct pci_attach_args *pa = aux; - char devinfo[256]; - */ - - printf("\n"); - - /* - * All we do is print out a description. Eventually, we - * might want to add code that does something that's - * possibly chipset-specific. - */ - - /* - pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo, sizeof devinfo); - printf("%s: %s (rev. 0x%02x)\n", self->dv_xname, devinfo, - PCI_REVISION(pa->pa_class)); - */ -} diff --git a/sys/arch/mvmeppc/pci/pcib.c b/sys/arch/mvmeppc/pci/pcib.c deleted file mode 100644 index 22325d0e1bd..00000000000 --- a/sys/arch/mvmeppc/pci/pcib.c +++ /dev/null @@ -1,136 +0,0 @@ -/* $OpenBSD: pcib.c,v 1.3 2008/06/26 05:42:12 ray Exp $ */ -/* $NetBSD: pcib.c,v 1.6 1997/06/06 23:29:16 thorpej Exp $ */ - -/*- - * Copyright (c) 1996 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Jason R. Thorpe. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/types.h> -#include <sys/param.h> -#include <sys/systm.h> -#include <sys/device.h> - -#include <machine/bus.h> -#include <dev/isa/isavar.h> - -#include <dev/pci/pcivar.h> -#include <dev/pci/pcireg.h> - -#include <dev/pci/pcidevs.h> -#include <mvmeppc/dev/ravenreg.h> - -#include "isa.h" - -int pcibmatch(struct device *, void *, void *); -void pcibattach(struct device *, struct device *, void *); -void pcib_callback(struct device *); -int pcib_print(void *, const char *); - -struct ppc_bus_space ppc_isa_io, ppc_isa_mem; - -struct cfattach pcib_ca = { - sizeof(struct device), pcibmatch, pcibattach -}; - -struct cfdriver pcib_cd = { - NULL, "pcib", DV_DULL -}; - -int -pcibmatch(parent, match, aux) - struct device *parent; - void *match, *aux; -{ - struct pci_attach_args *pa = aux; - - if (PCI_CLASS(pa->pa_class) == PCI_CLASS_BRIDGE && - PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_BRIDGE_ISA) - return (1); - - switch (PCI_VENDOR(pa->pa_id)) { - case PCI_VENDOR_SYMPHONY: - switch (PCI_PRODUCT(pa->pa_id)) { - case PCI_PRODUCT_SYMPHONY_82C565: - return (1); - } - } - - return (0); -} - -void -pcibattach(parent, self, aux) - struct device *parent, *self; - void *aux; -{ - - ppc_isa_io = prep_isa_io_space_tag; - ppc_isa_mem = prep_isa_mem_space_tag; - - /* - * Cannot attach isa bus now; must postpone for various reasons - */ - - printf("\n"); - - config_defer(self, pcib_callback); -} - -void -pcib_callback(self) - struct device *self; -{ - struct isabus_attach_args iba; - -#if NPCIBIOS > 0 - pci_intr_post_fixup(); -#endif - - /* - * Attach the ISA bus behind this bridge. - */ - memset(&iba, 0, sizeof(iba)); - iba.iba_busname = "isa"; - iba.iba_iot = &ppc_isa_io; - iba.iba_memt = &ppc_isa_mem; -#if NISADMA > 0 - iba.iba_dmat = &isa_bus_dma_tag; -#endif - config_found(self, &iba, pcib_print); -} - -int -pcib_print(aux, pnp) - void *aux; - const char *pnp; -{ - /* Only ISAs can attach to pcib's; easy. */ - if (pnp) - printf("isa at %s", pnp); - return (UNCONF); -} diff --git a/sys/arch/mvmeppc/pci/pcibrvar.h b/sys/arch/mvmeppc/pci/pcibrvar.h deleted file mode 100644 index 97df34eaac1..00000000000 --- a/sys/arch/mvmeppc/pci/pcibrvar.h +++ /dev/null @@ -1,50 +0,0 @@ -/* $OpenBSD: pcibrvar.h,v 1.2 2003/06/09 16:34:22 deraadt Exp $ */ - -/* - * Copyright (c) 1997 Per Fogelstrom - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - */ - -struct pcibr_config { - bus_space_tag_t lc_memt; - bus_space_tag_t lc_iot; - bus_space_handle_t ioh_cf8; - bus_space_handle_t ioh_cfc; - struct ppc_pci_chipset lc_pc; - int config_type; - int bus; - int pci_init_done; - int node; -}; - -struct pcibr_softc { - struct device sc_dev; - struct pcibr_config *sc_pcibr; - struct ppc_bus_space sc_membus_space; - struct ppc_bus_space sc_iobus_space; - struct powerpc_bus_dma_tag sc_dmatag; - struct pcibr_config pcibr_config; -}; - - diff --git a/sys/arch/mvmeppc/stand/Makefile b/sys/arch/mvmeppc/stand/Makefile deleted file mode 100644 index 321282d76d2..00000000000 --- a/sys/arch/mvmeppc/stand/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $OpenBSD: Makefile,v 1.2 2001/08/25 20:36:10 miod Exp $ - -.if ${MACHINE} == "mvmeppc" -SUBDIR= bugcrt libbug libsa libz bootsd bootxx bootst tftpboot -#sboot XXX future -.endif - -#SUBDIR+=installboot - -.include <bsd.subdir.mk> diff --git a/sys/arch/mvmeppc/stand/Makefile.inc b/sys/arch/mvmeppc/stand/Makefile.inc deleted file mode 100644 index ba2ac445e17..00000000000 --- a/sys/arch/mvmeppc/stand/Makefile.inc +++ /dev/null @@ -1,12 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.5 2005/12/30 02:03:49 millert Exp $ - -MDEC_DIR?=/usr/mdec -CFLAGS+= -fno-stack-protector -CFLAGS+= -fno-builtin-vprintf -fno-builtin-printf -fno-builtin-putchar - -# Load addresses for first and second stage bootstraps -STAGE1_RELOC=4000 -STAGE2_RELOC=6000 -STAGE3_RELOC=6000 - - diff --git a/sys/arch/mvmeppc/stand/bootsd/Makefile b/sys/arch/mvmeppc/stand/bootsd/Makefile deleted file mode 100644 index d3655e5d237..00000000000 --- a/sys/arch/mvmeppc/stand/bootsd/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# from: @(#)Makefile 8.1 (Berkeley) 6/10/93 -# $OpenBSD: Makefile,v 1.2 2001/08/21 17:44:16 miod Exp $ - - -S= ${.CURDIR}/../../../.. -DEFS= -INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \ - -I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa -CFLAGS=-O0 ${INCPATH} ${DEFS} ${COPTS} -LDFLAGS=-N -Ttext ${STAGE2_RELOC} -CLEANFILES+=bootsd - -.include "${S}/arch/mvmeppc/stand/bugcrt/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libbug/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libsa/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libz/Makefile.inc" - -SRCS= boot.c version.c - -LIBS= ${LIBSA} ${LIBBUG} ${LIBZ} - -OBJS= ${SRCS:N*.h:R:S/$/.o/g} - -BOOTS= bootsd -ALL= ${BOOTS} - -all: ${ALL} - -bootsd: ${OBJS} ${STAGE2} ${LIBS} - ${LD} ${LDFLAGS} -o $@ \ - ${STAGE2} ${OBJS} ${LIBS} - -install: - install -c -m 555 -g bin -o bin ${BOOTS} ${DESTDIR}${MDEC_DIR} - -.include <bsd.prog.mk> diff --git a/sys/arch/mvmeppc/stand/bootsd/README b/sys/arch/mvmeppc/stand/bootsd/README deleted file mode 100644 index 47a7aab2813..00000000000 --- a/sys/arch/mvmeppc/stand/bootsd/README +++ /dev/null @@ -1,7 +0,0 @@ -In short: - cd /usr/mdec - cp bootsd / - ./installboot -v /bootsd ./bootxx /dev/rsd0a - - (you will need to be single user to run installboot since it writes - to a raw disk device) diff --git a/sys/arch/mvmeppc/stand/bootsd/boot.c b/sys/arch/mvmeppc/stand/bootsd/boot.c deleted file mode 100644 index 7f3a0e893c2..00000000000 --- a/sys/arch/mvmeppc/stand/bootsd/boot.c +++ /dev/null @@ -1,82 +0,0 @@ -/* $OpenBSD: boot.c,v 1.4 2004/01/24 21:12:21 miod Exp $ */ -/* $NetBSD: boot.c,v 1.2 1995/09/23 03:42:52 gwr Exp $ */ - -/*- - * Copyright (c) 1982, 1986, 1990, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)boot.c 8.1 (Berkeley) 6/10/93 - */ - -#include <sys/param.h> -#include <sys/reboot.h> - -#include <machine/prom.h> - -#include "stand.h" -#include "libsa.h" - -int debug; -int errno; -extern char *version; -char line[80]; - -int -main() -{ - char *cp, *file; - int io, flag, ret; - int ask = 0; - - bootdev_type = BUGDEV_DISK; - - printf("\n>> OpenBSD/mvmeppc bootsd [%s]\n", version); - - ret = parse_args(&file, &flag); - for (;;) { - if (ask) { - printf("boot: "); - gets(line); - if (line[0]) { - bugargs.arg_start = line; - cp = line; - while (cp < (line + sizeof(line) -1) && *cp) - cp++; - bugargs.arg_end = cp; - ret = parse_args(&file, &flag); - } - } - if (ret) { - printf("boot: -q returning to MVME-Bug\n"); - break; - } - exec_mvme(file, flag); - printf("boot: %s: %s\n", file, strerror(errno)); - ask = 1; - } - return (0); -} diff --git a/sys/arch/mvmeppc/stand/bootsd/version.c b/sys/arch/mvmeppc/stand/bootsd/version.c deleted file mode 100644 index 7162d459350..00000000000 --- a/sys/arch/mvmeppc/stand/bootsd/version.c +++ /dev/null @@ -1,8 +0,0 @@ -/* $OpenBSD: version.c,v 1.1 2001/06/26 21:57:59 smurph Exp $ */ - -/* - * make a random change to this file when you want the bootblock - * revision to increase. like change this q to an x, or something. - */ - -char *version = "$Revision: 1.1 $"; diff --git a/sys/arch/mvmeppc/stand/bootst/Makefile b/sys/arch/mvmeppc/stand/bootst/Makefile deleted file mode 100644 index b7fbee4d94c..00000000000 --- a/sys/arch/mvmeppc/stand/bootst/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -# from: @(#)Makefile 8.1 (Berkeley) 6/10/93 -# $OpenBSD: Makefile,v 1.2 2001/08/25 20:36:54 miod Exp $ - -SIZE?= size - -S= ${.CURDIR}/../../../.. -DEFS= -DSTANDALONE -DCOMPAT_NOLABEL -INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \ - -I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa -CFLAGS=-O0 ${INCPATH} ${DEFS} ${COPTS} -LDFLAGS=-s -N -Ttext ${STAGE2_RELOC} -CLEANFILES+=stboot bootst bootst.bug - -#.include "${S}/arch/mvmeppc/stand/wrtvid/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/bugcrt/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libbug/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libsa/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libz/Makefile.inc" - -SRCS= boot.c version.c - -LIBS= ${LIBSA} ${LIBBUG} ${LIBZ} - -OBJS= ${SRCS:N*.h:R:S/$/.o/g} - -BOOTS= bootst -ALL= ${BOOTS} - -all: ${ALL} - -bootst: ${OBJS} ${SINGLE} ${LIBS} - ${LD} ${LDFLAGS} ${SINGLE} ${OBJS} ${LIBS} -o $@ - @${SIZE} $@ - -install: - install -c -m 555 -g bin -o bin ${BOOTS} ${DESTDIR}${MDEC_DIR} - -.include <bsd.prog.mk> diff --git a/sys/arch/mvmeppc/stand/bootst/boot.c b/sys/arch/mvmeppc/stand/bootst/boot.c deleted file mode 100644 index 732bc17f32d..00000000000 --- a/sys/arch/mvmeppc/stand/bootst/boot.c +++ /dev/null @@ -1,72 +0,0 @@ -/* $OpenBSD: boot.c,v 1.2 2003/06/02 23:27:53 millert Exp $ */ -/*- - * Changes Copyright (c) 1998 steve Murphree, Jr. - * Copyright (c) 1982, 1986, 1990, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)boot.c 8.1 (Berkeley) 6/10/93 - */ - -#include <sys/param.h> -#include <sys/reboot.h> -#include <machine/prom.h> - -#include "stand.h" -#include "libsa.h" - -#define LOADADDR 0x10000 - -extern char *version; -extern int errno; - -int main() -{ - static char dnm[32] = "2"; - char line[80]; - char *cp, *filename; - int bflag = 0; - - bootdev_type = BUGDEV_TAPE; - - printf(">> OpenBSD/mvme88k tapeboot [%s]\n", version); - - *bugargs.arg_end = 0; /* ensure */ - parse_args(&filename, &bflag); - filename = dnm; /* override */ - - if (bflag & RB_ASKNAME) { - printf("tapeboot: segment? [%s] ", dnm); - gets(line); - if (line[0]) - filename = line; - } - - exec_mvme(filename, bflag); - - printf("tapeboot: %s: %s\n", filename, strerror(errno)); - return(0); -} diff --git a/sys/arch/mvmeppc/stand/bootst/version.c b/sys/arch/mvmeppc/stand/bootst/version.c deleted file mode 100644 index 0ebfccf685d..00000000000 --- a/sys/arch/mvmeppc/stand/bootst/version.c +++ /dev/null @@ -1,8 +0,0 @@ -/* $OpenBSD: version.c,v 1.1 2001/06/26 21:58:00 smurph Exp $ */ - -/* - * make a random change to this file when you want the bootblock - * revision to increase. like change this x to an q, or something. - */ - -char *version = "$Revision: 1.1 $"; diff --git a/sys/arch/mvmeppc/stand/bootxx/Makefile b/sys/arch/mvmeppc/stand/bootxx/Makefile deleted file mode 100644 index bb496d7cbbb..00000000000 --- a/sys/arch/mvmeppc/stand/bootxx/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -# from: @(#)Makefile 8.1 (Berkeley) 6/10/93 -# $OpenBSD: Makefile,v 1.2 2001/08/21 17:44:19 miod Exp $ - -S= ${.CURDIR}/../../../.. -DEFS=-DSTAGE2_RELOC=${STAGE2_RELOC} -INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \ - -I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa -CFLAGS=-O0 ${INCPATH} ${DEFS} ${COPTS} -CLEANFILES+=bootxx - -.include "${S}/arch/mvmeppc/stand/bugcrt/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libbug/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libsa/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libz/Makefile.inc" - -SRCS= bootxx.c version.c - -LIBS= ${LIBSA} ${LIBBUG} ${LIBZ} - -OBJS= ${SRCS:N*.h:R:S/$/.o/g} - -BOOTS= bootxx -ALL= ${BOOTS} - -all: ${ALL} - -bootxx: ${OBJS} ${STAGE1} ${LIBS} - ${LD} -X -N -Ttext ${STAGE1_RELOC} ${STAGE1} ${OBJS} ${LIBS} -o $@ - -install: - install -c -m 555 -g bin -o bin ${BOOTS} ${DESTDIR}${MDEC_DIR} - -.include <bsd.prog.mk> diff --git a/sys/arch/mvmeppc/stand/bootxx/bootxx.c b/sys/arch/mvmeppc/stand/bootxx/bootxx.c deleted file mode 100644 index 9824ff04148..00000000000 --- a/sys/arch/mvmeppc/stand/bootxx/bootxx.c +++ /dev/null @@ -1,142 +0,0 @@ -/* $OpenBSD: bootxx.c,v 1.3 2011/03/13 00:13:53 deraadt Exp $ */ - -/* - * Copyright (c) 1994 Paul Kranenburg - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Paul Kranenburg. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * This is a generic "first-stage" boot program. - * - * Note that this program has absolutely no filesystem knowledge! - * - * Instead, this uses a table of disk block numbers that are - * filled in by the installboot program such that this program - * can load the "second-stage" boot program. - */ - -#include <sys/param.h> -#include <sys/time.h> -#include <sys/exec.h> -#include <machine/prom.h> - -#include "stand.h" -#include "libsa.h" - -/* - * Boot device is derived from ROM provided information. - */ - -/* This determines the largest boot program we can load. */ -#define MAXBLOCKNUM 64 - -/* - * These three names are known by installboot. - * The block_table contains starting block numbers, - * in terms of 512-byte blocks. Each non-zero value - * will result in a read of block_size bytes. - */ -int block_size = 512; /* default */ -int block_count = MAXBLOCKNUM; /* length of table */ -daddr32_t block_table[MAXBLOCKNUM] = { 0 }; - -extern char *version; - - -main() -{ - struct open_file f; - char *addr; - int n, error; - - bootdev_type = BUGDEV_DISK; - - printf("Boot: bug device: ctrl=%d, dev=%d\n", - bugargs.ctrl_lun, bugargs.dev_lun); - printf("\nbootxx: first level bootstrap program [%s]\n\n", version); - - f.f_flags = F_RAW; - if (devopen(&f, 0, &addr)) { - printf("bootxx: open failed\n"); - _rtt(); - } - - addr = (char *)STAGE2_RELOC; - error = copyboot(&f, addr); - f.f_dev->dv_close(&f); - if (!error) { - bugexec((void (*)())addr); - } - /* copyboot had a problem... */ - _rtt(); -} - -int -copyboot(fp, addr) - struct open_file *fp; - char *addr; -{ - int n, i, blknum; - struct exec *x; - - addr -= sizeof(struct exec); /* assume OMAGIC, verify below */ - x = (struct exec *)addr; - - if (!block_count) { - printf("bootxx: no data!?!\n"); - return -1; - } - - for (i = 0; i < block_count; i++) { - - if ((blknum = block_table[i]) == 0) - break; - -#ifdef DEBUG - printf("bootxx: read block # %d = %d\n", i, blknum); -#endif - if ((fp->f_dev->dv_strategy)(fp->f_devdata, F_READ, - blknum, block_size, addr, &n)) - { - printf("bootxx: read failed\n"); - return -1; - } - if (n != block_size) { - printf("bootxx: short read\n"); - return -1; - } - addr += block_size; - } - - if (N_GETMAGIC(*x) != OMAGIC) { - printf("bootxx: secondary bootstrap isn't in OMAGIC format\n"); - return(-1); - } - - return 0; -} diff --git a/sys/arch/mvmeppc/stand/bootxx/version.c b/sys/arch/mvmeppc/stand/bootxx/version.c deleted file mode 100644 index 1dca3531fee..00000000000 --- a/sys/arch/mvmeppc/stand/bootxx/version.c +++ /dev/null @@ -1,8 +0,0 @@ -/* $OpenBSD: version.c,v 1.1 2001/06/26 21:58:01 smurph Exp $ */ - -/* - * make a random change to this file when you want the bootblock - * revision to increase. like change this y to an x, or something. - */ - -char *version = "$Revision: 1.1 $"; diff --git a/sys/arch/mvmeppc/stand/bugcrt/Makefile b/sys/arch/mvmeppc/stand/bugcrt/Makefile deleted file mode 100644 index 70dbefaf389..00000000000 --- a/sys/arch/mvmeppc/stand/bugcrt/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -# $OpenBSD: Makefile,v 1.3 2007/10/30 06:03:16 deraadt Exp $ -# -# DO NOT OPTMIZE bugcrt (i.e. no "-O2") -# -S=${.CURDIR}/../../../.. - -CFLAGS=-I${.CURDIR}/../../include -I${.CURDIR}/../libbug -I${S}/lib/libsa \ - -fomit-frame-pointer -STAGE1_CFLAGS=-DSTACK_ASM_OP="\".long ${STAGE1_RELOC}\"" -DSTAGE1 -STAGE2_CFLAGS=-DSTACK_ASM_OP="\".long ${STAGE2_RELOC}\"" -SINGLE_CFLAGS=-DSTACK_ASM_OP="\".long ${STAGE2_RELOC}\"" -DSTAGE1 -SRCS=crt.c -OBJS=stage1crt.o stage2crt.o singlecrt.o - -CLEANFILES+=a.out ${OBJS} - -all: ${OBJS} - -stage1crt.o: crt.c - ${CC} ${CFLAGS} ${STAGE1_CFLAGS} -c ${.CURDIR}/crt.c -o ${.TARGET} - ${LD} -x -r ${.TARGET} -o ${.TARGET}ut - mv ${.TARGET}ut ${.TARGET} - -stage2crt.o: crt.c - ${CC} ${CFLAGS} ${STAGE2_CFLAGS} -c ${.CURDIR}/crt.c -o ${.TARGET} - ${LD} -x -r ${.TARGET} -o ${.TARGET}ut - mv ${.TARGET}ut ${.TARGET} - -singlecrt.o: crt.c - ${CC} ${CFLAGS} ${SINGLE_CFLAGS} -c ${.CURDIR}/crt.c -o ${.TARGET} - ${LD} -x -r ${.TARGET} -o ${.TARGET}ut - mv ${.TARGET}ut ${.TARGET} - -install: - -lint tags: - -.include <bsd.prog.mk> diff --git a/sys/arch/mvmeppc/stand/bugcrt/Makefile.inc b/sys/arch/mvmeppc/stand/bugcrt/Makefile.inc deleted file mode 100644 index 38be2b62f90..00000000000 --- a/sys/arch/mvmeppc/stand/bugcrt/Makefile.inc +++ /dev/null @@ -1,24 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.1 2001/06/26 21:58:02 smurph Exp $ - -BUG_CRT_DIR=${S}/arch/mvmeppc/stand/bugcrt - -BUGCRT_DIR!= cd ${BUG_CRT_DIR}; \ - printf "xxx:\n\techo \$${.OBJDIR}\n" | ${MAKE} -r -s -f - xxx - -STAGE1=${BUGCRT_DIR}/stage1crt.o -STAGE2=${BUGCRT_DIR}/stage2crt.o -SINGLE=${BUGCRT_DIR}/singlecrt.o - -$(STAGE1): .NOTMAIN __always_make_bugcrt - @echo making sure the stage1crt.o is up to date... - @(cd ${BUG_CRT_DIR}; ${MAKE} stage1crt.o) - -$(STAGE2): .NOTMAIN __always_make_bugcrt - @echo making sure the stage2crt.o is up to date... - @(cd ${BUG_CRT_DIR}; ${MAKE} stage2crt.o) - -$(SINGLE): .NOTMAIN __always_make_bugcrt - @echo making sure the singlecrt.o is up to date... - @(cd ${BUG_CRT_DIR}; ${MAKE} singlecrt.o) - -__always_make_bugcrt: .NOTMAIN diff --git a/sys/arch/mvmeppc/stand/bugcrt/crt.c b/sys/arch/mvmeppc/stand/bugcrt/crt.c deleted file mode 100644 index 93f0882064b..00000000000 --- a/sys/arch/mvmeppc/stand/bugcrt/crt.c +++ /dev/null @@ -1,77 +0,0 @@ -/* $OpenBSD: crt.c,v 1.2 2004/01/25 14:55:39 miod Exp $ */ - -#include <sys/types.h> -#include <machine/prom.h> - -struct mvmeprom_args bugargs = { 1}; /* not BSS */ - -_start() -{ - register int dev_lun asm (MVMEPROM_REG_DEVLUN); - register int ctrl_lun asm (MVMEPROM_REG_CTRLLUN); - register int flags asm (MVMEPROM_REG_SCSUPP); - register int ctrl_addr asm (MVMEPROM_REG_CTRLADDR); - register int entry asm (MVMEPROM_REG_ENTRY); - register int conf_blk asm (MVMEPROM_REG_IPA); - register char *arg_start asm (MVMEPROM_REG_ARGSTART); - register char *arg_end asm (MVMEPROM_REG_ARGEND); - register char *nbarg_start asm (MVMEPROM_REG_NBARGSTART); - register char *nbarg_end asm (MVMEPROM_REG_NBARGEND); - extern int edata, end; - struct mvmeprom_brdid *id, *mvmeprom_brdid(); - - bugargs.dev_lun = dev_lun; - bugargs.ctrl_lun = ctrl_lun; - bugargs.flags = flags; - bugargs.ctrl_addr = ctrl_addr; - bugargs.entry = entry; - bugargs.conf_blk = conf_blk; - bugargs.arg_start = arg_start; - bugargs.arg_end = arg_end; - bugargs.nbarg_start = nbarg_start; - bugargs.nbarg_end = nbarg_end; - *bugargs.arg_end = 0; - *bugargs.nbarg_end = 0; - - id = mvmeprom_brdid(); - bugargs.cputyp = id->model; - - memset(&edata, 0, ((int)&end - (int)&edata)); - - asm ("# main()"); - main(); - mvmeprom_return(); - /* NOTREACHED */ -} - -__main() -{ -} - -void -bugexec(addr) - void (*addr)(); -{ - register int dev_lun asm (MVMEPROM_REG_DEVLUN); - register int ctrl_lun asm (MVMEPROM_REG_CTRLLUN); - register int flags asm (MVMEPROM_REG_SCSUPP); - register int ctrl_addr asm (MVMEPROM_REG_CTRLADDR); - register int entry asm (MVMEPROM_REG_ENTRY); - register int conf_blk asm (MVMEPROM_REG_IPA); - register char *arg_start asm (MVMEPROM_REG_ARGSTART); - register char *arg_end asm (MVMEPROM_REG_ARGEND); - - dev_lun = bugargs.dev_lun; - ctrl_lun = bugargs.ctrl_lun; - flags = bugargs.flags; - ctrl_addr = bugargs.ctrl_addr; - entry = bugargs.entry; - conf_blk = bugargs.conf_blk; - arg_start = bugargs.arg_start; - arg_end = bugargs.arg_end; - - (*addr)(); - printf("bugexec: 0x%x returned!\n", addr); - - _rtt(); -} diff --git a/sys/arch/mvmeppc/stand/installboot/Makefile b/sys/arch/mvmeppc/stand/installboot/Makefile deleted file mode 100644 index 8747e5849f2..00000000000 --- a/sys/arch/mvmeppc/stand/installboot/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $OpenBSD: Makefile,v 1.2 2004/03/09 22:23:41 miod Exp $ - -.if ${MACHINE} == "mvmeppc" -PROG= installboot -MAN= installboot.8 -MANSUBDIR=/mvmeppc - -BINDIR=/usr/mdec -DPADD=${LIBUTIL} -LDADD=-lutil -CFLAGS+=-O0 -# Need this to work in the miniroot -LDSTATIC=-static -.else -NOPROG= -.endif - -.include <bsd.prog.mk> - diff --git a/sys/arch/mvmeppc/stand/installboot/installboot.8 b/sys/arch/mvmeppc/stand/installboot/installboot.8 deleted file mode 100644 index 06961bc0333..00000000000 --- a/sys/arch/mvmeppc/stand/installboot/installboot.8 +++ /dev/null @@ -1,83 +0,0 @@ -.\" $OpenBSD: installboot.8,v 1.8 2010/03/06 16:16:43 jmc Exp $ -.\" -.\" Copyright (c) 1994 Paul Kranenburg -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by Paul Kranenburg. -.\" 4. The name of the author may not be used to endorse or promote products -.\" derived from this software without specific prior written permission -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, -.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -.\" -.Dd $Mdocdate: March 6 2010 $ -.Dt INSTALLBOOT 8 mvmeppc -.Os -.Sh NAME -.Nm installboot -.Nd install a bootstrap on an FFS disk -.Sh SYNOPSIS -.Nm installboot -.Op Fl n -.Op Fl v -.Ar boot -.Ar bootxx -.Ar rawdev -.Sh DESCRIPTION -.Nm installboot -is used to install a "first-stage" boot program into the boot area -of an FFS disk partition, and initialize the table of block numbers the -.Ar bootxx -program uses to load the second-stage boot program. -.Pp -The options are as follows: -.Bl -tag -width flag -.It Fl n -Do not actually write anything on the disk. -.It Fl v -Be verbose, printing out the block numbers that -.Ar bootxx -will use to load -.Ar boot . -.El -.Pp -The arguments are: -.Bl -tag -width bootxx -.It Ar boot -the name of the second-stage boot program in the file system -where the first-stage boot program is to be installed. -.It Ar bootxx -the name of the prototype file for the first stage boot program. -.It Ar rawdev -the name of the raw device in which the first-stage boot program -is to be installed. -This should correspond to the block device on which the file system containing -.Ar boot -is mounted. -.El -.Sh EXAMPLES -.Bd -literal -offset -cp /usr/mdec/bootsd /boot -/usr/mdec/installboot /boot /usr/mdec/bootxx /dev/rsd0a -.Ed -.Sh SEE ALSO -.Xr disklabel 8 , -.Xr init 8 diff --git a/sys/arch/mvmeppc/stand/installboot/installboot.c b/sys/arch/mvmeppc/stand/installboot/installboot.c deleted file mode 100644 index 910471911ae..00000000000 --- a/sys/arch/mvmeppc/stand/installboot/installboot.c +++ /dev/null @@ -1,476 +0,0 @@ -/* $OpenBSD: installboot.c,v 1.8 2011/03/13 00:13:53 deraadt Exp $ */ -/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ - -/* - * Copyright (c) 1994 Paul Kranenburg - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Paul Kranenburg. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/param.h> -#include <sys/mount.h> -#include <sys/time.h> -#include <sys/disklabel.h> -#include <sys/stat.h> -#include <ufs/ufs/dinode.h> -#include <ufs/ufs/dir.h> -#include <ufs/ffs/fs.h> -#include <err.h> -#include <a.out.h> -#include <fcntl.h> -#include <nlist.h> -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <unistd.h> -#include <util.h> - -int verbose, nowrite, hflag; -char *boot, *proto, *dev; -char cdev[80]; - -struct nlist nl[] = { -#define X_BLOCK_SIZE 0 - {"_block_size"}, -#define X_BLOCK_COUNT 1 - {"_block_count"}, -#define X_BLOCK_TABLE 2 - {"_block_table"}, - {NULL} -}; - -int *block_size_p; /* block size var. in prototype image */ -int *block_count_p; /* block count var. in prototype image */ -daddr32_t *block_table; /* block number array in prototype image */ -int maxblocknum; /* size of this array */ - - -char *loadprotoblocks(char *, long *); -int loadblocknums(char *, int); -static void devread(int, void *, daddr32_t, size_t, char *); -static void usage(void); -int main(int, char *[]); -static void vid_to_disklabel(char *, char *); - - -static void -usage() -{ - fprintf(stderr, - "usage: installboot [-n] [-v] [-h] <boot> <proto> <device>\n"); - exit(1); -} - -int -main(argc, argv) - int argc; - char *argv[]; -{ - int c; - int devfd; - char *protostore; - long protosize; - - while ((c = getopt(argc, argv, "vnh")) != -1) { - switch (c) { - case 'h': - /* Don't strip a.out header */ - hflag = 1; - break; - case 'n': - /* Do not actually write the bootblock to disk */ - nowrite = 1; - break; - case 'v': - /* Chat */ - verbose = 1; - break; - default: - usage(); - } - } - - if (argc - optind < 3) { - usage(); - } - - boot = argv[optind]; - proto = argv[optind + 1]; - dev = argv[optind + 2]; - strlcpy(cdev, dev, sizeof cdev); - cdev[strlen(cdev)-1] = 'c'; - - if (verbose) { - printf("boot: %s\n", boot); - printf("proto: %s\n", proto); - printf("device: %s\n", dev); - printf("cdevice: %s\n", cdev); - } - - /* Insert VID into disklabel */ - vid_to_disklabel(cdev, proto); - - /* Load proto blocks into core */ - if ((protostore = loadprotoblocks(proto, &protosize)) == NULL) - exit(1); - - /* XXX - Paranoia: Make sure size is aligned! */ - if (protosize & (DEV_BSIZE - 1)) - err(1, "proto bootblock bad size=%d", protosize); - - /* Open and check raw disk device */ - if ((devfd = open(dev, O_RDONLY, 0)) < 0) - err(1, "open: %s", dev); - - /* Extract and load block numbers */ - if (loadblocknums(boot, devfd) != 0) - exit(1); - - (void)close(devfd); - - if (nowrite) - return 0; - - /* Write patched proto bootblocks into the superblock */ - if (protosize > SBSIZE - DEV_BSIZE) - errx(1, "proto bootblocks too big"); - - if ((devfd = open(cdev, O_RDWR, 0)) < 0) - err(1, "open: %s", dev); - - if (lseek(devfd, DEV_BSIZE, SEEK_SET) != DEV_BSIZE) - err(1, "lseek bootstrap"); - - /* Sync filesystems (to clean in-memory superblock?) */ - sync(); - - if (write(devfd, protostore, protosize) != protosize) - err(1, "write bootstrap"); - (void)close(devfd); - return 0; -} - -char * -loadprotoblocks(fname, size) - char *fname; - long *size; -{ - int fd; - size_t tdsize; /* text+data size */ - size_t bbsize; /* boot block size (block aligned) */ - char *bp; - struct nlist *nlp; - struct exec eh; - long off; - - fd = -1; - bp = NULL; - - /* Locate block number array in proto file */ - if (nlist(fname, nl) != 0) { - warnx("nlist: %s: symbols not found", fname); - return NULL; - } - /* Validate symbol types (global data). */ - for (nlp = nl; nlp->n_un.n_name; nlp++) { - if (nlp->n_type != (N_DATA | N_EXT)) { - warnx("nlist: %s: wrong type", nlp->n_un.n_name); - return NULL; - } - } - - if ((fd = open(fname, O_RDONLY)) < 0) { - warn("open: %s", fname); - return NULL; - } - if (read(fd, &eh, sizeof(eh)) != sizeof(eh)) { - warn("read: %s", fname); - goto bad; - } - if (N_GETMAGIC(eh) != OMAGIC) { - warn("bad magic: 0x%x", eh.a_midmag); - goto bad; - } - /* - * We have to include the exec header in the beginning of - * the buffer, and leave extra space at the end in case - * the actual write to disk wants to skip the header. - */ - tdsize = eh.a_text + eh.a_data; - bbsize = tdsize + sizeof(eh); - bbsize = roundup(bbsize, DEV_BSIZE); - - /* - * Allocate extra space here because the caller may copy - * the boot block starting at the end of the exec header. - * This prevents reading beyond the end of the buffer. - */ - if ((bp = calloc(bbsize + sizeof(eh), 1)) == NULL) { - warnx("malloc: %s: no memory", fname); - goto bad; - } - /* Copy the exec header and read the rest of the file. */ - memcpy(bp, &eh, sizeof(eh)); - if (read(fd, bp+sizeof(eh), tdsize) != tdsize) { - warn("read: %s", fname); - goto bad; - } - - *size = bbsize; /* aligned to DEV_BSIZE */ - - /* Calculate the symbols' locations within the proto file */ - off = N_DATOFF(eh) - N_DATADDR(eh) - (eh.a_entry - N_TXTADDR(eh)); - block_size_p = (int *) (bp + nl[X_BLOCK_SIZE ].n_value + off); - block_count_p = (int *) (bp + nl[X_BLOCK_COUNT].n_value + off); - block_table = (daddr32_t *) (bp + nl[X_BLOCK_TABLE].n_value + off); - maxblocknum = *block_count_p; - - if (verbose) { - printf("%s: entry point %#x\n", fname, eh.a_entry); - printf("proto bootblock size %ld\n", *size); - printf("room for %d filesystem blocks at %#x\n", - maxblocknum, nl[X_BLOCK_TABLE].n_value); - } - - close(fd); - if (!hflag) - bp += sizeof(struct exec); - return bp; - - bad: - if (bp) - free(bp); - if (fd >= 0) - close(fd); - return NULL; -} - -static void -devread(fd, buf, blk, size, msg) - int fd; - void *buf; - daddr32_t blk; - size_t size; - char *msg; -{ - if (lseek(fd, dbtob(blk), SEEK_SET) != dbtob(blk)) - err(1, "%s: devread: lseek", msg); - - if (read(fd, buf, size) != size) - err(1, "%s: devread: read", msg); -} - -static char sblock[SBSIZE]; - -int -loadblocknums(boot, devfd) -char *boot; -int devfd; -{ - int i, fd; - struct stat statbuf; - struct statfs statfsbuf; - struct fs *fs; - char *buf; - daddr32_t blk, *ap; - struct dinode *ip; - int ndb; - - /* - * Open 2nd-level boot program and record the block numbers - * it occupies on the filesystem represented by `devfd'. - */ - - /* Make sure the (probably new) boot file is on disk. */ - sync(); sleep(1); - - if ((fd = open(boot, O_RDONLY)) < 0) - err(1, "open: %s", boot); - - if (fstatfs(fd, &statfsbuf) != 0) - err(1, "statfs: %s", boot); - - if (strncmp(statfsbuf.f_fstypename, "ffs", MFSNAMELEN) && - strncmp(statfsbuf.f_fstypename, "ufs", MFSNAMELEN) ) { - errx(1, "%s: must be on an FFS filesystem", boot); - } - - if (fsync(fd) != 0) - err(1, "fsync: %s", boot); - - if (fstat(fd, &statbuf) != 0) - err(1, "fstat: %s", boot); - - close(fd); - - /* Read superblock */ - devread(devfd, sblock, SBLOCK, SBSIZE, "superblock"); - fs = (struct fs *)sblock; - - /* Sanity-check super-block. */ - if (fs->fs_magic != FS_MAGIC) - errx(1, "Bad magic number in superblock"); - if (fs->fs_inopb <= 0) - err(1, "Bad inopb=%d in superblock", fs->fs_inopb); - - /* Read inode */ - if ((buf = malloc(fs->fs_bsize)) == NULL) - errx(1, "No memory for filesystem block"); - - blk = fsbtodb(fs, ino_to_fsba(fs, statbuf.st_ino)); - devread(devfd, buf, blk, fs->fs_bsize, "inode"); - ip = (struct dinode *)(buf) + ino_to_fsbo(fs, statbuf.st_ino); - - /* - * Have the inode. Figure out how many blocks we need. - */ - ndb = howmany(ip->di_size, fs->fs_bsize); - if (ndb > maxblocknum) - errx(1, "Too many blocks"); - *block_count_p = ndb; - *block_size_p = fs->fs_bsize; - if (verbose) - printf("Will load %d blocks of size %d each.\n", - ndb, fs->fs_bsize); - - /* - * Get the block numbers; we don't handle fragments - */ - ap = ip->di_db; - for (i = 0; i < NDADDR && *ap && ndb; i++, ap++, ndb--) { - blk = fsbtodb(fs, *ap); - if (verbose) - printf("%d: %d\n", i, blk); - block_table[i] = blk; - } - if (ndb == 0) - return 0; - - /* - * Just one level of indirections; there isn't much room - * for more in the 1st-level bootblocks anyway. - */ - blk = fsbtodb(fs, ip->di_ib[0]); - devread(devfd, buf, blk, fs->fs_bsize, "indirect block"); - ap = (daddr32_t *)buf; - for (; i < NINDIR(fs) && *ap && ndb; i++, ap++, ndb--) { - blk = fsbtodb(fs, *ap); - if (verbose) - printf("%d: %d\n", i, blk); - block_table[i] = blk; - } - - return 0; -} - -static void -vid_to_disklabel(dkname, bootproto) -char *dkname; -char *bootproto; -{ - char *specname; - int exe_file, f; - struct cpu_disklabel *pcpul; - struct stat sb; - unsigned int exe_addr; - unsigned short exe_addr_u; - unsigned short exe_addr_l; - - pcpul = (struct cpu_disklabel *)malloc(sizeof(struct cpu_disklabel)); - bzero(pcpul, sizeof(struct cpu_disklabel)); - - if (verbose) - printf("modifying vid.\n"); - - exe_file = open(bootproto, O_RDONLY, 0444); - if (exe_file == -1) { - perror(bootproto); - exit(2); - } - - f = opendev(dkname, O_RDWR, OPENDEV_PART, &specname); - - if (lseek(f, 0, SEEK_SET) < 0 || - read(f, pcpul, sizeof(struct cpu_disklabel)) - < sizeof(struct cpu_disklabel)) - err(4, "%s", specname); - - - pcpul->version = 1; - memcpy(pcpul->vid_id, "M88K", sizeof pcpul->vid_id); - - if (fstat(exe_file, &sb) == -1) - err(1, "fstat: %s", bootproto); - if (sb.st_size < 0x20) - errx(1, "%s is too small", bootproto); - - /* size in 256 byte blocks round up after a.out header removed */ - - pcpul->vid_oss = 2; - pcpul->vid_osl = (((sb.st_size -0x20) +511) / 512) *2; - - lseek(exe_file, 0x14, SEEK_SET); - read(exe_file, &exe_addr, 4); - - /* check this, it may not work in both endian. */ - /* No, it doesn't. Use a big endian machine for now. SPM */ - - { - union { - struct s { - unsigned short s1; - unsigned short s2; - } s; - unsigned long l; - } a; - a.l = exe_addr; - pcpul->vid_osa_u = a.s.s1; - pcpul->vid_osa_l = a.s.s2; - - } - pcpul->vid_cas = 1; - pcpul->vid_cal = 1; - - /* do not want to write past end of structure, not null terminated */ - - strncpy(pcpul->vid_mot, "MOTOROLA", 8); - - pcpul->cfg_rec = 0x100; - pcpul->cfg_psm = 0x200; - - if (!nowrite) { - if (lseek(f, 0, SEEK_SET) < 0 || - write(f, pcpul, sizeof(struct cpu_disklabel)) - < sizeof(struct cpu_disklabel)) - err(4, "%s", specname); - } - free(pcpul); - - close(exe_file); - close(f); - -} diff --git a/sys/arch/mvmeppc/stand/libbug/Makefile b/sys/arch/mvmeppc/stand/libbug/Makefile deleted file mode 100644 index a360e63b233..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2001/06/26 21:58:03 smurph Exp $ - -LIB=bug - -NOPIC= -NOPROFILE= - -S=${.CURDIR}/../../../.. -DIR_SA=$S/lib/libsa - -CFLAGS+=-O2 -I${.CURDIR}/../../include -I${DIR_SA} - -SRCS= delay.c diskrd.c diskwr.c getbrdid.c inchr.c instat.c outln.c outch.c\ - outstr.c putchar.c return.c rtc_rd.c netrd.c netwr.c netfopen.c \ - netfread.c netctrl.c - -install: - -.include <bsd.lib.mk> diff --git a/sys/arch/mvmeppc/stand/libbug/Makefile.inc b/sys/arch/mvmeppc/stand/libbug/Makefile.inc deleted file mode 100644 index 1d780fe931e..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/Makefile.inc +++ /dev/null @@ -1,14 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.1 2001/06/26 21:58:04 smurph Exp $ - -LIB_BUG_DIR=${S}/arch/mvmeppc/stand/libbug - -LIBBUG_DIR!= cd ${LIB_BUG_DIR}; \ - printf "xxx:\n\techo \$${.OBJDIR}\n" | ${MAKE} -r -s -f - xxx - -LIBBUG=${LIBBUG_DIR}/libbug.a - -$(LIBBUG): .NOTMAIN __always_make_libbug - @echo making sure the libbug is up to date... - @(cd ${LIB_BUG_DIR}; ${MAKE}) - -__always_make_libbug: .NOTMAIN diff --git a/sys/arch/mvmeppc/stand/libbug/delay.c b/sys/arch/mvmeppc/stand/libbug/delay.c deleted file mode 100644 index 2e7b283729f..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/delay.c +++ /dev/null @@ -1,18 +0,0 @@ -/* $OpenBSD: delay.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* BUG - timing routine */ -void -mvmeprom_delay(msec) - int msec; /* This is r3 */ -{ - asm volatile ("mr 3, %0" :: "r"(msec)); - MVMEPROM_CALL(MVMEPROM_DELAY); -} diff --git a/sys/arch/mvmeppc/stand/libbug/diskrd.c b/sys/arch/mvmeppc/stand/libbug/diskrd.c deleted file mode 100644 index c8debc01da3..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/diskrd.c +++ /dev/null @@ -1,22 +0,0 @@ -/* $OpenBSD: diskrd.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* returns 0: success, nonzero: error */ -int -mvmeprom_diskrd(arg) - struct mvmeprom_dskio *arg; -{ - int ret; - - asm volatile ("mr 3, %0" :: "r"(arg)); - MVMEPROM_CALL(MVMEPROM_NETRD); - asm volatile ("mr %0, 3" : "=r" (ret)); - return ((ret & 0x8)); -} diff --git a/sys/arch/mvmeppc/stand/libbug/diskwr.c b/sys/arch/mvmeppc/stand/libbug/diskwr.c deleted file mode 100644 index a92ff72c6fc..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/diskwr.c +++ /dev/null @@ -1,22 +0,0 @@ -/* $OpenBSD: diskwr.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* returns 0: success, nonzero: error */ -int -mvmeprom_diskwr(arg) - struct mvmeprom_dskio *arg; -{ - int ret; - - asm volatile ("mr 3, %0" :: "r"(arg)); - MVMEPROM_CALL(MVMEPROM_DSKWR); - asm volatile ("mr %0, 3" : "=r" (ret)); - return ((ret & 0x8)); -} diff --git a/sys/arch/mvmeppc/stand/libbug/getbrdid.c b/sys/arch/mvmeppc/stand/libbug/getbrdid.c deleted file mode 100644 index ccb080fc84c..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/getbrdid.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $OpenBSD: getbrdid.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* BUG - query board routines */ -struct mvmeprom_brdid * -mvmeprom_brdid() -{ - struct mvmeprom_brdid *id; - - MVMEPROM_CALL(MVMEPROM_BRD_ID); - asm volatile ("mr %0, 3": "=r" (id):); - return (id); -} diff --git a/sys/arch/mvmeppc/stand/libbug/inchr.c b/sys/arch/mvmeppc/stand/libbug/inchr.c deleted file mode 100644 index 8251d889bea..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/inchr.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $OpenBSD: inchr.c,v 1.2 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* returns 0 if no characters ready to read */ -int -getchar() -{ - int ret; - - MVMEPROM_CALL(MVMEPROM_INCHR); - asm volatile ("mr %0, 3" : "=r" (ret)); - return ret; -} diff --git a/sys/arch/mvmeppc/stand/libbug/instat.c b/sys/arch/mvmeppc/stand/libbug/instat.c deleted file mode 100644 index d58384b53a4..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/instat.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $OpenBSD: instat.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* returns 0 if no characters ready to read */ -int -mvmeprom_instat() -{ - int ret; - - MVMEPROM_CALL(MVMEPROM_INSTAT); - asm volatile ("mr %0, 3" : "=r" (ret)); - return (!(ret & 0x4)); -} diff --git a/sys/arch/mvmeppc/stand/libbug/libbug.h b/sys/arch/mvmeppc/stand/libbug/libbug.h deleted file mode 100644 index c9771c6475b..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/libbug.h +++ /dev/null @@ -1,36 +0,0 @@ -/* $OpenBSD: libbug.h,v 1.5 2004/11/15 14:03:21 miod Exp $ */ - -#include <machine/prom.h> - -/* - * prototypes and such. note that get/put char are in stand.h - */ - -void mvmeprom_delay(int); -int mvmeprom_diskrd(struct mvmeprom_dskio *); -int mvmeprom_diskwr(struct mvmeprom_dskio *); -struct mvmeprom_brdid *mvmeprom_getbrdid(void); -int peekchar(void); -void mvmeprom_outln(char *, char *); -void mvmeprom_outstr(char *, char *); -void mvmeprom_rtc_rd(struct mvmeprom_time *); -int mvmeprom_netctrl(struct mvmeprom_netctrl *); -int mvmeprom_netctrl_init(u_char, u_char); -int mvmeprom_netctrl_hwa(u_char, u_char, void *, u_long *); -int mvmeprom_netctrl_tx(u_char, u_char, void *, u_long *); -int mvmeprom_netctrl_rx(u_char, u_char, void *, u_long *); -int mvmeprom_netctrl_flush_rx(u_char, u_char); -int mvmeprom_netctrl_reset(u_char, u_char); - -/* - * bugcrt stuff - */ - -extern struct mvmeprom_args bugargs; - -void bugexec(void (*)()); - -/* Invoke the BUG */ -#define MVMEPROM_CALL(x) \ - __asm__ __volatile__ ("addi %r10,%r0," __STRING(x)); \ - __asm__ __volatile__ ("sc"); diff --git a/sys/arch/mvmeppc/stand/libbug/netctrl.c b/sys/arch/mvmeppc/stand/libbug/netctrl.c deleted file mode 100644 index e46dfea9fec..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/netctrl.c +++ /dev/null @@ -1,132 +0,0 @@ -/* $OpenBSD: netctrl.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* returns 0: success, nonzero: error */ -int -mvmeprom_netctrl(arg) - struct mvmeprom_netctrl *arg; -{ - asm volatile ("mr 3, %0":: "r" (arg)); - MVMEPROM_CALL(MVMEPROM_NETCTRL); - return (arg->status); -} - -int -mvmeprom_netctrl_init(clun, dlun) -u_char clun; -u_char dlun; -{ - struct mvmeprom_netctrl niocall; - niocall.clun = clun; - niocall.dlun = dlun; - niocall.status = 0; - niocall.cmd = 0; /* init */ - niocall.addr = 0; - niocall.len = 0; - niocall.flags = 0; - mvmeprom_netctrl(&niocall); - return(niocall.status); -} - -int -mvmeprom_netctrl_hwa(clun, dlun, addr, len) -u_char clun; -u_char dlun; -void *addr; -u_long *len; -{ - struct mvmeprom_netctrl niocall; - niocall.clun = clun; - niocall.dlun = dlun; - niocall.status = 0; - niocall.cmd = 1; /* get hw address */ - niocall.addr = addr; - niocall.len = *len; - niocall.flags = 0; - mvmeprom_netctrl(&niocall); - *len = niocall.len; - return(niocall.status); -} - -int -mvmeprom_netctrl_tx(clun, dlun, addr, len) -u_char clun; -u_char dlun; -void *addr; -u_long *len; -{ - struct mvmeprom_netctrl niocall; - niocall.clun = clun; - niocall.dlun = dlun; - niocall.status = 0; - niocall.cmd = 2; /* transmit */ - niocall.addr = addr; - niocall.len = *len; - niocall.flags = 0; - mvmeprom_netctrl(&niocall); - *len = niocall.len; - return(niocall.status); -} - -int -mvmeprom_netctrl_rx(clun, dlun, addr, len) -u_char clun; -u_char dlun; -void *addr; -u_long *len; -{ - struct mvmeprom_netctrl niocall; - niocall.clun = clun; - niocall.dlun = dlun; - niocall.status = 0; - niocall.cmd = 3; /* receive */ - niocall.addr = addr; - niocall.len = *len; - niocall.flags = 0; - mvmeprom_netctrl(&niocall); - *len = niocall.len; - return(niocall.status); -} - -int -mvmeprom_netctrl_flush_rx(clun, dlun) -u_char clun; -u_char dlun; -{ - struct mvmeprom_netctrl niocall; - niocall.clun = clun; - niocall.dlun = dlun; - niocall.status = 0; - niocall.cmd = 4; /* reset */ - niocall.addr = 0; - niocall.len = 0; - niocall.flags = 0; - mvmeprom_netctrl(&niocall); - return(niocall.status); -} - -int -mvmeprom_netctrl_reset(clun, dlun) -u_char clun; -u_char dlun; -{ - struct mvmeprom_netctrl niocall; - niocall.clun = clun; - niocall.dlun = dlun; - niocall.status = 0; - niocall.cmd = 5; /* reset */ - niocall.addr = 0; - niocall.len = 0; - niocall.flags = 0; - mvmeprom_netctrl(&niocall); - return(niocall.status); -} - - diff --git a/sys/arch/mvmeppc/stand/libbug/netfopen.c b/sys/arch/mvmeppc/stand/libbug/netfopen.c deleted file mode 100644 index 52d7b8e9cf0..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/netfopen.c +++ /dev/null @@ -1,19 +0,0 @@ -/* $OpenBSD: netfopen.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* returns 0: success, nonzero: error */ -int -mvmeprom_netfopen(arg) - struct mvmeprom_netfopen *arg; -{ - asm volatile ("mr 3, %0": : "r" (arg)); - MVMEPROM_CALL(MVMEPROM_NETFOPEN); - return (arg->status); -} diff --git a/sys/arch/mvmeppc/stand/libbug/netfread.c b/sys/arch/mvmeppc/stand/libbug/netfread.c deleted file mode 100644 index c06521a8bbc..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/netfread.c +++ /dev/null @@ -1,19 +0,0 @@ -/* $OpenBSD: netfread.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* returns 0: success, nonzero: error */ -int -mvmeprom_netfread(arg) - struct mvmeprom_netfread *arg; -{ - asm volatile ("mr 3, %0": : "r" (arg)); - MVMEPROM_CALL(MVMEPROM_NETFREAD); - return (arg->status); -} diff --git a/sys/arch/mvmeppc/stand/libbug/netrd.c b/sys/arch/mvmeppc/stand/libbug/netrd.c deleted file mode 100644 index 7257cc3652a..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/netrd.c +++ /dev/null @@ -1,19 +0,0 @@ -/* $OpenBSD: netrd.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* returns 0: success, nonzero: error */ -int -mvmeprom_netrd(arg) - struct mvmeprom_netio *arg; -{ - asm volatile ("mr 3, %0": : "r" (arg)); - MVMEPROM_CALL(MVMEPROM_NETRD); - return (arg->status); -} diff --git a/sys/arch/mvmeppc/stand/libbug/netwr.c b/sys/arch/mvmeppc/stand/libbug/netwr.c deleted file mode 100644 index 7ba81d0887b..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/netwr.c +++ /dev/null @@ -1,19 +0,0 @@ -/* $OpenBSD: netwr.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* returns 0: success, nonzero: error */ -int -mvmeprom_netwr(arg) - struct mvmeprom_netio *arg; -{ - asm volatile ("mr 3, %0": : "r" (arg)); - MVMEPROM_CALL(MVMEPROM_NETWR); - return (arg->status); -} diff --git a/sys/arch/mvmeppc/stand/libbug/outch.c b/sys/arch/mvmeppc/stand/libbug/outch.c deleted file mode 100644 index 93dffcbd958..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/outch.c +++ /dev/null @@ -1,18 +0,0 @@ -/* $OpenBSD: outch.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -void -mvmeprom_outchr(a) - char a; -{ - asm volatile ("mr 3, %0" : :"r" (a)); - MVMEPROM_CALL(MVMEPROM_OUTCHR); -} - diff --git a/sys/arch/mvmeppc/stand/libbug/outln.c b/sys/arch/mvmeppc/stand/libbug/outln.c deleted file mode 100644 index d9b2509cd04..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/outln.c +++ /dev/null @@ -1,18 +0,0 @@ -/* $OpenBSD: outln.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -void -mvmeprom_outln(start, end) - char *start, *end; -{ - asm volatile ("mr 3, %0": : "r" (start)); - asm volatile ("mr 4, %0": : "r" (end)); - MVMEPROM_CALL(MVMEPROM_OUTLN); -} diff --git a/sys/arch/mvmeppc/stand/libbug/outstr.c b/sys/arch/mvmeppc/stand/libbug/outstr.c deleted file mode 100644 index 313b80c099a..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/outstr.c +++ /dev/null @@ -1,18 +0,0 @@ -/* $OpenBSD: outstr.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -void -mvmeprom_outstr(start, end) - char *start, *end; -{ - asm volatile ("mr 3, %0": : "r" (start)); - asm volatile ("mr 4, %0": : "r" (end)); - MVMEPROM_CALL(MVMEPROM_OUTSTR); -} diff --git a/sys/arch/mvmeppc/stand/libbug/putchar.c b/sys/arch/mvmeppc/stand/libbug/putchar.c deleted file mode 100644 index e99ee1eb346..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/putchar.c +++ /dev/null @@ -1,23 +0,0 @@ -/* $OpenBSD: putchar.c,v 1.2 2004/01/24 21:12:38 miod Exp $ */ - -/* - * putchar: easier to do this with outstr than to add more macros to - * handle byte passing on the stack - */ - -#include <sys/types.h> - -#include "libbug.h" - -void -putchar(c) - int c; -{ - char ca; - ca = (char)c & 0xFF; - if (ca == '\n') - putchar('\r'); - - asm volatile ("mr 3, %0" :: "r" (ca)); - MVMEPROM_CALL(MVMEPROM_OUTCHR); -} diff --git a/sys/arch/mvmeppc/stand/libbug/return.c b/sys/arch/mvmeppc/stand/libbug/return.c deleted file mode 100644 index f1bd1a66853..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/return.c +++ /dev/null @@ -1,27 +0,0 @@ -/* $OpenBSD: return.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -/* BUG - return to bug routine */ -void -mvmeprom_return() -{ - MVMEPROM_CALL(MVMEPROM_RETURN); - /*NOTREACHED*/ -} - -/* BUG - return to bug routine */ -__dead void -_rtt() -{ - MVMEPROM_CALL(MVMEPROM_RETURN); - printf("_rtt: exit failed. spinning..."); - while (1) ; - /*NOTREACHED*/ -} diff --git a/sys/arch/mvmeppc/stand/libbug/rtc_rd.c b/sys/arch/mvmeppc/stand/libbug/rtc_rd.c deleted file mode 100644 index 3c61ce45415..00000000000 --- a/sys/arch/mvmeppc/stand/libbug/rtc_rd.c +++ /dev/null @@ -1,17 +0,0 @@ -/* $OpenBSD: rtc_rd.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */ - -/* - * bug routines -- assumes that the necessary sections of memory - * are preserved. - */ -#include <sys/types.h> - -#include "libbug.h" - -void -mvmeprom_rtc_rd(ptime) - struct mvmeprom_time *ptime; -{ - asm volatile ("mr 3, %0": : "r" (ptime)); - MVMEPROM_CALL(MVMEPROM_RTC_RD); -} diff --git a/sys/arch/mvmeppc/stand/libsa/Makefile b/sys/arch/mvmeppc/stand/libsa/Makefile deleted file mode 100644 index 335177bc4a6..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# $OpenBSD: Makefile,v 1.8 2007/11/26 10:26:02 deraadt Exp $ - -LIB=sa - -NOPIC=nopic -NOPROFILE=noprofile - -# Logically src/sys -S=${.CURDIR}/../../../.. - -SRCS= bugdev.c clock.c conf.c parse_args.c rawfs.c tftpfs.c exec_mvme.c - -.PATH: ${S}/lib/libsa -SRCS+= alloc.c memcpy.c exit.c getfile.c gets.c globals.c \ - printf.c strerror.c memset.c memcmp.c strncpy.c strcmp.c strlen.c \ - strlcpy.c strlcat.c snprintf.c \ - close.c closeall.c dev.c disklabel.c dkcksum.c \ - lseek.c open.c nullfs.c read.c fstat.c \ - ufs.c cread.c loadfile.c -SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c nfs.c \ - rarp.c bootparam.c - -.PATH: ${S}/lib/libkern/arch/m88k ${S}/lib/libkern -SRCS+= ashrdi3.c bzero.c - -# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ -# -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG - -#DEFS= -DCOMPAT_UFS -DEFS= -D__INTERNAL_LIBSA_CREAD -#-DNETIF_DEBUG -INCL= -I${.CURDIR} -I${.CURDIR}/../libbug -I${S}/lib/libsa -I${S} -COPTS= #-fno-defer-pop -CFLAGS+= ${XCFLAGS} ${COPTS} ${DEFS} ${DBG} ${INCL} -O2 - -all: libsa.a - -install: - -.include <bsd.lib.mk> diff --git a/sys/arch/mvmeppc/stand/libsa/Makefile.inc b/sys/arch/mvmeppc/stand/libsa/Makefile.inc deleted file mode 100644 index 568e3b9e4d0..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/Makefile.inc +++ /dev/null @@ -1,15 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.1 2001/06/26 21:58:06 smurph Exp $ - -LIB_SA_DIR=${S}/arch/mvmeppc/stand/libsa - -LIBSA_DIR!= cd ${LIB_SA_DIR}; \ - printf "xxx:\n\techo \$${.OBJDIR}\n" | ${MAKE} -r -s -f - xxx - -LIBSA=${LIBSA_DIR}/libsa.a -SRTOBJ?= ${LIBSA_DIR}/SRT0.o - -$(LIBSA): .NOTMAIN __always_make_libsa - @echo making sure the libsa is up to date... - @(cd ${LIB_SA_DIR}; ${MAKE} "XCFLAGS=${CFLAGS}") - -__always_make_libsa: .NOTMAIN diff --git a/sys/arch/mvmeppc/stand/libsa/bugdev.c b/sys/arch/mvmeppc/stand/libsa/bugdev.c deleted file mode 100644 index bbec816af40..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/bugdev.c +++ /dev/null @@ -1,611 +0,0 @@ -/* $OpenBSD: bugdev.c,v 1.5 2011/03/13 00:13:53 deraadt Exp $ */ - -/* - * Copyright (c) 1993 Paul Kranenburg - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Paul Kranenburg. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/param.h> -#include <sys/disklabel.h> -#include <machine/prom.h> - -#include <stand.h> -#include <ufs.h> -#include "rawfs.h" -#include "tftpfs.h" - -#include "libsa.h" - -int errno; -int bootdev_type = BUGDEV_DISK; - -#if 1 -#define md_swap_long(x) ( (((x) >> 24) & 0xff) | (((x) >> 8 ) & 0xff00) | \ - (((x) << 8) & 0xff0000) | (((x) << 24) & 0xff000000)) -#else -#define md_swap_long(x) (x) -#endif - -struct bugdev_softc { - int fd; /* Prom file descriptor */ - u_int pnum; /* Partition number */ - u_int poff; /* Partition offset */ - u_int psize; /* Partition size */ - short clun; - short dlun; -} bugdev_softc[1]; - -extern struct fs_ops ufs_file_system; -extern struct fs_ops tftp_file_system; -extern struct fs_ops raw_file_system; - -struct fs_ops file_system[1]; - -struct mvmeprom_dskio tape_ioreq; - -#ifdef BUG_DEBUG -unsigned io = 0, mem = 0; -#define PCI_BASE 0x80000000 -#define CFC *(unsigned *)(PCI_BASE + 0xcfc) -#define CF8 *(unsigned *)(PCI_BASE + 0xcf8) -#define BUS_SHIFT 16 -#define DEVICE_SHIFT 11 -#define FNC_SHIFT 8 - -unsigned -bugpci_make_tag(bus, dev, fnc) - int bus, dev, fnc; -{ - return (bus << BUS_SHIFT) | (dev << DEVICE_SHIFT) | (fnc << FNC_SHIFT); -} - -static unsigned -bugpci_gen_config_reg(tag, offset) - unsigned tag; - int offset; -{ - unsigned reg; - - /* config mechanism #2, type 0 - /* standard cf8/cfc config */ - reg = 0x80000000 | tag | offset; - - return reg; -} - -/*#define DEBUG_CONFIG */ -unsigned -bugpci_conf_read(bus, dev, func, offset) - int bus, dev, func, offset; -{ - - unsigned data; - unsigned reg, tag, xx; - - if(offset & 3 || offset < 0 || offset >= 0x100) { - printf ("bugpci_conf_read: bad reg %x\n", offset); - return(~0); - } - - tag = bugpci_make_tag(bus, dev, func); - reg = bugpci_gen_config_reg(tag, offset); - reg = md_swap_long(reg); - /* if invalid tag, return -1 */ - if (reg == 0xffffffff) { - return 0xffffffff; - } - - CF8 = reg; - xx = CF8; - data = CFC; - data = md_swap_long(data); - - CF8 = 0; - - return(data); -} - -void -bugpci_conf_write(bus, dev, func, offset, data) - int bus, dev, func, offset; - unsigned data; -{ - unsigned reg, tag, xx; - - tag = bugpci_make_tag(bus, dev, func); - reg = bugpci_gen_config_reg(tag, offset); - reg = md_swap_long(reg); - - /* if invalid tag, return ??? */ - if (reg == 0xffffffff) { - return; - } - - CF8 = reg; - xx = CF8; - data = md_swap_long(data); - CFC = data; - CF8 = 0; - xx = CF8; -} -#endif - -static u_long -get_long(p) - const void *p; -{ - const unsigned char *cp = p; - - return cp[0] | (cp[1] << 8) | (cp[2] << 16) | (cp[3] << 24); -} - -/* - * Find a valid disklabel. - */ -static int -search_label(devp, off, buf, lp, off0) - void *devp; - u_long off; - char *buf; - struct disklabel *lp; - u_long off0; -{ - size_t read; - struct dos_partition *p; - int i; - u_long poff; - static int recursion; - - if (dsk_strategy(devp, F_READ, off, DEV_BSIZE, buf, &read) - || read != DEV_BSIZE) - return ERDLAB; - - if (buf[510] != 0x55 || buf[511] != 0xaa) - return ERDLAB; - - if (recursion++ <= 1) - off0 += off; - for (p = (struct dos_partition *)(buf + DOSPARTOFF), i = 4; - --i >= 0; p++) { - if (p->dp_typ == DOSPTYP_OPENBSD) { - poff = get_long(&p->dp_start) + off0; - if (dsk_strategy(devp, F_READ, poff + LABELSECTOR, - DEV_BSIZE, buf, &read) == 0 - && read == DEV_BSIZE) { - if (!getdisklabel(buf, lp)) { - recursion--; - return 0; - } - } - if (dsk_strategy(devp, F_READ, off, DEV_BSIZE, buf, &read) - || read != DEV_BSIZE) { - recursion--; - return ERDLAB; - } - } else if (p->dp_typ == DOSPTYP_EXTEND) { - poff = get_long(&p->dp_start); - if (!search_label(devp, poff, buf, lp, off0)) { - recursion--; - return 0; - } - if (dsk_strategy(devp, F_READ, off, DEV_BSIZE, buf, &read) - || read != DEV_BSIZE) { - recursion--; - return ERDLAB; - } - } - } - recursion--; - return ERDLAB; -} - -int dsk_read_disklabel(devp) - void *devp; -{ - static char iobuf[MAXBSIZE]; - struct disklabel label; - int error = 0; - int i; - - register struct bugdev_softc *pp = (struct bugdev_softc *)devp; - -#ifdef DEBUG - printf("dsk_open:\n"); -#endif - /* First try to find a disklabel without MBR partitions */ - if (dsk_strategy(pp, F_READ, LABELSECTOR, DEV_BSIZE, iobuf, &i) != 0 - || i != DEV_BSIZE - || getdisklabel(iobuf, &label)) { - /* Else try MBR partitions */ - error = search_label(pp, 0, iobuf, &label, 0); - if (error && error != ERDLAB) - return (error); - } - if (error == ERDLAB) { - if (pp->pnum) - /* User specified a partition, but there is none */ - return (error); - /* No, label, just use complete disk */ - pp->poff = 0; - } else { - pp->poff = label.d_partitions[pp->pnum].p_offset; - pp->psize = label.d_partitions[pp->pnum].p_size; - } - return(0); -} - - -int -devopen(f, fname, file) - struct open_file *f; - const char *fname; - char **file; -{ - register struct bugdev_softc *pp = &bugdev_softc[0]; - int error; - char *dev, *cp; - - pp->clun = (short)bugargs.ctrl_lun; - pp->dlun = (short)bugargs.dev_lun; - pp->poff = 0; - pp->psize = 0; - pp->fd = 0; - pp->pnum = 0; - - f->f_devdata = (void *)pp; - - switch (bootdev_type) { - case BUGDEV_DISK: - dev = bugargs.arg_start; - /* - * Extract partition # from boot device string. - */ - for (cp = dev; *cp; cp++) /* void */; - while (*cp != '/' && cp > dev) { - if (*cp == ':') - pp->pnum = *(cp+1) - 'a'; - --cp; - } - - error = dsk_read_disklabel(pp); - if (error) - return(error); - - bcopy(&ufs_file_system, file_system, sizeof file_system[0]); - break; - - case BUGDEV_NET: - bcopy(&tftp_file_system, file_system, sizeof file_system[0]); - break; - - case BUGDEV_TAPE: - bcopy(&raw_file_system, file_system, sizeof file_system[0]); - break; - } - - f->f_dev = &devsw[bootdev_type]; - nfsys = 1; - *file = (char *)fname; - return (0); -} - -/* silly block scale factor */ -#define BUG_BLOCK_SIZE 256 -#define BUG_SCALE (512/BUG_BLOCK_SIZE) -int -dsk_strategy(devdata, func, dblk, size, buf, rsize) - void *devdata; - int func; - daddr32_t dblk; - size_t size; - void *buf; - size_t *rsize; -{ - struct mvmeprom_dskio dio; - register struct bugdev_softc *pp = (struct bugdev_softc *)devdata; - daddr32_t blk = dblk + pp->poff; - - twiddle(); - - dio.ctrl_lun = pp->clun; - dio.dev_lun = pp->dlun; - dio.status = 0; - dio.pbuffer = buf; - dio.blk_num = blk * BUG_SCALE; - dio.blk_cnt = size / BUG_BLOCK_SIZE; /* assumed size in bytes */ - dio.flag = 0; - dio.addr_mod = 0; -#ifdef DEBUG - printf("dsk_strategy: size=%d blk=%d buf=%x\n", size, blk, buf); - printf("ctrl %d dev %d\n", dio.ctrl_lun, dio.dev_lun); -#endif - mvmeprom_diskrd(&dio); - - *rsize = dio.blk_cnt * BUG_BLOCK_SIZE; -#ifdef DEBUG -printf("rsize %d status %x\n", *rsize, dio.status); -#endif - - if (dio.status) - return (EIO); - return (0); -} - -int -dsk_open(f) - struct open_file *f; -{ -#ifdef DEBUG - register struct bugdev_softc *pp = (struct bugdev_softc *)f->f_devdata; - printf("dsk_open:\n"); - printf("using mvmebug ctrl %d dev %d\n", - pp->clun, pp->dlun); -#endif - return (0); -} - -int -dsk_close(f) - struct open_file *f; -{ - return (EIO); -} - -int -dsk_ioctl(f, cmd, data) - struct open_file *f; - u_long cmd; - void *data; -{ - return (EIO); -} - -#define NFR_TIMEOUT 5 -/* netboot stuff */ -int -net_strategy(devdata, func, nblk, size, buf, rsize) - void *devdata; - int func; - daddr32_t nblk; - size_t size; - void *buf; - size_t *rsize; -{ - int attempts = 0; - struct mvmeprom_netfread nfr; - register struct bugdev_softc *pp = (struct bugdev_softc *)devdata; - -retry: - - attempts+=1; - - nfr.clun = pp->clun; - nfr.dlun = pp->dlun; - nfr.status = 0; - nfr.addr = buf; - nfr.bytes = 0; - nfr.blk = nblk; - nfr.timeout = NFR_TIMEOUT; -#ifdef DEBUG - printf("net_strategy: size=%d blk=%d buf=%x\n", size, nblk, buf); - printf("ctrl %d dev %d\n", nfr.clun, nfr.dlun); -#endif - mvmeprom_netfread(&nfr); - -#ifdef BUG_DEBUG - io = bugpci_conf_read(0, 14, 0, 0x10) & ~0xf; - mem = bugpci_conf_read(0, 14, 0, 0x14) & ~0xf; - - printf(" IO @ %x\n", io); - printf("MEM @ %x\n", mem); - -#define PRINT_REG(regname, x) printf("%s = 0x%x\n", regname, \ - md_swap_long(*(unsigned *)(io + x))) - - PRINT_REG("CSR0", 0x00); - PRINT_REG("CSR1", 0x08); - PRINT_REG("CSR2", 0x10); - PRINT_REG("CSR3", 0x18); - PRINT_REG("CSR4", 0x20); - PRINT_REG("CSR5", 0x28); - PRINT_REG("CSR6", 0x30); - PRINT_REG("CSR7", 0x38); - PRINT_REG("CSR8", 0x40); - PRINT_REG("CSR9", 0x48); - PRINT_REG("CSR10", 0x50); - PRINT_REG("CSR11", 0x58); - PRINT_REG("CSR12", 0x60); - PRINT_REG("CSR13", 0x68); - PRINT_REG("CSR14", 0x70); - PRINT_REG("CSR15", 0x78); -#endif - if (rsize) { - *rsize = nfr.bytes; - } -#ifdef DEBUG - printf("rsize %d status %x\n", *rsize, nfr.status); -#endif - - if (nfr.status) - if (attempts < 10) - goto retry; - else - return (EIO); - return (0); -} - -int -net_open(struct open_file *f, ...) -{ - va_list ap; - struct mvmeprom_netfopen nfo; - register struct bugdev_softc *pp = (struct bugdev_softc *)f->f_devdata; - char *filename; - short nfoerr = 0; - va_start(ap, f); - filename = va_arg(ap, char *); - va_end(ap); - -#ifdef DEBUG - printf("net_open: using mvmebug ctrl %d dev %d, filename: %s\n", - pp->clun, pp->dlun, filename); -#endif - nfo.clun = pp->clun; - nfo.dlun = pp->dlun; - nfo.status = 0; - strlcpy(nfo.filename, filename, sizeof nfo.filename); - /* .NETFOPN syscall */ - mvmeprom_netfopen(&nfo); - -#ifdef DEBUG - if (nfo.status) { - nfoerr = nfo.status; - printf("net_open: ci err = 0x%x, cd err = 0x%x\n", - ((nfoerr >> 8) & 0x0F), (nfoerr & 0x0F)); - } -#endif - return (nfo.status); -} - -int -net_close(f) - struct open_file *f; -{ - return (EIO); -} - -int -net_ioctl(f, cmd, data) - struct open_file *f; - u_long cmd; - void *data; -{ - return (EIO); -} - -int -tape_open(struct open_file *f, ...) -{ - va_list ap; - int error = 0; - int part; - struct mvmeprom_dskio *ti; - char *fname; /* partition number, i.e. "1" */ - - va_start(ap, f); - fname = va_arg(ap, char *); - va_end(ap); - - /* - * Set the tape segment number to the one indicated - * by the single digit fname passed in above. - */ - if ((fname[0] < '0') && (fname[0] > '9')) { - return ENOENT; - } - part = fname[0] - '0'; - fname = NULL; - - /* - * Setup our part of the saioreq. - * (determines what gets opened) - */ - ti = &tape_ioreq; - bzero((caddr_t)ti, sizeof(*ti)); - - ti->ctrl_lun = bugargs.ctrl_lun; - ti->dev_lun = bugargs.dev_lun; - ti->status = 0; - ti->pbuffer = NULL; - ti->blk_num = part; - ti->blk_cnt = 0; - ti->flag = 0; - ti->addr_mod = 0; - - f->f_devdata = ti; - - return (0); -} - -int -tape_close(f) - struct open_file *f; -{ - struct mvmeprom_dskio *ti; - - - ti = f->f_devdata; - f->f_devdata = NULL; - return 0; -} - -#define MVMEPROM_SCALE (512/MVMEPROM_BLOCK_SIZE) - -int -tape_strategy(devdata, flag, dblk, size, buf, rsize) - void *devdata; - int flag; - daddr32_t dblk; - size_t size; - void *buf; - size_t *rsize; -{ - struct mvmeprom_dskio *ti; - int ret; - - ti = devdata; - - if (flag != F_READ) - return(EROFS); - - ti->status = 0; - ti->pbuffer = buf; - /* don't change block #, set in open */ - ti->blk_cnt = size / (512 / MVMEPROM_SCALE); - - ret = mvmeprom_diskrd(ti); - - if (ret != 0) - return (EIO); - - *rsize = (ti->blk_cnt / MVMEPROM_SCALE) * 512; - ti->flag |= IGNORE_FILENUM; /* ignore next time */ - - return (0); -} - -int -tape_ioctl(f, cmd, data) - struct open_file *f; - u_long cmd; - void *data; -{ - return EIO; -} - - diff --git a/sys/arch/mvmeppc/stand/libsa/clock.c b/sys/arch/mvmeppc/stand/libsa/clock.c deleted file mode 100644 index 3ae5601c8c9..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/clock.c +++ /dev/null @@ -1,65 +0,0 @@ -/* $OpenBSD: clock.c,v 1.2 2001/07/04 08:31:37 niklas Exp $ */ - - -#include <sys/types.h> -#include <machine/prom.h> - -#include "stand.h" -#include "libsa.h" - -/* - * BCD to decimal and decimal to BCD. - */ -#define FROMBCD(x) (((x) >> 4) * 10 + ((x) & 0xf)) -#define TOBCD(x) (((x) / 10 * 16) + ((x) % 10)) - -#define SECDAY (24 * 60 * 60) -#define SECYR (SECDAY * 365) -#define LEAPYEAR(y) (((y) & 3) == 0) -#define YEAR0 68 - - -/* - * This code is defunct after 2068. - * Will Unix still be here then?? - */ -const short dayyr[12] = -{0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}; - -static u_long -chiptotime(sec, min, hour, day, mon, year) - register int sec, min, hour, day, mon, year; -{ - register int days, yr; - - sec = FROMBCD(sec); - min = FROMBCD(min); - hour = FROMBCD(hour); - day = FROMBCD(day); - mon = FROMBCD(mon); - year = FROMBCD(year) + YEAR0; - if (year < 70) - year = 70; - - /* simple sanity checks */ - if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) - return (0); - days = 0; - for (yr = 70; yr < year; yr++) - days += LEAPYEAR(yr) ? 366 : 365; - days += dayyr[mon - 1] + day - 1; - if (LEAPYEAR(yr) && mon > 2) - days++; - /* now have days since Jan 1, 1970; the rest is easy... */ - return (days * SECDAY + hour * 3600 + min * 60 + sec); -} - -time_t -getsecs() -{ - struct mvmeprom_time m; - - mvmeprom_rtc_rd(&m); - return (chiptotime(m.sec_BCD, m.min_BCD, m.hour_BCD, m.day_BCD, - m.month_BCD, m.year_BCD)); -} diff --git a/sys/arch/mvmeppc/stand/libsa/conf.c b/sys/arch/mvmeppc/stand/libsa/conf.c deleted file mode 100644 index e238235cd86..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/conf.c +++ /dev/null @@ -1,33 +0,0 @@ -/* $OpenBSD: conf.c,v 1.1 2001/06/26 21:58:07 smurph Exp $ */ - -#include <sys/types.h> -#include <machine/prom.h> - -#include <stand.h> -#include <ufs.h> -#include "tftpfs.h" -#include "rawfs.h" -#include "libsa.h" - -struct fs_ops ufs_file_system[] = { - { ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek, ufs_stat }, -}; - -struct fs_ops tftp_file_system[] = { - { tftpfs_open, tftpfs_close, tftpfs_read, tftpfs_write, tftpfs_seek, tftpfs_stat }, -}; - -struct fs_ops raw_file_system[] = { - { rawfs_open, rawfs_close, rawfs_read, rawfs_write, rawfs_seek, rawfs_stat }, -}; - -int nfsys = 1; /* devopen will choose the correct one. */ - -struct devsw devsw[] = { - { "dsk", dsk_strategy, dsk_open, dsk_close, dsk_ioctl }, - { "net", net_strategy, net_open, net_close, net_ioctl }, - { "tape", tape_strategy, tape_open, tape_close, tape_ioctl }, -}; - -int ndevs = (sizeof(devsw)/sizeof(devsw[0])); - diff --git a/sys/arch/mvmeppc/stand/libsa/exec_mvme.c b/sys/arch/mvmeppc/stand/libsa/exec_mvme.c deleted file mode 100644 index 47fed1207b1..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/exec_mvme.c +++ /dev/null @@ -1,99 +0,0 @@ -/* $OpenBSD: exec_mvme.c,v 1.8 2004/01/29 21:30:04 miod Exp $ */ - -/*- - * Copyright (c) 1982, 1986, 1990, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)boot.c 8.1 (Berkeley) 6/10/93 - */ - -#include <sys/param.h> -#include <sys/reboot.h> -#include <sys/exec_elf.h> - -#include <machine/prom.h> - -#include <lib/libkern/libkern.h> -#include <lib/libsa/stand.h> -#include <lib/libsa/loadfile.h> - -#include "libsa.h" - -/*ARGSUSED*/ -void -exec_mvme(file, flag) - char *file; - int flag; -{ - int fd; - u_long marks[MARK_MAX]; - void (*entry)(); - u_long *entryp; - void *esym; - int bootdev; - -#ifdef DEBUG - printf("exec_mvme: file=%s flag=0x%x cputyp=%x\n", file, flag, bugargs.cputyp); -#endif - - fd = open(file, 0); - if (fd < 0) - return; - - printf("Booting %s...", file); - marks[MARK_START] = 0; - if (loadfile(file, marks, LOAD_ALL) >= 0) { - close(fd); - - entryp = (u_long *)&entry; - *entryp = marks[MARK_ENTRY]; - esym = (void *)marks[MARK_END]; - - printf("Start @ 0x%x\n", (unsigned int)entry); - printf("Controller Address 0x%x\n", bugargs.ctrl_addr); - if (flag & RB_HALT) - mvmeprom_return(); - - bootdev = (bugargs.ctrl_lun << 8) | (bugargs.dev_lun & 0xFF); - /* - * Arguments to start on mvmeppc: - * r1 - stack provided by firmware/bootloader - * r3 - boot flags - * r4 - boot device - * r5 - firmware pointer (NULL for PPC1bug) - * r6 - arg list - * r7 - arg list length - * r8 - end of symbol table - */ - /* r3 r4 r5 r6 r7 r8 */ - (*entry)(flag, bootdev, NULL, NULL, 0, esym); - - printf("exec: kernel returned!\n"); - } else { - close(fd); - } -} diff --git a/sys/arch/mvmeppc/stand/libsa/libsa.h b/sys/arch/mvmeppc/stand/libsa/libsa.h deleted file mode 100644 index a355dff48b5..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/libsa.h +++ /dev/null @@ -1,33 +0,0 @@ -/* $OpenBSD: libsa.h,v 1.4 2011/03/13 00:13:53 deraadt Exp $ */ - -/* - * libsa prototypes - */ - -#include "libbug.h" - -/* bugdev.c */ -int dsk_open(struct open_file *, ...); -int dsk_close(struct open_file *); -int dsk_ioctl(struct open_file *, u_long, void *); -int dsk_strategy(void *, int, daddr32_t, size_t, void *, size_t *); -int net_open(struct open_file *, ...); -int net_close(struct open_file *); -int net_ioctl(struct open_file *, u_long, void *); -int net_strategy(void *, int, daddr32_t, size_t, void *, size_t *); -int tape_open(struct open_file *, ...); -int tape_close(struct open_file *); -int tape_ioctl(struct open_file *, u_long, void *); -int tape_strategy(void *, int, daddr32_t, size_t, void *, size_t *); - -/* exec_mvme.c */ -void exec_mvme(char *, int); - -/* parse_args.c */ -int parse_args(char **, int *); - -#define BUGDEV_DISK 0 -#define BUGDEV_NET 1 -#define BUGDEV_TAPE 2 - -extern int bootdev_type; diff --git a/sys/arch/mvmeppc/stand/libsa/parse_args.c b/sys/arch/mvmeppc/stand/libsa/parse_args.c deleted file mode 100644 index b72bc323234..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/parse_args.c +++ /dev/null @@ -1,91 +0,0 @@ -/* $OpenBSD: parse_args.c,v 1.4 2008/03/23 17:05:41 deraadt Exp $ */ - -/*- - * Copyright (c) 1995 Theo de Raadt - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - */ - -#include <sys/param.h> -#include <sys/reboot.h> -#include <machine/prom.h> -#include <a.out.h> - -#include "stand.h" -#include "libsa.h" - -#define KERNEL_NAME "bsd" - -struct flags { - char c; - short bit; -} bf[] = { - { 'a', RB_ASKNAME }, /* ask root */ - { 'b', RB_HALT }, - { 'c', RB_CONFIG }, - { 'd', RB_KDB }, - { 'm', RB_MINIROOT }, - { 's', RB_SINGLE }, - { 'y', RB_NOSYM }, -}; - -int -parse_args(filep, flagp) - -char **filep; -int *flagp; - -{ - char *name = KERNEL_NAME, *ptr; - int i, howto = 0; - char c; - - if (bugargs.arg_start != bugargs.arg_end) { - ptr = bugargs.arg_start; - while (c = *ptr) { - while (c == ' ') - c = *++ptr; - if (c == '\0') - return (0); - if (c != '-') { - name = ptr; - while ((c = *++ptr) && c != ' ') - ; - if (c) - *ptr++ = 0; - continue; - } - while ((c = *++ptr) && c != ' ') { - if (c == 'q') - return (1); - for (i = 0; i < sizeof(bf)/sizeof(bf[0]); i++) - if (bf[i].c == c) { - howto |= bf[i].bit; - } - } - } - } - *flagp = howto; - *filep = name; - return (0); -} diff --git a/sys/arch/mvmeppc/stand/libsa/rawfs.c b/sys/arch/mvmeppc/stand/libsa/rawfs.c deleted file mode 100644 index a2bf6dc329f..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/rawfs.c +++ /dev/null @@ -1,178 +0,0 @@ -/* $OpenBSD: rawfs.c,v 1.3 2011/03/13 00:13:53 deraadt Exp $ */ - -/* - * Copyright (c) 1995 Gordon W. Ross - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * 4. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Gordon W. Ross - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * Raw file system - for stream devices like tapes. - * No random access, only sequential read allowed. - * This exists only to allow upper level code to be - * shielded from the fact that the device must be - * read only with whole block position and size. - */ - -#include <sys/param.h> -#include <stand.h> -#include <rawfs.h> - -#define RAWFS_BSIZE 512 - -/* - * In-core open file. - */ -struct cfile { - daddr32_t fs_nextblk; /* block number to read next */ - int fs_len; /* amount left in f_buf */ - char * fs_ptr; /* read pointer into f_buf */ - char fs_buf[RAWFS_BSIZE]; -}; - -static int -rawfs_get_block(struct open_file *); - -int rawfs_open(path, f) - char *path; - struct open_file *f; -{ - struct cfile *fs; - - /* - * The actual PROM driver has already been opened. - * Just allocate the I/O buffer, etc. - */ - fs = alloc(sizeof(struct cfile)); - fs->fs_nextblk = 0; - fs->fs_len = 0; - fs->fs_ptr = fs->fs_buf; - - f->f_fsdata = fs; - return (0); -} - -int rawfs_close(f) - struct open_file *f; -{ - struct cfile *fs; - - fs = (struct cfile *) f->f_fsdata; - f->f_fsdata = (void *)0; - - if (fs != (struct cfile *)0) - free(fs, sizeof(*fs)); - - return (0); -} - -int rawfs_read(f, start, size, resid) - struct open_file *f; - void *start; - u_int size; - u_int *resid; -{ - struct cfile *fs = (struct cfile *)f->f_fsdata; - char *addr = start; - int error = 0; - size_t csize; - - while (size != 0) { - - if (fs->fs_len == 0) - if ((error = rawfs_get_block(f)) != 0) - break; - - if (fs->fs_len <= 0) - break; /* EOF */ - - csize = size; - if (csize > fs->fs_len) - csize = fs->fs_len; - - bcopy(fs->fs_ptr, addr, csize); - fs->fs_ptr += csize; - fs->fs_len -= csize; - addr += csize; - size -= csize; - } - if (resid) - *resid = size; - return (error); -} - -int rawfs_write(f, start, size, resid) - struct open_file *f; - void *start; - size_t size; - size_t *resid; /* out */ -{ - return (EROFS); -} - -off_t rawfs_seek(f, offset, where) - struct open_file *f; - off_t offset; - int where; -{ - return (EFTYPE); -} - -int rawfs_stat(f, sb) - struct open_file *f; - struct stat *sb; -{ - return (EFTYPE); -} - - -/* - * Read a block from the underlying stream device - * (In our case, a tape drive.) - */ -static int -rawfs_get_block(f) - struct open_file *f; -{ - struct cfile *fs; - int error, len; - - fs = (struct cfile *)f->f_fsdata; - fs->fs_ptr = fs->fs_buf; - - twiddle(); - error = f->f_dev->dv_strategy(f->f_devdata, F_READ, - fs->fs_nextblk, RAWFS_BSIZE, fs->fs_buf, &len); - - if (!error) { - fs->fs_len = len; - fs->fs_nextblk += (RAWFS_BSIZE / DEV_BSIZE); - } - - return (error); -} - diff --git a/sys/arch/mvmeppc/stand/libsa/rawfs.h b/sys/arch/mvmeppc/stand/libsa/rawfs.h deleted file mode 100644 index e84ce28b373..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/rawfs.h +++ /dev/null @@ -1,15 +0,0 @@ -/* $OpenBSD: rawfs.h,v 1.2 2002/03/14 01:26:41 millert Exp $ */ - -/* - * Raw file system - for stream devices like tapes. - * No random access, only sequential read allowed. - */ - -int rawfs_open(char *path, struct open_file *f); -int rawfs_close(struct open_file *f); -int rawfs_read(struct open_file *f, void *buf, - u_int size, u_int *resid); -int rawfs_write(struct open_file *f, void *buf, - u_int size, u_int *resid); -off_t rawfs_seek(struct open_file *f, off_t offset, int where); -int rawfs_stat(struct open_file *f, struct stat *sb); diff --git a/sys/arch/mvmeppc/stand/libsa/tftpfs.c b/sys/arch/mvmeppc/stand/libsa/tftpfs.c deleted file mode 100644 index 0370f93b7fd..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/tftpfs.c +++ /dev/null @@ -1,288 +0,0 @@ -/* $OpenBSD: tftpfs.c,v 1.5 2011/03/13 00:13:53 deraadt Exp $ */ - -/*- - * Copyright (c) 2001 Steve Murphree, Jr. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * TFTP file system. - */ - -#include <sys/param.h> -#include <sys/time.h> -#include <sys/stat.h> -#include <ufs/ffs/fs.h> -#include <lib/libkern/libkern.h> - -#include "stand.h" - -/* - * In-core open file. - */ -struct tftp_file { - char filename[128]; - off_t f_seekp; /* seek pointer */ - char *f_buf; /* buffer for data block */ - off_t f_off; /* index into buffer for data block */ - daddr32_t f_buf_blkno; /* block number of data block */ - size_t f_buf_size; -}; - -#define TFTP_BLOCK_SHIFT 9 -#define TFTP_BLOCK_SIZE (1<<TFTP_BLOCK_SHIFT) /* 512 by tftp convention */ -#define TFTP_BLOCK_NO(x) ((x >> TFTP_BLOCK_SHIFT) + 1) -#define TFTP_BLOCK_OFF(x) (x % TFTP_BLOCK_SIZE) - -static int read_inode(ino_t, struct open_file *); -static int block_map(struct open_file *, daddr32_t, daddr32_t *); -static int tftp_read_file(struct open_file *, char **, size_t *); - -/* - * Read a portion of a file into an internal buffer. Return - * the location in the buffer and the amount in the buffer. - */ - -char tftp_buf[TFTP_BLOCK_SIZE]; /* static */ -struct tftp_file tftp_ctrl; - -static int -tftp_read_file(f, buf_p, size_p) - struct open_file *f; - char **buf_p; /* out */ - size_t *size_p; /* out */ -{ - register struct tftp_file *fp = (struct tftp_file *)f->f_fsdata; - long off; - register daddr32_t file_block; - size_t block_size; - int i, rc; - - off = TFTP_BLOCK_OFF(fp->f_seekp); - file_block = TFTP_BLOCK_NO(fp->f_seekp); - block_size = TFTP_BLOCK_SIZE; - - if (file_block == fp->f_buf_blkno + 1) { - /* - * Normal, incremental block transfer. - */ - rc = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, - file_block, block_size, fp->f_buf, &fp->f_buf_size); - if (rc) - return (rc); - if (!(file_block % 4)) /* twiddle every 4 blocks */ - twiddle(); - fp->f_buf_blkno = file_block; - } else if (file_block > fp->f_buf_blkno + 1) { - /* - * Read ahead to the requested block; If we need - * those we skipped, see below. - */ - for (i = (fp->f_buf_blkno + 1); i <= file_block; i++) { - rc = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, - i, block_size, fp->f_buf, &fp->f_buf_size); - if (rc) - return (rc); - } - fp->f_buf_blkno = file_block; - } else if (file_block < fp->f_buf_blkno) { - /* - * Uh oh... We can't rewind. Reopen the file - * and start again. - */ - char filename[64]; - strlcpy(filename, fp->filename, sizeof filename); - tftpfs_close(f); - tftpfs_open(filename, f); - for (i = 1; i <= file_block; i++) { - rc = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, - i, block_size, fp->f_buf, &fp->f_buf_size); - if (rc) - return (rc); - } - fp->f_buf_blkno = file_block; - } - - /* - * Return address of byte in buffer corresponding to - * offset, and size of remainder of buffer after that - * byte. - */ - *buf_p = fp->f_buf + off; - *size_p = fp->f_buf_size - off; - - /* - * But truncate buffer at end of file. - */ - if (fp->f_buf_size > block_size){ - twiddle(); - return(EIO); - } - - - return (0); -} - -/* - * Open a file. - */ -int -tftpfs_open(path, f) - char *path; - struct open_file *f; -{ - struct tftp_file *fp; - int rc = 0; - - /* locate file system specific data structure and zero it.*/ - fp = &tftp_ctrl; - bzero(fp, sizeof(struct tftp_file)); - f->f_fsdata = (void *)fp; - fp->f_seekp = 0; - fp->f_buf = tftp_buf; - bzero(fp->f_buf, TFTP_BLOCK_SIZE); - fp->f_buf_size = 0; - - strlcpy(fp->filename, path, sizeof fp->filename); - - if (f->f_dev->dv_open == NULL) { - panic("No device open()!"); - } - twiddle(); - rc = (f->f_dev->dv_open)(f, path); - return (rc); -} - -int -tftpfs_close(f) - struct open_file *f; -{ - register struct tftp_file *fp = (struct tftp_file *)f->f_fsdata; - - fp->f_buf = (void *)0; - f->f_fsdata = (void *)0; - (f->f_dev->dv_close)(f); - return (0); -} - -/* - * Copy a portion of a file into kernel memory. - * Cross block boundaries when necessary. - */ -int -tftpfs_read(f, start, size, resid) - struct open_file *f; - void *start; - size_t size; - size_t *resid; /* out */ -{ - register struct tftp_file *fp = (struct tftp_file *)f->f_fsdata; - register size_t csize; - char *buf; - size_t buf_size; - int rc = 0; - register char *addr = start; - - while (size != 0) { - rc = tftp_read_file(f, &buf, &buf_size); - if (rc) - break; - - csize = size; - if (csize > buf_size) - csize = buf_size; - - bcopy(buf, addr, csize); - - fp->f_seekp += csize; - addr += csize; - size -= csize; - } - if (resid) - *resid = size; - return (rc); -} - -/* - * Not implemented. - */ -int -tftpfs_write(f, start, size, resid) - struct open_file *f; - void *start; - size_t size; - size_t *resid; /* out */ -{ - - return (EROFS); -} - -/* - * We only see forward. We can't rewind. - */ -off_t -tftpfs_seek(f, offset, where) - struct open_file *f; - off_t offset; - int where; -{ - register struct tftp_file *fp = (struct tftp_file *)f->f_fsdata; - - switch (where) { - case SEEK_SET: - fp->f_seekp = offset; - break; - case SEEK_CUR: - fp->f_seekp += offset; - break; - case SEEK_END: - errno = EIO; - return (-1); - break; - default: - return (-1); - } - return (fp->f_seekp); -} - -int -tftpfs_stat(f, sb) - struct open_file *f; - struct stat *sb; -{ - return EIO; -} - -#ifndef NO_READDIR -int -tftpfs_readdir (struct open_file *f, char *name) -{ - return EIO; -} -#endif - diff --git a/sys/arch/mvmeppc/stand/libsa/tftpfs.h b/sys/arch/mvmeppc/stand/libsa/tftpfs.h deleted file mode 100644 index 1f8da6441e2..00000000000 --- a/sys/arch/mvmeppc/stand/libsa/tftpfs.h +++ /dev/null @@ -1,43 +0,0 @@ -/* $OpenBSD: tftpfs.h,v 1.2 2002/03/14 01:26:41 millert Exp $ */ - -/*- - * Copyright (c) 2001 Steve Murphree, Jr. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by TooLs GmbH. - * 4. The name of TooLs GmbH may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -int tftpfs_open(char *path, struct open_file *f); -int tftpfs_close(struct open_file *f); -int tftpfs_read(struct open_file *f, void *buf, - size_t size, size_t *resid); -int tftpfs_write(struct open_file *f, void *buf, - size_t size, size_t *resid); -off_t tftpfs_seek(struct open_file *f, off_t offset, int where); -int tftpfs_stat(struct open_file *f, struct stat *sb); -#ifndef NO_READDIR -int tftpfs_readdir(struct open_file *f, char *name); -#endif diff --git a/sys/arch/mvmeppc/stand/libz/Makefile b/sys/arch/mvmeppc/stand/libz/Makefile deleted file mode 100644 index 5dc7476587e..00000000000 --- a/sys/arch/mvmeppc/stand/libz/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2001/06/26 21:58:08 smurph Exp $ - -S=${.CURDIR}/../../../.. -ZDST=${.OBJDIR} - -.PATH: ${S}/lib/libz - -.include "${S}/lib/libz/Makefile" diff --git a/sys/arch/mvmeppc/stand/libz/Makefile.inc b/sys/arch/mvmeppc/stand/libz/Makefile.inc deleted file mode 100644 index c1d26bc509e..00000000000 --- a/sys/arch/mvmeppc/stand/libz/Makefile.inc +++ /dev/null @@ -1,14 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.1 2001/06/26 21:58:09 smurph Exp $ - -LIB_Z_DIR=${S}/arch/mvmeppc/stand/libz - -LIBZ_DIR!= cd ${LIB_Z_DIR}; \ - printf "xxx:\n\techo \$${.OBJDIR}\n" | ${MAKE} -r -s -f - xxx - -LIBZ=${LIBZ_DIR}/libz.a - -$(LIBZ): .NOTMAIN __always_make_libz - @echo making sure the libz is up to date... - @(cd ${LIB_Z_DIR}; ${MAKE} "XCFLAGS=${CFLAGS}") - -__always_make_libz: .NOTMAIN diff --git a/sys/arch/mvmeppc/stand/tftpboot/Makefile b/sys/arch/mvmeppc/stand/tftpboot/Makefile deleted file mode 100644 index 0811d7ea2bb..00000000000 --- a/sys/arch/mvmeppc/stand/tftpboot/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -# $OpenBSD: Makefile,v 1.4 2004/01/24 21:10:55 miod Exp $ - -SIZE?= size -STRIP?= strip - -S= ${.CURDIR}/../../../.. -DEFS= -DSUN_BOOTPARAMS -#-DNETIF_DEBUG -INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \ - -I${S} -I${S}/lib/libsa -CFLAGS=-O2 ${DEFS} ${INCPATH} ${COPTS} -CLEANFILES+=tftpboot tftpboot.bin - -.include "${S}/arch/mvmeppc/stand/bugcrt/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libbug/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libsa/Makefile.inc" -.include "${S}/arch/mvmeppc/stand/libz/Makefile.inc" - -SRCS= boot.c version.c -#SRCS+= if_ie.c -#SRCS+= if_le.c -OBJS= ${SRCS:S/.c/.o/g} -LIBS= ${LIBSA} ${LIBBUG} ${LIBZ} -LDFLAGS+= -s -X -N -Ttext ${STAGE1_RELOC} -e _start -#LDFLAGS+= -nostdlib -s -N -Ttext ${RELOC} - -all: tftpboot.bin - -tftpboot: ${OBJS} ${SINGLE} ${LIBS} - ${LD} ${LDFLAGS} \ - ${SINGLE} ${OBJS} ${LIBS} -o $@ -# @${SIZE} $@ - -tftpboot.bin: tftpboot - ${STRIP} tftpboot - dd ibs=96 skip=1 if=tftpboot of=$@ -# dd ibs=38 skip=1 if=tftpboot of=$@ - -install: - ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ - tftpboot.bin ${DESTDIR}${MDEC_DIR}/tftpboot - -.include <bsd.prog.mk> diff --git a/sys/arch/mvmeppc/stand/tftpboot/boot.c b/sys/arch/mvmeppc/stand/tftpboot/boot.c deleted file mode 100644 index f676e0cb1bf..00000000000 --- a/sys/arch/mvmeppc/stand/tftpboot/boot.c +++ /dev/null @@ -1,111 +0,0 @@ -/* $OpenBSD: boot.c,v 1.3 2003/06/02 23:27:53 millert Exp $ */ -/*- - * Copyright (c) 1995 Theo de Raadt - * Copyright (c) 2001 Steve Murphree, Jr. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * Copyright (c) 1982, 1986, 1990, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)boot.c 8.1 (Berkeley) 6/10/93 - */ - -#include <sys/param.h> -#include <sys/reboot.h> -#include <machine/prom.h> - -#include "stand.h" -#include "libsa.h" - - -/* - * Boot device is derived from ROM provided information. - */ -#define LOADADDR 0x10000 - -extern char *version; -char line[80]; - -main() -{ - char *cp, *file; - int ask = 0, howto, ret; - - /* cycle in the correct args */ - bugargs.arg_start = bugargs.nbarg_start; - bugargs.arg_end = bugargs.nbarg_end; - *bugargs.arg_end = 0; /* ensure */ - - bootdev_type = BUGDEV_NET; - - printf("\n>> OpenBSD/mvmeppc netboot [%s]\n", version); - - ret = parse_args(&file, &howto); - - for (;;) { - if (ask) { - printf("boot: "); - gets(line); - if (line[0]) { - bugargs.arg_start = line; - cp = line; - while (cp < (line + sizeof(line) - 1) && *cp) - cp++; - bugargs.arg_end = cp; - ret =parse_args(&file, &howto); - } - } - if (ret) { - printf("boot: -q returning to MVME-Bug\n"); - break; - } - exec_mvme(file, howto); - printf("boot: %s: %s\n", file, strerror(errno)); - ask = 1; - } -} diff --git a/sys/arch/mvmeppc/stand/tftpboot/version.c b/sys/arch/mvmeppc/stand/tftpboot/version.c deleted file mode 100644 index 6d76885e63d..00000000000 --- a/sys/arch/mvmeppc/stand/tftpboot/version.c +++ /dev/null @@ -1,8 +0,0 @@ -/* $OpenBSD: version.c,v 1.1 2001/06/26 21:58:10 smurph Exp $ */ - -/* - * make a random change to this file when you want the bootblock - * revision to increase. like change this q to an x, or something. - */ - -char *version = "$Revision: 1.1 $"; diff --git a/sys/dev/isa/isavar.h b/sys/dev/isa/isavar.h index 129b7a4d0ad..2622d9383f7 100644 --- a/sys/dev/isa/isavar.h +++ b/sys/dev/isa/isavar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: isavar.h,v 1.55 2010/06/24 21:17:59 jasper Exp $ */ +/* $OpenBSD: isavar.h,v 1.56 2011/07/07 19:16:42 deraadt Exp $ */ /* $NetBSD: isavar.h,v 1.26 1997/06/06 23:43:57 thorpej Exp $ */ /*- @@ -121,8 +121,6 @@ struct isabus_attach_args; #include <hp300/dev/isa_machdep.h> #elif defined(__i386__) #include <i386/isa/isa_machdep.h> -#elif defined(__mvmeppc__) -#include <mvmeppc/isa/isa_machdep.h> #elif defined(__powerpc__) #include <powerpc/isa/isa_machdep.h> #else diff --git a/sys/kern/Makefile b/sys/kern/Makefile index 9f60e047f23..f918cdd1338 100644 --- a/sys/kern/Makefile +++ b/sys/kern/Makefile @@ -1,11 +1,11 @@ -# $OpenBSD: Makefile,v 1.31 2011/07/04 22:53:53 tedu Exp $ +# $OpenBSD: Makefile,v 1.32 2011/07/07 19:16:42 deraadt Exp $ # Makefile for kernel tags files, init_sysent, etc. ARCH= alpha amd64 armish aviion beagle hp300 \ hppa hppa64 i386 landisk loongson \ luna88k mac68k macppc mvme68k \ - mvme88k mvmeppc palm sgi socppc \ + mvme88k palm sgi socppc \ solbourne sparc sparc64 vax zaurus all: init_sysent.c |