Keyboard, mouse, ws*

This commit is contained in:
briggs 2001-02-08 20:27:24 +00:00
parent e3045c89d8
commit 5b380e8c30
4 changed files with 47 additions and 24 deletions

View File

@ -1,11 +1,11 @@
# $NetBSD: GENERIC,v 1.3 2001/02/08 18:33:03 briggs Exp $
# $NetBSD: GENERIC,v 1.4 2001/02/08 20:27:24 briggs Exp $
#
# GENERIC for Motorola Sandpoint
#
include "arch/sandpoint/conf/std.sandpoint"
#ident "GENERIC-$Revision: 1.3 $"
#ident "GENERIC-$Revision: 1.4 $"
maxusers 32
@ -54,21 +54,27 @@ options NFS_BOOT_BOOTPARAM,NFS_BOOT_BOOTP
config netbsd root on ? type ?
pseudo-device vnd 4
pseudo-device loop
# network psuedo-devices
pseudo-device bpfilter 8 # packet filter
pseudo-device pty 64 # pseudo-terminals
#pseudo-device ipfilter
pseudo-device loop
# random number generator pseudo-device
# mouse & keyboard multiplexor pseudo-devices
pseudo-device wsmux 2
# miscellaneous pseudo-devices
pseudo-device rnd # /dev/random and in-kernel generator
pseudo-device vnd 4
pseudo-device pty
#
# device
#
options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
options PCIVERBOSE # verbose PCI device messages
#options PCIVERBOSE # verbose PCI device messages
#options PCI_CONFIG_DUMP # verbosely dump PCI config space
options PCI_NETBSD_CONFIGURE # Have NetBSD configure PCI I/O & Mem
mainbus0 at root
@ -84,8 +90,7 @@ isa* at pcib? # ISA on PCI-ISA bridge
#pciide* at pci? dev ? function ? # Winbond/Symphony IDE interface
vga* at pci?
wsdisplay* at vga? console ?
vga* at pci? dev ? function ?
ep* at pci? dev ? function ? # 3Com 3c59x
ex* at pci? dev ? function ? # 3Com 90x[B]
@ -93,6 +98,15 @@ ex* at pci? dev ? function ? # 3Com 90x[B]
ukphy* at mii? phy ? # generic unknown PHYs
exphy* at mii? phy ? # 3Com internal PHYs
pckbc0 at isa? # PS/2 keyboard controller
pckbd* at pckbc? # PC keyboard
pms* at pckbc? # PS/2 mouse for wsmouse
pmsi* at pckbc? # PS/2 "Intelli"mouse for wsmouse
wsdisplay* at vga? console ?
wskbd* at pckbd? console ?
wsmouse* at pms? mux 0
wsmouse* at pmsi? mux 0
com0 at isa? port 0x3f8 irq 4 # standard PC serial ports
com1 at isa? port 0x2f8 irq 3

View File

@ -1,4 +1,4 @@
# $NetBSD: files.sandpoint,v 1.2 2001/02/08 18:33:03 briggs Exp $
# $NetBSD: files.sandpoint,v 1.3 2001/02/08 20:27:24 briggs Exp $
#
# Motorola's "SandPoint" evaluation board's specific configuration info
#
@ -89,6 +89,8 @@ file arch/sandpoint/isa/isaclock.c isa
include "dev/wscons/files.wscons"
include "dev/pckbc/files.pckbc"
# Floppy disk controller
device fdc {drive = -1}: isadma
file dev/isa/fd.c fdc needs-flag

View File

@ -1,4 +1,4 @@
/* $NetBSD: isa_machdep.c,v 1.2 2001/02/08 18:29:05 briggs Exp $ */
/* $NetBSD: isa_machdep.c,v 1.3 2001/02/08 20:27:25 briggs Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -308,13 +308,21 @@ isa_intr_disestablish(ic, arg)
#define SUPERIO_CONF_DATA 0x15D
#define SUPERIO_CONF_LDN 0x07
#define SUPERIO_CONF_ACTIVATE 0x30
#define SUPERIO_CONF_CFG1_ATDRIVE 0x04
void
isa_attach_hook(parent, self, iba)
struct device *parent, *self;
struct isabus_attach_args *iba;
{
u_int8_t cfg;
int ldn;
/* Set PS/2 drive mode */
isa_outb(SUPERIO_CONF_IDX, 0x21);
cfg = isa_inb(SUPERIO_CONF_DATA);
cfg &= ~SUPERIO_CONF_CFG1_ATDRIVE;
isa_outb(SUPERIO_CONF_DATA, cfg);
/* Enable the 9 Super I/O devices. */
for (ldn=0; ldn <= 8; ldn++) {
isa_outb(SUPERIO_CONF_IDX, SUPERIO_CONF_LDN);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.2 2001/02/08 18:33:07 briggs Exp $ */
/* $NetBSD: conf.c,v 1.3 2001/02/08 20:27:25 briggs Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -232,7 +232,6 @@ cdev_decl(satlink);
#include "rnd.h"
#if 0
#include "wsdisplay.h"
cdev_decl(wsdisplay);
#include "wskbd.h"
@ -241,7 +240,6 @@ cdev_decl(wskbd);
cdev_decl(wsmouse);
#include "wsmux.h"
cdev_decl(wsmux);
#endif
#include "scsibus.h"
cdev_decl(scsibus);
@ -300,13 +298,14 @@ struct cdevsw cdevsw[] =
cdev_satlink_init(NSATLINK,satlink), /* 45: planetconnect satlink */
cdev_rnd_init(NRND,rnd), /* 46: random source pseudo-device */
cdev_notdef(), /* 47 */
cdev_notdef(), /* 48 */
cdev_notdef(), /* 49 */
cdev_wsdisplay_init(NWSDISPLAY,
wsdisplay), /* 47: frame buffers, etc. */
cdev_mouse_init(NWSKBD, wskbd), /* 48: ws keyboards */
cdev_mouse_init(NWSMOUSE,
wsmouse), /* 49: ws mice */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 50: SCSI bus */
cdev_disk_init(NRAID,raid), /* 51: RAIDframe disk driver */
cdev_notdef(), /* 52 */
cdev_mouse_init(NWSMUX, wsmux), /* 52: ws multiplexor */
cdev_i4b_init(NI4B, i4b), /* 53: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 54: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 55: i4b raw b-channel access */