pk
e4fcc8ab5a
Move DMA chip draining to dmaintr() and drain when a (possibly partial)
...
transfer ends in stead of doing it before starting a new transfer.
Use a different CSR bit to wait for "chip not busy" (may be necessary to
make this conditional on chip revision).
1995-10-24 16:26:54 +00:00
pk
a3f2bf19e4
Various:
...
- make esp_poll() approximate the given timeout value.
- introduce esp_abort(), and use it for timed out commands; make targets and driver less confused.
- make {free,ready,nexus}-list management somewhat more coherent.
- make sure we only proceed down the state machine in espintr()
if there really is an interrupt pending.
1995-10-24 16:03:57 +00:00
pk
7a9ddaff33
On-board bwtwo diddles a system enable register bit for video, per Jason
...
Thorpe (PR#1672).
1995-10-23 23:35:03 +00:00
pk
c4dc969b09
Point `bootdv' at the disk device instead of the controller (from Jason Thorpe).
1995-10-09 22:33:07 +00:00
pk
53eb8f8175
RASTERCONS now works on sun4's too.
1995-10-09 15:39:34 +00:00
pk
1ad1d128e3
Fill in `ascent' values correctly.
1995-10-08 19:31:44 +00:00
pk
87a0c55d23
Patch from Jason to factor out a common framebuffer size determination
...
routine from the individual drivers.
1995-10-08 01:39:13 +00:00
pk
aea329df61
rcons: rc_maxcol and rc_maxrow were swapped.
1995-10-05 13:16:57 +00:00
pk
c8f10b184c
Do not set `ra_len' in bwtwomatch(); we only need the pixels for CONSOLE,
...
but if so, we need the lot.
1995-10-05 00:33:23 +00:00
pk
b79dc038d5
Machine dependent RASTERCONSOLE font definition to be passed to rcons_init().
1995-10-05 00:02:54 +00:00
pk
d19cacbb03
RCONSOLE => RASTERCONSOLE.
1995-10-04 23:35:13 +00:00
pk
32c023995c
Bring reset logic into interrupt state machine.
1995-10-03 17:32:12 +00:00
pk
fcc53878ca
Make fbrcons_init() resistant against SUN4s.
1995-10-02 21:48:21 +00:00
pk
cfbe993b9b
Update to use <machine/cgtworeg.h>
1995-10-02 21:44:51 +00:00
pk
38d1101ad3
Silly me.. there's already a <machine/cgtworeg.h>
1995-10-02 21:44:22 +00:00
pk
fb58a99a8f
Fix some bogus calls to {read/write}disklabel().
1995-10-02 21:04:45 +00:00
pk
82434458cc
Get some of the bugs out. Thanks to David Gilbert for testing.
1995-10-02 09:07:03 +00:00
chuck
b47de9fb69
new "xy" disk device driver from me.
...
the "xy" driver runs Xylogics 450/451 SMD disk controllers.
1995-09-25 20:35:14 +00:00
chuck
1779adf6be
minor cleanups:
...
- don't let pcyl go unassigned if we have a non-sunos disklabel.
if nothing else, guess pcyl = ncyl + acyl.
- don't use bogus disklabel data if disk label is invalid
(xdgetdisklabel() now returns if label was ok or not).
- move xddriver decl. before start of actual code (cleanup).
1995-09-25 20:12:44 +00:00
chuck
2aff99a206
bug fix: xddummystrat() was clearing all but B_BUSY when it should
...
have been clearing just B_BUSY (s/B_BUSY/~B_BUSY/). this
fixes hard hang when reading disklabel when booting system.
minor clean up: added a few prototypes and only fool with bootpath
if booting the system (in xdattach).
1995-09-25 16:02:09 +00:00
chuck
4408ec71bf
init bad144 table before we actually try and read anything from the
...
disk, rather than init'ing after reading block 0 [in case we get an
error reading block zero].
1995-09-24 00:27:59 +00:00
pk
4025edc861
Make this compile again by calling readdisklabel() with a dummy strategy routine.
...
XXX - need some reorganization to this from xdopen().
1995-09-18 23:26:39 +00:00
pk
c5bc107461
cgtwo framebuffer, cloned from cgthree.c and sun3's cg2.c.
...
Note: untested, shall be considered a framework to get things started..
1995-09-17 20:53:43 +00:00
pk
c92d076f5b
Change interface to th `fb' pseudo device to not need the major device
...
number (a la sun3).
Put in new glue for rcons.
1995-09-17 20:43:39 +00:00
pk
db43cabe32
Re-instate configuration print routines, following Chris' suggestion.
...
Only prints something if there's no scsi bus to attach.
1995-09-14 20:38:53 +00:00
pk
9d7c17bfcb
We have no need for `esp_print()'; the only child we expect is a `scsibus',
...
and there's nothing to say if it isn't there. Returning -1 is an error
anyway as noted by Chuck Cranor.
1995-09-11 19:41:21 +00:00
pk
0a5ab32e3d
We have no need for `si_print()'; the only child we expect is a `scsibus',
...
and there's nothing to say if it isn't there.
1995-09-11 19:35:06 +00:00
pk
bac2393fb0
Probe config registers correctly.
1995-09-06 12:35:38 +00:00
pk
003751356c
Patches from Jason Thorpe to deal with 4/110 scsi (PR#1422). Also includes
...
bootpath glue (PR#1414) (this needs finishing off in disksubr.c).
1995-09-03 22:21:27 +00:00
pk
a4e214aef0
If we're the console, say so in attach message.
1995-08-29 22:26:37 +00:00
pk
a159e45699
Support for sun4 (from Jason Thorpe).
1995-08-29 22:20:01 +00:00
pk
15c28bc39a
Sun4s must set baud rate on the mouse port (from Jason Thorpe).
1995-08-29 22:15:35 +00:00
pk
4bdcdaa4e3
define reserved bits in cfg2 & cfg3 registers correctly.
1995-08-29 20:05:22 +00:00
pk
a3bb091c9e
Do bootpath matching.
1995-08-18 22:03:59 +00:00
pk
7b7773a0c5
Use bootpath_store() to set next boot component; used in dk_establish()
...
to match `sd' devices against the PROM's boot path.
Detect DMA "overshoots" when handling odd-sized transfer sizes (e.g., xfers
from/to raw partitions), by using the "Transfer Pad" command when the
transfer count reaches zero.
1995-08-18 10:43:46 +00:00
pk
ffbae23b6e
Set `bootdv' if booted from the floppy drive.
1995-08-18 10:30:16 +00:00
pk
f828a4b04c
Add a debug flag.
...
Make `sc_dleft' a `ssize_t' since it's involved in a signed
comparison in esp.c.
1995-08-18 10:09:57 +00:00
pk
0596f75779
Use actual bus names (matches Chuck's bootpath code).
1995-08-18 08:20:26 +00:00
pk
42802ac2fa
Drop si_minphys().
1995-08-16 23:01:16 +00:00
pk
ced95e1824
update from Chuck
1995-08-01 21:06:55 +00:00
cgd
ffe4785a58
update SCSI minphys routines' definitions to match standard minphys()
...
definition and usage.
1995-07-24 07:33:32 +00:00
brezak
f8b400c446
Change DEBUG-->AUDIO_DEBUG. PR# port-sparc/1241
1995-07-19 19:50:16 +00:00
pk
cdbe7b1bc5
Have esp_minphys limit transfers to MAXPHYS bytes.
1995-07-13 12:45:22 +00:00
pk
05daa72b3c
Move SUN4 console echo hack cnget() (from Chuck Cranor).
1995-07-13 12:02:19 +00:00
pk
89cb640a97
si scsi driver, adapted from sun3 version by Jason Thorpe.
...
Note: re-arranged to use dev/ic/ncr5380* MI files.
1995-07-08 21:32:47 +00:00
pk
576bc844e5
Support KIOC_GETLAYOUT, so other than US keyboards can be dealt with better.
1995-07-06 05:35:34 +00:00
pk
12bdf1b787
KNFify a bit.
1995-07-05 19:55:02 +00:00
pk
9013a7a6e2
Add xxread/xxwrite.
1995-07-05 13:34:10 +00:00
cgd
2b71eae2c7
note that most of dev/ic's contents have changed names
1995-06-28 04:30:30 +00:00
pk
c7df493055
SMD disk driver, from Chuck Cranor.
1995-06-26 23:06:57 +00:00
pk
47ce042b76
Small optimisation & 1 fewer depedency on zs_ctty.
1995-06-26 21:45:31 +00:00
pk
45eb69b276
Use ZS_DELAY() in a few more places (from Gordon Ross, cf. sun3/dev/zs.c).
1995-06-26 21:32:51 +00:00
pk
ad8e3ed225
Sync with net/if.h
1995-06-23 13:19:44 +00:00
pk
c0c45bba22
Try to recover from multi-byte messages sent by a target for which we
...
get an "Illegal command" (why is this?) when we try to pull it in.
On detection of this condition, we reset the SCSI bus and simply stop asking
this target for an identify messages, for now.
1995-06-02 15:46:47 +00:00
pk
4770e5e7c5
Try to recover from multi-byte messages sent by a target for which we
...
get an "Illegal command" (why is this?) when we try to pull it in.
On detection of this condition, we reset the SCSI bus and simply stop asking
this target for an identify messages, for now.
1995-06-02 13:43:30 +00:00
pk
8066369f08
Deal with v.3 proms (sigh).
1995-06-01 14:36:17 +00:00
pk
06ffffda03
Propagate bootpaths
1995-05-27 08:12:51 +00:00
pk
92414dd1c7
Use a different method to discriminate a 82077 from a 82072 (from Chris Torek);
...
using the NE7CMD_VERSION command is too unreliable.
1995-05-20 20:03:37 +00:00
pk
c3d5b45b6e
Name fd register structures more appropriately.
1995-05-20 19:59:52 +00:00
pk
ed9d5444a2
Really test # of status bytes.
1995-05-16 17:02:00 +00:00
pk
e01c46144d
Minimalist implementation of KIOC[SG]KEY.
1995-05-10 16:04:55 +00:00
pk
7d244351cf
Add `evcnt' field.
1995-05-04 19:43:27 +00:00
pk
0c8be3a288
Make sure kbdopen() ships the keyboard reset cmd.
1995-05-02 07:56:42 +00:00
pk
1138c9d047
Handle KIOC[GS]LED ioctls; from Lon Willett.
1995-04-27 14:27:11 +00:00
pk
8d90aefeb0
New audio driver from Rolf Grossmann.
1995-04-25 20:05:32 +00:00
pk
6d68e2f26f
Remove duplication of code from subr_autoconf.c
1995-04-25 19:59:49 +00:00
pk
700118da76
Stop-gap measure to prevent panic when select()ing on /dev/console.
1995-04-25 17:52:43 +00:00
pk
64f2d35a0f
Do not report each pseudo-DMA overrun as a (soft) error.
...
Add a small heuristic to converge on an acceptable threshold value.
1995-04-25 14:44:44 +00:00
pk
87beda7b2a
Implement zstty().
1995-04-21 15:51:26 +00:00
pk
785f352260
Do a probe in fdmatch() to guard against dumb PROMs.
1995-04-13 20:24:36 +00:00
pk
a98a7ab7f8
Use arp_ifinit().
1995-04-12 08:47:21 +00:00
pk
ee451261d8
iestart() returns nothing.
1995-04-11 09:18:09 +00:00
mycroft
369e66a776
Sync with the rest of the world.
1995-04-11 06:03:36 +00:00
mycroft
e41d4f5e96
Undo accidental change.
1995-04-11 02:42:23 +00:00
mycroft
0c3bca646e
Move CHAN_[AB] into here, and prefix with ZS_.
1995-04-11 02:38:16 +00:00
mycroft
2753eeb55e
zsreg.h --> z8530.h
1995-04-11 02:30:53 +00:00
mycroft
9b0d3f54e8
Move this into a generic location.
1995-04-11 02:29:25 +00:00
mycroft
68c8c80929
kernel_pmap --> pmap_kernel()
1995-04-10 16:48:27 +00:00
mycroft
66845e73cc
cn_tty is unneeded.
1995-04-10 10:23:49 +00:00
mycroft
795010b56c
map --> mmap
1995-04-10 07:04:18 +00:00
mycroft
d64b72d064
Fdclose --> fdclose
1995-04-10 07:01:31 +00:00
pk
2e1b0cc690
Adapt to if.h changes.
1995-04-09 12:36:22 +00:00
pk
8161907540
Add evcnt_attach().
1995-04-07 19:46:13 +00:00
pk
03b9b4a4bb
Add a CR.
1995-03-08 20:58:05 +00:00
pk
26cb5d939f
Move SunOS audio_info compat to <compat/sunos/sunos_ioctl.c>.
1995-03-04 09:55:40 +00:00
pk
3edb6c02ff
Rename audio*() functions to avoid conflicts with sys/dev/audio.c; this is an
...
emergency measure, driver needs to be converted to generic audio subsystem.
1995-03-02 20:37:46 +00:00
pk
c897fc5127
Better 4/100 support.
1995-03-01 21:09:19 +00:00
pk
e6e777cf5d
Reorganize to use fast interrupt handler.
1995-02-22 21:37:15 +00:00
pk
6d511104e2
Pilot sun4c floppy driver based on i386 version;
...
- same limitations as isa/fd.c: just read/write
- in need of a fast interrupt handler
1995-02-17 20:28:32 +00:00
pk
cbbc1b0293
match/attach on sun4's obio bus, from Theo.
1995-02-17 09:47:36 +00:00
pk
d6faa0bf9c
Working "config generic" support; from Theo.
1995-02-16 21:42:50 +00:00
pk
f6cd1eeea7
Integrate changes from Chuck Cranor for the Sun 4/100.
...
Support for multiple register banks on SBUS devices (based on patches
from Francis Dupont).
Highlights:
romaux defines an array of register spaces.
pay attention to `vactype'.
quirks handling 4/100 idiosyncracies.
1995-02-01 12:37:21 +00:00
mycroft
5a7fac721d
Handle incoming messages longer than 1 byte correctly.
1995-02-01 09:50:18 +00:00
pk
b846c1f9cd
TIOC[SC]DTR ioctls.
1995-01-29 18:56:01 +00:00
pk
6879dd4b85
Update based on i386 version; from Chuck Cranor.
1995-01-27 09:49:55 +00:00
mycroft
81b3059a98
ESP_ID -> ESP_SELID
1995-01-07 05:17:59 +00:00
mycroft
bfbd328f85
Sort.
1995-01-07 05:17:15 +00:00
pk
2a22c853db
Adapt to changed SCSI subsystem.
1995-01-02 20:21:01 +00:00
deraadt
07f33ae7d1
obio ie support by chuck and me
1994-12-16 22:01:09 +00:00
deraadt
651f7c8f29
open changed again
1994-12-16 22:00:23 +00:00
deraadt
e88bd9f695
obio fixes from the two chucks!
1994-12-14 22:17:18 +00:00
deraadt
2717a8de7e
TIOC[SG]FLAGS from matthew green
1994-12-06 00:01:39 +00:00
deraadt
12af703502
wait for ack from chip
1994-11-29 22:35:20 +00:00
deraadt
1eb4763766
debug code for dma hang
1994-11-27 00:08:34 +00:00
deraadt
41260b47ce
i hate ttyX-ignore-cd, but leave it here for a while longer
1994-11-26 07:36:52 +00:00
deraadt
7289c28055
cnpollc function for DDB
1994-11-25 23:55:53 +00:00
deraadt
3a4ca432b2
no need to turn DMA off twice
1994-11-25 23:12:44 +00:00
deraadt
e62b8b3fa2
choose {w,b}{copy,zero} automatically
1994-11-25 23:11:23 +00:00
deraadt
2a90e82894
wzero/wcopy moved to machdep.c
1994-11-25 23:10:47 +00:00
deraadt
58117a4011
ie cards coldstart with a parity error, reset it
1994-11-23 22:28:12 +00:00
deraadt
941871d6ab
XXmatch change (and a few __P() as well)
1994-11-23 07:02:02 +00:00
deraadt
d3408abf29
C error
1994-11-21 01:56:38 +00:00
deraadt
274a90762d
copyright/Id cleanup
1994-11-20 20:51:32 +00:00
deraadt
4cd7c0f34e
reset scsi bus at attach time
1994-11-05 09:35:54 +00:00
deraadt
0d4b376377
only print the vec if needed
1994-11-05 09:28:06 +00:00
pk
edb1bc6eae
Don't mess with device if it was opened while we napped.
1994-11-03 18:57:33 +00:00
deraadt
138a1d9e01
let busmatch print the level/vec
1994-11-02 23:16:28 +00:00
deraadt
48347d17d4
cleanup
1994-11-02 23:16:02 +00:00
deraadt
46f66f22e0
ioctl u_long cmd
1994-11-02 04:55:47 +00:00
deraadt
e3b33c7c21
add wcopy/wzero, and ack VME using ldcontrob
1994-11-02 04:55:20 +00:00
deraadt
bdcab43fb8
ioctl u_long cmd; and KNF
1994-11-02 04:54:19 +00:00
mycroft
1e951824c4
Clean up deleted files.
1994-10-30 18:43:27 +00:00
deraadt
89a7412206
KNF
1994-10-30 18:43:21 +00:00
deraadt
58f5cef745
repair a type
1994-10-28 16:50:59 +00:00
deraadt
f3299b1470
obio/vme16 Intel Ethernet driver by Chuck Cranor. works on vme16.
1994-10-26 07:11:16 +00:00
deraadt
9773a7aa40
working vme16/32 support
1994-10-26 07:09:41 +00:00
deraadt
2fb5b874a1
sbus_establish() is sun4c/sun4m specific
1994-10-15 08:57:20 +00:00
deraadt
3ae3c206d7
mapiodev takes a bustype argument now
1994-10-15 05:48:47 +00:00
deraadt
425833d1b0
sun4/300 support works
1994-10-02 21:59:56 +00:00
deraadt
1be17e489e
sbus/* --> dev/*
...
deal with multiple bus types (start of vme/obio support)
1994-09-17 23:57:27 +00:00
deraadt
152b1d19d4
obio bus driver, for dealing with devices on the sun4 motherboard.
1994-09-17 23:49:58 +00:00
deraadt
1340faab13
Replacement esp (NCR 53C9X + LSI DMA) scsi driver from Peter Galbavy.
1994-09-17 23:48:32 +00:00
deraadt
9670b47cb7
sun4: don't use openprom
1994-08-25 20:57:38 +00:00
deraadt
34c6caac77
first cut at sun4 on-board io bus
1994-08-24 09:16:46 +00:00
deraadt
ad457d7aaf
sun4 needs software delays for register accesses
1994-08-20 09:11:02 +00:00
deraadt
bdf0a4caf3
fix for bug #403 from <grossman@informatik.tu-muenchen.de>
1994-08-13 08:53:38 +00:00
mycroft
341769b598
Clean up deleted files.
1994-07-21 22:06:05 +00:00
deraadt
c772691a6a
make X11R5 compile easier
1994-07-21 22:05:42 +00:00
deraadt
12c6ff514b
need vm/vm.h
1994-07-04 21:37:20 +00:00
deraadt
7bb91385ad
tmd2/rmd2 have bits which must be set to 1
1994-07-02 01:10:05 +00:00
deraadt
c17a1b4ce3
sun4c -> SUN4C
1994-06-24 08:11:53 +00:00
pk
639b0ab102
cast to make compiler happy.
1994-05-27 08:49:13 +00:00
deraadt
f79d935940
new from torek; now multiple drives will work
1994-05-27 02:38:15 +00:00
deraadt
66628ced32
t_stop has been erradicated
1994-05-19 06:53:07 +00:00
deraadt
b0b840abb9
use ether_input
1994-05-17 17:27:06 +00:00
deraadt
a0cc222313
TIOCSBRK/TIOCCBRK
1994-05-14 06:39:05 +00:00
deraadt
7c61a93844
new from 4.4-lite
1994-05-13 20:11:06 +00:00
deraadt
592a166c31
play nice with new tty code
1994-05-13 20:09:00 +00:00
deraadt
3e95b2b78d
update from lite
1994-05-07 01:14:39 +00:00
deraadt
4929024bf5
timeout and ndflush casts
1994-05-05 09:53:37 +00:00