Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Switch netwinder to use a common conf.c for the arm...



details:   https://anonhg.NetBSD.org/src/rev/cd5ae1417323
branches:  trunk
changeset: 514454:cd5ae1417323
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Sep 03 01:50:00 2001 +0000

description:
Switch netwinder to use a common conf.c for the arm ports.

diffstat:

 sys/arch/arm/arm32/conf.c                        |  571 +++++++++++++++++++++++
 sys/arch/arm/include/conf.h                      |  123 ++++
 sys/arch/netwinder/conf/files.netwinder          |   16 +-
 sys/arch/netwinder/include/Makefile              |    3 +-
 sys/arch/netwinder/include/conf.h                |  121 +----
 sys/arch/netwinder/netwinder/conf.c              |  398 ----------------
 sys/arch/netwinder/netwinder/netwinder_machdep.c |   33 +-
 7 files changed, 731 insertions(+), 534 deletions(-)

diffs (truncated from 1367 to 300 lines):

diff -r 50c63a7223aa -r cd5ae1417323 sys/arch/arm/arm32/conf.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm/arm32/conf.c Mon Sep 03 01:50:00 2001 +0000
@@ -0,0 +1,571 @@
+/*     $NetBSD: conf.c,v 1.1 2001/09/03 01:50:01 matt 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 <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 "biconsdev.h"*/
+#ifndef NBICONSDEV
+#define        NBICONSDEV      0
+#endif
+/*#include "beep.h"*/
+#ifndef NBEEP
+#define        NBEEP   0
+#endif
+/*#include "fcom.h"*/
+#ifndef NFCOM
+#define        NFCOM   0
+#endif
+/*#include "fdc.h"*/
+#ifndef NFDC
+#define        NFDC    0
+#endif
+/*#include "iic.h"*/
+#ifndef NIIC
+#define        NIIC    0
+#endif
+/*#include "joy.h"*/
+#ifndef NJOY
+#define        NJOY    0
+#endif
+/*#include "kbd.h"*/
+#ifndef NKBD
+#define        NKBD    0
+#endif
+/*#include "lpt.h"*/
+#ifndef NLPT
+#define        NLPT    0
+#endif
+/*#include "ofcons.h"*/
+#ifndef NOFCONS
+#define        NOFCONS 0
+#endif
+/*#include "ofrom.h"*/
+#ifndef NOFROM
+#define NOFROM 0
+#endif
+/*#include "ofrtc.h"*/                 /* XXX not used for anything?! */
+#ifndef NOFROM
+#define NOFRTC 0
+#endif
+/*#include "openfirm.h"*/
+#ifndef NOPENFIRM
+#define        NOPENFIRM       0
+#endif
+/*#include "opms.h"*/
+#ifndef NOPMS
+#define        NOPMS   0
+#endif
+/*#include "pc.h"*/
+#ifndef NPC
+#define        NPC     0
+#endif
+/*#include "profiler.h"*/
+#ifndef NPROFILER
+#define        NPROFILER       0
+#endif
+/*#include "qms.h"*/
+#ifndef NQMS
+#define        NQMS    0
+#endif
+/*#include "rtc.h"*/
+#ifndef NRTC
+#define        NRTC    0
+#endif
+/*#include "scr.h"*/
+#ifndef NSCR
+#define        NSCR    0
+#endif
+/*#include "vt.h"*/
+#ifndef NVT
+#define        NVT     0
+#endif
+/*#include "vidcconsole.h"*/
+#ifndef NVIDCCONSOLE
+#define        NVIDCCONSOLE    0
+#endif
+
+/*
+ * From this point, these need to be MI foo.h files.
+ */
+
+/*
+ * Standard MI devices (e.g. ones in dev/ic)
+ */
+#include "com.h"               /* NS164x0 serial ports */
+
+/*
+ * Standard pseudo-devices
+ */
+#include "pty.h"
+#include "bpfilter.h"
+#include "ipfilter.h"
+#include "tun.h"
+#include "rnd.h"
+
+/*
+ * Disk/Filesystem pseudo-devices
+ */
+#include "ccd.h"                       /* concatenated disk driver */
+#include "md.h"                                /* memory disk driver */
+#include "raid.h"                      /* RAIDframe */
+#include "vcoda.h"                     /* coda file system */
+#include "vnd.h"                       /* vnode disk driver */
+
+/*
+ * WD/ATA devices
+ */
+#include "wd.h"
+
+/*
+ * ISDN devices
+ */
+#ifdef CONS_HAVE_ISDN
+#include "i4b.h"
+#include "i4bctl.h"
+#include "i4btrc.h"
+#include "i4brbch.h"
+#include "i4btel.h"
+#else
+#define        NI4B    0
+#define        NI4BCTL 0
+#define        NI4BTRC 0
+#define        NI4BRBCH        0
+#define        NI4BTEL 0
+#endif
+
+/*
+ * SCSI/ATAPI devices
+ */
+#ifdef CONF_HAVE_SCSIPI
+#include "sd.h"
+#include "st.h"
+#include "cd.h"
+#include "ch.h"
+#include "uk.h"
+#include "ss.h"
+#include "scsibus.h"
+#else
+#define        NSD     0
+#define        NST     0
+#define        NCD     0
+#define        NCH     0
+#define        NUK     0
+#define        NSS     0
+#define        NSCSIBUS        0
+#endif
+
+/*
+ * Audio devices
+ */
+#include "audio.h"
+#include "midi.h"
+#include "sequencer.h"
+
+/*
+ * USB devices
+ */
+#ifdef CONF_HAVE_USB
+#include "usb.h"
+#include "ucom.h"
+#include "ugen.h"
+#include "uhid.h"
+#include "ulpt.h"
+#include "urio.h"
+#include "uscanner.h"
+#else
+#define        NUSB    0
+#define        NUCOM   0
+#define        NUGEN   0
+#define        NUHID   0
+#define        NULPT   0
+#define        NURIO   0
+#define        NUSCANNER       0
+#endif
+
+/*
+ * WSCONS devices
+ */
+#ifdef CONF_HAVE_WSCONS
+#include "wsdisplay.h"
+#include "wskbd.h"
+#include "wsmouse.h"
+#include "wsmux.h"
+#else
+#define        NWSDISPLAY      0
+#define        NWSKBD  0
+#define        NWSMOUSE        0
+#define        NWSMUX  0
+#endif
+
+#include <arm/conf.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 */
+       bdev_tape_init(NST,st),         /* 25: SCSI tape */
+       bdev_disk_init(NCD,cd),         /* 26: SCSI cdrom */
+       bdev_lkm_dummy(),               /* 27: */
+       bdev_lkm_dummy(),               /* 28: */
+       bdev_lkm_dummy(),               /* 29: */
+       bdev_lkm_dummy(),               /* 30: */
+       bdev_lkm_dummy(),               /* 31: */
+       bdev_lkm_dummy(),               /* 32: */
+       bdev_lkm_dummy(),               /* 33: */
+       bdev_lkm_dummy(),               /* 34: */
+       bdev_lkm_dummy(),               /* 35: */
+       bdev_lkm_dummy(),               /* 36: */
+       bdev_lkm_dummy(),               /* 37: */
+       bdev_lkm_dummy(),               /* 38: */
+       bdev_lkm_dummy(),               /* 39: */
+       bdev_lkm_dummy(),               /* 40: */



Home | Main Index | Thread Index | Old Index