Remove the TCWSCONS config now that zstty can do flow control on IOASIC

machines.
This commit is contained in:
ad 2002-09-24 13:30:39 +00:00
parent 06c9e05c76
commit 002a769a08
14 changed files with 98 additions and 1875 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_3000_300.c,v 1.35 2002/09/06 13:18:43 gehenna Exp $ */
/* $NetBSD: dec_3000_300.c,v 1.36 2002/09/24 13:30:39 ad Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -33,9 +33,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_3000_300.c,v 1.35 2002/09/06 13:18:43 gehenna Exp $");
#include "opt_new_scc_driver.h"
__KERNEL_RCSID(0, "$NetBSD: dec_3000_300.c,v 1.36 2002/09/24 13:30:39 ad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -50,9 +48,6 @@ __KERNEL_RCSID(0, "$NetBSD: dec_3000_300.c,v 1.35 2002/09/06 13:18:43 gehenna Ex
#include <dev/tc/tcvar.h>
#include <dev/tc/tcdsvar.h>
#include <alpha/tc/tc_3000_300.h>
#ifndef NEW_SCC_DRIVER
#include <alpha/tc/sccvar.h>
#endif
#include <machine/z8530var.h>
#include <dev/tc/zs_ioasicvar.h>
@ -101,17 +96,6 @@ dec_3000_300_cons_init()
ctb = (struct ctb *)(((caddr_t)hwrpb) + hwrpb->rpb_ctb_off);
#ifndef NEW_SCC_DRIVER
switch (ctb->ctb_term_type) {
case CTB_GRAPHICS:
alpha_donot_kludge_scc = 1;
return;
case CTB_PRINTERPORT:
return;
default:
goto badconsole;
}
#else
switch (ctb->ctb_term_type) {
case CTB_GRAPHICS:
#if NWSDISPLAY > 0
@ -150,16 +134,12 @@ dec_3000_300_cons_init()
}
default:
goto badconsole;
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %lu\n",
ctb->ctb_term_type);
/* NOTREACHED */
}
#endif
return;
badconsole:
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %lu\n",
ctb->ctb_term_type);
}
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_3000_500.c,v 1.34 2002/09/06 13:18:43 gehenna Exp $ */
/* $NetBSD: dec_3000_500.c,v 1.35 2002/09/24 13:30:39 ad Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@ -32,9 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_3000_500.c,v 1.34 2002/09/06 13:18:43 gehenna Exp $");
#include "opt_new_scc_driver.h"
__KERNEL_RCSID(0, "$NetBSD: dec_3000_500.c,v 1.35 2002/09/24 13:30:39 ad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -50,9 +48,6 @@ __KERNEL_RCSID(0, "$NetBSD: dec_3000_500.c,v 1.34 2002/09/06 13:18:43 gehenna Ex
#include <dev/tc/tcvar.h>
#include <dev/tc/tcdsvar.h>
#include <alpha/tc/tc_3000_500.h>
#ifndef NEW_SCC_DRIVER
#include <alpha/tc/sccvar.h>
#endif
#include <machine/z8530var.h>
#include <dev/tc/zs_ioasicvar.h>
@ -121,18 +116,6 @@ dec_3000_500_cons_init()
ctb = (struct ctb *)(((caddr_t)hwrpb) + hwrpb->rpb_ctb_off);
#ifndef NEW_SCC_DRIVER
switch (ctb->ctb_term_type) {
case CTB_GRAPHICS:
alpha_donot_kludge_scc = 1;
return;
case CTB_PRINTERPORT:
return;
default:
goto badconsole;
}
#else
switch (ctb->ctb_term_type) {
case CTB_GRAPHICS:
#if NWSDISPLAY > 0
@ -171,16 +154,12 @@ dec_3000_500_cons_init()
}
default:
goto badconsole;
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %lu\n",
ctb->ctb_term_type);
/* NOTREACHED */
}
#endif
return;
badconsole:
printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
panic("consinit: unknown console type %lu\n",
ctb->ctb_term_type);
}
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.192 2002/08/24 03:10:52 mhitch Exp $ */
/* $NetBSD: pmap.c,v 1.193 2002/09/24 13:30:39 ad Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -148,13 +148,12 @@
*/
#include "opt_lockdebug.h"
#include "opt_new_scc_driver.h"
#include "opt_sysv.h"
#include "opt_multiprocessor.h"
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.192 2002/08/24 03:10:52 mhitch Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.193 2002/09/24 13:30:39 ad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1010,13 +1009,7 @@ int
pmap_uses_prom_console(void)
{
#if defined(NEW_SCC_DRIVER)
return (cputype == ST_DEC_21000);
#else
return (cputype == ST_DEC_21000
|| cputype == ST_DEC_3000_300
|| cputype == ST_DEC_3000_500);
#endif /* NEW_SCC_DRIVER */
}
#endif /* _PMAP_MAY_USE_PROM_CONSOLE */

View File

@ -1,4 +1,4 @@
# $NetBSD: ALPHA,v 1.169 2002/09/20 10:39:48 martti Exp $
# $NetBSD: ALPHA,v 1.170 2002/09/24 13:30:41 ad Exp $
#
# Alpha kernel with all the options you'd want, and more.
@ -6,7 +6,7 @@ include "arch/alpha/conf/std.alpha"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
ident "ALPHA-$Revision: 1.169 $"
ident "ALPHA-$Revision: 1.170 $"
maxusers 32
@ -136,6 +136,7 @@ options FIX_UNALIGNED_VAX_FP # fix unaligned VAX FP loads & stores
#options NO_KERNEL_RCSIDS # don't include kernel file RCS IDs
options USERCONF # userconf(4) support
#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
options FONT_GALLANT12x22 # Console font for TC devices
# The Alpha console firmware network boots using the BOOTP
# protocol, so we ask the NFS code to use BOOTP/DHCP as well,
@ -192,17 +193,27 @@ tc* at tcasic?
ioasic* at tc? slot ? offset ?
mcclock* at ioasic? offset ?
le* at ioasic? offset ?
scc0 at ioasic? offset ?
scc1 at ioasic? offset ?
zsc0 at ioasic? offset 0x100000
zsc1 at ioasic? offset 0x180000
bba0 at ioasic? offset ?
audio* at bba?
tcds* at tc? slot ? offset ?
asc* at tcds? chip ?
asc* at tc? slot ? offset ?
#cfb* at tc? slot ? offset ?
#sfb* at tc? slot ? offset ?
le* at tc? slot ? offset ?
fta* at tc? slot ? offset ? # DEC DEFTA FDDI cards
cfb* at tc? slot ? offset ?
mfb* at tc? slot ? offset ?
tfb* at tc? slot ? offset ?
sfb* at tc? slot ? offset ?
#sfbp* at tc? slot ? offset ?
px* at tc? slot ? offset ?
pxg* at tc? slot ? offset ?
# TurboChannel serial attachments
zstty* at zsc? channel ? # serial ports on B channels
lkkbd0 at zsc1 channel ? # keyboard port on A channels
vsms0 at zsc0 channel ? # mouse port on A channels
# PCI host bus adapter support
apecs* at mainbus?
@ -508,10 +519,17 @@ uyap* at uhub? port ?
ugen* at uhub? port ?
# Workstation Console attachments
#wsdisplay* at cfb?
wsdisplay* at cfb?
wsdisplay* at mfb?
wsdisplay* at tfb?
wsdisplay* at sfb?
#wsdisplay* at sfbp?
wsdisplay* at px?
wsdisplay* at pxg?
wsdisplay* at vga?
#wsdisplay* at sfb?
wsdisplay* at tga?
wskbd* at lkkbd? console ?
wsmouse* at vsms?
wskbd* at pckbd?
wsmouse* at pms?

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.214 2002/09/24 09:34:39 jdolecek Exp $
# $NetBSD: GENERIC,v 1.215 2002/09/24 13:30:41 ad Exp $
#
# GENERIC machine description file
#
@ -25,7 +25,7 @@ include "arch/alpha/conf/std.alpha"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC-$Revision: 1.214 $"
#ident "GENERIC-$Revision: 1.215 $"
maxusers 32
@ -137,6 +137,7 @@ options UCONSOLE # users can use TIOCCONS (for xconsole)
#options PCMCIAVERBOSE
options USERCONF # userconf(4) support
#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
options FONT_GALLANT12x22 # Console font for TC devices
# The Alpha console firmware network boots using the BOOTP
# protocol, so we ask the NFS code to use BOOTP/DHCP as well,
@ -193,17 +194,27 @@ tc* at tcasic?
ioasic* at tc? slot ? offset ?
mcclock* at ioasic? offset ?
le* at ioasic? offset ?
scc0 at ioasic? offset ?
scc1 at ioasic? offset ?
zsc0 at ioasic? offset 0x100000
zsc1 at ioasic? offset 0x180000
bba0 at ioasic? offset ?
audio* at bba?
tcds* at tc? slot ? offset ?
asc* at tcds? chip ?
asc* at tc? slot ? offset ?
#cfb* at tc? slot ? offset ?
#sfb* at tc? slot ? offset ?
le* at tc? slot ? offset ?
fta* at tc? slot ? offset ? # DEC DEFTA FDDI cards
cfb* at tc? slot ? offset ?
mfb* at tc? slot ? offset ?
tfb* at tc? slot ? offset ?
sfb* at tc? slot ? offset ?
#sfbp* at tc? slot ? offset ?
px* at tc? slot ? offset ?
pxg* at tc? slot ? offset ?
# TurboChannel serial attachments
zstty* at zsc? channel ? # serial ports on B channels
lkkbd0 at zsc1 channel ? # keyboard port on A channels
vsms0 at zsc0 channel ? # mouse port on A channels
# PCI host bus adapter support
apecs* at mainbus?
@ -492,10 +503,17 @@ uyap* at uhub? port ?
ugen* at uhub? port ?
# Workstation Console attachments
#wsdisplay* at cfb?
wsdisplay* at cfb?
wsdisplay* at mfb?
wsdisplay* at tfb?
wsdisplay* at sfb?
#wsdisplay* at sfbp?
wsdisplay* at px?
wsdisplay* at pxg?
wsdisplay* at vga?
#wsdisplay* at sfb?
wsdisplay* at tga?
wskbd* at lkkbd? console ?
wsmouse* at vsms?
wskbd* at pckbd?
wsmouse* at pms?

View File

@ -1,4 +1,4 @@
# $NetBSD: INSTALL,v 1.67 2002/09/18 02:43:54 lukem Exp $
# $NetBSD: INSTALL,v 1.68 2002/09/24 13:30:41 ad Exp $
#
# Alpha INSTALL kernel.
@ -76,6 +76,7 @@ options INSECURE # disable `kernel security level'
options USERCONF # userconf(4) support
options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
options MALLOC_NOINLINE # Not inlining MALLOC saves memory
options FONT_GALLANT12x22 # Console font for TC devices
# The Alpha console firmware network boots using the BOOTP
# protocol, so we ask the NFS code to use BOOTP/DHCP as well,
@ -125,12 +126,24 @@ tc* at tcasic?
ioasic* at tc? slot ? offset ?
mcclock* at ioasic? offset ?
le* at ioasic? offset ?
scc0 at ioasic? offset ?
scc1 at ioasic? offset ?
zsc0 at ioasic? offset 0x100000
zsc1 at ioasic? offset 0x180000
tcds* at tc? slot ? offset ?
asc* at tcds? chip ?
le* at tc? slot ? offset ?
fta* at tc? slot ? offset ? # DEC DEFTA FDDI cards
cfb* at tc? slot ? offset ?
mfb* at tc? slot ? offset ?
tfb* at tc? slot ? offset ?
sfb* at tc? slot ? offset ?
#sfbp* at tc? slot ? offset ?
px* at tc? slot ? offset ?
pxg* at tc? slot ? offset ?
# TurboChannel serial attachments
zstty* at zsc? channel ? # serial ports on B channels
lkkbd0 at zsc1 channel ? # keyboard port on A channels
vsms0 at zsc0 channel ? # mouse port on A channels
# PCI host bus adapter support
apecs* at mainbus?
@ -291,6 +304,15 @@ ld* at mlx? unit ?
# Workstation Console attachments
wsdisplay* at vga?
wsdisplay* at tga?
wsdisplay* at cfb?
wsdisplay* at mfb?
wsdisplay* at tfb?
wsdisplay* at sfb?
#wsdisplay* at sfbp?
wsdisplay* at px?
wsdisplay* at pxg?
wskbd* at lkkbd? console ?
wsmouse* at vsms?
wskbd* at pckbd?
wsmouse* at pms?

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.alpha,v 1.72 2001/12/09 05:02:21 atatat Exp $
# $NetBSD: Makefile.alpha,v 1.73 2002/09/24 13:30:41 ad Exp $
# Makefile for NetBSD
#
@ -69,7 +69,7 @@ STRIPFLAGS= -g -X
##
# depend on CPU configuration
clock.o apecs.o cia.o lca.o ioasic.o scc.o icasic.o: Makefile
clock.o apecs.o cia.o lca.o ioasic.o icasic.o: Makefile
##
## (7) misc settings

View File

@ -1,190 +0,0 @@
# $NetBSD: TCWSCONS,v 1.29 2002/09/18 02:43:55 lukem Exp $
#
# TURBOchannel Alpha DEC3000
include "arch/alpha/conf/std.alpha"
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "TCWSCONS-$Revision: 1.29 $"
maxusers 32
# CPU Support
options DEC_3000_500 # Flamingo etc: 3000/[4-9]00*
options DEC_3000_300 # Pelican etc: 3000/300*
# Standard system options
options KTRACE # System call tracing support
options NTP # kernel PLL for NTP
# Diagnostic/debugging support options
options DIAGNOSTIC # Cheap kernel consistency checks
options DDB # kernel debugger
#makeoptions DEBUG="-g"
# File systems
file-system FFS # Fast file system
file-system MFS # Memory-based file system
#file-system LFS # Log-based filesystem (still experimental)
file-system CD9660 # ISO-9660 CD-ROM FS (w/RockRidge extensions)
file-system MSDOSFS # MS-DOS-compatible file system
file-system NTFS # Windows/NT file system (experimental)
file-system NFS # Sun NFS-compatible file system client
file-system NULLFS # Null file system layer
file-system KERNFS # Kernel variable file system (/kern)
#file-system FDESC # File descriptor file system (/dev/fd)
#file-system PORTAL # Portal file system
#file-system OVERLAY # overlay file system
#file-system UMAPFS # User-mapping file system layer
file-system PROCFS # Process file system (/proc)
#file-system UNION # union file system
# File system options
options NFSSERVER # Sun NFS-compatible file system server
#options FFS_EI # FFS Endian Independant support
options SOFTDEP # FFS soft updates support.
# Networking options
options INET # Internet protocol suite
options INET6 # IPV6
#options IPSEC # IP security
#options IPSEC_ESP # IP security (encryption part; define w/IPSEC)
#options IPSEC_DEBUG # debug for IP security
# 4.3BSD compatibility. Should be optional, but necessary for now.
options COMPAT_43
# Binary compatibility with previous versions of NetBSD.
#options COMPAT_09
options COMPAT_10
options COMPAT_11
options COMPAT_12
options COMPAT_13
options COMPAT_14
# OSF/1 binary compatibility
options COMPAT_OSF1
# Linux binary compatibility
options COMPAT_LINUX
# System V-like message queues
options SYSVMSG
# System V-like semaphores
options SYSVSEM
# System V-like shared memory
options SYSVSHM
#options SHMMAXPGS=1024 # 1024 pages is the default
# Loadable Kernel Modules
options LKM
# Disable kernel security. Needed for X on a px or pxg.
#options INSECURE
# Misc. options
options SCSIVERBOSE # Verbose SCSI errors
options TCVERBOSE # recognize "unknown" TC devices
options UCONSOLE # users can use TIOCCONS (for xconsole)
options USERCONF # userconf(4) support
#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
# The Alpha console firmware network boots using the BOOTP
# protocol, so we ask the NFS code to use BOOTP/DHCP as well,
# in case we have NFS root.
options NFS_BOOT_DHCP # superset of BOOTP
# Raster console options
options FONT_GALLANT12x22
#options FONT_LUCIDA16x29
#options FONT_BOLD8x16 # XXX not supported by HX
#options FONT_VT220L8x10 # XXX not supported by HX
#options FONT_VT220L8x8 # XXX not supported by HX
#options FONT_QVSS8x15 # XXX not supported by HX
# WS console uses SUN or VT100 terminal emulation
options WSEMUL_VT100
# realtime clock compatible to OSF/1
#options CLOCK_COMPAT_OSF1
config netbsd root on ? type ?
#config netbsd root on sd0 type ffs
#config netbsd root on ? type nfs
mainbus0 at root
cpu* at mainbus0
# TURBOchannel host bus adapter support
tcasic* at mainbus0
# TURBOchannel bus support
tc* at tcasic?
# TURBOchannel devices
ioasic* at tc? slot ? offset ?
mcclock* at ioasic? offset ?
le* at ioasic? offset ?
zsc0 at ioasic? offset 0x100000
zsc1 at ioasic? offset 0x180000
bba0 at ioasic? offset ?
audio* at bba?
tcds* at tc? slot ? offset ?
asc* at tcds? chip ?
#cfb* at tc? slot ? offset ?
#mfb* at tc? slot ? offset ?
#tfb* at tc? slot ? offset ?
sfb* at tc? slot ? offset ?
#sfbp* at tc? slot ? offset ?
#px* at tc? slot ? offset ?
#pxg* at tc? slot ? offset ?
le* at tc? slot ? offset ?
fta* at tc? slot ? offset ? # DEC DEFTA FDDI cards
options NEW_SCC_DRIVER
zstty* at zsc? channel ? # serial ports on B channels
lkkbd0 at zsc1 channel ? # keyboard port on A channels
vsms0 at zsc0 channel ? # mouse port on A channels
# SCSI bus support
scsibus* at asc?
# SCSI devices
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
sd* at scsibus? target ? lun ? # SCSI disk drives
st* at scsibus? target ? lun ? # SCSI tape drives
# Workstation Console attachments
#wsdisplay* at cfb?
#wsdisplay* at mfb?
#wsdisplay* at tfb?
wsdisplay* at sfb?
#wsdisplay* at sfbp?
#wsdisplay* at px?
#wsdisplay* at pxg?
wskbd* at lkkbd? console ?
wsmouse* at vsms?
pseudo-device bpfilter 16
pseudo-device ccd 4
#pseudo-device raid 4 # RAIDframe disk driver
#options RAID_AUTOCONFIG # auto-configuration of RAID components
pseudo-device ipfilter 1
pseudo-device loop 1
pseudo-device md 1
pseudo-device ppp 4
pseudo-device pty # pseudo-terminals
pseudo-device sl 4
pseudo-device vnd 4
#pseudo-device gre 2 # generic L3 over IP tunnel
pseudo-device gif 4 # IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device faith 1 # IPv[46] tcp relay translation i/f
#pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation
pseudo-device vlan # IEEE 802.1q encapsulation
#pseudo-device sequencer 1 # MIDI sequencer
pseudo-device rnd # /dev/random and in-kernel generator
#options RND_COM # use "com" randomness too
pseudo-device clockctl # user control of clock subsystem

View File

@ -1,4 +1,4 @@
# $NetBSD: files.alpha,v 1.157 2002/09/06 13:18:43 gehenna Exp $
# $NetBSD: files.alpha,v 1.158 2002/09/24 13:30:42 ad Exp $
#
# alpha-specific configuration info
@ -33,9 +33,6 @@ defflag API_UP1000 # EV6 Alpha Processor, Inc. UP1000
defflag FIX_UNALIGNED_VAX_FP
defflag ZS_IOASIC_DMA
# XXX Temporary, until integration is finished.
defflag NEW_SCC_DRIVER
# realtime clock compatible to OSF/1
defflag CLOCK_COMPAT_OSF1
@ -189,11 +186,6 @@ device pxg: wsemuldisplaydev, stic
attach pxg at tc
file dev/tc/pxg.c pxg needs-flag
# 8530 UARTs
device scc: tty
attach scc at ioasic
file arch/alpha/tc/scc.c scc needs-count
# 8530 UARTs using the MI 8530 driver
device zsc { channel = -1 }
attach zsc at ioasic with zsc_ioasic

View File

@ -1,4 +1,4 @@
# $NetBSD: majors.alpha,v 1.2 2002/09/06 13:18:43 gehenna Exp $
# $NetBSD: majors.alpha,v 1.3 2002/09/24 13:30:42 ad Exp $
#
# Device majors for alpha
#
@ -19,7 +19,6 @@ device-major st char 12 block 2 st
device-major cd char 13 block 3 cd
device-major ch char 14 ch
device-major zstty char 15 zstty
device-major scc char 15 scc & !zstty
device-major lkm char 16 lkm
device-major prom char 23

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.56 2002/09/22 07:53:40 chs Exp $ */
/* $NetBSD: pmap.h,v 1.57 2002/09/24 13:30:43 ad Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -157,22 +157,11 @@ typedef struct pv_entry {
#ifdef _KERNEL
#ifndef _LKM
#include "opt_new_scc_driver.h"
#include "opt_dec_3000_300.h" /* XXX */
#include "opt_dec_3000_500.h" /* XXX */
#include "opt_dec_kn8ae.h" /* XXX */
#if defined(NEW_SCC_DRIVER)
#if defined(DEC_KN8AE)
#define _PMAP_MAY_USE_PROM_CONSOLE
#endif
#else /* ! NEW_SCC_DRIVER */
#if defined(DEC_3000_300) \
|| defined(DEC_3000_500) \
|| defined(DEC_KN8AE) /* XXX */
#define _PMAP_MAY_USE_PROM_CONSOLE /* XXX */
#endif /* XXX */
#endif /* NEW_SCC_DRIVER */
#if defined(MULTIPROCESSOR)
struct cpu_info;

File diff suppressed because it is too large Load Diff

View File

@ -1,176 +0,0 @@
/* $NetBSD: sccreg.h,v 1.3 1997/04/06 22:30:30 cgd Exp $ */
/*
* Copyright (c) 1991,1990,1989,1994,1995 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/*-
* 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 and Rick Macklem.
*
* 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.
*
* @(#)sccreg.h 8.1 (Berkeley) 6/10/93
*/
/*
* Definitions for Intel 82530 serial communications chip. Each chip is a
* dual uart with the A channels used for the keyboard and mouse with the B
* channel(s) for comm ports with modem control. Since some registers are
* used for the other channel, the following macros are used to access the
* register ports.
*
* Actual access to the registers is provided by sccvar.h, as it's
* machine-dependent.
*/
/* Scc channel numbers; B channel comes first. */
#define SCC_CHANNEL_B 0
#define SCC_CHANNEL_A 1
#define SCC_INIT_REG(scc, chan) { \
char tmp; \
scc_get_datum((scc)->scc_channel[(chan)].scc_command, tmp); \
scc_get_datum((scc)->scc_channel[(chan)].scc_command, tmp); \
}
#define SCC_READ_REG(scc, chan, reg, val) { \
scc_set_datum((scc)->scc_channel[(chan)].scc_command, reg); \
scc_get_datum((scc)->scc_channel[(chan)].scc_command, val); \
}
#define SCC_READ_REG_ZERO(scc, chan, val) { \
scc_get_datum((scc)->scc_channel[(chan)].scc_command, val); \
}
#define SCC_WRITE_REG(scc, chan, reg, val) { \
scc_set_datum((scc)->scc_channel[(chan)].scc_command, reg); \
scc_set_datum((scc)->scc_channel[(chan)].scc_command, val); \
}
#define SCC_WRITE_REG_ZERO(scc, chan, val) { \
scc_set_datum((scc)->scc_channel[(chan)].scc_command, val); \
}
#define SCC_READ_DATA(scc, chan, val) { \
scc_get_datum((scc)->scc_channel[(chan)].scc_data, val); \
}
#define SCC_WRITE_DATA(scc, chan, val) { \
scc_set_datum((scc)->scc_channel[(chan)].scc_data, val); \
}
/* Addressable registers. */
#define SCC_RR0 0 /* status register */
#define SCC_RR1 1 /* special receive conditions */
#define SCC_RR8 8 /* recv buffer (alias for data) */
#define SCC_RR10 10 /* sdlc status */
#define SCC_RR15 15 /* interrupts currently enabled */
#define SCC_WR0 0 /* reg select, and commands */
#define SCC_WR1 1 /* interrupt and DMA enables */
#define SCC_WR3 3 /* receiver params and enables */
#define SCC_WR4 4 /* clock/char/parity params */
#define SCC_WR5 5 /* xmit params and enables */
#define SCC_WR8 8 /* xmit buffer (alias for data) */
#define SCC_WR9 9 /* vectoring and resets */
#define SCC_WR10 10 /* synchr params */
#define SCC_WR11 11 /* clocking definitions */
#define SCC_WR14 14 /* BRG enables and commands */
#define SCC_WR15 15 /* interrupt enables */
/* Read register's defines. */
/*
* RR2 contains the interrupt vector unmodified (channel A) or
* modified as follows (channel B, if vector-include-status).
*/
#define SCC_RR2_STATUS(val) ((val)&0xf)
#define SCC_RR2_B_XMIT_DONE 0x0
#define SCC_RR2_B_EXT_STATUS 0x2
#define SCC_RR2_B_RECV_DONE 0x4
#define SCC_RR2_B_RECV_SPECIAL 0x6
#define SCC_RR2_A_XMIT_DONE 0x8
#define SCC_RR2_A_EXT_STATUS 0xa
#define SCC_RR2_A_RECV_DONE 0xc
#define SCC_RR2_A_RECV_SPECIAL 0xe
/* RR12/RR13 hold the timing base, upper byte in RR13. */
#define SCC_GET_TIMING_BASE(scc, chan, val) { \
register char tmp; \
SCC_READ_REG(scc, chan, ZSRR_BAUDLO, val); \
SCC_READ_REG(scc, chan, ZSRR_BAUDHI, tmp); \
(val) = ((val) << 8) | (tmp & 0xff); \
}
/*
* Write register's defines.
*/
/* WR12/WR13 are for timing base preset */
#define SCC_SET_TIMING_BASE(scc, chan, val) { \
SCC_WRITE_REG(scc, chan, ZSWR_BAUDLO, val); \
SCC_WRITE_REG(scc, chan, ZSWR_BAUDHI, (val) >> 8); \
}
/* Bits in dm lsr, copied from dmreg.h. */
#define DML_DSR 0000400 /* data set ready, not a real DM bit */
#define DML_RNG 0000200 /* ring */
#define DML_CAR 0000100 /* carrier detect */
#define DML_CTS 0000040 /* clear to send */
#define DML_SR 0000020 /* secondary receive */
#define DML_ST 0000010 /* secondary transmit */
#define DML_RTS 0000004 /* request to send */
#define DML_DTR 0000002 /* data terminal ready */
#define DML_LE 0000001 /* line enable */

View File

@ -1,121 +0,0 @@
/* $NetBSD: sccvar.h,v 1.8 2002/05/13 01:33:13 matt Exp $ */
/*
* Copyright (c) 1991,1990,1989,1994,1995 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/*-
* 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 and Rick Macklem.
*
* 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.
*
* from: @(#)sccreg.h 8.1 (Berkeley) 6/10/93
*/
/*
* Definitions for Intel 82530 serial communications chip. Each chip is a
* dual uart with the A channels used for the keyboard and mouse with the B
* channel(s) for comm ports with modem control. Since some registers are
* used for the other channel, the following macros are used to access the
* register ports.
*/
#if 1
#define alpha_sparse
#endif
#define DENSE
#ifdef alpha_sparse
#undef DENSE
#define SPARSE
#endif
typedef struct {
struct {
volatile u_int scc_command; /* Register select. */
#ifdef SPARSE
u_int scc_pad0;
#endif
volatile u_int scc_data; /* Rx/Tx buffer */
#ifdef SPARSE
u_int scc_pad1;
#endif
} scc_channel[2];
} scc_regmap_t;
#define scc_get_datum(d, v) \
do { (v) = ((d) >> 8) & 0xff; alpha_mb(); DELAY(5); } while (0)
#define scc_set_datum(d, v) \
do { (d) = (volatile unsigned int)(v) << 8; alpha_mb(); DELAY(5); } while (0)
/* From <pmax/dev/pdma.h>. */
struct pdma {
void *p_addr;
char *p_mem;
char *p_end;
int p_arg;
void (*p_fcn) __P((struct tty *tp));
};
/*
* Minor device numbers for scc. Weird because B channel comes first and
* the A channels are wired for keyboard/mouse and the B channels for the
* comm port(s).
*/
#define SCCCOMM2_PORT 0x0
#define SCCMOUSE_PORT 0x1
#define SCCCOMM3_PORT 0x2
#define SCCKBD_PORT 0x3
extern int alpha_donot_kludge_scc;