pk
beb02e6b82
Use bus space methods to implement the vme bus space functions.
1998-04-07 20:21:55 +00:00
pk
b333d0bb62
The bus space functions now take care of "pass-through" methods.
1998-04-07 20:20:03 +00:00
pk
fbc1fe8213
bus_space_mmap() has changed to take a `bus_space_handle_t *' argument,
...
like other bus space methods.
1998-04-07 20:18:17 +00:00
pk
3f455e21d9
The bus space functions now take care of "pass-through" methods.
1998-04-07 20:11:54 +00:00
pk
e3e74bd0d5
Factor out bus code into separate files.
1998-03-31 21:05:04 +00:00
pk
be4108fec1
Replace direct `sparc_bus_map()' calls with bus space map method.
1998-03-30 14:21:38 +00:00
mycroft
d4da63c6c3
Eliminate cs_heldchar. It is not necessary in my version of the driver.
1998-03-30 02:41:21 +00:00
pk
b782c3448c
obio_bus_probe() => bus_space_probe()
1998-03-29 22:10:32 +00:00
pk
2ad26b801c
Fill in the bus tag's `bus_space_unmap' method.
1998-03-29 22:06:58 +00:00
pk
82663a0330
Implement `_obio_bus_map()' and insert it into the obio bus' bus tag.
...
Remove obio_bus_probe().
1998-03-29 22:05:05 +00:00
pk
f658122053
Check for a valid PROM virtual address.
1998-03-25 23:15:07 +00:00
pk
23521d1c5f
Fix yank-and-put error in sbus attach code.
...
Misc. cleanup.
1998-03-23 17:37:04 +00:00
pk
4730d097ad
Only print interesting interrupt levels.
1998-03-23 17:21:52 +00:00
pk
279df61dbe
Fill in the pointers the MI back-end expects correctly.
...
Add comment and diagram explaining the memory layout (to be revisited..).
1998-03-22 22:12:52 +00:00
pk
405ec57e9f
Lift the tilde a bit.
1998-03-22 20:24:05 +00:00
pk
e6a2630760
Direct the Sbus bus map function through the bus tag.
1998-03-21 22:03:33 +00:00
pk
681b358c19
Account for bus_space(9)-style bus attachment scheme.
1998-03-21 20:30:49 +00:00
pk
232fa45996
Add bus tags to softc.
1998-03-21 20:29:57 +00:00
pk
a21d934940
Add bus tags.
...
Add interrupt chaining facility (currently used for `le'; the `esp'
device should follow).
1998-03-21 20:28:44 +00:00
pk
087da728f2
Add bus tags to softc.
1998-03-21 20:25:12 +00:00
pk
c99d62cc8a
Account for changed bus attachment scheme.
1998-03-21 20:23:38 +00:00
pk
be7f5a7031
Switch to a bus_space(9)-based device attachment scheme.
...
The dma & lebuffer devices behave like busses to accommodate the
OBP layout. For practical purposes, they are implemented as
Sbus "extensions".
1998-03-21 20:23:09 +00:00
pk
69fe6f242f
Account for changed bus attachment scheme.
1998-03-21 20:11:30 +00:00
pk
165120cfaf
Sbus attach arguments and map function prototypes go here.
1998-03-21 20:10:07 +00:00
pk
77f499595c
Switch to a bus_space(9)-based device attachment scheme.
...
- device attachment arguments contain bus-specific
address and interrupt levels.
- devices must call back on bus map functions to get their
addresses and interrupt levels translated properly.
- sun4m's obio bus is treated like an Sbus slot.
- the sun4-style obio bus has its own attach arguments
and map functions.
1998-03-21 19:55:31 +00:00
pk
73f387899e
#define several register bank offsets, so we don't need to refer to
...
structure fields.
1998-03-21 19:45:45 +00:00
pk
83cec33afc
Split the fb_setsize() utility in two separate functions: one to be
...
used by OBP machines and another one for sun4/eeprom machines.
1998-03-21 19:42:00 +00:00
pk
d22f956657
Remove `_NEW_I82586'.
1998-02-28 01:15:51 +00:00
mrg
d90485202c
- add defopt's for UVM, UVMHIST and PMAP_NEW.
...
- remove unnecessary UVMHIST_DECL's.
1998-02-10 14:08:44 +00:00
pk
334b20bbd6
Define a `DMA_FLUSH' macro; dma chip revs 0 & 1 have a different bit
...
to reset the internal state engine.
1998-02-07 22:41:27 +00:00
chs
abf50cf8c3
add UVM stuff.
1998-02-07 17:28:18 +00:00
pk
0725302eac
vme_bus_probe() takes an `offset' argument.
1998-02-06 00:22:41 +00:00
pk
86f595fb3e
This file has been moved to dev/vme a while ago.
1998-02-05 22:14:35 +00:00
mrg
5e91ce6ef1
initial import of the new virtual memory system, UVM, into -current.
...
UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code. i provided some help
getting swap and paging working, and other bug fixes/ideas. chuck
silvers <chuq@chuq.com> also provided some other fixes.
this is the sparc portion.
this will be KNF'd shortly. :-)
1998-02-05 07:57:48 +00:00
pk
90be3b559d
Use vme_bus_probe() in si_attach().
1998-02-04 20:50:47 +00:00
thorpej
8abe76d2f0
Add offset and length parameters to bus_dmamap_sync(), used for specifiying
...
partial syncs of a DMA mapping.
1998-02-04 05:12:46 +00:00
thorpej
99cc8482d1
Change the last argument of bus_dmamap_sync() from bus_dmasync_op_t to int,
...
and allow more than one synchronization operation to be specified in
a single call. Dissallow mixing of PRE and POST operations.
1998-02-04 01:57:27 +00:00
pk
bee3aa34cc
Account for changed vme_bus_probe() arguments.
1998-02-04 01:04:48 +00:00
pk
f060ed68ba
sparc_vme_probe(): handle callback argument.
1998-02-04 01:01:14 +00:00
thorpej
2538ed1062
Use offsetof() from libkern.h
1998-01-28 02:23:04 +00:00
pk
72f0ab269f
These drivers are now in dev/vme.
...
The `ie' driver has been split in a VME and OBIO front-end. The latter
lives on in this directory as `if_ie_obio.c'
1998-01-25 20:33:54 +00:00
pk
531a4b2d77
sparc/obio bus front-end to the i82586 driver.
1998-01-25 19:50:50 +00:00
pk
8bc346d14a
All VME stuff is gone from here.
1998-01-25 19:44:43 +00:00
pk
d44f401c95
bus_tmp() => obio_bus_tmp()
1998-01-25 16:49:33 +00:00
pk
333b6319fc
Convert to new VME interface.
1998-01-25 16:38:01 +00:00
pk
4efb52487a
Split si & sw attach routines, and make the si part use the new VME interface.
1998-01-25 16:37:08 +00:00
pk
f8ba1e0bd9
sparc/VME bus implementation.
1998-01-25 16:06:25 +00:00
mrg
c71457ab4a
KNF, and use splzs over splhigh in one place.
1998-01-21 05:54:39 +00:00
thorpej
1adb4489a6
Update for changes to config.
1998-01-12 20:23:38 +00:00
mrg
7069ab9961
don't call fb_unblank if NFB < 0
1998-01-08 10:56:36 +00:00
perry
015e898c02
RCSID Police.
1998-01-05 07:02:46 +00:00
chuck
d76941843e
fix mixer code that was clearly untested:
...
- allow get/set of enums SUNAUDIO_SOURCE and SUNAUDIO_OUTPUT rather
than returning EINVAL
- add missing SUNAUDIO_MONITOR_CLASS case in query_devinfo
- convert SUNAUDIO_MONITOR case from a MIXER_CLASS to a MIXER_VALUE
like it is supposed to be
- the labels for outputs/record class were swapped: fix it
this patch allows "mixerctl" to work properly on a sparc
1997-12-06 03:20:56 +00:00
mjacob
40ef7dd007
handle case of no keyboard configured
1997-12-03 22:32:05 +00:00
pk
ff4f5f4528
If necessary, defer console output until TX interrupt handler runs.
1997-11-12 22:18:54 +00:00
mycroft
9e82e84056
Handle CDTRCTS, for silly Mac-like connector on some models (e.g. IPX).
1997-11-03 11:33:17 +00:00
mycroft
ec5fd4954e
Set rr0_dcd.
...
Don't set DCD_IE and CTS_IE here; let the MI code do it.
Handle MDMBUF.
1997-11-02 08:05:06 +00:00
gwr
aa67eda78f
Correct zs_unit in zs_kgdb_init().
...
Similar problem as zs.c:consinit().
1997-10-22 17:03:35 +00:00
gwr
9053a6f401
Correct the values of zs_unit in consinit(),
...
so ddb will work on the keyboard/display.
1997-10-22 14:39:38 +00:00
pk
004f196dcf
Nuke 5.25 inch formats.
1997-10-19 23:29:47 +00:00
pk
a0d6bae726
Add an odd-ball japanese floppy format (PR#2903).
...
A good time to get rid of the hard-coded floppy sector size.
1997-10-19 22:29:21 +00:00
christos
7507e6a5e9
Make this compile again.
1997-10-19 20:34:54 +00:00
augustss
e7029fc0da
Make the audio API (almost) SunOS compatible.
...
The changes is to allow some limited mixer manipulation through
the audio device (instead of the mixer device).
This rendered 4 methods in audio_hw_if unused so garbage collect these.
1997-10-19 07:41:33 +00:00
gwr
0308bf1ac6
Use common zs code.
1997-10-17 23:59:44 +00:00
mycroft
b328298e4c
Fix up includes.
1997-10-16 10:49:00 +00:00
mycroft
3081c6f8cf
AudioC[A-Z] -> AudioC[a-z]
...
AudioElinear -> AudioEslinear
1997-10-11 12:43:51 +00:00
jtc
4229acf79d
Fix tipo inherited from old version of TNF copyright template.
1997-10-09 08:37:20 +00:00
thorpej
3b4ad2b60e
Copyright assigned to The NetBSD Foundation.
1997-10-05 18:15:51 +00:00
pk
dc4f93c2a1
Collect sbus status and configuration registers in `struct sbusreg'.
1997-09-14 19:17:25 +00:00
pk
c635b25325
In kbdattach() (the pseudo-device attach routine) wait for the keyboard
...
reset sequence to complete. Just sending the reset command and rushing
off -- like it used to do -- might cause the keyboard's response to get
lost in case the remaining kernel initialization decides to interact
with the console (RB_ASK!) by calling cngetc(), which goes off polling
within the PROM.
1997-09-13 19:12:18 +00:00
pk
0bd088474a
Turn on D_DSBL_WRINVAL on `ledma'.
1997-09-09 20:54:48 +00:00
pk
84877e89f6
Allow a BREAK to cause a kgdb_connect().
1997-08-31 21:26:37 +00:00
augustss
a79408b6c7
Change match routine to use "audio" as the ROM name.
1997-08-27 22:42:23 +00:00
augustss
c58d387b0f
Fix prototype for amd7930_set_params.
1997-08-27 22:33:59 +00:00
bouyer
6f3bab1f59
Merge scsipi branch in the mainline. This add support for ATAPI devices
...
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.
1997-08-27 11:22:52 +00:00
augustss
6616d47838
- Change audio_hw_if a little: set_param now sets the play and record modes
...
at the same time instead by using two different calls. This enables
it to check more easily if the combined mode is all right.
- Improve the error checking in audio.c.
- Add a new audio property, AUDIO_PROP_INDEPENDENT, show if the
play and record settings are independent.
- Fix some buglets in audio.c.
1997-08-24 22:31:23 +00:00
augustss
332ad95e76
Change the MI audio driver so it attaches to the MD driver in the
...
normal way. This requires adding a line to the config files to
get audio to work again.
1997-08-19 23:49:33 +00:00
mjacob
419960bd0e
Changes for PCI Qlogic ISP2100 meant a few minor changes.
1997-08-16 00:33:04 +00:00
pk
dd07701791
Do not use `rasterconsole' by default on this framebuffer.
1997-08-07 19:12:30 +00:00
augustss
658656bb99
Audio changes:
...
- Change the way attach and open works to allow multiple audio
devices.
- Split the mulaw.c file into two to avoid dragging in mulaw
convertsion when they are not needed. Add 16 bit alaw/mulaw tables.
- Change the way audio properties are gotten.
- Recognize more versions os SoundBlaster.
1997-07-31 22:33:08 +00:00
fair
fc96112975
fix editing boo-boo
1997-07-29 17:55:38 +00:00
fair
4c351f243e
%x -> 0x%x
1997-07-29 09:58:04 +00:00
augustss
a63034762b
Audio: Remove the machine dependant code I put in audio.c by mistake.
...
This adds another method to audio_hw_if. Also remove a field from
audio_hw_if that was not read-only.
1997-07-28 20:56:05 +00:00
augustss
d58bc6796f
audio: Simplify handling of AUDIO_SETFD and committing of encoding mode.
1997-07-27 23:51:48 +00:00
augustss
9745684ebe
Changes to the sudio system:
...
- It is now possible to handle devices that want "looping" DMA,
e.g. the SoundBlaster correctly. The WSS and SB drivers use this.
To do this several new methods were introduced in audio_hw_if.
- Different silence handling (forced by previous change).
- The audio driver can now be mmap()-ed, but due to problems in
the VM system only for writing for now.
- The OSS (Linux) audio emulation takes advantage of some of the
new features.
1997-07-27 01:16:32 +00:00
pk
0e6ca8da9f
Use `target selection with DMA' by default.
1997-07-19 21:57:01 +00:00
pk
63fa13065c
#include "locators.h"
1997-07-19 21:43:54 +00:00
jtk
ca1bba150a
use locator defines in "locators.h" to index cf_loc[]
1997-07-17 03:16:39 +00:00
jtk
9388f271a9
use locator defines in "locators.h" to index cf_loc[]
1997-07-17 02:12:50 +00:00
pk
af86c62d61
Get console tty size from raster console if applicable.
1997-07-07 23:30:22 +00:00
pk
3c1b9ba29b
Install media functions only if something useful can be returned.
1997-07-07 16:28:44 +00:00
thorpej
7c03f46228
Don't print a warning if the returned transfer count is less than 0.
...
This can happen during perfectly normal operation if:
(a) We are using DMA to select a target, and
(b) we are interrupted by another target reselecting us.
Per discussion with Paul Krannenburg.
1997-06-26 00:31:20 +00:00
thorpej
cf016f61f4
foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
...
from the disklabel accordingly.
1997-06-24 00:56:28 +00:00
pk
f9d3344f9c
xysize(): only call xyopen()/xyclose() if not already open, per the
...
current `openmask'.
1997-06-18 20:47:00 +00:00
pk
4269e0eab1
xdsize(): only call xdopen()/xdclose() if not already open, per the
...
current `openmask'.
1997-06-18 20:45:03 +00:00
pk
1ab49e584f
Avoid "false positives" in match routines.
1997-06-10 20:59:10 +00:00
pk
2851bca951
vme_establishintr: remove SUN4 arch check; this now works on sun4m as well.
1997-06-10 20:57:48 +00:00
thorpej
38b9b3385b
Update for changes in the core ISP driver.
1997-06-08 06:35:45 +00:00
pk
7de2a6f83d
Use the `ranges' property to deal with VMEbus address spaces.
1997-06-07 19:16:23 +00:00
pk
af40331aec
Add some VME address modifiers used by vmebus_translate().
1997-06-07 19:10:57 +00:00
pk
d7b698b984
Set `rr_iospace' to PMAP_OBIO when translating relative sbus addresses.
1997-06-01 22:10:39 +00:00
pk
ec02e14ae2
Remove all `bustype' arguments from map[io]dev() and REG2PHYS().
1997-05-24 20:16:06 +00:00
pk
3137152cb5
Remove all `bustype' arguments from map[io]dev() and REG2PHYS().
1997-05-24 20:16:04 +00:00
pk
954e31e49a
Remove all `bustype' arguments from map[io]dev() and REG2PHYS().
1997-05-24 20:16:02 +00:00
pk
821f712972
Remove all `bustype' arguments from map[io]dev() and REG2PHYS().
1997-05-24 20:15:58 +00:00
pk
fb5c729d4a
Use `rr_iospace' to track the MMU page type bits. On sun4c/sun4m the
...
iospace value is always learned from the PROM; on sun4, we infer it
from the BUS_* parameters.
This obsoletes the `bustype' argument in bus_tmp().
1997-05-24 20:08:41 +00:00
pk
ae61406a77
Replace bus_tmp() by mapdev() equivalent.
1997-05-19 19:59:36 +00:00
pk
f88bf0a6e9
Replace bus_tmp() with mapdev() equivalent.
1997-05-19 19:56:26 +00:00
pk
c0036ae48d
Remove bus_tmp(); it's just a special case of mapdev().
1997-05-18 21:26:22 +00:00
pk
18a4aeea23
A bit of framework for sun4m VME busses.
1997-05-18 19:37:37 +00:00
pk
72d640a497
Tweak gain curve (from nsayer@kfu.com; PR#2909)
1997-05-15 22:32:56 +00:00
augustss
e63a553175
Change the interface between high and lowlevel audio drivers again:
...
Set the encoding parameters slightly differently.
Remove the SW encoding/decodinf functions from this interface
and move them to the audio_parameter struct; this is both more efficient
and flexible.
1997-05-09 22:16:27 +00:00
augustss
c4a52794f1
Convert to new orthogonal audio encoding scheme and implement
...
some of the new encodings. The change to ioctl AUDIO_GETENC is
NOT backwards compatible.
1997-05-07 18:51:31 +00:00
pk
a05df4e228
* finish off support for the 82077 chip as found on sun4m machines.
...
* add non-dma mode bit to `specify command', so formatting disks starts
working (thanks to Jeremy Cooper for finding out about this).
1997-05-02 13:03:44 +00:00
augustss
526ef2f618
Change the interface between the high and low level audio drivers
...
so that all audio encoding parameters are set at once. This simplifies
the interface and make error checking easier.
1997-04-29 21:01:33 +00:00
pk
547d95a029
Remove esp FLUSH when residual bytes are present in FIFO, the ncr53c9x
...
driver will flush when necessary. Doing the FLUSH here interferes
with DMA-enabled target selection.
1997-04-27 22:12:40 +00:00
pk
2357b53997
Avoid race for the chip's interrupt pending status bits in zscnputc()
...
by introducing a single-character queue to defer kernel console output
until the transmitter interrupt handler runs.
1997-04-14 21:26:28 +00:00
mrg
bb07095632
as per discussion with torek, allow TC=1. also add option
...
to allow TC=0. the zilog documentation says not to allow
TC=0 -- however, i tested this and it "does work", as far
as i could tell, so, allow this use if so desired.
1997-04-09 13:15:13 +00:00
pk
cc7899605a
Move "range" property description out of generic `romaux'.
...
Allocate room for this property when needed in bus attachment.
1997-04-08 20:08:20 +00:00
pk
efeeba419f
sun4c and sun4m `aux' register bits differ slightly.
1997-04-07 21:00:34 +00:00
pk
d1603d004b
Use sc_hwreset() hook to reset ledma (if applicable).
1997-04-04 20:29:23 +00:00
pk
cd9e3a7b59
Remove bogon from otherwise unused fdchwintr() function.
1997-03-31 20:27:32 +00:00
pk
f62b65006f
Clamp burst sizes to maximum value of parent.
...
Reset ledma from leattach().
1997-03-23 22:54:26 +00:00
mycroft
7a55cafeeb
Implement set_format.
1997-03-20 16:51:38 +00:00
thorpej
9018eb5208
Use if_media to select media (or autoselect rules) on the Sun4m.
1997-03-17 03:24:26 +00:00
pk
27b2f0ec7c
Fix a `new-ARP' pasto.
1997-03-15 22:13:55 +00:00
is
07b064e02e
New ARP system, supports IPv4 over any hardware link.
...
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.
For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
cjs
ca5f101ba7
Remove code that stops transfers of >63K. The Sun 4 doesn't have this
...
limitation, and minphys() is supposed to catch this on other architectures.
1997-03-14 19:57:20 +00:00
cgd
e36a5ca4de
change microcode array definitions from "unsigned short" to the more
...
correct u_int16_t, and remove bogus casts that the old definition
required.
1997-03-13 04:07:44 +00:00
mycroft
919efaeb60
Make the microcode table const.
1997-03-13 03:33:03 +00:00
mycroft
ac3b8b13b7
Don't share the silence block between devices. Make silence filling work for
...
more encodings, and make it device-independent. From Lennart Augustsson, in
PR kern/3305.
1997-03-13 02:19:32 +00:00
cgd
cf26d31ad2
NetBSD RCS ID tweaks, a few comment block tweaks. Also, make copyright
...
notices consistent (per Matt Jacob).
1997-03-12 21:06:41 +00:00
cgd
099e30a322
ISP 10x0 driver from Matthew Jacob of NASA Ames Research Center.
...
(March 12, 1997 version).
1997-03-12 20:44:50 +00:00
pk
d8fc2afd1e
Replace `cpumod' with `cpuinfo.cpu_type' equivalents.
1997-03-10 23:01:40 +00:00
pk
3811437545
Redo attach code somewhat. Have a go at matching le's and lebuffer's on
...
machines where the PROM does not provide a parent/child relationship.
1997-03-10 22:58:22 +00:00
pk
9119c9c189
Add a field indicating this instance has attached to an `le', so we
...
can have a go at matching le's and lebuffer's on machines where the
PROM does not provide a parent/child relationship.
1997-03-10 22:56:54 +00:00
thorpej
e33bdc63ae
Update for MI 53c9x driver.
1997-02-27 01:30:05 +00:00
thorpej
5464afa761
Convert the SPARC esp driver to be a front-end for the MI 53c9x driver.
1997-02-27 01:16:19 +00:00
gwr
2de163471e
Minimal changes to adapt to removal of NCR5380_PERMIT_RESELECT.
...
This driver should be updated to allow per-target control over
disconnect/reselect, but I will leave that to the port masters.
1997-02-26 22:29:08 +00:00
thorpej
2525eee053
Use new machine-independent mountroothook code.
1997-01-31 02:15:54 +00:00
thorpej
e256e03227
Arrange the code that sets the options flags such that the user can
...
completely override the defaults (including disabling DMA) in the
kernel config file.
1997-01-23 02:11:23 +00:00
pk
a0f6df960f
RAMDISK_HOOKS => MEMORY_DISK_HOOKS
1997-01-01 23:46:29 +00:00
pk
d5b11782b5
rename: ramdisk => md
1996-12-28 23:27:00 +00:00
pk
bb12d8fd9a
Prevent `unused function' warning (from Robert Evans; PR#2770).
1996-12-23 01:46:30 +00:00
pk
2f296724a8
Not all sun4m's have an `auxio'.
1996-12-10 23:24:56 +00:00
pk
841d1ec634
Comply with recent autoconfiguration changes. Diffs graciously
...
supplied by Chris Demetriou.
1996-12-10 22:54:46 +00:00
thorpej
d502e68402
Fill in sc_link.max_target
1996-12-10 21:27:16 +00:00
pk
92c4c71040
Finish import of floppy formatting code; not really usable yet, lots of
...
data overruns.
1996-12-10 14:44:53 +00:00
thorpej
ef5333043b
Copyright assigned to The NetBSD Foundation.
1996-12-09 17:46:44 +00:00
pk
837dd8e3e1
Import formatting code from the i386 version.
...
Revise communication between hw & sw interrupt handler.
1996-12-08 23:40:32 +00:00
pk
6b31797b23
Detect `lebuffer' parents and use the provided buffer.
1996-12-06 22:07:59 +00:00
pk
31b46bcf59
Special Lance buffer glue.
1996-12-06 21:52:01 +00:00
pk
b2f875fce9
Handle Sbus burst settings in dma reset().
1996-11-28 10:30:34 +00:00
pk
7e3ef21ca4
Fix typo in D_BURST* macros.
1996-11-28 09:37:34 +00:00
pk
4d21d576ef
Add some `DMA ESC gate array' specific constants.
1996-11-27 21:50:42 +00:00
pk
13ad3421cd
DMA draining macros have moved to dma.c
1996-11-27 21:49:53 +00:00
pk
c7f438cd11
Handle the `ESC gate array' variant of the DMA engine, including an
...
essential bug work-around. Graciously supplied by David Miller.
Also re-arrange the macros that do the dma drain song-and-dance for
better clarity.
1996-11-27 21:48:19 +00:00
pk
c0a9fe4e7a
Cancel any queued timer events before re-scheduling a timeout, so esp_abort()
...
can be called from other places besides the timeout handler.
1996-11-27 21:34:59 +00:00
pk
4526babc82
Pay attention to DMA errors as reported by DMAINTR() returning -1. If this
...
happens reset everything.
Re-schedule a timeout when first attempting to abort an operation.
1996-11-27 21:24:20 +00:00
pk
c1274b3cff
Stabilize timeout values in fdcresult() and out_fdc() by adding delay()s.
...
Noted by Jason Thorpe over in the i386 driver.
1996-11-27 21:14:33 +00:00
pk
3cb63476b7
One control block per target is insufficient if you have a full complement
...
of targets attached and access those simultaneously (like in a ccd(4) array).
We (now) allocate (somewhat arbitrarily) three per target.
Noticed by Marshall Midden.
1996-11-22 22:36:57 +00:00
pk
89b8591c60
Add explicit casts to `%l*' formatted arguments.
1996-11-16 23:14:58 +00:00
thorpej
35c9c776fe
Use bitmask_snprintf().
1996-11-13 06:13:39 +00:00
cgd
000ff895c3
sync with alpha version
1996-11-12 21:06:21 +00:00
pk
92d21510ef
Drop in a sun4m version of AUDIO_SET_SWINTR; thanks to Nick Sayer for
...
the reminder.
1996-11-01 23:32:15 +00:00
pk
4dd0b24bf9
Make sure to refer to `sc_ovtype' only when SUN4 is defined, as noted
...
by `r.evans@ic.ac.uk'.
Also, explicitly testwhether we're dealing with a pfour.
1996-10-20 19:18:00 +00:00
christos
8d9699acda
backout previous kprintf change
1996-10-13 02:59:55 +00:00
christos
7d1960f502
backout previous kprintf change
1996-10-13 02:59:38 +00:00
christos
0039d4aa0c
backout previous kprintf change
1996-10-13 02:59:25 +00:00
christos
19d8368f2f
printf -> kprintf, sprintf -> ksprintf
1996-10-11 00:44:42 +00:00
thorpej
5c34a4ce35
Use FBTYPE_RESERVED3 for our `unknown' fbtype ... RESERVED1 seems to
...
have disappeared.
1996-10-04 20:35:53 +00:00
thorpej
3db7555465
Returning ENODEV is not correct in a poll entry point. Instead, since
...
read/write returns an error, use seltrue().
1996-10-04 20:34:33 +00:00
abrown
7557090650
Add cgfourteen_poll() entry point to sync with recent changes in frame
...
buffer cdev code.
1996-10-01 00:06:45 +00:00
abrown
19b3f7f50b
Initial commit of cg14 framebuffer driver for Sun4m SPARCs.
...
- This driver supports the on-board mbus-based cgfourteen (sometimes referred
to as "SX") video hardware present on SS20-class machines.
- It does *not* support any of the SX acceleration features.
- It does support the 8-bit mode of the hardware, and looks to X like
a cgthree.
- It does support the cg6-style hardware cursor, even when running X in
cgthree emulation.
- It does support DPMS power-down of compatible displays on later-revision
cg14's.
- There is code to support the true color (32-bit) mode of the cg14 as
cg8 emulation, but it is disabled by default because it is most likely
broken. #define CG14_CG8 to turn it on.
The driver is not yet installed in the conf files, but I will do so
shortly...
1996-09-30 22:41:01 +00:00
mycroft
4cd799d5a9
Remove unused variable.
1996-09-28 03:37:36 +00:00
mycroft
aaad0e1149
Sync with Alpha version.
1996-09-28 03:21:04 +00:00
thorpej
8d5c3b9cd1
Sync with the alpha version, fixing several SCSI protocol bugs.
...
NOTE: THESE FILES ARE NOW IDENTICAL TO THEIR ALPHA COUNTERPARTS.
The C preprocessor does the Right Thing when these files are built
on a SPARC. This makes it significantly easier to diff the two
versions (until a real MI 53c9x driver is done, hint hint).
1996-09-28 01:49:06 +00:00
abrown
28068e33c0
Oops. Last change will slow down a GENERIC kernel. Add a CPU type test
...
for cleanliness.
KNF a return statement.
1996-09-27 18:30:15 +00:00
abrown
d7ef005a81
Fix long-standing bug with Lance ethernet and Sun4m's, where each packet
...
would generate two interrupts, one real and one spurious. The solution
is to force a drain of the SBus->MBus write buffers after writing to the
lance to clear the interrupt. Thanks to Chris Torek for pointing out a much
easier way to do this than I had planned...
1996-09-27 15:11:43 +00:00
thorpej
ab49e34013
Don't attach an rcons to a cgfour/cgeight overlay plane; it doesn't work
...
properly. Problem reported by Charles Hannum.
XXX This is temporary until someone with the hardware has time to fix it!
1996-09-20 17:35:49 +00:00
mrg
c98a14ad90
update these for poll(2) changes.
1996-09-12 01:35:34 +00:00
cgd
adeb6b4058
replace sequences of 8 spaces with tabs (only one instance). kill
...
unnecessary newlines after return statements but before function
close-braces.
1996-09-09 18:01:30 +00:00
thorpej
fa0e4a3082
Make the SPARC kernel compile again after recent tty cdevsw changes.
1996-09-05 09:32:47 +00:00
mycroft
b3eac79b64
tty stop functions really should return void, not int, and certainly not both.
1996-09-02 06:43:16 +00:00
cgd
71ad30d0e9
(1) set scsi_link channel to either the appropriate channel (if a
...
multi-channel driver), or to SCSI_CHANNEL_ONLY_ONE if a
single-channel driver.
(2) use scsiprint() rather than a locally-defined autoconfig print
function, and kill any locally-defined print function.
1996-08-28 18:59:15 +00:00
cgd
2a73ef60b7
change cfprint_t type definition to take a const char *, rather than
...
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
1996-08-27 21:53:46 +00:00
thorpej
7e7c76ba78
Correct mistakes similar to those made in cgfour.c: Log message from
...
cgfour.c:
Fix a typo and an error in color plane offset calculation. Submitted by
Konrad Schroder <perseant@hitl.washington.edu>, PR #2695 .
1996-08-25 07:47:34 +00:00
thorpej
28df9248ce
Fix a typo and an error in color plane offset calculation. Submitted by
...
Konrad Schroder <perseant@hitl.washington.edu>, PR #2695 .
1996-08-13 20:52:43 +00:00
chuck
cfdb99f44c
repair XDC_HWAIT macro to handle the fact that waithead is now
...
unsigned. should fix xdc watchdog timeouts noted in port-sparc
by nathanw@mit.edu .
1996-08-12 20:19:27 +00:00
abrown
0c6696de2d
Take advantage of new am7990 sc_nocarrier() function in order to do auto-
...
matic media detection on Sun4m machines which support multiple media
(UTP and AUI). New function lenocarrier() switches media type when called
if no link? flags are set.
Redefine link flags for Lance ethernet (le):
<none>: switch between media as needed to find carrier (autodetect)
Preference to whatever the PROM is using (AUI if not booted
from the network)
link0: use UTP port only
link1: use AUI port only
This allows Sun4m machines with dual media Lance ethernet adapters to
boot from the network on the UTP port.
1996-07-06 00:01:34 +00:00
pk
e2ec1dab69
Avoid compiler warning on SUN4-only kernels.
1996-06-29 20:10:50 +00:00
chuck
7544016a9d
sbus specific stuff for eni155s sbus atm card.
...
XXX: only works on sun4c, needs something better than vtophys() for
machines with IOMMUs(?).
1996-06-22 02:02:48 +00:00
pk
ba3ce100e0
memory disk driver hooks to pass on the root filesystem bits.
...
Note: this file is called `md_root.c' in anticipation of the forthcoming
`rd' => `md' rename.
1996-06-20 20:15:40 +00:00
pk
b0b2a995cd
When booting from a floppy drive and RAMDSK_HOOKS is defined, arrange for
...
a callback from memory disk driver to load the actual root image.
1996-06-20 20:12:31 +00:00
pk
f62f900f6c
First go at a TCX framebuffer driver. This version does enough to
...
load and store colour lookup tables
blank the screen / put monitor in power-saving mode
make X11 run on it in `cgthree' emulation.
1996-06-19 13:17:35 +00:00
pk
5d5e7cf75e
bootpath detection: some (newer?) v2 prom versions use actual device address,
...
e.g. `/fd@1,72000000'.
1996-06-16 23:28:18 +00:00
pk
2266b8dd57
Use the setting of the ESPCFG2_FE bit rather than revision number to decide
...
on the ESP chip's maximum transfer count.
1996-06-12 19:12:19 +00:00
pk
6a4a26da0c
Correct test for `dmachild' which failed on `esp at obio*' configs (PR#2541).
1996-06-12 12:46:21 +00:00
pk
94cd1644ee
Avoid the "features enable" bit on ESP100A's; apperently this is a source
...
of trouble on many machines (from Krister Walfridsson; PR#2537).
1996-06-11 22:26:16 +00:00
thorpej
a01d6597b6
Squish a couple of rogue $Id's..
1996-06-07 21:48:33 +00:00
pk
3dfb6ab8c0
Code the residual computation a bit differently.
1996-06-03 23:48:41 +00:00
pk
460d3403be
Initialize video parameters if the board is not yet running. Useful if
...
the cg3 is not the console.
1996-05-31 09:59:22 +00:00
pk
a8deff302c
Clamp synch-transfer parameters at our maximum values on device-initiated
...
synch negotiation.
1996-05-30 22:19:10 +00:00
pk
c393eae7c5
event_var.h changed location.
1996-05-30 01:40:07 +00:00
pk
9a9cf8c3f5
Put back a `#if defined(SUN4M)' for now.
1996-05-30 00:57:35 +00:00
pk
b3666a87b4
Swiatch to `sys/dev/sun/event*'.
1996-05-29 21:57:51 +00:00
pk
f9f5f23ee3
We really need a ring buffer for every unit.
...
Eliminate extraneous ttyalloc() calls.
1996-05-29 21:45:28 +00:00
pk
4899447ffc
Add missing splx(), per Jason.
1996-05-29 21:08:28 +00:00
mrg
5583238255
impliment ttylist stats based on disk stats.
1996-05-29 02:02:42 +00:00
mrg
65d186d8e8
find a couple minor nits from previous change.
1996-05-29 01:58:09 +00:00
mrg
6ce8e31376
change zsinfo to a zs_softc, and impliment intr counts. mostly from OpenBSD.
1996-05-28 14:06:28 +00:00
mrg
08bd090b26
count audio interupts (from OpenBSD).
1996-05-28 13:36:09 +00:00
pk
4fa564e10d
Fix case where sequence state wasn't updated properly, resulting in
...
`disk_unbusy' panic.
1996-05-27 00:10:40 +00:00
pk
bc77c57c13
espattach() requires DMA to be configured. For now, panic if it is not.
1996-05-21 19:09:43 +00:00
pk
68691c178c
Allow all esp dma channels to be called `dma'.
1996-05-21 19:07:30 +00:00
mrg
0e4623e2f7
set the console struct winsize to the values given in the prom (sun4c/sun4m)
...
or the eeprom (sun4) when opening the console. (note: sun4 code untested
but jason claims it will `Just Work').
1996-05-19 13:00:43 +00:00
mrg
b6988904e0
put promdev definition into <machine/bsd_openprom.h>.
1996-05-18 12:27:40 +00:00
mrg
d7bc39fad1
don't set tmp twice.
1996-05-18 12:22:49 +00:00
mrg
68b2ff1bdb
use __P
1996-05-18 12:19:14 +00:00
pk
da5c96baa1
Correct an oversight and a silly past-o in last change.
1996-05-17 22:54:40 +00:00
pk
2d2098c11b
Check for `configuration parent' differently: compare against "sbus"
...
rather than "ledma".
1996-05-16 22:57:32 +00:00
pk
3f1283a92f
Re-arrange code that looks for the esp driver to allow for the fact that
...
any "dma" device (i.e. not just "espdma") can have an OBP child. This is
the case with (at least some) SBus SCSI boards.
1996-05-16 21:45:35 +00:00
pk
50e92fd71d
Use configuration file flags to disable reselection and/or sync negotiation,
...
on a per target basis (until the driver can sort things out on its own).
Test against "sbus" in stead of "espdma" to find out where in the
configuration tree we are: an esp can be the child of a "dma" on SBus
add-on boards.
1996-05-16 20:31:28 +00:00
abrown
4bbf23d04c
Copyright police (s/Harvard University/Harvard College/).
1996-05-16 15:56:54 +00:00
thorpej
1a79065f9f
Enable DMA by default on the 4/100 "sw" controller; the DMA bugs appear
...
to have been fixed.
1996-05-13 01:53:45 +00:00
thorpej
ac9df157aa
Changed struct ifnet to have a pointer to the softc of the underlying
...
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_start)()
to take a struct ifnet *, rather than a unit number.
1996-05-07 01:28:28 +00:00
thorpej
ae87feee24
Make the MI LANCE driver standalone, and use cfattach to resolve
...
naming conflicts between bus attachments on ports that can have
multiple instances of the LANCE.
Changed struct ifnet to have a pointer to the softc of the underlying
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_start)()
to take a struct ifnet *, rather than a unit number.
1996-05-07 01:27:26 +00:00
pk
e147a74bbb
Chip needs much more time to think things over (up to 2 seconds to complete
...
a `recalibrate' command if no flop present).
1996-04-29 12:07:32 +00:00
pk
646acc51d0
Map the pixels explicitly on the VME32 bus.
1996-04-23 19:34:05 +00:00
abrown
6b768c677a
Now that we have lehwinit() for the Sun4m, make sure that we wait 20ms
...
after changing the cable type, as specified in the chip documentation.
Also, sanity-check that sc_dma is valid in case a Sun4m ever exists without
a ledma.
1996-04-22 03:57:29 +00:00
christos
a897ec996a
Remove dependency on <sys/cpu.h>
1996-04-22 02:42:00 +00:00
christos
bebf990150
Oops the name of the UTP/AUI bit changed under me...
1996-04-22 02:39:49 +00:00
christos
5253b892e9
Add a hardware dependent initialization function lehwinit()
...
to support selecting UTP media on sun4m
1996-04-22 02:37:10 +00:00
abrown
709298a10a
- Changed Sun4m DMA chip support to detect and use maximum available SBus
...
burst size when transferring data.
- Changed ledma attach code to pay attention to the PROM's notion of what
cable type is being used. Note that this patch does not fix the problem
recently discussed on port-sparc; in most cases the PROM doesn't know
what cable type is being used. The default is now TP rather than AUI,
though. A complete fix is forthcoming.
1996-04-22 02:34:53 +00:00
cgd
d7d306aeb7
change LANCE copy & zero functions' names to start with amd7990_, and
...
remove their 'integrate' (usually defined to be 'static') keywords.
when lance drivers are split up by attachment, more than one file will
reference the copy/zero functions (i.e. not just the file that pulls in
am7990.c... and eventually inclusion of am7990.c should go away entirely).
1996-04-18 00:25:11 +00:00
pk
e4394459a1
`bootdv' is gone. Instead, set the device pointer in the `struct bootpath'
...
that is passed in the attach arguments.
1996-04-10 20:46:05 +00:00
chuck
e50fc72424
make netbsd/sparc boot on sun4 once again. the sun4m changes introduced
...
config lines for obio0 devices without addresses (thus cf->cf_loc[0] took
the default value of -1). we now ignore these entries on a sun4 since
they could never be valid (eliminates a 'panic:alignment' fault at bootup).
1996-04-05 21:50:05 +00:00
christos
362a6875bf
Remove last dependency to dev_conf.h and the file itself.
1996-04-01 17:34:34 +00:00
christos
f34addbb3b
- remove dependency to dev_conf.h
...
- remove unneeded casts for %b
1996-04-01 17:33:10 +00:00
christos
34f644d1b9
Remove casts of printf args for %b format.
1996-04-01 17:31:38 +00:00
christos
dc6ff48df6
Eliminated dependencies on dev_conf.h
1996-04-01 17:29:44 +00:00
pk
2f3ec93250
Various cleanup; mostly trailing spaces/tabs.
1996-03-31 22:38:29 +00:00
pk
66539854e8
Diddling of the `power' bit in machine control register (Aaron).
1996-03-31 22:34:40 +00:00
pk
954302ae70
Handle sun4m `ledma' and `espdma'.
...
DMA setup requires services of the IOMMU.
1996-03-31 22:32:45 +00:00
pk
7e45b3449f
Re-arrange a bit to stear clear of gcc `-Wall' bites.
1996-03-31 22:30:50 +00:00
pk
25aa56ae29
Handle sun4m `obio' devices.
...
Cleanup `#if defined(SUN4*)' mess.
1996-03-31 22:28:38 +00:00
pk
96f175d477
Add sbus_translate() to deal with slot address translations, including
...
new v3 PROM style "range" properties. This routine is also called from obio.c
(which can be viewed upon as just a another Sbus slot).
1996-03-31 22:27:15 +00:00
pk
345295ff08
Deal with sun4m le/ledma. Work around spurious interrupt problem (aaron).
1996-03-31 22:22:52 +00:00
pk
c299fd2d61
Bitfields are unsigned.
1996-03-26 01:28:50 +00:00
pk
a8564828ee
Back to normal printf()s, now that gcc understands `%b'.
1996-03-26 00:35:25 +00:00
pk
2dd9317452
Remove reference to sense code "internals".
1996-03-23 21:09:04 +00:00