Commit Graph

6090 Commits

Author SHA1 Message Date
ragge 31f199d4e6 Added earlier forgotten MACHINE_ARCH, pointed out by Arne Henrik Juul.
Cleaned up a bit.
1995-12-04 22:32:53 +00:00
briggs 76b94759a1 Fix from Paul Goyette (paul@pgoyette.bdt.com) for drives that don't grok
linked commands.
1995-12-04 02:10:44 +00:00
leo fc587cf917 Something forgotten in the namespace changes. 1995-12-03 14:34:24 +00:00
leo 70875fa68f Return a more sensible errno when someone is trying to set the unsupported
mdmbuf option.
1995-12-03 14:32:39 +00:00
briggs 99e494a984 Fix from Niklas Hallqvist / Chuck Cranor / Michael Hitch / OpenBSD to avoid
integer overflow in initial pmap setup.  Triggerred by high values for
maxusers.
1995-12-03 13:52:50 +00:00
thorpej 52ec09e420 Use a "match/attach" rather than "init" scheme for probing devices.
This is a step towards getting the drivers ready for new config.
1995-12-02 18:21:49 +00:00
thorpej deb00c27b3 Use a "match/attach" rather than "init" scheme for probing devices.
This is a step towards getting the drivers ready for new config.

Clean up namespace, remove several instances of global arrays.  Instead,
use a softc to carry state around.  Where possible, pass a pointer to
the softc rather than a unit number.

Pointers to hardware and software constructs are now stored per port
in each instance of the softc (one softc per board) rather than indexed
by minor number.
1995-12-02 18:18:50 +00:00
thorpej 41cf6f071f Use a "match/attach" rather than "init" scheme for probing devices.
This is a step towards getting the drivers ready for new config.

Clean up namespace, remove several instances of global arrays.  Instead,
use a softc to carry state around.  Where possible, pass a pointer to the
softc rather than a unit number.
1995-12-02 18:15:50 +00:00
thorpej 3ac76475ea Use a "match/attach" rather than "init" scheme for probing devices.
This is a step towards getting drivers prepared for new config.
1995-12-02 18:11:21 +00:00
thorpej de5ce5f48c Change "hilloop" to "hilsoftc" and make slightly more new config-friendly.
Remove all uses of curproc.
1995-12-02 02:48:47 +00:00
thorpej b618522128 Make the DMA controller driver a little more new config-friendly. Still
more work to do, but this is a step in the right direction.
1995-12-02 02:46:45 +00:00
leo 5f2ab2109f Use files.fpe 1995-12-01 19:53:07 +00:00
leo ca1cc64e20 Remove forgotten #endif 1995-12-01 19:51:53 +00:00
ragge 45d824de05 DELUA/DENUA & DELQA/DEQNA Ethernet adapters converted to new config. 1995-12-01 19:37:55 +00:00
ragge 2e654caa73 UBA converted to new config. (uba's now can be *'ed). Bug causing
DMA writes to nonexistent memory pages fixed. Code for old config
of non-mass-storage devices removed. (they now must use new config).
1995-12-01 19:22:56 +00:00
briggs 1b03745209 cmdlen-2 is right for the last byte of the command. Ifdef out for right now,
though, as some devices apparently don't support linked commands and will
reject commands that have the link bit set in them.
1995-12-01 15:14:11 +00:00
pk 8a1606d530 Don't return `XS_DRIVER_STUFFUP' too easily; this can hose buffer cache
writes. Say XS_TIMEOUT in stead so the scsi code will retry.
1995-12-01 01:00:55 +00:00
leo e267646321 KNF-ify 1995-11-30 21:55:01 +00:00
leo 291d8cbf3a Add kernel option for separate {stat,prof}clock 1995-11-30 21:52:46 +00:00
briggs d416ec2cc9 Put the link flag in the right place.
Pointed out by Paul@pgoyette.bdt.com (Paul Goyette).
1995-11-30 14:25:40 +00:00
jtc 0cd793449e merge in changes from 1.1 release branch 1995-11-30 00:56:23 +00:00
pk a2a4da4874 Merge changes from sun3 port; per Gordon. 1995-11-29 23:43:42 +00:00
pk ee08e9085b Extend the size of the "soft" FIFOs which reportedly reduces the number
of FIFO overflows on high baud rates.
However, doing so on all 4 ports would cost a whopping 64KB (at 4096 entries
per FIFO) of kernel memory. So, the FIFOs are now allocated at attach time
allowing the size for the keyboard and mouse ports to be reduced (to 128)
which should be adequate for the 1200 baud they use.
1995-11-29 23:41:31 +00:00
pk 12bfe2e68e Must change `u_long' to `u_int32_t' as Jason pointed out. 1995-11-29 22:03:53 +00:00
pk 6e53c6a5fd In probe[gs]et() there's no need to check against KERNBASE, as pointed
out by David Jones and Chris Torek.
1995-11-29 01:52:41 +00:00
pk e9a919b88f Code from Jason to better configure /dev/fb. 1995-11-29 01:45:36 +00:00
pk ce474272f1 Prevent synch negotiation on ESP100 chips 1995-11-28 22:49:31 +00:00
pk 9bf3251e46 Lots of major and minor bug fixes and changes.
- properly do MSG_IN handshaking, so we can actually receive multi-byte msgs.
- do synch negotiation (now that the above works).
- handle disconnects.
There are a few trial-and-error bits at points where the docs I have are
particularly ambiguous about the state of chip and/or SCSI bus.

Things to do:
- more cleanup
- deal with MSG_OUT phase better
- keep some "config reg 3" bits per target (ie. FASTCLK and FASTSCSI).
1995-11-28 20:49:12 +00:00
pk def161af38 Careful with signed chars (caddr_t *!).
Merge in 1.1 changes.
1995-11-28 20:26:59 +00:00
thorpej da66c0a255 Enable COMPAT_HPUX. 1995-11-28 08:48:18 +00:00
thorpej 38b63746fb Note the new status of COMPAT_HPUX, but keep is disabled by default. 1995-11-28 08:47:38 +00:00
thorpej 63b0022b86 Update a #include for the "new" location of HP-UX emulation code. 1995-11-28 08:12:37 +00:00
thorpej ffcccc41bd Compile compat/hpux/hpux_exec.c and compat/hpux/hpux_file.c if COMPAT_HPUX
is defined.
1995-11-28 08:10:09 +00:00
cgd 29d9eeabd1 kill these. they're no longer used. 1995-11-27 23:28:00 +00:00
mycroft e2baea19f3 Make sure vt_coldinit() is called before vt_coldmalloc(). 1995-11-26 21:01:16 +00:00
mellon 55980119ec Remove some cruft 1995-11-25 10:39:57 +00:00
mellon 8b29652e06 Fix colormap initialization for monochrome pmax framebuffer 1995-11-25 10:38:42 +00:00
mellon db99c1a30b Provide compiler tool definitions for cross compilation. 1995-11-25 05:55:38 +00:00
cgd afc45b4ab7 pull in ECOFF exec code with EXEC_ECOFF 1995-11-25 01:34:38 +00:00
cgd 93a78af882 no DDB 1995-11-25 01:32:34 +00:00
cgd e6dc5f55db update for am7990var.h, am7990.c changes 1995-11-25 01:31:09 +00:00
cgd 0f7f390b49 allow bus-specific lance drivers to use machine-independent buffer/descriptor
copy functions, and convert isa and pmax drivers to do so.
1995-11-25 01:23:51 +00:00
cgd deb4082f80 wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
	Support for AlphaStation 600 CPUs,
	new boot block structure, which requires an 'installboot'
	    program and works a lot like the NetBSD/sparc boot blocks.
1995-11-23 02:33:17 +00:00
briggs 93d836857c RAMDISK stuff. 1995-11-21 05:06:28 +00:00
briggs 447b897889 Define DST and TIMEZONE 1995-11-21 05:05:51 +00:00
briggs e5a588356f Small RAMDISK kernel. 1995-11-21 05:02:02 +00:00
briggs 369e3de013 Get rid of obsolete time specs. 1995-11-21 05:00:34 +00:00
briggs f9ba6adcd7 Add rd_root.c from sun3. 1995-11-21 04:53:20 +00:00
briggs 0d91c3ff0b Back the sccClkConst off to 115200 for several classes of machines. 1995-11-21 04:00:43 +00:00
briggs 9afe66efa5 Add rd support at the same address as the Sun3. 1995-11-21 03:39:45 +00:00
thorpej b92924680d Garbage collect some stuff that isn't used. Rename the relocation info
structure to be consistent with the other m68k ports.  XXX that struct needs
to move to an m68k common file.
1995-11-20 01:15:26 +00:00
thorpej df59198ddc Put doshutdownhooks() in the right place. Pointed out by cgd. 1995-11-20 00:58:54 +00:00
thorpej 8272af3168 Re-arrange boot() a bit; call doshutdownhooks(), if we're rebooting, say so,
etc.  Modeled after the alpha port's boot().
1995-11-19 23:24:15 +00:00
thorpej 8122bc0e33 Prevent the ITE_ACTIVE bit from being cleared in iteoff() if the ITE_ISCONS
bit is set.  Works around the fact that the last process to have the
console open exits, the bit is cleared, and "syncing disks...", etc. is
not seen if the system is rebooted with reboot(8).  Fixes PR #1455.
1995-11-19 23:14:22 +00:00
thorpej 31430a5279 Cosmetically change one #include directive. 1995-11-19 22:32:38 +00:00
thorpej 905cb9dda1 Re-arrange things such that we can print out disk geometry regardless of
COMPAT_NOLABEL.

XXX One day when the world doesn't assume DEV_BSIZE bytes/sector, we'll be
able to actually use the stuff sensed from the drive, rather than a table.
1995-11-19 19:07:18 +00:00
thorpej d0e01feb5c Do an indirect driver a little more like an indirect driver would like to
be done.  Set up a structure filled with function pointers in the
controller-specific probe routines, and jump through them, instead of
if()'ing our way though each operation.

Be a little more discriptive; print out the controller type found
during the probe in a way that's somewhat meaningful.
1995-11-19 17:57:15 +00:00
gwr 86f10d8343 Switch to ncr_si (will just do PIO for now) and cleanup 1995-11-17 23:31:11 +00:00
gwr 0ee10ff487 Give translated label a valid magic number 1995-11-17 23:30:19 +00:00
gwr c01eb77976 cosmetic 1995-11-17 23:29:30 +00:00
gwr 5d5c8d0d4b Latest, greatest version of the new NCR driver.
DMA works!  Interrupts work!  Disconnect/reselect works!
To be paranoid, leave that all disabled for now...
1995-11-17 23:27:41 +00:00
gwr 6b20139b41 Add copyright 1995-11-17 23:24:56 +00:00
gwr 92b8a2d9e5 just cleanup 1995-11-17 23:23:44 +00:00
jtc ce0b404f4e fixup copyright notice before the release 1995-11-17 06:47:27 +00:00
cgd e9ef628234 don't link against libkern, so that boot blocks will work properly.
(pulled down from 1.1 release branch.)
1995-11-16 22:38:16 +00:00
pk 0c031adc76 Not all v2 proms understand the `mac-address' word (from Theo). 1995-11-14 15:04:01 +00:00
briggs 83604dcbd6 Add call to doshutdownhooks() before we attempt to reboot. 1995-11-14 04:05:49 +00:00
ragge 826b97635f No longer needed; interrupt vectors now dynamic allocated. 1995-11-12 15:19:49 +00:00
ragge bfc2ca40b8 Function call definition on stack. (calls frame) 1995-11-12 15:07:30 +00:00
ragge 763fd0a011 Macros for locore mapping added. 1995-11-12 14:41:41 +00:00
ragge d96cac4b8e pt_entry_t now struct pte. cleanup. 1995-11-12 14:40:26 +00:00
ragge e6db353726 extern struct scb *scb; added. 1995-11-12 14:38:31 +00:00
ragge 7aac03e745 11/750 specific things moved to ka750.h 1995-11-12 14:37:18 +00:00
ragge 2a23f39e82 struct ivec_dsp for interrupt vector allocation added. 1995-11-12 14:33:11 +00:00
pk c7d1d39b3e dk_device => device in controller structure (noted by Jason Thorpe). 1995-11-11 21:12:50 +00:00
gwr 70065d9d16 Fix a comment while I'm here... 1995-11-10 22:05:52 +00:00
gwr 01655dec81 Need to define KERNTEXTOFF for kvm_mkdb 1995-11-10 22:04:48 +00:00
gwr 3dcdca7c52 Allow unit != 0 1995-11-10 21:59:30 +00:00
christos c0aaa86553 Add a config line for 3c590 ethernet cards 1995-11-10 19:34:54 +00:00
ragge f51faf62ac Dynamic allocate uba_softc and interrupt vectors.
Allow for more that one uba.
1995-11-10 19:25:46 +00:00
ragge d16c357ab9 A couple of CPU specific defines moved away. 1995-11-10 19:14:43 +00:00
ragge c9be4b2e09 Removed some warnings. 1995-11-10 19:09:56 +00:00
ragge 42edf9d2b4 _idsptch added, _physcopypage removed. 1995-11-10 19:08:59 +00:00
ragge eca544e6fc sysarch() -> sys_sysarch. 1995-11-10 19:07:16 +00:00
ragge ae0f1d45d8 Allow for dynamic allocation of interrupt vectors.
COMPAT_RENO removed.
Handle memory errors.
uap->sigcntxp -> SCARG(uap, sigcntxp)
1995-11-10 19:05:46 +00:00
ragge 33bd27fa3c Major rewriting of pmap_bootstrap; CPU dependent allocations moved
to related file.
1995-11-10 18:52:54 +00:00
fvdl 051bb183e3 Same as in 1.1 branch. 1995-11-09 08:40:51 +00:00
pk c2cd05605d UFS => FFS conversion. 1995-11-08 09:09:20 +00:00
gwr 3c996d6b06 ufs ==> ffs 1995-11-07 23:01:40 +00:00
pk 54ec9fb697 Correct test for sun4 machines (thanks Chuck).
Since uname currently does not allow to discriminate different sparc
models, we use `sysctl.hw.cpumodel' to do this somewhat heuristicly:
if the returned strings starts with "SUN4-" a sun4 architecture is
assumed. This information is used to determine whether or not to strip
the a.out header off the 1st-stage bootblocks.
1995-11-07 11:45:24 +00:00
leo 3b8542c63a The Falcon needs a delay after writing the dma_data register (Thomas Gerner) 1995-11-06 21:13:38 +00:00
briggs f028be21e6 Update from Ken Nakata. 1995-11-05 04:23:00 +00:00
briggs 8b79bcb9e7 Fixes from Ken Nakata. Mainly renaming debug_level to fpu_debug_level. 1995-11-05 00:35:09 +00:00
pk 996526aa02 Make error recovery actually work, i.e. don't hang on SCSI bus resets
and re-synchronize before re-scheduling pending operations.
Things seem to be a fair bit stabler now.
1995-11-03 16:47:43 +00:00
pk bbdb422873 Stop DMA before resetting 1995-11-03 16:34:12 +00:00
ragge 3095b6514c No need anymore. 1995-11-03 14:34:52 +00:00
ragge 46e32a9703 No need for this file anymore; it's defines moved to other places. 1995-11-03 14:29:23 +00:00
briggs cc272f90a1 Add in NetBSD id string. 1995-11-03 04:51:51 +00:00
briggs 5b38a18f42 include files.fpe instead of just fpu_emulate.c--to get the new fpe code. 1995-11-03 04:50:21 +00:00
briggs 526615e592 Add NetBSD id string and update instructions. 1995-11-03 04:48:22 +00:00