Commit Graph

1562 Commits

Author SHA1 Message Date
simonb 0246cad68c GC register keyword.
Add LIBSA_SINGLE_DEVICE support.
1999-11-27 06:46:36 +00:00
simonb 8160906e08 Add lfs, cd9660, nfs and ustarfs filesystem support.
Remove callv variable declaration.
1999-11-27 06:45:52 +00:00
simonb 55ae392784 Add some PROM function prototypes
Add bootprog* variable declarations (ala alpha/stand/common.h).
1999-11-27 06:45:07 +00:00
simonb 4bb143c0ea Move callv variable declaration here from conf.c. 1999-11-27 06:44:00 +00:00
simonb c3c29ad5c5 Load second stage bootblocks from "boot.pmax", falling back to "boot"
for backwards compatibility and "boot.pma" after that for people who
make ISO filesystems with 8.3 format file names.
1999-11-27 06:34:06 +00:00
simonb 26b61c0dff callvec.c has moved from stand/lib to stand/common.
XXX: The kernel proper shouldn't rely on files in stand!  Will fix soon.
1999-11-27 05:35:00 +00:00
simonb 10c7b5ab91 Remove the remaining files in lib directory. The other files in
this directory were moved to ../common via a CVS repository copy.
1999-11-27 03:55:46 +00:00
simonb 40bbc6129e Remove the remaining files in scsiboot directory. The other files in
this directory were moved to ../common via a CVS repository copy.
1999-11-27 03:54:43 +00:00
simonb 426c66b28c Moved to common/callvec.c,v 1999-11-27 03:14:47 +00:00
simonb 42fdd5dfb7 Moved from lib/callvec.c,v 1999-11-27 03:14:46 +00:00
simonb e2751ce295 Moved to common/printf.S,v 1999-11-27 03:12:24 +00:00
simonb 360739d57f Moved from scsiboot/printf.S,v 1999-11-27 03:12:23 +00:00
simonb 88b44c10cb Moved to common/clear_cache.S,v 1999-11-27 03:11:56 +00:00
simonb ea515c3a7f Moved from scsiboot/clear_cache.S,v 1999-11-27 03:11:55 +00:00
simonb 16ddb8bd85 Moved to common/bootxx.c,v 1999-11-27 03:11:41 +00:00
simonb 9bbac58265 Moved from scsiboot/bootxx.c,v 1999-11-27 03:11:40 +00:00
simonb acefb84bcb Moved to common/startprog.S,v 1999-11-27 03:10:17 +00:00
simonb 81ff761e62 Moved from lib/startprog.S,v 1999-11-27 03:10:16 +00:00
simonb a61aff17a2 Moved to common/start.S,v 1999-11-27 03:10:07 +00:00
simonb ffab24d77d Moved from lib/start.S,v 1999-11-27 03:10:06 +00:00
simonb d4e109f26d Moved to common/rz.h,v 1999-11-27 03:09:52 +00:00
simonb 2dcb3cc6f2 Moved from lib/rz.h,v 1999-11-27 03:09:51 +00:00
simonb de5d47be57 Moved to common/rz.c,v 1999-11-27 03:09:42 +00:00
simonb dd6570cdf6 Moved from lib/rz.c,v 1999-11-27 03:09:41 +00:00
simonb 875e06c29a Moved to common/putchar.c,v 1999-11-27 03:09:27 +00:00
simonb 59e9772e78 Moved from lib/putchar.c,v 1999-11-27 03:09:26 +00:00
simonb 7915729248 Moved to common/newvers.sh,v 1999-11-27 03:09:06 +00:00
simonb cf4333e101 Moved from lib/newvers.sh,v 1999-11-27 03:09:05 +00:00
simonb b24ec11fca Moved to common/devopen.c,v 1999-11-27 03:08:47 +00:00
simonb 16c74987cc Moved from lib/devopen.c,v 1999-11-27 03:08:46 +00:00
simonb 1a4a126f90 Moved to common/conf.c,v 1999-11-27 03:08:31 +00:00
simonb b02cf094dc Moved from lib/conf.c,v 1999-11-27 03:08:30 +00:00
simonb 8ac75f530b Moved to common/common.h,v 1999-11-27 03:08:02 +00:00
simonb 034554d0a8 Moved from lib/common.h,v 1999-11-27 03:08:01 +00:00
simonb 41f1bf53e1 Moved to common/bootread.S,v 1999-11-27 03:07:40 +00:00
simonb 4a75552397 Moved from lib/bootread.S,v 1999-11-27 03:07:39 +00:00
simonb d5c8b5ad99 Moved to common/bootinit.S,v 1999-11-27 03:07:22 +00:00
simonb 1f59f63d6d Moved from lib/bootinit.S,v 1999-11-27 03:07:21 +00:00
simonb 4d2b51c4be Moved to common/bootinfo.h,v 1999-11-27 03:06:56 +00:00
simonb 3f99fedebd Moved from lib/bootinfo.h,v 1999-11-27 03:06:55 +00:00
simonb 4a53cd4daa Moved to common/bootinfo.c,v 1999-11-27 03:06:31 +00:00
simonb 1e9b1f56a7 Moved from lib/bootinfo.c,v 1999-11-27 03:06:30 +00:00
simonb 089a87b280 Moved from boot/boot.c,v 1999-11-27 02:52:07 +00:00
simonb 9f8721cd67 Moved to common/boot.c,v 1999-11-27 02:52:06 +00:00
simonb fbbde1126e Remove NUMBOOT define - disklabel doesn't install bootblocks anymore. 1999-11-27 01:58:37 +00:00
simonb db783e76e8 Use explicitly sized types for entities that exist on disk.
Use alpha-like defines for boot block offset on disk and boot block size.
1999-11-27 01:51:20 +00:00
simonb b83882f7c7 Use new pmax stand structure for multi-filesystem bootblocks. All
entries are commented out for now until everything else is updated.
1999-11-27 01:45:46 +00:00
simonb 69e1252d6a Oops, px* won't work right now - go back to px0. 1999-11-27 01:31:47 +00:00
simonb 0b1eae6c7a * all device attachments, after discussion with Jason Thorpe and Toru
Nishimura.
1999-11-27 01:19:31 +00:00
nisimura 36e75e7449 Some fix on comment descriptions. 1999-11-25 02:53:46 +00:00
nisimura 94b897d4bf Reorder device descriptions to reflect what kernel shows on screen,
mostly in address ascending order.
1999-11-25 02:48:12 +00:00
simonb 353ca54019 Move memory sizing to a new function memsize_scan(), and add an empty
stub for memsize_bitmap() to use the PROM bitmap for memory information.
Add a memsize function pointer to the platform structure, and make all
existing DECstation models use memsize_scan() for now.

Interestingly, from the Ultrix cpuconf.{c,h} only the 3100 and 5400 use
a memory scan to determine available memory - all other models use the
PROM bitmap...
1999-11-25 01:40:22 +00:00
simonb 93d33f5806 Wildcard 3max {asc,le}0 at tc attachment. 1999-11-24 02:25:37 +00:00
thorpej 635d546dd9 Specify the locators for everything. 1999-11-24 02:10:47 +00:00
thorpej 4d7bdecfce My 3MAX's config file. 1999-11-24 02:05:40 +00:00
thorpej 7fa174a09e Specify all the locators for the various devices. 1999-11-24 02:05:12 +00:00
simonb 05715b1dbd Attach asc0 and le0 at tc 5 and 6 respectively - 5000/200 now works again.
XXX: Should the turbochannel slot numbers be wildcarded or hardcoded?
     It's not as if they can appear anywhere else...
1999-11-24 01:52:06 +00:00
simonb 6a03465ac4 Don't check for additional dc instances yet. 1999-11-24 01:43:38 +00:00
thorpej 11ea81b1c2 Delete now-unreferenced files. 1999-11-24 01:18:13 +00:00
simonb d6a69159ca Fix tyop in comment. 1999-11-24 00:18:37 +00:00
thorpej 298f4b27f4 Make separate device lists for the 3100 and 5100, and add a way to probe
for optional `dc' devices on the 5100.
1999-11-24 00:04:06 +00:00
thorpej 98e19f8e0e Add an `addr' locator to the `ibus' bus. This allows you to wire down
unti numbers on systems which have e.g. multiple `dc' devices on the
internal bus (like the 5100).
1999-11-23 20:07:34 +00:00
itojun e9a0023b37 bring in content of GENERIC.v6 into GENERIC.
remove GENERIC.v6 file (as it is part of GENERIC now).

"faith" interface is commented out by default as it is not really for
general use.
IPsec items are commented out as well, though we can enable "options IPSEC"
without export-related issue ("options IPSEC" will enable authentication
portion only).  We may need to think about it again.

if you have problem compiling with INET6 on archs I do not have access to,
please contact me.

XXX what to do with arch/arm32/SHARK{,.v6}?
1999-11-21 14:00:37 +00:00
simonb 95d4e16c43 Remove function declarations already declared in ibusvar.h and
fix typo in dec_3100_intr_*() declarations.
1999-11-19 04:34:01 +00:00
nisimura dad420bf58 Move declarations of 3100/5100 ibus interrupt establishment routines
to ibusvar.h
1999-11-19 03:15:28 +00:00
simonb 682b4e3665 Include SCSI version of disk in device display. 1999-11-19 03:14:22 +00:00
simonb af2a80f51c Show the SCSI version of the tape drive. Also, when printing out info
about the tape drive, only use one ``printf("\n");'' at the end rather
than having lots of \n's.
1999-11-19 03:04:39 +00:00
simonb 9dacfe6b24 Don't need extern with function declaration. 1999-11-19 02:35:40 +00:00
simonb 1dd2a74d0a Only all the kbd/mouse init functions if NRASTERCONSOLE > 0. 1999-11-19 02:17:01 +00:00
simonb 88673ee539 Only call tcfb_cnattach() if NRASTERCONSOLE > 0. 1999-11-19 02:16:06 +00:00
simonb 253ea37824 Include "opt_dec_{3,5}100.h" so we know what models are
configured.  Also fix prototypes for dec_3100_intr_establish()
and dec_3100_intr_disestablish().
1999-11-19 02:11:47 +00:00
nisimura adf0157d64 Fix system type case analysis error; pointed by John.P.Darrow@wheaton.edu. 1999-11-19 01:28:08 +00:00
nisimura 8bcd9ac481 Consistent panic messages when erroneous kernel configurations are found. 1999-11-17 03:42:20 +00:00
nisimura dab18ce266 A file which escaped from 11/15 jombo commit work. 1999-11-17 00:10:00 +00:00
nisimura e810ae49c6 Resolve 3max IOASIC disguise; round #2. 1999-11-16 06:00:11 +00:00
nisimura 7917bfc69d Back out a part of change in the previous commit; old driver uses it. 1999-11-16 02:48:24 +00:00
nisimura 5948b59226 Fix a typo in PX TC device identification case analysis. 1999-11-16 02:39:03 +00:00
nisimura fb43e6e177 Remove now defunct definitions and declaratins. 1999-11-16 02:34:30 +00:00
nisimura 1c6749cc03 Restore a change in 1.23 which I accidentally lost at the previous commit. 1999-11-16 02:16:04 +00:00
simonb 6185320e31 Move px cdev_decl up with other frame-buffer type thingies. 1999-11-15 22:45:28 +00:00
fvdl 8bec119fcc Add commented out option SOFTDEP to all GENERIC kernels. 1999-11-15 19:10:44 +00:00
fvdl d116707af0 Add
prefix ../gnu/sys
cinclude "conf/files.softdep"
prefix

to all std.* files, so that soft dependencies can be activated using
"options SOFTDEP".
1999-11-15 19:00:25 +00:00
nisimura cc2e1c302a - Reflect changes in ibus_intr_establish() definition.
- More concise way to initialize TC framebuffer device for console.
1999-11-15 09:54:41 +00:00
nisimura 0310fa6595 Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
1999-11-15 09:50:17 +00:00
mhitch 5b9ba012af Set IOASIC interrupt mask when changing device interrupts. (Old
initialization appears to have enabled IOASIC interrupts, and then used
a separate mask in the interrupt routine to decide which ones to process.
New initialization doesn't enable all the required interrupts, and the
device interrupt enable/disable routine wasn't changing the IOASIC mask).
Also fix a printf() format type.
1999-11-15 03:54:53 +00:00
mhitch 27a8dc486b Use console_debugger() to enter DDB on a break, instead of Debugger(). It
can now be controlled with sysctl on the 3100 & 5000/200.
1999-11-13 22:58:11 +00:00
mhitch babe07a8b5 When called from the debugger, the keyboard handler was returning 0 due to
a missed change when kdbMapChar() was changed to return a string.  Return
the correct chacter from the string.
1999-11-13 22:56:56 +00:00
thorpej 728d672378 Backout my libsa changes. 1999-11-13 21:33:12 +00:00
thorpej 1946167939 Update for pmap_enter() API change. No functional difference. 1999-11-13 00:30:26 +00:00
nisimura 91fd021893 - Arrange 'platform' struct to have clkread entry, which can interporate
HZ using high resolution timer circuit if available.  Merge os_init
  into the primary hardware initialization in sysinit[].init.
- Nuke an irrelevant attempt to disable RTC under splhigh condition.
- Make sure IOASIC DECstations accumulate device interrupt mask bits into
  certain global variables.
- Have witchcrafts to issue ACK to RTC interrupt.
- Add a missing \n and a minor rearrangement in cpu.c
1999-11-12 09:55:37 +00:00
simonb 4abf82d09b Remove references to libkern after Jason's recent work to libsa. 1999-11-12 01:37:42 +00:00
kleink b4f0936a8c Per discussion on tech-toolchain, remove MIPS-specific <machine/elf.h> header;
all the information is available from <sys/exec_elf.h>.
1999-11-09 21:50:18 +00:00
mhitch f4fa9aae9f When the framebuffer is closed, reset the keyboard. We don't know what the
X server may have done with the keyboard state.  X11R6 was changing the
keyboard modes, which were not compatible with the lk201 keyboard handling
in NetBSD.
1999-11-08 18:41:32 +00:00
simonb 986464bd89 Remove duplicate line. 1999-11-04 02:53:03 +00:00
ad 0f1d754327 QIOCGMAP is what I like to call QIOCGINFO during my more confused moments,
but other people can't be expected to know that. Noted by mhitch.
1999-11-03 13:45:11 +00:00
drochner 52f922f960 correct last change: mkboot depends on (sizeof(struct boot_block)==512) 1999-10-29 15:21:13 +00:00
simonb fb8de5803e Use ELFCLASS32 instead of ELFCLASS. 1999-10-27 03:28:54 +00:00
kleink 522cbf0248 Update to match new SVR4-style definition names in <sys/exec_elf.h>. 1999-10-25 13:55:06 +00:00
simonb 249879ba34 Begone with some garish Mach_StructureNames.
Add a comment about the bootblock structure.
1999-10-25 02:29:45 +00:00
simonb 690672a81d Don't let loadfile_machdep.h make it to /usr/include - the pmax
stand Makefiles already set up the compile environment so that
machine/loadfile_machdep.h can be found.

XXX: Not done for i386, mmeye or sparc - I can't test these at the
     moment.  It should be as simple as making a machine symlink
     pointing to .<some number of ../'s>./include in the objdir...
1999-10-25 00:17:27 +00:00
ad ae033a895f Add missing entry in chrtoblktbl[]. 1999-10-24 23:57:23 +00:00
ad ef0cc9a3f4 - Re-arrange the control map that is exported to user space. This map now
includes the STIC poll registers.
- Don't bother enabling ISR driven packet queueing on device open. It doesn't
  work for the PXG due to severe dainbramage on the part of DEC and doesn't
  work properly on the 3min due to the spl stuff being a mess.
1999-10-24 15:33:45 +00:00
mrg cb6e315ab0 make this work again. 1999-10-11 16:08:47 +00:00
nisimura 7fbac8b3cc - Remove defunct codes and arrange consistency between pmax and alpha.
- Reduce 'ioasic_base' expose.
1999-10-01 09:19:42 +00:00
nisimura de20527da0 Forgot to commit an important change for bus_space/bus_dma. 1999-09-28 08:05:42 +00:00
simonb 60f2775a8e Fix incorrect comment. 1999-09-28 02:26:35 +00:00
ad 2d7488c2c5 Use px_probe_sram() to figure out ringbuffer size instead of defaulting to
the minimum value of 128KB (useful only for PMAG-F).
1999-09-25 14:45:21 +00:00
nisimura ff559f77f0 'KB' for kilo-bytes as humanize_number(). 1999-09-24 00:37:52 +00:00
matt 4d95a06139 Need to pull in <sys/kernel.h> for definition of cold. 1999-09-21 00:10:39 +00:00
thorpej dfdb204ae2 Declare and clear `cold' in a centralized place. 1999-09-20 18:29:21 +00:00
ad e6f3bfaa3a N10's host interrupt register uses low nybble for interrupt cause, not the
entire word.
1999-09-18 01:50:24 +00:00
thorpej 11cae42531 Centralize the declaration and clearing of `cold'. 1999-09-17 19:59:35 +00:00
thorpej 3b01d1b872 Rename the machine-dependent autoconfiguration entry point `cpu_configure()',
and rename config_init() to configure() and call cpu_configure() from there.
1999-09-15 18:10:33 +00:00
chs f3a668ed84 eliminate the PMAP_NEW option by making it required for all ports.
ports which previously had no support for PMAP_NEW now implement
the pmap_k* interfaces as wrappers around the non-k versions.
1999-09-12 01:16:55 +00:00
nisimura f563627c41 Remove now defunct local implementation of ioasic_lance_dma_setup(). 1999-09-09 06:41:08 +00:00
nisimura 633408472b Use bus_dmamap_load() to obtain 128KB chunk for LANCE merging codes from
NetBSD/alpha.  Tested ok with DEC3000 and DECstation.
1999-09-09 06:33:38 +00:00
simonb a68944cfca Overhaul the tz SCSI tape driver:
+ Add a quirk table.
 + Assume all else is a modern drive that can do variable block
   lengths (this is the main reason for this work - the old driver
   only ever seemed to write 512 byte blocks!).
 + Keep track of values for mtget's mt_fileno, mt_blkno.
 + Handle a few extra MTIOCTOP commands.

Ideas gleaned from our MI scsi tape driver and the FreeBSD CAM tape
driver.  Tested on a TKZ09 (DEC badged Exabyte 8500), a TLZ06 (DEC
DAT) and TK50.

Many thanks to Pierre Bergdolt for helping with testing.
1999-09-07 13:53:36 +00:00
simonb a17eb29d7c Remove a few unnecessary header files. 1999-09-05 11:34:29 +00:00
simonb eca6f8a067 Fix tyop. 1999-09-05 06:31:52 +00:00
nisimura d0259231aa A small fix to save such a configuration of MAXINE with TC framebuffer
option card installed.
1999-09-03 10:19:40 +00:00
nisimura c1122ccf3d - Nuke '#ifdef alpha' which brings little useful, plus a small cleanup. 1999-09-03 07:12:45 +00:00
nisimura 37b9802f3a - Nuke "asc.h" inclusion. 1999-09-03 06:12:28 +00:00
simonb 0676f7a9b7 Handle the MTOFFL request to actually offline a tape rather than just
rewinding it.  Tested with an Exabyte 8500 on a 5900/260 (the asc scsi
driver).
1999-08-31 01:12:51 +00:00
mycroft c3e1f6741d A foolish consistency. 1999-08-30 18:58:01 +00:00
mrg f75cf1688b install ieee.h 1999-08-30 00:51:57 +00:00
mycroft 4ef547e76d Add ieee.h. 1999-08-29 18:21:20 +00:00
thorpej 8c92a5344c PMAX uses white-on-black for the default rcons colors. 1999-08-26 20:49:40 +00:00
simonb d65a712698 Fix some small tyops. 1999-08-25 02:12:05 +00:00
simonb c8276b07d3 Remove ifdef'd alpha call to set_clockintr() - the pmax and alpha clock.c
have diverged, and set_clockintr() doesn't exist on the alpha anymore!
1999-08-25 00:44:36 +00:00
ad c9adbf13c2 Update to match new rasops_init semantics. 1999-08-24 11:16:03 +00:00
thorpej 2cf3330a1b Garbage-collect reference to <sys/dmap.h>. 1999-08-23 22:29:37 +00:00
simonb 17f87d3816 Print out the module number that causes the ECC error. 1999-08-16 13:13:00 +00:00
simonb 1eda4ea610 Remove bogus CSR #defines and replace with known ones. 1999-08-16 13:12:41 +00:00
simonb 7e9978db4e Neaten up #defines for the CSR.
XXX: Still not sure if some of these are right.
1999-08-16 13:12:17 +00:00
simonb 259ba92fef Pass (csr & KN0x_CSR_BNK32M) to dec_mtasic_err() so that it knows what
size individual memory modules are.
1999-08-16 13:11:45 +00:00
simonb 120f2d5c70 Remove board-specific CSR definitions. 1999-08-16 13:10:52 +00:00
simonb 4be158521b Put original contents of the TURBOchannel bus-cycle counter clkread()
from an old version of machdep.c into kn03_clkread().  Fixes problems
with wild CPU time usage noted on port-pmax.
1999-08-13 06:21:39 +00:00
thorpej eb20bbc780 Change the semantics of splsoftclock() to be like other spl*() functions,
that is priority is rasied.  Add a new spllowersoftclock() to provide the
atomic drop-to-softclock semantics that the old splsoftclock() provided,
and update calls accordingly.

This fixes a problem with using the "rnd" pseudo-device from within
interrupt context to extract random data (e.g. from within the softnet
interrupt) where doing so would incorrectly unblock interrupts (causing
all sorts of lossage).

XXX 4 platforms do not have priority-raising capability: newsmips, sparc,
XXX sparc64, and VAX.  This platforms still have this bug until their
XXX spl*() functions are fixed.
1999-08-05 18:08:08 +00:00
ad 233d3887c1 In pm_screen(), return 0 if fballoc() fails, not 1. 1999-08-02 12:52:27 +00:00
mrg 39a5b02150 if there are no FB devices, tc_consprobeslot() fails always. 1999-08-02 12:01:46 +00:00
augustss a7cd454b1d It's time to be COMPAT_14. 1999-07-29 10:37:12 +00:00
ad 3d71693ea7 In fbconnect(), append ' (console)' to printed message if called for
the console framebuffer at attach time.
1999-07-28 17:13:54 +00:00
cgd f886376518 be more efficient when doing the SYSTEM_LD_TAIL for -g kernels: don't
copy them just to strip them, use strip -o.
1999-07-26 05:20:44 +00:00
ad 724365fa3e Change the way fb devices are configured and attached:
- 'struct fbsoftc' created, which points to a 'struct fbinfo'
- 'struct fbinfo' for each device is allocated with fballoc()

This means:
- Console device doesn't get different 'struct fbinfo' at attach
- Console device doesn't get initialized twice
- Color rcons now works
- The current Xserver MUST BE REBUILT.
1999-07-25 22:50:28 +00:00
mrg f484530816 do not "quote" SAMISCMAKEFLAGS values, it causes pain and suffering. 1999-07-21 13:34:34 +00:00
christos 41cc9a0eb8 enable PPP_BSDCOMP, PPP_DEFLATE, PPP_FILTER, PFIL_HOOKS, IPFILTER_LOG
on the GENERIC kernels that had them commented out.
XXX: Please note, that not all the kernels have all the options defined!
1999-07-20 07:40:34 +00:00
simonb 988906cf52 Put tc_machdep.h back - the X server needs it to build. 1999-07-19 23:35:29 +00:00
ad fe6a4d8ffd Remove 'already the console' check, which will be handled by fballoc(),
fbattach() and fbconnect() shortly.
1999-07-16 14:23:47 +00:00
thorpej 0945bf58b0 Add examples for including the kernel crypto bits from either crypto-us
or crypto-intl, commented out, with instructions to use only one, and
adjust the prefix as necessary.
1999-07-09 18:55:33 +00:00
mrg ecdad0ec33 clean up a bit after jason :)
- fix emitrules() like emitfiles() to deal with the prefix (otherwise it
  would attempt to find the file in the normal base for the NORMAL_C rule).
- add emitincludes() which adds include directives for each prefix to the
  $INCLUDES variable in the makefile.
- add %INCLUDES to each Makefile.arch to deal with the above.

this makes "prefix" actually work in a usable manner, and now i can move
on to fixing compiler warnings (errors) in the ESP code. :)
1999-07-09 09:52:55 +00:00