mycroft
5bc567b0d3
Set IER_ETXRDY before outputting any bytes, to prevent race condition.
1996-02-19 15:09:25 +00:00
mycroft
c011a5eae4
Handle break more correctly.
...
Make IER_ETXRDY track TS_BUSY. (Prevents a loop in comintr() if no output
is available.)
Add a bunch of debugging code.
1996-02-19 14:53:03 +00:00
pk
b9de283ae6
Fix typo; pointed out by jtk.
1996-02-19 10:30:09 +00:00
gwr
e9d6e59c62
Fix two bugs found by Bill Studenmund:
...
Driver can not use tp->t_sc for its own purposes
Attach should take the unit number from _dev.dv_unit
1996-02-19 04:34:01 +00:00
mycroft
e5730c4a73
Fix a race condition where we might stop outputting if a write follows a
...
flush too closely.
1996-02-18 09:10:15 +00:00
mycroft
203f5d5329
Add some text describing the UART lossage worked around in the previous.
1996-02-17 04:51:41 +00:00
mycroft
121f6570d7
Drain the transmitter FIFO before changing the baud rate or FIFO depth
...
registers. Fixes PR 2046.
Also, if COMCONSOLE is defined, expect CONSPEED to be the baud rate.
1996-02-17 04:04:28 +00:00
mycroft
9cbadb3ec2
Remove incorrect comment. From Mike Long, PR 1277.
1996-02-16 08:12:33 +00:00
christos
ee08b72ef4
Hayes ESP register definition
1996-02-10 20:23:40 +00:00
christos
11d31f7ce7
Hayes ESP patches [from PR database]
1996-02-10 20:23:18 +00:00
christos
30c34c327f
vnd.c: Typo (disk_deta{t,}ch) It was detach in the header file and
...
detatch everywhere else. Reverted to the english spelling.
Also fixed the rest of the prototype warnings while I was at it.
ic/ncr5380sbc.c: Don't declare Debugger()... I have to clean this
everywhere :-(
1996-02-10 00:11:44 +00:00
scottr
54c51d4393
Document this file better, mostly from John Vinopal
...
<banshee@gabriella.resort.com>. Closes PR #1864 .
1996-02-05 23:01:50 +00:00
jtc
3ae2aedf4d
Fix error in copyright notice
1996-02-05 02:18:48 +00:00
jtc
240e22087c
Received copyright assignment
1996-02-05 00:10:32 +00:00
mycroft
88e512b693
LOCORE -> _LOCORE
1996-02-01 22:28:24 +00:00
gwr
f2e57c6dc8
Eliminate remaining direct references to the z8530 chip
...
to allow the MD access functions to do delays, etc.
1996-01-30 22:34:52 +00:00
gwr
c2c1c1b11a
Move struct definitions to MD code.
1996-01-24 19:21:40 +00:00
gwr
ca633a9f35
Reorganized, machine-independent z8530 driver, based on the sparc/sun3 zs.
...
Uses autoconfig to attach keyboard, mouse, or tty. (See z8530.doc)
1996-01-24 01:07:21 +00:00
gwr
5886eb474f
Use the function pointers sc_pio_in, sc_pio_out to call the PIO functions
...
for transfers in data phase so those functions may be MD implementations
that do "pseudo-DMA" if desired. Also correct some comments.
1996-01-23 19:47:00 +00:00
christos
d3427703db
Hayes ESP support from Michael Van Loon, with minor cleanups. Tested on
...
a single port ESP card; works great!
1996-01-14 23:44:34 +00:00
thorpej
e422ebca1a
Add the "ahe" driver, autoconfiguration support for the aic7xxx-based
...
Adaptec 2[78]4x SCSI controllers, from Michael Graff <explorer@flame.org>.
Fixes PR #1594 from Noriyuki Soda <soda@sra.co.jp> in a different way.
1996-01-13 02:05:14 +00:00
thorpej
efb493a4e0
Back out the rint/tint hook stuff, and remove need to LEINTR_UNIT. The
...
hp300 was the last to use it.
1996-01-02 21:51:56 +00:00
thorpej
1bd3fee124
Switch to David Jones' new machine-independent NCR5380 driver. It's been
...
in use by the sun3 port for some time, and is now used by the sparc port.
1996-01-01 22:24:30 +00:00
thorpej
0df0df026b
Add hooks at the top of the tint and rint functions, conditionally called
...
if the CPP symbols LE_TINT_HOOK and LE_RINT_HOOK are defined, respectively.
The hooks are called by jumping though the sc_tint_hook and sc_rint_hook
members of the softc, and take the softc as an argument. Only ports which
need these hooks need to declare them in the softc.
1995-12-30 20:59:17 +00:00
chopps
fd9084650c
make changed from pr#1824 from Ignatios Souvatzis
1995-12-27 07:51:40 +00:00
mycroft
3da4b2a160
The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
...
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
1995-12-24 02:29:35 +00:00
tls
69d57286dc
merge latest Thomas version with our minimal changes
1995-12-23 06:22:46 +00:00
mycroft
7bb08a12f6
Make lewatchdog() take an int, not a short.
1995-12-11 19:48:53 +00:00
pk
0d1981416d
Adapt to changed mapiodev() interface.
1995-12-11 12:43:14 +00:00
mycroft
d51f726204
Fix typo, and eliminate some unneeded local variables.
1995-12-11 02:30:44 +00:00
mycroft
333f2e0065
Make several informational messages #ifdef LEDEBUG.
1995-12-11 02:21:56 +00:00
mycroft
77fce9fe33
Change format of probe messages slightly.
...
Add work-around for LANCE rev. C bug, iff LANCE_REVC_BUG is defined.
1995-12-10 08:55:07 +00:00
jtc
0cd793449e
merge in changes from 1.1 release branch
1995-11-30 00:56:23 +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
pk
2f9169d20b
Correct NE7CMD_FORMAT command (from John Kohl; PR#1637).
1995-10-20 00:02:20 +00:00
mycroft
f096f370fb
Use SET(), CLR(), and ISSET() macros.
...
Rename CFCR to LCR, and cache its value.
Check MSR before transmitting, for better flow control.
Preserve LCR_SBREAK inside comparam().
1995-10-15 19:43:04 +00:00
chopps
78bd894529
add prototypes for isr stuff fixes pr# 1284 and 1569
1995-10-09 15:19:58 +00:00
chopps
3973aeb080
fix hang bug from Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
1995-10-09 14:05:24 +00:00
mycroft
b216bead49
Add an Adaptec 2940 driver, by John Aycock and Justin Gibbs, ported to NetBSD by Stefan
...
Grefen, with several bug fixes by me.
1995-10-09 09:49:30 +00:00
mycroft
393a69d6db
Modularize the CCB/MSCP/ACB/ECB handling a little. No functional changes.
1995-10-03 20:58:56 +00:00
pk
601a054fb3
Remove a sun3-ism.
1995-09-26 21:04:27 +00:00
thorpej
26419c5a8b
Don't declare Debugger(). It's handled in <sys/systm.h>
1995-09-26 19:31:15 +00:00
thorpej
dd2f3dddef
Don't declare Debugger(). It's handled in <sys/systm.h>
1995-09-26 19:24:26 +00:00
pk
0fbf2ca04a
Make *print() a message if no scsibus was attached. Also, return something
...
valid.
1995-09-14 20:43:09 +00:00
pk
589d83d6a8
Patches from Jason Thorpe to deal with 4/110 scsi (PR#1422).
...
Also repairs a problem noted by David Jones: detect scsi phase correctly.
1995-09-03 22:26:02 +00:00
leo
b7680d7c14
Select the right register structure for the Atari. Although it's big-endian,
...
it uses the odd bytes. Also make the registers volatile.
1995-08-20 13:24:05 +00:00
cgd
b0dc5d3d7f
local adaptations, and fix a could of compilation errors
1995-08-19 04:35:18 +00:00
cgd
01597582c1
fix botch in one of my previous imports
1995-08-19 04:15:29 +00:00
cgd
9980150670
Generic FDDI support by Matt Thomas. Support for DEC "PDQ" FDDI chipset
...
and for the PCI attachment of said chipset ("if_fpa"), also from Matt Thomas.
Arguably, pdq* doesn't belong in sys/dev/ic, but it's going to be shared by
various bus attachment devices at some point in the future, and there's no
other place that seems to fit as well.
1995-08-19 00:59:47 +00:00
cgd
c9dbf2d1d2
clean up 7/26 de snapshot import
1995-08-17 18:04:55 +00:00
mycroft
80d7b0695a
minphys() functions really should return void.
1995-08-12 20:30:45 +00:00
mycroft
e4413d1a10
Fix another comment.
1995-08-07 14:26:51 +00:00
mycroft
f657f5bf3e
Make this interface simplex. It's more efficient, and sidesteps the
...
problem of receiving our own multicasts in promiscuous mode. Also, fix
some outdated comments.
1995-08-07 14:16:26 +00:00
cgd
830a91b2e9
update SCSI minphys routines' definitions to match standard minphys()
...
definition and usage.
1995-07-24 07:16:44 +00:00
cgd
979cf41d87
merge changes from update
1995-07-24 05:26:53 +00:00
mycroft
607e071f1b
Fix pasto.
1995-07-24 04:34:51 +00:00
mycroft
8170afdb2d
Copy changes from ISA version.
1995-07-24 04:15:35 +00:00
mycroft
57528ce346
Init functions are always called at splimp().
1995-07-23 20:36:51 +00:00
mycroft
465cfd15f0
Always use m_pkthdr.len on output. Panic if M_PKTHDR is not set.
1995-07-23 16:32:33 +00:00
brezak
693043d786
GUS audio driver from John Kohl.
1995-07-19 19:58:09 +00:00
brezak
f8b400c446
Change DEBUG-->AUDIO_DEBUG. PR# port-sparc/1241
1995-07-19 19:50:16 +00:00
pk
c5ad4c85f0
ncr5380 chip definitions and MI part of driver.
1995-07-08 21:30:41 +00:00
brezak
0bdd4aa7c2
add support for cs4231
1995-07-07 02:11:45 +00:00
mycroft
eb99dcc09a
Fix a condition where ttywait() wouldn't be woken up. Also, short-circuit
...
the case of no pending input in compoll().
1995-07-04 06:47:18 +00:00
mycroft
f4b5f723e0
Remove references to if_addrlist.
1995-07-02 00:16:00 +00:00
cgd
2b71eae2c7
note that most of dev/ic's contents have changed names
1995-06-28 04:30:30 +00:00
cgd
28cbee6941
move to more appropriate (...reg.h) names.
1995-06-28 04:02:13 +00:00
cgd
50937bb63a
add charles's mostly-machine-independent lance driver, which is used
...
by the Alpha port.
1995-06-28 02:24:50 +00:00
cgd
c319ff6546
these have moved to more appropriate names
1995-06-28 02:23:27 +00:00
chopps
5ad7f31079
udpate to match ifnets new use of sys/queue.h
1995-06-27 13:13:32 +00:00
briggs
a68aae96fc
David Leonard (leonard@dstc.edu.au) noticed an embedded comment
...
delimiter in a comment within a #define (ZSWR14_DTR_REQ). Inserted
spaces in case someone wants to use this define at some point.
1995-06-19 13:15:08 +00:00
mycroft
d9fc8ef092
Remove check for if_addrlist == 0; if_attach() always puts one address on
...
the list, so this is a noop.
1995-06-12 00:09:42 +00:00
cgd
d4f62dcb69
update from Ignatios Souvatzis
1995-06-07 00:13:52 +00:00
mycroft
4bfd7749ad
Various:
...
* Check for CTS in the correct register.
* Only do a selwakeup() if we output something.
* Don't make assumptions about what TTYDISC does.
1995-06-05 19:08:09 +00:00
cgd
89c30bb2e3
do the right thing with fixed-size types.
1995-06-05 00:49:45 +00:00
cgd
c71cccacde
kill old Id and Log. add NetBSD Id
1995-06-05 00:46:30 +00:00
cgd
551bcffab9
dc21040 driver, from Matt Thomas
1995-06-05 00:38:18 +00:00
mycroft
5b37a8fded
Handle BREAK correctly when not entering DDB.
1995-06-04 20:50:14 +00:00
mycroft
38847d04c0
Add an input FIFO, and fix several flow control problems. Based on code from
...
Felix A. Croes.
1995-06-04 20:39:22 +00:00
jtc
d045544ebd
Changed ns82450 to ns8250 and dropped ns82550 from probe console messages.
1995-06-01 21:26:51 +00:00
mycroft
addaff473b
Only use the `no pending interrupt' bit in the IIR; the other bits
...
are too unreliable on clone chips.
1995-05-28 03:26:37 +00:00
cgd
c821cb684a
(1) conditionalize debugger usage in comeint with DDB, not COMCONSOLE;
...
latter would lead to undefined symbols if DDB not defined.
(2) check for break on console, and therefore debugger entry (if ddb
in kernel) earlier, so that the device doesn't need to be open.
(3) return immediately after breaking into the debugger in comeint().
(4) only do the normal character input routine in comintr if receive
mask yeilds _EXACLTY_ LSR_RXRDY. if there's only a receive
error, or there's a receive error _and_ a received character,
do comeint().
(former two by me. latter two from Bob Baron <rvb@cs.cmu.edu>.)
1995-05-12 17:54:41 +00:00
pk
7d244351cf
Add `evcnt' field.
1995-05-04 19:43:27 +00:00
cgd
5d25b2c50e
machine-independent definitions for the Motorola MC146818A Real Time Clock
...
and compatible chips, including the Dallas Semicontuctor DS1287A.
This chip is used in PC's, DECstations, and Alphas, at least...
1995-05-04 19:31:18 +00:00
mycroft
825d2fee22
Add Masahiro SEKIGUCHI's MB8696[05] driver, ported, with some additional
...
changes by me:
* Make autoconfiguration work correctly for more models of AT1700.
* Make the debugging code more robust and complete.
* Tweak the output routine for better performance, and to eliminate an ugly
kluge.
Various other style cleanup. Needs more work.
1995-05-01 02:47:07 +00:00
hpeyerl
c9319ad5c4
<break> --> ddb if defined(comconsole).
...
(if you have a serial console and you hit break, you get ddb).
1995-04-28 00:34:08 +00:00
pk
8d90aefeb0
New audio driver from Rolf Grossmann.
1995-04-25 20:05:32 +00:00
pk
6404739df8
AMD9730 telephony chip (used to be sparc/dev/bsd_audioreg.h).
1995-04-24 19:17:17 +00:00
mycroft
bfab570cda
Add constants for some keyboard controller commands.
1995-04-21 09:16:16 +00:00
mycroft
9e28a35469
Fix thinko in previous change.
1995-04-19 22:04:33 +00:00
mycroft
53d73c77a5
Garbage collect #includes.
1995-04-19 19:10:35 +00:00
mycroft
e1315808a7
Implement comtty().
1995-04-19 18:59:27 +00:00
cgd
8a640328ed
clean up several ISA device interfaces: autoconfiguration, header
...
inclusion, and interrupt configuration. more work still needs to be done,
but it's getting better...
1995-04-17 12:06:30 +00:00
cgd
edc749be89
cleanup; mostly KNF.
1995-04-15 10:35:24 +00:00
chopps
ed0da4a701
couple small changes plus a new watchdog timer from Ignatios Souvatzis <is@beverly.rhein.de>
1995-04-14 16:57:19 +00:00
mycroft
d57b9b75ba
Take endianness into account in ed_ring.
1995-04-12 16:12:42 +00:00
chopps
a04aa1397a
fix up some changes
1995-04-11 18:51:55 +00:00
mycroft
893d53414a
Sync with the rest of the world. Various additional cleanup.
1995-04-11 05:46:53 +00:00
mycroft
8d8af964a7
Move NIC register definitions to a global location.
1995-04-11 04:45:26 +00:00
mycroft
6e9015b37a
This is deprecated.
1995-04-11 04:44:44 +00:00