Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arc OpenBSD-2.6/arc
details: https://anonhg.NetBSD.org/src/rev/55bebc8811ab
branches: trunk
changeset: 482804:55bebc8811ab
user: soda <soda%NetBSD.org@localhost>
date: Tue Feb 22 11:05:02 2000 +0000
description:
OpenBSD-2.6/arc
diffstat:
sys/arch/arc/conf/IMP3 | 88 +++++++++++++
sys/arch/arc/conf/NFSROOT | 126 ++++++++++++++++++
sys/arch/arc/include/db_machdep.h | 5 +
sys/arch/arc/include/joystick.h | 23 +++
sys/arch/arc/include/spinlock.h | 3 +
sys/arch/arc/isa/isapnp_machdep.c | 153 ++++++++++++++++++++++
sys/arch/arc/isa/isapnp_machdep.h | 76 +++++++++++
sys/arch/arc/isa/joy.c | 256 ++++++++++++++++++++++++++++++++++++++
8 files changed, 730 insertions(+), 0 deletions(-)
diffs (truncated from 762 to 300 lines):
diff -r cce20fec1f68 -r 55bebc8811ab sys/arch/arc/conf/IMP3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arc/conf/IMP3 Tue Feb 22 11:05:02 2000 +0000
@@ -0,0 +1,88 @@
+# $OpenBSD: IMP3,v 1.2 1999/08/29 12:14:03 niklas Exp $
+#
+# Generic configuration file for MIPS R4x00 ARC Systems
+#
+
+machine arc mips
+
+include "../../../conf/GENERIC"
+
+maxusers 32
+
+# MD options
+option NATIVE_ELF # Arc systems uses ELF as native format
+
+# Specify storage configuration (its a joke..)
+config bsd swap generic
+
+#
+# Definition of system
+#
+mainbus0 at root
+cpu* at mainbus0
+
+#### Main local buses
+
+pica* at mainbus0 # ACER Pica systems local bus.
+isabr* at mainbus0 # ISA Bus bridge (std ISA bus).
+
+#### PICA bus devices
+
+clock0 at pica?
+pc0 at pica?
+pms0 at pica?
+com0 at pica?
+com1 at pica?
+lpt0 at pica?
+sn0 at pica?
+
+fdc0 at pica?
+fd* at fdc? drive ?
+
+asc0 at pica?
+scsibus* at asc?
+
+#### ISA Bus.
+
+isa* at isabr?
+
+clock0 at isa? port 0x70 irq 0
+
+pc0 at isa? port 0x60 irq 1 # generic PC console device
+com0 at isa? port 0x3f8 irq 4
+com1 at isa? port 0x2f8 irq 3
+com2 at isa? port 0x3e8 irq 4
+com3 at isa? port 0x2e8 irq 3
+ast0 at isa? port 0x1a0 irq 3 # AST 4-port serial cards
+com* at ast? slave ?
+lpt0 at isa? port 0x378 irq 7
+
+# IDE controllers
+wdc0 at isa? port 0x1f0 irq 14 flags 0x00
+wdc1 at isa? port 0x170 irq 15 flags 0x00
+#wdc* at isapnp?
+
+# IDE hard drives
+wd* at wdc? channel ? drive ? flags 0x0000
+
+# ATAPI<->SCSI
+atapiscsi* at wdc? channel ?
+scsibus* at atapiscsi?
+
+ep0 at isa? port ? irq ? # 3C509 ethernet cards
+we0 at isa? port 0x300 iomem 0xd0000 irq 5 # WD/SMC 80x3 ethernet
+ne0 at isa? port 0x300 irq 5 # NE[12]000 ethernet
+# iy0 at isa? port 0x300 irq 11 # Intel etherexpress pro/10+
+joy0 at isa? port 0x201
+
+btl0 at isa? port 0x330 irq ? drq ?
+scsibus* at btl?
+
+#### SCSI Bus devices
+
+sd* at scsibus? target ? lun ?
+st* at scsibus? target ? lun ?
+cd* at scsibus? target ? lun ?
+ch* at scsibus? target ? lun ?
+ss* at scsibus? target ? lun ?
+uk* at scsibus? target ? lun ?
diff -r cce20fec1f68 -r 55bebc8811ab sys/arch/arc/conf/NFSROOT
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arc/conf/NFSROOT Tue Feb 22 11:05:02 2000 +0000
@@ -0,0 +1,126 @@
+# $OpenBSD: NFSROOT,v 1.2 1999/08/29 12:14:03 niklas Exp $
+#
+# Generic configuration file for MIPS R4x00 ARC Systems
+#
+
+machine arc mips
+
+option SCSITERSE
+
+maxusers 4
+option TIMEZONE=0 # time zone to adjust RTC time by
+option DST=0 # daylight savings time used by RTC
+
+option SWAPPAGER # paging; REQUIRED
+option DEVPAGER # mmap() of devices
+
+#makeoptions DEBUG="-g" # compile full symbol table
+
+option FFS # UFS
+#option EXT2FS # Linux ext2fs
+
+option NFSCLIENT # Network File System client
+
+#option CD9660 # ISO 9660 + Rock Ridge file system
+option MSDOSFS # MS-DOS file system
+option FIFO # FIFOs; RECOMMENDED
+option KERNFS # /kern
+
+option INET # IP + ICMP + TCP + UDP
+
+option BOOT_CONFIG # boot-time kernel config
+#option DDB
+
+# MD options
+option NATIVE_ELF # Arc systems uses ELF as native format
+
+# Specify storage configuration (its a joke..)
+config bsd swap generic
+
+#
+# Definition of system
+#
+mainbus0 at root
+cpu* at mainbus0
+
+#### Main local buses
+
+#pica* at mainbus0 # ACER Pica systems local bus.
+isabr* at mainbus0 # ISA Bus bridge (std ISA bus).
+
+#### PICA bus devices
+
+#clock0 at pica?
+#pc0 at pica?
+#pms0 at pica?
+#com0 at pica?
+#com1 at pica?
+#lpt0 at pica?
+#sn0 at pica?
+
+#fdc0 at pica?
+#fd* at fdc? drive ?
+
+#asc0 at pica?
+#scsibus* at asc?
+
+#### ISA Bus.
+
+isa* at isabr?
+
+clock0 at isa? port 0x70 irq 0
+
+pc0 at isa? port 0x60 irq 1 # generic PC console device
+com0 at isa? port 0x3f8 irq 4
+com1 at isa? port 0x2f8 irq 3
+com2 at isa? port 0x3e8 irq 4
+com3 at isa? port 0x2e8 irq 3
+ast0 at isa? port 0x1a0 irq 3 # AST 4-port serial cards
+com* at ast? slave ?
+lpt0 at isa? port 0x378 irq 7
+
+# Joystick driver. Probe is a little strange; add only if you have one.
+# joy0 at isa? port 0x201
+
+# IDE controllers
+wdc0 at isa? port 0x1f0 irq 14 flags 0x00
+wdc1 at isa? port 0x170 irq 15 flags 0x00
+#wdc* at pcmcia? function ?
+#wdc* at isapnp?
+
+# IDE hard drives
+wd* at wdc? channel ? drive ? flags 0x0000
+
+# ATAPI<->SCSI
+atapiscsi* at wdc? channel ?
+scsibus* at atapiscsi?
+
+ep0 at isa? port ? irq ? # 3C509 ethernet cards
+we0 at isa? port 0x280 iomem 0xd0000 irq 9 # WD/SMC 80x3 ethernet
+we1 at isa? port 0x300 iomem 0xcc000 irq 10 #
+#we* at isapnp?
+ec0 at isa? port 0x250 iomem 0xd8000 irq 9 # 3C503 ethernet
+ne0 at isa? port 0x240 irq 9 # NE[12]000 ethernet
+ne1 at isa? port 0x300 irq 10 # NE[12]000 ethernet
+ne2 at isa? port 0x280 irq 9 # NE[12]000 ethernet
+#ne* at isapnp? # NE[12]000 PnP ether cards
+
+btl0 at isa? port 0x330 irq ? drq ?
+scsibus* at btl?
+
+#### SCSI Bus devices
+
+sd* at scsibus? target ? lun ?
+st* at scsibus? target ? lun ?
+cd* at scsibus? target ? lun ?
+ch* at scsibus? target ? lun ?
+ss* at scsibus? target ? lun ?
+uk* at scsibus? target ? lun ?
+
+pseudo-device loop 1 # network loopback
+#pseudo-device sl 1 # CSLIP
+#pseudo-device ppp 1 # PPP
+pseudo-device bpfilter 1 # packet filter
+pseudo-device pty 64 # pseudo-terminals
+pseudo-device vnd 4 # concatenated disk devices
+pseudo-device ksyms 1 # kernel symbols device
diff -r cce20fec1f68 -r 55bebc8811ab sys/arch/arc/include/db_machdep.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arc/include/db_machdep.h Tue Feb 22 11:05:02 2000 +0000
@@ -0,0 +1,5 @@
+/* $OpenBSD: db_machdep.h,v 1.1 1998/03/16 09:38:44 pefo Exp $ */
+
+/* Use Mips generic include file */
+
+#include <mips/db_machdep.h>
diff -r cce20fec1f68 -r 55bebc8811ab sys/arch/arc/include/joystick.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arc/include/joystick.h Tue Feb 22 11:05:02 2000 +0000
@@ -0,0 +1,23 @@
+/* $OpenBSD: joystick.h,v 1.1 1998/05/05 05:44:43 imp Exp $ */
+/* $NetBSD: joystick.h,v 1.1.1.1 2000/02/22 11:05:21 soda Exp $ */
+
+#ifndef _JOY_IOCTL_H_
+#define _JOY_IOCTL_H_
+
+#include <sys/ioccom.h>
+
+struct joystick {
+ int x;
+ int y;
+ int b1;
+ int b2;
+};
+
+#define JOY_SETTIMEOUT _IOW('J', 1, int) /* set timeout */
+#define JOY_GETTIMEOUT _IOR('J', 2, int) /* get timeout */
+#define JOY_SET_X_OFFSET _IOW('J', 3, int) /* set offset on X-axis */
+#define JOY_SET_Y_OFFSET _IOW('J', 4, int) /* set offset on X-axis */
+#define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */
+#define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */
+
+#endif /* _JOY_IOCTL_H_ */
diff -r cce20fec1f68 -r 55bebc8811ab sys/arch/arc/include/spinlock.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arc/include/spinlock.h Tue Feb 22 11:05:02 2000 +0000
@@ -0,0 +1,3 @@
+/* $OpenBSD: spinlock.h,v 1.2 1999/01/26 20:33:06 imp Exp $ */
+
+#include <mips/spinlock.h>
diff -r cce20fec1f68 -r 55bebc8811ab sys/arch/arc/isa/isapnp_machdep.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arc/isa/isapnp_machdep.c Tue Feb 22 11:05:02 2000 +0000
@@ -0,0 +1,153 @@
+/* $OpenBSD: isapnp_machdep.c,v 1.1 1997/12/27 12:13:11 niklas Exp $ */
+/* $NetBSD: isapnp_machdep.c,v 1.1.1.1 2000/02/22 11:05:23 soda Exp $ */
+
+/*-
+ * 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.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the NetBSD
+ * Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation 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 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
Home |
Main Index |
Thread Index |
Old Index