Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips Split out the {b, c}dev to a separate file, ...



details:   https://anonhg.NetBSD.org/src/rev/b6b5e5bc487f
branches:  trunk
changeset: 534438:b6b5e5bc487f
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Jul 26 03:23:04 2002 +0000

description:
Split out the {b,c}dev to a separate file, which many devices declared
conditionally so that other eval boards (say without PCI support) can
share the basic "conf.c".

diffstat:

 sys/arch/evbmips/evbmips/conf_common.c |  541 +++++++++++++++++++++++++++++++++
 sys/arch/evbmips/malta/conf.c          |  478 +----------------------------
 2 files changed, 552 insertions(+), 467 deletions(-)

diffs (truncated from 1032 to 300 lines):

diff -r 7b2bbeed07e9 -r b6b5e5bc487f sys/arch/evbmips/evbmips/conf_common.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbmips/evbmips/conf_common.c    Fri Jul 26 03:23:04 2002 +0000
@@ -0,0 +1,541 @@
+/*     $NetBSD: conf_common.c,v 1.1 2002/07/26 03:23:04 simonb Exp $   */
+
+/*
+ * Copyright (c) 1992, 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * 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. 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, Berkeley and its contributors.
+ * 4. 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/cdefs.h>                 /* RCS ID & Copyright macro defns */
+
+__KERNEL_RCSID(0, "$NetBSD: conf_common.c,v 1.1 2002/07/26 03:23:04 simonb Exp $");
+
+#include "opt_systrace.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>
+
+/*
+ * ISDN devices
+ */
+#ifdef CONF_HAVE_ISDN
+#include "isdn.h"
+#include "isdnctl.h"
+#include "isdntrc.h"
+#include "isdnbchan.h"
+#include "isdntel.h"
+#else
+#define        NISDN           0
+#define        NISDNCTL        0
+#define        NISDNTRC        0
+#define        NISDNBCHAN      0
+#define        NISDNTEL        0
+#endif
+
+#ifdef CONF_HAVE_PCI
+#include "cz.h"
+#include "iop.h"
+#include "ld.h"
+#include "mlx.h"
+#include "mly.h"
+#include "pci.h"
+#else
+#define        NCZ     0
+#define        NIOP    0
+#define        NLD     0
+#define        NMLX    0
+#define        NMLY    0
+#define        NPCI    0
+#endif
+#define        NAGP    0
+
+/*
+ * SCSI/ATAPI devices
+ */
+#ifdef CONF_HAVE_SCSIPI
+#include "cd.h"
+#include "ch.h"
+#include "scsibus.h"
+#include "sd.h"
+#include "se.h"
+#include "ses.h"
+#include "ss.h"
+#include "st.h"
+#include "uk.h"
+#else
+#define        NCD             0
+#define        NCH             0
+#define        NSCSIBUS        0
+#define        NSD             0
+#define        NSE             0
+#define        NSES            0
+#define        NSS             0
+#define        NST             0
+#define        NUK             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 "wsfont.h"
+#include "wskbd.h"
+#include "wsmouse.h"
+#include "wsmux.h"
+#else
+#define        NWSDISPLAY      0
+#define        NWSFONT         0
+#define        NWSKBD          0
+#define        NWSMOUSE        0
+#define        NWSMUX          0
+#endif
+
+#ifdef CONF_HAVE_SPKR
+#include "spkr.h"
+#else
+#define        NSPKR           0
+#endif
+
+#ifdef CONF_HAVE_ISA   /* XXX bad name */
+#include "fdc.h"
+#include "lpt.h"
+#include "satlink.h"
+#include "wd.h"
+#else
+#define        NFDC            0
+#define        NLPT            0
+#define        NSATLINK        0
+#define        NWD             0
+#endif
+
+#ifdef CONF_HAVE_ALCHEMY
+#include "aucom.h"
+#else
+#define        NAUCOM          0
+#endif
+
+#include "clockctl.h"
+cdev_decl(clockctl);
+#include "irframe.h"
+cdev_decl(irframe);
+#include "cir.h"
+cdev_decl(cir);
+#include "radio.h"
+cdev_decl(radio);
+
+bdev_decl(sw);
+cdev_decl(sw);
+
+bdev_decl(fd);
+bdev_decl(wd);
+#include "vnd.h"
+#include "raid.h"
+#include "ccd.h"
+#include "md.h"
+
+cdev_decl(mlx);
+cdev_decl(scsibus);
+
+#include "pty.h"
+#include "tun.h"
+dev_type_open(filedescopen);
+#include "bpfilter.h"
+#include "com.h"
+cdev_decl(com);
+cdev_decl(aucom);
+cdev_decl(kbd);
+cdev_decl(ms);
+cdev_decl(lpt);
+cdev_decl(ses);
+cdev_decl(fd);
+#include "ipfilter.h"
+cdev_decl(wd);
+cdev_decl(satlink);
+cdev_decl(music);
+
+#include "cy.h"
+cdev_decl(cy);
+cdev_decl(cztty);
+
+#include "rnd.h"
+
+cdev_decl(wsdisplay);
+cdev_decl(wskbd);
+cdev_decl(wsmouse);
+cdev_decl(wsmux);
+cdev_decl(wsfont);
+
+cdev_decl(spkr);
+
+#include "esh.h"
+cdev_decl(esh_fp);
+
+cdev_decl(usb); 
+cdev_decl(uhid);
+cdev_decl(ugen);
+cdev_decl(ulpt);
+cdev_decl(ucom);
+cdev_decl(urio);
+cdev_decl(uscanner);
+
+cdev_decl(isdn);
+cdev_decl(isdnctl);
+cdev_decl(isdntrc);
+cdev_decl(isdnbchan);
+cdev_decl(isdntel);
+
+#include <altq/altqconf.h>
+
+cdev_decl(pci);
+
+struct bdevsw bdevsw[] =
+{
+       bdev_disk_init(NFDC,fd),        /* 0: PC-ish floppy disk driver */
+       bdev_swap_init(1,sw),           /* 1: swap pseudo-device */
+       bdev_tape_init(NST,st),         /* 2: SCSI tape */
+       bdev_disk_init(NCD,cd),         /* 3: SCSI CD-ROM */
+       bdev_disk_init(NWD,wd),         /* 4: IDE disk driver */
+       bdev_notdef(),                  /* 5 */
+       bdev_disk_init(NMD,md),         /* 6: memory disk driver */
+       bdev_disk_init(NCCD,ccd),       /* 7: concatenated disk driver */
+       bdev_disk_init(NSD,sd),         /* 8: SCSI disk driver */
+       bdev_disk_init(NVND,vnd),       /* 9: vnode disk driver */
+       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(NRAID,raid),     /* 16: RAIDframe disk driver */
+       bdev_disk_init(NLD,ld),         /* 17: logical disk driver */
+       bdev_lkm_dummy(),               /* 18 */
+       bdev_lkm_dummy(),               /* 19 */
+       bdev_lkm_dummy(),               /* 20 */
+       bdev_lkm_dummy(),               /* 21 */
+       bdev_lkm_dummy(),               /* 22 */
+       bdev_lkm_dummy(),               /* 23 */
+       bdev_lkm_dummy(),               /* 24 */
+       bdev_lkm_dummy(),               /* 25 */
+       bdev_lkm_dummy(),               /* 26 */
+       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 */



Home | Main Index | Thread Index | Old Index