summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-01-04 06:48:47 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-01-04 06:48:47 +0000
commit3f762f7c1bddbc3e0e7e3300c171904e3081ef58 (patch)
tree44ae416ed9759ba3f57cb77ea4d2820c039d0f72 /sys/arch
parent5d6e7202e6690669e352037c1f4351c733015946 (diff)
remove unused file
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/isa/isafcns_jensen.c164
1 files changed, 0 insertions, 164 deletions
diff --git a/sys/arch/alpha/isa/isafcns_jensen.c b/sys/arch/alpha/isa/isafcns_jensen.c
deleted file mode 100644
index 3b0971d7375..00000000000
--- a/sys/arch/alpha/isa/isafcns_jensen.c
+++ /dev/null
@@ -1,164 +0,0 @@
-/* $OpenBSD: isafcns_jensen.c,v 1.7 2002/06/25 21:33:21 miod Exp $ */
-/* $NetBSD: isafcns_jensen.c,v 1.4 1996/10/13 02:59:54 christos Exp $ */
-
-/*
- * Copyright (c) 1995, 1996 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/types.h>
-#include <machine/pio.h>
-#include <machine/pte.h>
-
-static u_int8_t jensen_inb(int port);
-/* static void jensen_insb(int port, void *addr, int cnt); */
-static u_int16_t jensen_inw(int port);
-/* static void jensen_insw(int port, void *addr, int cnt); */
-u_int32_t jensen_inl(int port);
-/* static void jensen_insl(int port, void *addr, int cnt); */
-
-static void jensen_outb(int port, u_int8_t datum);
-/* static void jensen_outsb(int port, void *addr, int cnt); */
-static void jensen_outw(int port, u_int16_t datum);
-/* static void jensen_outsw(int port, void *addr, int cnt); */
-static void jensen_outl(int port, u_int32_t datum);
-/* static void jensen_outsl(int port, void *addr, int cnt); */
-
-struct alpha_isafcndesc jensen_isafcns = {
- jensen_inb, 0 /* jensen_insb */,
- jensen_inw, 0 /* jensen_insw */,
- jensen_inl, 0 /* jensen_insl */,
- jensen_outb, 0 /* jensen_outsb */,
- jensen_outw, 0 /* jensen_outsw */,
- jensen_outl, 0 /* jensen_outsl */,
-};
-
-u_int8_t
-jensen_inb(ioaddr)
- int ioaddr;
-{
- u_int32_t *port, val;
- u_int8_t rval;
- int offset;
-
- offset = ioaddr & 3;
- port = (int32_t *)phystok0seg(0x300000000L | 0 << 5 | ioaddr << 7);
- val = *port;
- rval = ((val) >> (8 * offset)) & 0xff;
- rval = val & 0xff;
-
-printf("inb(0x%x) => 0x%x @ %p => 0x%x\n", ioaddr, val, port, rval);
-
- return rval;
-}
-
-u_int16_t
-jensen_inw(ioaddr)
- int ioaddr;
-{
- u_int32_t *port, val;
- u_int16_t rval;
- int offset;
-
- offset = ioaddr & 3;
- port = (int32_t *)phystok0seg(0x300000000L | 1 << 5 | ioaddr << 7);
- val = *port;
- rval = ((val) >> (8 * offset)) & 0xffff;
- rval = val & 0xffff;
-
-printf("inw(0x%x) => 0x%x @ %p => 0x%x", ioaddr, val, port, rval);
-
- return rval;
-}
-
-u_int32_t
-jensen_inl(ioaddr)
- int ioaddr;
-{
- u_int32_t *port, val;
- u_int32_t rval;
- int offset;
-
- offset = ioaddr & 3;
- port = (int32_t *)phystok0seg(0x300000000L | 3 << 5 | ioaddr << 7);
- val = *port;
- rval = ((val) >> (8 * offset)) & 0xffffffff;
- rval = val & 0xffffffff;
-
-printf("inl(0x%x) => 0x%x @ %p => 0x%x\n", ioaddr, val, port, rval);
-
- return rval;
-}
-
-void
-jensen_outb(ioaddr, val)
- int ioaddr;
- u_int8_t val;
-{
- u_int32_t *port, nval;
- int offset;
-
- offset = ioaddr & 3;
- nval = val /*<< (8 * offset)*/;
- port = (int32_t *)phystok0seg(0x300000000L | 0 << 5 | ioaddr << 7);
-
-printf("outb(0x%x, 0x%x) => 0x%x @ %p\n", ioaddr, val, nval, port);
-
- *port = nval;
-}
-
-void
-jensen_outw(ioaddr, val)
- int ioaddr;
- u_int16_t val;
-{
- u_int32_t *port, nval;
- int offset;
-
- offset = ioaddr & 3;
- nval = val /*<< (8 * offset)*/;
- port = (int32_t *)phystok0seg(0x300000000L | 1 << 5 | ioaddr << 7);
-
-printf("outb(0x%x, 0x%x) => 0x%x @ %p\n", ioaddr, val, nval, port);
-
- *port = nval;
-}
-
-void
-jensen_outl(ioaddr, val)
- int ioaddr;
- u_int32_t val;
-{
- u_int32_t *port, nval;
- int offset;
-
- offset = ioaddr & 3;
- nval = val /*<< (8 * offset)*/;
- port = (int32_t *)phystok0seg(0x300000000L | 3 << 5 | ioaddr << 7);
-
-printf("outb(0x%x, 0x%x) => 0x%x @ %p\n", ioaddr, val, nval, port);
-
- *port = nval;
-}