Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp700 Added hp700-specific files. Still a work in ...



details:   https://anonhg.NetBSD.org/src/rev/be5d23b163f7
branches:  trunk
changeset: 532391:be5d23b163f7
user:      fredette <fredette%NetBSD.org@localhost>
date:      Thu Jun 06 19:48:01 2002 +0000

description:
Added hp700-specific files.  Still a work in progress.

diffstat:

 sys/arch/hp700/Makefile                   |     5 +
 sys/arch/hp700/compile/.keep_me           |     3 +
 sys/arch/hp700/conf/GENERIC               |   580 +++++++++++
 sys/arch/hp700/conf/Makefile.hp700        |   138 ++
 sys/arch/hp700/conf/files.hp700           |   214 ++++
 sys/arch/hp700/conf/ld.script             |    54 +
 sys/arch/hp700/conf/std.hp700             |     8 +
 sys/arch/hp700/dev/Makefile               |    10 +
 sys/arch/hp700/dev/asp.c                  |   206 ++++
 sys/arch/hp700/dev/clock.c                |   159 +++
 sys/arch/hp700/dev/cpu.c                  |   187 +++
 sys/arch/hp700/dev/cpudevs                |   453 ++++++++
 sys/arch/hp700/dev/cpudevs.h              |   318 ++++++
 sys/arch/hp700/dev/cpudevs_data.h         |   299 +++++
 sys/arch/hp700/dev/devlist2h.awk          |   125 ++
 sys/arch/hp700/dev/lasi.c                 |   145 ++
 sys/arch/hp700/dev/mem.c                  |   394 +++++++
 sys/arch/hp700/dev/mongoose.c             |   696 +++++++++++++
 sys/arch/hp700/dev/pdc.c                  |   459 ++++++++
 sys/arch/hp700/dev/sti_sgc.c              |   205 +++
 sys/arch/hp700/dev/viper.h                |   243 ++++
 sys/arch/hp700/dev/wax.c                  |    80 +
 sys/arch/hp700/gsc/com_gsc.c              |   159 +++
 sys/arch/hp700/gsc/fdc_gsc.c              |   101 +
 sys/arch/hp700/gsc/gscbus.c               |   361 +++++++
 sys/arch/hp700/gsc/gscbusvar.h            |    84 +
 sys/arch/hp700/gsc/if_ie_gsc.c            |   592 +++++++++++
 sys/arch/hp700/gsc/lpt_gsc.c              |   215 ++++
 sys/arch/hp700/gsc/osiop_gsc.c            |   216 ++++
 sys/arch/hp700/gsc/siop_gsc.c             |   146 ++
 sys/arch/hp700/hp700/autoconf.c           |   407 +++++++
 sys/arch/hp700/hp700/conf.c               |   353 ++++++
 sys/arch/hp700/hp700/disksubr.c           |   885 +++++++++++++++++
 sys/arch/hp700/hp700/genassym.cf          |   189 +++
 sys/arch/hp700/hp700/intr.c               |   470 +++++++++
 sys/arch/hp700/hp700/intr.h               |    75 +
 sys/arch/hp700/hp700/locore.S             |  1027 ++++++++++++++++++++
 sys/arch/hp700/hp700/machdep.c            |  1488 +++++++++++++++++++++++++++++
 sys/arch/hp700/hp700/machdep.h            |   130 ++
 sys/arch/hp700/hp700/mainbus.c            |  1339 ++++++++++++++++++++++++++
 sys/arch/hp700/hp700/pim.h                |   271 +++++
 sys/arch/hp700/hp700/softintr.c           |   230 ++++
 sys/arch/hp700/hp700/sys_machdep.c        |    30 +
 sys/arch/hp700/include/Makefile           |    25 +
 sys/arch/hp700/include/ansi.h             |     3 +
 sys/arch/hp700/include/aout_machdep.h     |     3 +
 sys/arch/hp700/include/asm.h              |     3 +
 sys/arch/hp700/include/autoconf.h         |    72 +
 sys/arch/hp700/include/bswap.h            |     3 +
 sys/arch/hp700/include/bus.h              |   442 ++++++++
 sys/arch/hp700/include/byte_swap.h        |     3 +
 sys/arch/hp700/include/cdefs.h            |     3 +
 sys/arch/hp700/include/conf.h             |    53 +
 sys/arch/hp700/include/cpu.h              |   218 ++++
 sys/arch/hp700/include/cpufunc.h          |     3 +
 sys/arch/hp700/include/db_machdep.h       |     3 +
 sys/arch/hp700/include/disklabel.h        |   353 ++++++
 sys/arch/hp700/include/eisa_machdep.h     |    73 +
 sys/arch/hp700/include/elf_machdep.h      |     3 +
 sys/arch/hp700/include/endian.h           |     3 +
 sys/arch/hp700/include/endian_machdep.h   |     3 +
 sys/arch/hp700/include/exec.h             |     3 +
 sys/arch/hp700/include/float.h            |     3 +
 sys/arch/hp700/include/frame.h            |     3 +
 sys/arch/hp700/include/ieee.h             |     3 +
 sys/arch/hp700/include/ieeefp.h           |     3 +
 sys/arch/hp700/include/int_const.h        |     3 +
 sys/arch/hp700/include/int_fmtio.h        |     3 +
 sys/arch/hp700/include/int_limits.h       |     3 +
 sys/arch/hp700/include/int_mwgwtypes.h    |     3 +
 sys/arch/hp700/include/int_types.h        |     3 +
 sys/arch/hp700/include/intr.h             |   198 +++
 sys/arch/hp700/include/iomod.h            |   438 ++++++++
 sys/arch/hp700/include/isa_machdep.h      |    65 +
 sys/arch/hp700/include/kcore.h            |     3 +
 sys/arch/hp700/include/limits.h           |     3 +
 sys/arch/hp700/include/loadfile_machdep.h |    82 +
 sys/arch/hp700/include/lock.h             |     3 +
 sys/arch/hp700/include/math.h             |     3 +
 sys/arch/hp700/include/nvm.h              |    76 +
 sys/arch/hp700/include/param.h            |    39 +
 sys/arch/hp700/include/pcb.h              |     3 +
 sys/arch/hp700/include/pdc.h              |   637 ++++++++++++
 sys/arch/hp700/include/pmap.h             |     3 +
 sys/arch/hp700/include/proc.h             |     3 +
 sys/arch/hp700/include/profile.h          |     3 +
 sys/arch/hp700/include/psl.h              |     3 +
 sys/arch/hp700/include/pte.h              |     3 +
 sys/arch/hp700/include/ptrace.h           |     3 +
 sys/arch/hp700/include/reg.h              |     3 +
 sys/arch/hp700/include/reloc.h            |     3 +
 sys/arch/hp700/include/setjmp.h           |     3 +
 sys/arch/hp700/include/signal.h           |     3 +
 sys/arch/hp700/include/som.h              |     3 +
 sys/arch/hp700/include/spinlock.h         |     3 +
 sys/arch/hp700/include/stdarg.h           |     3 +
 sys/arch/hp700/include/trap.h             |     3 +
 sys/arch/hp700/include/types.h            |    10 +
 sys/arch/hp700/include/varargs.h          |     3 +
 sys/arch/hp700/include/vmparam.h          |     3 +
 sys/arch/hp700/stand/Makefile             |     7 +
 sys/arch/hp700/stand/Makefile.buildboot   |    86 +
 sys/arch/hp700/stand/Makefile.inc         |    21 +
 sys/arch/hp700/stand/boot/Makefile        |    34 +
 sys/arch/hp700/stand/boot/boot.8          |     4 +
 sys/arch/hp700/stand/boot/boot.c          |   277 +++++
 sys/arch/hp700/stand/boot/conf.c          |    66 +
 sys/arch/hp700/stand/boot/ld.script       |    51 +
 sys/arch/hp700/stand/boot/srt0.S          |   161 +++
 sys/arch/hp700/stand/boot/tgets.c         |   105 ++
 sys/arch/hp700/stand/boot/version         |     3 +
 sys/arch/hp700/stand/common/cons.c        |    96 +
 sys/arch/hp700/stand/common/ct.c          |   111 ++
 sys/arch/hp700/stand/common/dev_hppa.c    |   267 +++++
 sys/arch/hp700/stand/common/dev_hppa.h    |    45 +
 sys/arch/hp700/stand/common/dk.c          |   110 ++
 sys/arch/hp700/stand/common/exec_hppa.c   |    92 +
 sys/arch/hp700/stand/common/exec_som.c    |    97 +
 sys/arch/hp700/stand/common/itecons.c     |   228 ++++
 sys/arch/hp700/stand/common/lf.c          |    66 +
 sys/arch/hp700/stand/common/libsa.h       |    98 +
 sys/arch/hp700/stand/common/lif.c         |   275 +++++
 sys/arch/hp700/stand/common/machdep.c     |    90 +
 sys/arch/hp700/stand/common/pdc.c         |   466 +++++++++
 sys/arch/hp700/stand/common/time.c        |    63 +
 sys/arch/hp700/stand/mkboot/Makefile      |    12 +
 sys/arch/hp700/stand/mkboot/mkboot.8      |     4 +
 sys/arch/hp700/stand/mkboot/mkboot.c      |   442 ++++++++
 128 files changed, 20033 insertions(+), 0 deletions(-)

diffs (truncated from 20545 to 300 lines):

diff -r da7875a11f5f -r be5d23b163f7 sys/arch/hp700/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hp700/Makefile   Thu Jun 06 19:48:01 2002 +0000
@@ -0,0 +1,5 @@
+#      $NetBSD: Makefile,v 1.1 2002/06/06 19:48:01 fredette Exp $
+
+SUBDIR=        include stand
+
+.include <bsd.subdir.mk>
diff -r da7875a11f5f -r be5d23b163f7 sys/arch/hp700/compile/.keep_me
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hp700/compile/.keep_me   Thu Jun 06 19:48:01 2002 +0000
@@ -0,0 +1,3 @@
+$NetBSD: .keep_me,v 1.1 2002/06/06 19:48:02 fredette Exp $
+
+This normally empty directory needs to be kept in the distribution.
diff -r da7875a11f5f -r be5d23b163f7 sys/arch/hp700/conf/GENERIC
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hp700/conf/GENERIC       Thu Jun 06 19:48:01 2002 +0000
@@ -0,0 +1,580 @@
+# $NetBSD: GENERIC,v 1.1 2002/06/06 19:48:02 fredette Exp $
+#
+# GENERIC machine description file
+# 
+# This machine description file is used to generate the default NetBSD
+# kernel.  The generic kernel does not include all options, subsystems
+# and device drivers, but should be useful for most applications.
+#
+# The machine description file can be customised for your specific
+# machine to reduce the kernel size and improve its performance.
+#
+# For further information on compiling NetBSD kernels, see the config(8)
+# man page.
+#
+# For further information on hardware support for this architecture, see
+# the intro(4) man page.  For further information about kernel options
+# for this architecture, see the options(4) man page.  For an explanation
+# of each device driver in this file see the section 4 man page for the
+# device.
+
+include        "arch/hp700/conf/std.hp700"
+
+options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
+
+#ident                 "GENERIC-$Revision: 1.1 $"
+
+maxusers       32              # estimated number of users
+
+# CPU support.  At least one is REQUIRED.
+options        HP7000_CPU              # PCX, PCX-S
+options        HP7100_CPU,HP7150_CPU   # PCX-T
+options        HP7100LC_CPU            # PCX-L
+options        HP7200_CPU,HP7250_CPU   # PCX-T'
+options        HP7300LC_CPU            # PCX-L2
+#options       HP8000_CPU              # PCX-U  (in 32bit mode)
+#options       HP8200_CPU              # PCX-V/U+ (in 32bit mode)
+#options       HP8500_CPU              # PCX-W  (in 32bit mode)
+#options       HP8600_CPU              # PCX-W+ (in 32bit mode)
+
+# CPU-related options.
+options        FPEMUL          # floating point emulation XXX DO NOT REMOVE
+options        USELEDS         # blink 'em
+
+# delay between "rebooting ..." message and hardware reset, in milliseconds
+#options       CPURESET_DELAY=2000
+
+# Standard system options
+
+options        UCONSOLE        # users can use TIOCCONS (for xconsole)
+options        INSECURE        # disable kernel security levels
+
+options        NTP             # NTP phase/frequency locked loop
+
+options        KTRACE          # system call tracing via ktrace(1)
+
+options        SYSVMSG         # System V-like message queues
+options        SYSVSEM         # System V-like semaphores
+#options       SEMMNI=10       # number of semaphore identifiers
+#options       SEMMNS=60       # number of semaphores in system
+#options       SEMUME=10       # max number of undo entries per process
+#options       SEMMNU=30       # number of undo structures in system
+options        SYSVSHM         # System V-like memory sharing
+#options       SHMMAXPGS=1024  # 1024 pages is the default
+
+options        LKM             # loadable kernel modules
+
+# Diagnostic/debugging support options
+#options       DIAGNOSTIC      # expensive kernel consistency checks
+#options       DEBUG           # expensive debugging checks/support
+#options       KMEMSTATS       # kernel memory statistics (vmstat -m)
+options        DDB             # in-kernel debugger
+options        DDB_HISTORY_SIZE=512    # enable history editing in DDB
+#options       KGDB            # remote debugger
+#options       "KGDB_DEVNAME=\"com\"",KGDBADDR=0xf0822000,KGDBRATE=9600
+#makeoptions   DEBUG="-g"      # compile full symbol table
+
+# Compatibility options
+options        COMPAT_15       # compatability with NetBSD 1.5,
+options        COMPAT_43       # and 4.3BSD
+#options       TCP_COMPAT_42   # 4.2BSD TCP/IP bug compat. Not recommended.
+
+#options       COMPAT_HPUX     # HP-UX binary compatibility
+#options       COMPAT_OSF1     # OSF1 binary compatibility
+#options       COMPAT_LINUX    # binary compatibility with Linux
+
+# File systems
+file-system    FFS             # UFS
+file-system    EXT2FS          # second extended file system (linux)
+file-system    LFS             # log-structured file system
+file-system    MFS             # memory file system
+file-system    NFS             # Network File System client
+file-system    NTFS            # Windows/NT file system (experimental)
+file-system    CD9660          # ISO 9660 + Rock Ridge file system
+file-system    MSDOSFS         # MS-DOS file system
+file-system    FDESC           # /dev/fd
+file-system    KERNFS          # /kern
+file-system    NULLFS          # loopback file system
+file-system    OVERLAY         # overlay file system
+file-system    PORTAL          # portal filesystem (still experimental)
+file-system    PROCFS          # /proc
+file-system    UMAPFS          # NULLFS + uid and gid remapping
+file-system    UNION           # union file system
+file-system    CODA            # Coda File System; also needs vcoda (below)
+
+# File system options
+options        QUOTA           # UFS quotas
+#options       FFS_EI          # FFS Endian Independent support
+options        SOFTDEP         # FFS soft updates support.
+options        NFSSERVER       # Network File System server
+#options       EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
+                               # immutable) behave as system flags.
+
+# Networking options
+#options       GATEWAY         # packet forwarding
+options        INET            # IP + ICMP + TCP + UDP
+options        INET6           # IPV6
+#options       IPSEC           # IP security
+#options       IPSEC_ESP       # IP security (encryption part; define w/IPSEC)
+#options       IPSEC_DEBUG     # debug for IP security
+#options       MROUTING        # IP multicast routing
+options        NS              # XNS
+#options       NSIP            # XNS tunneling over IP
+options        ISO,TPIP        # OSI
+#options       EON             # OSI tunneling over IP
+options        CCITT,LLC,HDLC  # X.25
+options        NETATALK        # AppleTalk networking protocols
+options        PPP_BSDCOMP     # BSD-Compress compression support for PPP
+options        PPP_DEFLATE     # Deflate compression support for PPP
+options        PPP_FILTER      # Active filter support for PPP (requires bpf)
+options        PFIL_HOOKS      # pfil(9) packet filter hooks
+options        IPFILTER_LOG    # ipmon(8) log support
+#options       TCP_DEBUG       # Record last TCP_NDEBUG packets with SO_DEBUG
+
+# These options enable verbose messages for several subsystems.
+# Warning, these may compile large string tables into the kernel!
+options        GSCVERBOSE      # verbose GSC device autoconfig messages
+options        EISAVERBOSE     # verbose EISA device autoconfig messages
+options        MIIVERBOSE      # verbose PHY autoconfig messages
+options        SCSIVERBOSE     # human readable SCSI error messages
+
+options        NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
+
+#
+# wscons options
+#
+# builtin terminal emulations
+options        WSEMUL_DUMB
+#options       WSEMUL_SUN              # sun terminal emulation
+options        WSEMUL_VT100            # VT100 / VT220 emulation
+# different kernel output - see dev/wscons/wsdisplayvar.h
+options        WS_KERNEL_FG=WSCOL_GREEN
+#options       WS_KERNEL_BG=WSCOL_BLACK
+# compatibility to other console drivers
+options        WSDISPLAY_COMPAT_PCVT           # emulate some ioctls
+options        WSDISPLAY_COMPAT_SYSCONS        # emulate some ioctls
+options        WSDISPLAY_COMPAT_USL            # VT handling
+options        WSDISPLAY_COMPAT_RAWKBD         # can get raw scancodes
+# see dev/pckbc/wskbdmap_mfii.c for implemented layouts
+#options       PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
+# allocate a number of virtual screens at autoconfiguration time
+#options       WSDISPLAY_DEFAULTSCREENS=4
+# use a large software cursor that doesn't blink
+options        PCDISPLAY_SOFTCURSOR
+# modify the screen type of the console; defaults to "80x25"
+#options       VGA_CONSOLE_SCREENTYPE="\"80x24\""
+
+# Kernel root file system and dump configuration.
+config         netbsd  root on ? type ?
+#config                netbsd  root on sd0a type ffs
+#config                netbsd  root on ? type nfs
+
+#
+# Device configuration
+#
+
+mainbus0 at root
+
+# CPU and memory - DO NOT REMOVE THESE
+cpu*   at mainbus0 irq 31      # HP PA-RISC cpu
+mem*   at mainbus0             # /dev/*mem and memory controller
+
+# Coprocessor/SFU Support
+#fpu*  at mainbus0             # HP PA-RISC fpu (iv N/A)
+#pmu*  at mainbus0             # HP PA-RISC perfomance monitor unit (iv 29)
+#power*        at mainbus0             # power/fail manager (iv 2)
+
+# STI graphics
+sti*   at mainbus0 irq ?       # [H]CRX-{8,24,48}[Z] graphics
+
+# Basic Bus Support
+lasi*  at mainbus0 irq 28      # LASI host adapter (LSI PN??? )
+asp*   at mainbus0 irq 28      # this one comes w/ Viper and leds
+#wax*  at mainbus0 irq 28      # Wax may host EISA as well
+mongoose* at mainbus0 irq 17   # EISA Bus Adapter (i82350 or TI??? )
+#vmeb* at mainbus0 irq ?       # VME bus adapter
+#dino* at mainbus0 irq ?       # PCI bus bridge
+pdc0   at mainbus0             # PDC/IODC wrapper for boot console
+
+# GSC bus support
+gsc*   at lasi?                # 712
+gsc*   at asp?                 # 7xx (old)
+#gsc*  at wax?                 # {725,715}/{64,80,100}, C*, B*, J*
+
+# PCI bus support
+#pci*  at dino?
+
+# EISA bus support
+eisa*  at mongoose?
+#eisa* at wax?
+#eisa0 at pceb?
+
+# ISA bus support
+#isa*  at mongoose?
+#isa*  at wax?
+#isa0  at pceb?
+#isa0  at pcib?
+
+# VME bus support
+#vme*  at vmeb?
+
+# Console Devices
+
+# Human Interface Loop
+#hil*          at gsc? irq 1
+#hkbd*         at hil? code 0  # keyboard
+#hms*          at hil? code 1  # mice & trackballs
+
+# wscons
+#pckbc*                at gsc? irq 26          # pc keyboard controller
+#pckbd*                at pckbc?               # PC keyboard
+#pms*          at pckbc?               # PS/2 mouse for wsmouse
+#vga0          at isa?
+#vga*          at pci? dev ? function ?
+#pcdisplay0    at isa?                 # CGA, MDA, EGA, HGA
+wsdisplay*     at sti?
+#wsdisplay*    at vga? console ?
+#wsdisplay*    at pcdisplay? console ?
+#wskbd*                at pckbd? console ?
+#wskbd*                at hkbd? console ?
+#wsmouse*      at pms? mux 0
+#wsmouse*      at hms? mux 0
+
+# Serial Devices
+
+# GSC serial interfaces
+com0   at gsc? irq 5                   # RS/232 serial port
+com1   at gsc? irq 6                   # RS/232 serial port
+
+# ISA serial interfaces
+#options       COM_HAYESP              # adds Hayes ESP serial board support
+#com0  at isa? port 0x3f8 irq 4        # Standard PC serial ports
+#com1  at isa? port 0x2f8 irq 3
+#com2  at isa? port 0x3e8 irq 5
+#com3  at isa? port 0x2e8 irq 9
+#ast0  at isa? port 0x1a0 irq 5        # AST 4-port serial cards
+#com*  at ast? slave ?
+#boca0 at isa? port 0x100 irq 5        # BOCA 8-port serial cards
+#boca0 at isa? port 0x100 irq 5        # BOCA 16-port serial cards (BB2016)
+#boca1 at isa? port 0x140 irq 5        # this line is also needed for BB2016
+#com*  at boca? slave ?
+#tcom0 at isa? port 0x100 irq 7        # TC-800 8-port serial cards
+#com*  at tcom? slave ?
+#rtfps0        at isa? port 0x1230 irq 10      # RT 4-port serial cards
+#com*  at rtfps? slave ?
+#cy0   at isa? iomem 0xd4000 irq 12    # Cyclades serial cards
+#addcom0 at isa? port 0x108 irq 5      # Addonics FlexPort 8S
+#com*  at addcom? slave ?
+#moxa0 at isa? port 0x100 irq 5        # MOXA C168H serial card (experimental)
+#com*  at moxa? slave ?
+
+# Parallel Printer Interfaces
+
+# GSC parallel printer interface
+lpt0   at gsc? irq 7
+
+# ISA parallel printer interfaces
+#lpt0  at isa? port 0x378 irq 7        # standard PC parallel ports
+#lpt1  at isa? port 0x278
+#lpt2  at isa? port 0x3bc
+



Home | Main Index | Thread Index | Old Index