Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Initial commit of the splitting off of arch/acorn32...



details:   https://anonhg.NetBSD.org/src/rev/2afc08928702
branches:  trunk
changeset: 515841:2afc08928702
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Fri Oct 05 22:27:40 2001 +0000

description:
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.

diffstat:

 sys/arch/acorn32/acorn32/autoconf.c                                  |   196 +
 sys/arch/acorn32/acorn32/conf.c                                      |   460 +
 sys/arch/acorn32/acorn32/rpc_kbd_map.c                               |   509 +
 sys/arch/acorn32/acorn32/rpc_machdep.c                               |  1874 +++++++
 sys/arch/acorn32/conf/A7000                                          |   275 +
 sys/arch/acorn32/conf/A7INST                                         |   268 +
 sys/arch/acorn32/conf/GENERIC                                        |   300 +
 sys/arch/acorn32/conf/Makefile.acorn32                               |   232 +
 sys/arch/acorn32/conf/NC                                             |   283 +
 sys/arch/acorn32/conf/NC_WSCONS                                      |   309 +
 sys/arch/acorn32/conf/RISCPC                                         |   278 +
 sys/arch/acorn32/conf/RPCINST                                        |   268 +
 sys/arch/acorn32/conf/RPC_WSCONS                                     |   306 +
 sys/arch/acorn32/conf/files.acorn32                                  |   338 +
 sys/arch/acorn32/conf/monitors/A1097C                                |    20 +
 sys/arch/acorn32/conf/monitors/AKF60                                 |   362 +
 sys/arch/acorn32/conf/monitors/AKF85                                 |   399 +
 sys/arch/acorn32/conf/monitors/AKF85B                                |   496 +
 sys/arch/acorn32/conf/monitors/FA3415ATKE                            |   259 +
 sys/arch/acorn32/conf/monitors/NTSCTV                                |   100 +
 sys/arch/acorn32/conf/monitors/PALTV                                 |   167 +
 sys/arch/acorn32/conf/monitors/Taxan875+LR                           |   414 +
 sys/arch/acorn32/conf/monitors/VGA                                   |   171 +
 sys/arch/acorn32/conf/monitors/VGAPlus                               |   204 +
 sys/arch/acorn32/conf/std.acorn32                                    |    12 +
 sys/arch/acorn32/dev/md_hooks.c                                      |   107 +
 sys/arch/acorn32/dev/wskbdmap_mfii.c                                 |   178 +
 sys/arch/acorn32/include/Makefile                                    |    26 +
 sys/arch/acorn32/include/ansi.h                                      |     3 +
 sys/arch/acorn32/include/aout_machdep.h                              |     3 +
 sys/arch/acorn32/include/asm.h                                       |     3 +
 sys/arch/acorn32/include/beep.h                                      |    43 +
 sys/arch/acorn32/include/bootconfig.h                                |   110 +
 sys/arch/acorn32/include/bswap.h                                     |     3 +
 sys/arch/acorn32/include/bus.h                                       |     4 +
 sys/arch/acorn32/include/cdefs.h                                     |     3 +
 sys/arch/acorn32/include/conf.h                                      |   110 +
 sys/arch/acorn32/include/cpu.h                                       |     3 +
 sys/arch/acorn32/include/cpufunc.h                                   |     4 +
 sys/arch/acorn32/include/cpus.h                                      |     4 +
 sys/arch/acorn32/include/db_machdep.h                                |     4 +
 sys/arch/acorn32/include/devmap.h                                    |    78 +
 sys/arch/acorn32/include/disklabel.h                                 |     3 +
 sys/arch/acorn32/include/disklabel_acorn.h                           |     3 +
 sys/arch/acorn32/include/elf_machdep.h                               |     3 +
 sys/arch/acorn32/include/endian.h                                    |     3 +
 sys/arch/acorn32/include/endian_machdep.h                            |     3 +
 sys/arch/acorn32/include/float.h                                     |     3 +
 sys/arch/acorn32/include/fp.h                                        |     3 +
 sys/arch/acorn32/include/frame.h                                     |     3 +
 sys/arch/acorn32/include/ieee.h                                      |     3 +
 sys/arch/acorn32/include/ieeefp.h                                    |     3 +
 sys/arch/acorn32/include/iic.h                                       |    71 +
 sys/arch/acorn32/include/int_const.h                                 |     3 +
 sys/arch/acorn32/include/int_fmtio.h                                 |     3 +
 sys/arch/acorn32/include/int_limits.h                                |     3 +
 sys/arch/acorn32/include/int_mwgwtypes.h                             |     3 +
 sys/arch/acorn32/include/int_types.h                                 |     3 +
 sys/arch/acorn32/include/intr.h                                      |    72 +
 sys/arch/acorn32/include/io.h                                        |   114 +
 sys/arch/acorn32/include/ipkdb.h                                     |     4 +
 sys/arch/acorn32/include/irqhandler.h                                |   216 +
 sys/arch/acorn32/include/isa_machdep.h                               |     3 +
 sys/arch/acorn32/include/isapnp_machdep.h                            |     4 +
 sys/arch/acorn32/include/joystick.h                                  |    23 +
 sys/arch/acorn32/include/katelib.h                                   |     4 +
 sys/arch/acorn32/include/kbd.h                                       |    66 +
 sys/arch/acorn32/include/kerndebug.h                                 |   132 +
 sys/arch/acorn32/include/limits.h                                    |     3 +
 sys/arch/acorn32/include/lock.h                                      |     3 +
 sys/arch/acorn32/include/math.h                                      |     3 +
 sys/arch/acorn32/include/mouse.h                                     |    97 +
 sys/arch/acorn32/include/ofisa_machdep.h                             |     3 +
 sys/arch/acorn32/include/ofw.h                                       |     3 +
 sys/arch/acorn32/include/param.h                                     |    49 +
 sys/arch/acorn32/include/pcb.h                                       |     4 +
 sys/arch/acorn32/include/pccons.h                                    |    28 +
 sys/arch/acorn32/include/pci_machdep.h                               |     5 +
 sys/arch/acorn32/include/pio.h                                       |     3 +
 sys/arch/acorn32/include/pmap.h                                      |     4 +
 sys/arch/acorn32/include/podulebus_machdep.h                         |   169 +
 sys/arch/acorn32/include/proc.h                                      |     3 +
 sys/arch/acorn32/include/profile.h                                   |     3 +
 sys/arch/acorn32/include/profileio.h                                 |     3 +
 sys/arch/acorn32/include/psl.h                                       |     4 +
 sys/arch/acorn32/include/pte.h                                       |     3 +
 sys/arch/acorn32/include/ptrace.h                                    |     3 +
 sys/arch/acorn32/include/reg.h                                       |     3 +
 sys/arch/acorn32/include/rtc.h                                       |     3 +
 sys/arch/acorn32/include/scrio.h                                     |    97 +
 sys/arch/acorn32/include/setjmp.h                                    |     3 +
 sys/arch/acorn32/include/signal.h                                    |     3 +
 sys/arch/acorn32/include/stdarg.h                                    |     3 +
 sys/arch/acorn32/include/sysarch.h                                   |     4 +
 sys/arch/acorn32/include/trap.h                                      |     3 +
 sys/arch/acorn32/include/types.h                                     |    11 +
 sys/arch/acorn32/include/undefined.h                                 |     3 +
 sys/arch/acorn32/include/varargs.h                                   |     3 +
 sys/arch/acorn32/include/vconsole.h                                  |   297 +
 sys/arch/acorn32/include/vidc_machdep.h                              |    60 +
 sys/arch/acorn32/include/vmparam.h                                   |   201 +
 sys/arch/acorn32/mainbus/com_pioc.c                                  |   271 +
 sys/arch/acorn32/mainbus/fd.c                                        |  1712 ++++++
 sys/arch/acorn32/mainbus/fdreg.h                                     |   142 +
 sys/arch/acorn32/mainbus/lpt_pioc.c                                  |   223 +
 sys/arch/acorn32/mainbus/pioc.c                                      |   511 ++
 sys/arch/acorn32/mainbus/piocreg.h                                   |   124 +
 sys/arch/acorn32/mainbus/piocvar.h                                   |    60 +
 sys/arch/acorn32/mainbus/wdc_pioc.c                                  |   171 +
 sys/arch/acorn32/podulebus/amps.c                                    |   321 +
 sys/arch/acorn32/podulebus/ampsreg.h                                 |    53 +
 sys/arch/acorn32/podulebus/asc.c                                     |   387 +
 sys/arch/acorn32/podulebus/ascreg.h                                  |   281 +
 sys/arch/acorn32/podulebus/ascvar.h                                  |    53 +
 sys/arch/acorn32/podulebus/cosc.c                                    |   463 +
 sys/arch/acorn32/podulebus/coscreg.h                                 |   111 +
 sys/arch/acorn32/podulebus/coscvar.h                                 |    51 +
 sys/arch/acorn32/podulebus/csa.c                                     |   229 +
 sys/arch/acorn32/podulebus/csc.c                                     |   348 +
 sys/arch/acorn32/podulebus/cscreg.h                                  |    95 +
 sys/arch/acorn32/podulebus/cscvar.h                                  |    60 +
 sys/arch/acorn32/podulebus/esc.c                                     |  1637 ++++++
 sys/arch/acorn32/podulebus/escreg.h                                  |   165 +
 sys/arch/acorn32/podulebus/escvar.h                                  |   265 +
 sys/arch/acorn32/podulebus/icside.c                                  |   326 +
 sys/arch/acorn32/podulebus/icside_io_asm.S                           |    60 +
 sys/arch/acorn32/podulebus/icsidereg.h                               |    65 +
 sys/arch/acorn32/podulebus/if_ie.c                                   |  1617 ++++++
 sys/arch/acorn32/podulebus/if_iereg.h                                |   383 +
 sys/arch/acorn32/podulebus/if_ne_pbus.c                              |   808 +++
 sys/arch/acorn32/podulebus/if_ne_pbusreg.h                           |    92 +
 sys/arch/acorn32/podulebus/netslot.c                                 |   161 +
 sys/arch/acorn32/podulebus/podulebus.c                               |   628 ++
 sys/arch/acorn32/podulebus/podulebus.h                               |     3 +
 sys/arch/acorn32/podulebus/podulebus_io.c                            |   266 +
 sys/arch/acorn32/podulebus/podulebus_io_asm.S                        |   133 +
 sys/arch/acorn32/podulebus/ptsc.c                                    |   491 +
 sys/arch/acorn32/podulebus/ptscreg.h                                 |    75 +
 sys/arch/acorn32/podulebus/ptscvar.h                                 |    52 +
 sys/arch/acorn32/podulebus/rapide.c                                  |   350 +
 sys/arch/acorn32/podulebus/rapide_io_asm.S                           |   178 +
 sys/arch/acorn32/podulebus/rapidereg.h                               |    89 +
 sys/arch/acorn32/podulebus/sbic.c                                    |  2547 ++++++++++
 sys/arch/acorn32/podulebus/sbicreg.h                                 |   454 +
 sys/arch/acorn32/podulebus/sbicvar.h                                 |   224 +
 sys/arch/acorn32/podulebus/sfas.c                                    |  1638 ++++++
 sys/arch/acorn32/podulebus/sfasreg.h                                 |   158 +
 sys/arch/acorn32/podulebus/sfasvar.h                                 |   267 +
 sys/arch/acorn32/podulebus/simide.c                                  |   338 +
 sys/arch/acorn32/podulebus/simide_io_asm.S                           |    60 +
 sys/arch/acorn32/podulebus/simidereg.h                               |    78 +
 sys/arch/acorn32/stand/BtNetBSD/FBInstall                            |   126 +
 sys/arch/acorn32/stand/BtNetBSD/README                               |    15 +
 sys/arch/acorn32/stand/BtNetBSD/Settype                              |     7 +
 sys/arch/acorn32/stand/BtNetBSD/misc/Mkrel/MkRelScr                  |    33 +
 sys/arch/acorn32/stand/BtNetBSD/misc/Mkrel/MkRelease                 |     5 +
 sys/arch/acorn32/stand/BtNetBSD/misc/SettScr                         |    66 +
 sys/arch/acorn32/stand/BtNetBSD/misc/bb_netbsd                       |   140 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/!Boot                 |     7 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/!Edit                 |     9 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/!Run                  |    14 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/Banner,uue            |   976 +++
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/BtNetBSD              |  1119 ++++
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/BtNetBSD.old          |  1114 ++++
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/Files                 |    26 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/Legal                 |    16 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/MemFix,uue            |    19 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/PreBoot               |    13 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/TestBoot              |    96 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/checkro403            |    11 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/fastboot              |    35 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/Howto          |    63 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/KillUnixfs     |     3 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/MountUFS       |   102 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/OpenRoot       |     2 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/unixfs_res,uue |   859 +++
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/wd0a           |     3 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/wd0d           |     3 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/wd0e           |     3 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/wd0f           |     3 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/native/wd0g           |     3 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/pling.Sprites,uue     |    23 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/pling.Sprites22,uue   |   433 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/src/Banner/!Path      |     4 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/src/Banner/Banner     |   295 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/src/Banner/resutil    |   123 +
 sys/arch/acorn32/stand/BtNetBSD/pling.BtNetBSD/src/Banner/sprite,uue |   960 +++
 sys/arch/acorn32/stand/export-BtNetBSD                               |    39 +
 sys/arch/acorn32/stand/import-BtNetBSD                               |    35 +
 sys/arch/arm/iomd/beep.c                                             |   406 +
 sys/arch/arm/iomd/console/consinit.c                                 |   107 +
 sys/arch/arm/iomd/console/console.c                                  |  1255 ++++
 sys/arch/arm/iomd/console/debugconsole.c                             |    74 +
 sys/arch/arm/iomd/console/dumb.c                                     |   142 +
 sys/arch/arm/iomd/console/fonts/font_bold.h                          |   262 +
 sys/arch/arm/iomd/console/fonts/font_italic.h                        |   262 +
 sys/arch/arm/iomd/console/fonts/font_normal.h                        |   262 +
 sys/arch/arm/iomd/console/fonts/font_wide.h                          |   256 +
 sys/arch/arm/iomd/console/vidc.c                                     |   235 +
 sys/arch/arm/iomd/console/vidc_mc.S                                  |   149 +
 sys/arch/arm/iomd/console/vidcconsole.c                              |   203 +
 sys/arch/arm/iomd/console/vidcrender.c                               |  1741 ++++++
 sys/arch/arm/iomd/console/vt220.c                                    |  1919 +++++++
 sys/arch/arm/iomd/console/vt220.h                                    |   117 +
 sys/arch/arm/iomd/iic.c                                              |   380 +
 sys/arch/arm/iomd/iic.h                                              |    72 +
 sys/arch/arm/iomd/iic_iomd.c                                         |   108 +
 sys/arch/arm/iomd/iicvar.h                                           |    60 +
 sys/arch/arm/iomd/iomd.c                                             |   316 +
 sys/arch/arm/iomd/iomd_clock.c                                       |   362 +
 sys/arch/arm/iomd/iomd_dma.c                                         |   326 +
 sys/arch/arm/iomd/iomd_dma.h                                         |    75 +
 sys/arch/arm/iomd/iomd_fiq.S                                         |   113 +
 sys/arch/arm/iomd/iomd_iic.S                                         |   253 +
 sys/arch/arm/iomd/iomd_io.c                                          |   205 +
 sys/arch/arm/iomd/iomd_io_asm.S                                      |    97 +
 sys/arch/arm/iomd/iomd_irq.S                                         |   604 ++
 sys/arch/arm/iomd/iomd_irqhandler.c                                  |   618 ++
 sys/arch/arm/iomd/iomdreg.h                                          |   214 +
 sys/arch/arm/iomd/iomdvar.h                                          |   124 +
 sys/arch/arm/iomd/kbd.c                                              |  1046 ++++
 sys/arch/arm/iomd/kbd_iomd.c                                         |   118 +
 sys/arch/arm/iomd/kbdvar.h                                           |    77 +
 sys/arch/arm/iomd/lmc1982.S                                          |   143 +
 sys/arch/arm/iomd/lmc1982.h                                          |    88 +
 sys/arch/arm/iomd/lmcaudio.c                                         |   719 ++
 sys/arch/arm/iomd/makemodes.awk                                      |   311 +
 sys/arch/arm/iomd/pms.c                                              |   694 ++
 sys/arch/arm/iomd/pms_iomd.c                                         |   114 +
 sys/arch/arm/iomd/pmsvar.h                                           |    78 +
 sys/arch/arm/iomd/qms.c                                              |   470 +
 sys/arch/arm/iomd/qms_iomd.c                                         |   138 +
 sys/arch/arm/iomd/qmsvar.h                                           |    74 +
 sys/arch/arm/iomd/rpckbd.c                                           |   651 ++
 sys/arch/arm/iomd/rpckbd_iomd.c                                      |   124 +
 sys/arch/arm/iomd/rpckbdvar.h                                        |    82 +
 sys/arch/arm/iomd/rtc.c                                              |   494 +
 sys/arch/arm/iomd/sysbeep_vidc.c                                     |    89 +
 sys/arch/arm/iomd/todclock.c                                         |   345 +
 sys/arch/arm/iomd/todclockvar.h                                      |    55 +
 sys/arch/arm/iomd/vidc.h                                             |   282 +
 sys/arch/arm/iomd/vidc20.c                                           |   202 +
 sys/arch/arm/iomd/vidc20config.c                                     |   879 +++
 sys/arch/arm/iomd/vidc20config.c.old-stuff                           |   207 +
 sys/arch/arm/iomd/vidc20config.h                                     |    75 +
 sys/arch/arm/iomd/vidcaudio.c                                        |   707 ++
 sys/arch/arm/iomd/vidcvideo.c                                        |   897 +++
 sys/arch/arm/iomd/vidcvideo.h                                        |    43 +
 sys/arch/arm/iomd/waveform.h                                         |   551 ++
 sys/arch/arm/iomd/wskbdmap_mfii.h                                    |    40 +
 sys/arch/arm/iomd/wsqms.c                                            |   189 +
 sys/arch/arm/iomd/wsqms_iomd.c                                       |   120 +
 sys/arch/arm/iomd/wsqmsvar.h                                         |    75 +
 253 files changed, 58598 insertions(+), 0 deletions(-)

diffs (truncated from 59610 to 300 lines):

diff -r beeaab74077f -r 2afc08928702 sys/arch/acorn32/acorn32/autoconf.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/acorn32/acorn32/autoconf.c       Fri Oct 05 22:27:40 2001 +0000
@@ -0,0 +1,196 @@
+/*     $NetBSD: autoconf.c,v 1.1 2001/10/05 22:27:46 reinoud Exp $     */
+
+/*
+ * Copyright (c) 1994-1998 Mark Brinicombe.
+ * Copyright (c) 1994 Brini.
+ * 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 Mark Brinicombe for
+ *      the NetBSD project.
+ * 4. The name of the company nor the name of the author may 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 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.
+ *
+ * RiscBSD kernel project
+ *
+ * autoconf.c
+ *
+ * Autoconfiguration functions
+ *
+ * Created      : 08/10/94
+ */
+
+#include "opt_md.h"
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/reboot.h>
+#include <sys/disklabel.h>
+#include <sys/device.h>
+#include <sys/conf.h>
+#include <sys/kernel.h>
+#include <sys/malloc.h>
+#include <machine/bootconfig.h>
+#include <machine/irqhandler.h>
+
+
+#include "podulebus.h"
+
+struct device *booted_device;
+int booted_partition;
+
+extern dev_t dumpdev;
+
+void dumpconf __P((void));
+void isa_intr_init __P((void));
+
+#ifndef MEMORY_DISK_IS_ROOT
+static void get_device __P((char *name));
+static void set_root_device __P((void));
+#endif
+
+#ifndef MEMORY_DISK_IS_ROOT
+/* Decode a device name to a major and minor number */
+
+static void
+get_device(name)
+       char *name;
+{
+       int loop, unit, part;
+       char buf[32], *cp;
+       struct device *dv;
+
+       if (strncmp(name, "/dev/", 5) == 0)
+               name += 5;
+
+       for (loop = 0; dev_name2blk[loop].d_name != NULL; ++loop) {
+               if (strncmp(name, dev_name2blk[loop].d_name,
+                   strlen(dev_name2blk[loop].d_name)) == 0) {
+                       name += strlen(dev_name2blk[loop].d_name);
+                       unit = part = 0;
+
+                       cp = name;
+                       while (*cp >= '0' && *cp <= '9')
+                               unit = (unit * 10) + (*cp++ - '0');
+                       if (cp == name)
+                               return;
+
+                       if (*cp >= 'a' && *cp <= ('a' + MAXPARTITIONS))
+                               part = *cp - 'a';
+                       else if (*cp != '\0' && *cp != ' ')
+                               return;
+                       sprintf(buf, "%s%d", dev_name2blk[loop].d_name, unit);
+                       for (dv = alldevs.tqh_first; dv != NULL;
+                           dv = dv->dv_list.tqe_next) {
+                               if (strcmp(buf, dv->dv_xname) == 0) {
+                                       booted_device = dv;
+                                       booted_partition = part;
+                                       return;
+                               }
+                       }
+               }
+       } 
+}
+
+
+/* Set the rootdev variable from the root specifier in the boot args */
+
+static void
+set_root_device()
+{
+       char *ptr;
+            
+       if (boot_file)
+               get_device(boot_file);
+       if (boot_args &&
+           get_bootconf_option(boot_args, "root", BOOTOPT_TYPE_STRING, &ptr))
+               get_device(ptr);
+}
+#endif
+
+/*
+ * Set up the root device from the boot args
+ */
+void
+cpu_rootconf()
+{
+#ifndef MEMORY_DISK_IS_ROOT
+       set_root_device();
+
+       printf("boot device: %s\n",
+           booted_device != NULL ? booted_device->dv_xname : "<unknown>");
+#endif
+       setroot(booted_device, booted_partition);
+}
+
+
+/*
+ * void cpu_configure()
+ *
+ * Configure all the root devices
+ * The root devices are expected to configure their own children
+ */
+
+void
+cpu_configure()
+{
+       /*
+        * Configure all the roots.
+        * We have to have a mainbus
+        */
+
+       /*
+        * Since the ICU is not standard on the ARM we don't know
+        * if we have one until we find a bridge.
+        * Since various PCI interrupts could be routed via the ICU
+        * (for PCI devices in the bridge) we need to set up the ICU
+        * now so that these interrupts can be established correctly
+        * i.e. This is a hack.
+        */
+
+       config_rootfound("mainbus", NULL);
+#if NPODULEBUS > 0
+       config_rootfound("podulebus", NULL);
+#endif /* NPODULEBUS */
+
+       /* Debugging information */
+#ifndef TERSE
+       printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_imp=%08x\n",
+           irqmasks[IPL_BIO], irqmasks[IPL_NET], irqmasks[IPL_TTY],
+           irqmasks[IPL_IMP]);
+       printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n",
+           irqmasks[IPL_AUDIO], irqmasks[IPL_CLOCK], irqmasks[IPL_HIGH],
+           irqmasks[IPL_SERIAL]);
+#endif
+
+       /* Time to start taking interrupts so lets open the flood gates .... */
+       (void)spl0();
+}
+
+void
+device_register(struct device *dev, void *aux)
+{
+}
+/* End of autoconf.c */
diff -r beeaab74077f -r 2afc08928702 sys/arch/acorn32/acorn32/conf.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/acorn32/acorn32/conf.c   Fri Oct 05 22:27:40 2001 +0000
@@ -0,0 +1,460 @@
+/*     $NetBSD: conf.c,v 1.1 2001/10/05 22:27:46 reinoud Exp $ */
+
+/*
+ * Copyright (c) 1994-1998 Mark Brinicombe.
+ * 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 Mark Brinicombe
+ *     for the NetBSD Project.
+ * 4. The name of the company nor the name of the author may 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 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.
+ *
+ * RiscBSD kernel project
+ *
+ * conf.c
+ *
+ * Character and Block Device configuration
+ * Console configuration
+ *
+ * Defines the structures cdevsw and constab
+ *
+ * Created      : 17/09/94
+ */
+
+#include "opt_footbridge.h"
+ 
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/buf.h>
+#include <sys/ioctl.h>
+#include <sys/tty.h>
+#include <sys/conf.h>
+#include <sys/vnode.h>
+
+#include <machine/conf.h>
+
+#include "wd.h"
+#include "fdc.h"
+#include "md.h"
+#include "sd.h"
+#include "st.h"
+#include "cd.h"
+#include "vnd.h"
+#include "ccd.h"
+#include "raid.h"
+
+/* Block devices */
+
+struct bdevsw bdevsw[] = {
+       bdev_lkm_dummy(),               /*  0: */
+       bdev_swap_init(1, sw),          /*  1: swap pseudo-device */
+       bdev_lkm_dummy(),               /*  2: */
+       bdev_lkm_dummy(),               /*  3: */
+       bdev_lkm_dummy(),               /*  4: */
+       bdev_lkm_dummy(),               /*  5: */
+       bdev_lkm_dummy(),               /*  6: */
+       bdev_lkm_dummy(),               /*  7: */
+       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_lkm_dummy(),               /* 14: */
+       bdev_lkm_dummy(),               /* 15: */
+       bdev_disk_init(NWD, wd),        /* 16: Internal IDE disk */
+       bdev_disk_init(NFDC, fd),       /* 17: floppy diskette */
+       bdev_disk_init(NMD, md),        /* 18: memory disk */
+       bdev_disk_init(NVND,vnd),       /* 19: vnode disk driver */
+       bdev_lkm_dummy(),               /* 20: */
+       bdev_disk_init(NCCD,ccd),       /* 21: concatenated disk driver */
+       bdev_lkm_dummy(),               /* 22: */
+       bdev_lkm_dummy(),               /* 23: */
+       bdev_disk_init(NSD,sd),         /* 24: SCSI disk */



Home | Main Index | Thread Index | Old Index