Commit Graph

3674 Commits

Author SHA1 Message Date
mycroft a6e73a5576 Actually set all the logical filter bits. Doh! 1998-08-11 05:57:40 +00:00
scottr 396881cc5d Eliminate a potential (but not common) NULL dereference. 1998-08-11 05:47:43 +00:00
mycroft 271d3df6f3 Fix an obvious bug that caused the multicast filter to always be all 0s. 1998-08-11 04:18:25 +00:00
thorpej 9b46e98b21 Adapt to attribute name change. Also, deal with 3Com PHYs that report
0/0 as their oui/model IDs.
1998-08-11 00:41:44 +00:00
thorpej 7b8168e675 Adapt to new MII code. 1998-08-11 00:12:52 +00:00
thorpej d812ed6db7 G/c the 83840 register definitions. 1998-08-11 00:12:20 +00:00
thorpej 1301693108 Adapt to new MII code. 1998-08-11 00:11:39 +00:00
thorpej b1fb3ecb0f Adapt to the new MII code. This required splitting some structures into
if_tlvar.h, since the ThunderLAN PHY driver needs to know some things
about it's parent (and since it can only attach to a ThunderLAN chip,
this is the easiest way).
1998-08-11 00:09:26 +00:00
thorpej 36db6106a8 Adapt "tl" driver to the new MII code, and add the "mii" attribute to
the "fxp" driver.
1998-08-11 00:08:23 +00:00
thorpej f0d19c2ee1 Change the name of the attribute to "mii". 1998-08-11 00:05:36 +00:00
thorpej e7643533b6 Adapt to MII layer changes. 1998-08-11 00:03:12 +00:00
thorpej e8e237ffc6 Device driver for the Quality Semiconductor QS6612 PHY, found in
SMC EtherPower-II cards.
1998-08-11 00:01:03 +00:00
thorpej 6bae1a0bea Device driver for the Intel i82555 PHY. 1998-08-11 00:00:28 +00:00
thorpej 045a100420 Adapt to the new MII layer. This PHY driver now properly supports
802.3u autonegotiation, and will report the precise media selected
by autonegotiation by reading PHY-specific registers.

XXX There is still some work to do wrt. autonegotiation and the
BNC/AUI support in the ThunderLAN PHY.
1998-08-10 23:59:58 +00:00
thorpej f66f3b1ba9 Adapt to the new MII layer. This PHY driver now properly supports
802.3u autonegotiation, and will report the precise media selected
by autonegotiation by reading PHY-specific registers.
1998-08-10 23:58:39 +00:00
thorpej ad00a98756 Initial generation. 1998-08-10 23:56:19 +00:00
thorpej 3f8be46d4d Near complete rewrite of the MII layer to present an interface compatible
with BSDI's MII layer to device drivers.
1998-08-10 23:55:16 +00:00
matt 8ba8e2056b Remove unused field (sc_ih) in ess_softc (interrupt handlers are kept
in a per-direction structure).
1998-08-10 20:24:26 +00:00
augustss b034eb97bf Fix typo. 1998-08-10 20:02:48 +00:00
mjacob 345530343a Responding to an issue brought to my attention- when the device is
opened norewind and 2 filemarks are written at the end a phantom file
is left (just what I was afraid of, but I didn't think about it in
the last delta because somehow I had managed to convince myself that
this was a nonissue. It's not.).

So- in stdone clear ST_WRITTEN for regular reads. In st_close, preserve
the state of ST_WRITTEN, and if no error and 2FM@EOD for this device and
this is a no-rewind open, backspace one filemark. This should preserve
(for this mount session) FILE - FMK - FILE - FMK - FILE ... FILE FMK FMK EOD
sequencing.

This doesn't clean up the case of EOM appends- in this case you *will* still
get (after an MTEOM operation and a write of a file) a phantom empty file,
e.g. FILE - FMK FMK - FILE - FMK FMK EOD *unless* you follow the EOM operation
with an explicit backspace. The trouble is that this makes it difficult for
seamless interchange with other systems which don't necessarily follow.

The preferrable alternative would be to eliminate the 2FM@EOD except for
1/2" Reel tapes, but that has been pretty much nixed within developers.
1998-08-10 16:56:25 +00:00
mycroft 7fca135b1b Use the new trigger interface. 1998-08-10 15:32:18 +00:00
ragge 2ff84b0fe4 Kickoff xmit interrupts, needed on chip DC7201. 1998-08-10 14:41:16 +00:00
ross 920e7c7d5d Fix a race involving determination of pollmode. This is not known to be
associated with any observed lossage...it was just noticed while reading
ncr_start().

g/c some now-unreachable code produced by the earlier race condition fix.
1998-08-10 13:10:33 +00:00
mycroft 060f81eb62 Minor change. 1998-08-10 02:19:18 +00:00
mycroft 93703857ca Slow down, Wilbur. 1998-08-10 02:13:44 +00:00
mycroft 7514d511f7 Fix a typo I introduced in the MIDI code. 1998-08-10 02:12:30 +00:00
mycroft 1c6dea16fa For consistency, only do the rate coupling in full-duplex mode. 1998-08-10 01:27:34 +00:00
mycroft 8d77cae1b4 For models prior to the SB16, there is only one clock divider, so couple the
sample rates.  However, only do this if both play and record are being used
simultaneously; otherwise we can't play 22KHz on the SB1.
1998-08-10 01:25:33 +00:00
mycroft 20ec08b84e Oops. 1998-08-10 01:17:33 +00:00
mycroft 10148394d2 Call set_params if usemode changes. 1998-08-10 01:13:20 +00:00
mycroft 3dcff6581b Use the new trigger_{in,out}put interface.
Also, even on the SB1, we can leave the DMA controller in auto-initalize
mode and just send a command to the board for each block.  This may help
prevent FIFO underruns.
1998-08-10 00:20:39 +00:00
mycroft cf7abcbe64 Minor cleanup to debugging cruft. 1998-08-09 22:11:48 +00:00
mycroft 592b1dd587 But seriously... 1998-08-09 21:41:45 +00:00
mycroft a85ed63924 Oops; the previous was wrong on little-endian machines. 1998-08-09 21:35:03 +00:00
mycroft 4ffebebb25 Several things:
* Use the new trigger_{in,out}put interface.
* Allow the play and record channels to have different encodings (but the
  same sample rate).
* Play u-law and a-law as 16-bit data.  (This may not work yet...)
1998-08-09 20:32:34 +00:00
mycroft 17431823fb Add trigger_output and trigger_input entry points, which replace
init_{in,out}put and start_{in,out}put, and are only called once.
1998-08-09 20:28:07 +00:00
mycroft 8cbcfa0df2 Add mulaw_to_slinear16 and alaw_to_slinear16. 1998-08-09 19:22:15 +00:00
wrstuden b1bb9aa490 Oops. We do still need to set t_dev in the first open part of zsopen,
so we get ttyXX vs cuaXX right. Leave the initialization in attach.
1998-08-09 18:36:45 +00:00
mycroft a2fc689833 Make sure output is thoroughly halted on close, and remember that we stopped
it.
1998-08-09 07:25:58 +00:00
mycroft b4e0bf5dfb Use 4- and 8-byte DMA transfers. 1998-08-09 06:52:57 +00:00
mycroft 0611fc34f8 Don't actually touch the hardware in set_params; defer that until we actually
start a transfer.  Instead, just check that the parameters are valid.
Also, use 16-bit output for u-law and a-law.
1998-08-09 06:38:30 +00:00
wrstuden 26e55969e4 Initialize the struct tty's t_dev field at attach rather than first open.
The attach routine calls zsparam if we're setting up the console, and
zsparam needs this field to tell which zstty to set up. Otherwise, we
set up zstty0 even if it's not the console!
1998-08-09 06:17:07 +00:00
mycroft 9bedf069cd Mask off extra usemode bits. 1998-08-09 05:44:51 +00:00
mycroft 5eba82397c Oops; fix typo. 1998-08-09 04:59:55 +00:00
mycroft 017b9af5fe Clarify with a specific reference to the manual page in question. 1998-08-09 04:58:08 +00:00
mycroft b3853549b3 Always copy back both the record and play parameters, in case the driver had
to change one behind our back.
1998-08-09 04:54:44 +00:00
mycroft 12f5a41e1f Make the previous slightly more robust, and set AUDIO_PROP_INDEPENDENT. 1998-08-09 04:40:55 +00:00
mycroft c8532af3b2 Make sure the sample rate is the same on both channels, tracking the change
from one channel to the other if only one is active.
1998-08-09 04:14:47 +00:00
mycroft 759ca5ee0c The manual says to use the other crystal for 22050Hz. 1998-08-09 03:48:42 +00:00
mycroft 565adbaffb Set the FIFO control bits correctly so that stereo recording works. 1998-08-09 02:54:50 +00:00
mycroft 80457a2c65 Use auto-initialize DMA for recording. 1998-08-09 02:05:52 +00:00
mycroft e2686d0a1b Use splnet, not splimp. 1998-08-08 23:51:39 +00:00
mycroft c49235f44c Use splnet(), not splimp(). 1998-08-08 23:44:12 +00:00
mycroft 7795559d04 Use splaudio on the arm32 port. 1998-08-08 23:40:03 +00:00
mycroft 254afcaecb Sleeping forever kinda sucks. 1998-08-08 21:37:00 +00:00
mycroft 17932f0575 Set the correct modes for the record channel. 1998-08-08 20:55:36 +00:00
augustss 94e9a8651a Forgotten to commit this in last change. 1998-08-08 11:00:33 +00:00
ross 815f9f2445 1. Untangle preprocessor conditionals for sanity and {} balance
2. Fix a race between the first callout and the first non-polled ncr_start()
1998-08-08 00:14:08 +00:00
drochner 49637cda8d use an md keyboard beep replacement function on alpha too 1998-08-07 10:28:36 +00:00
thorpej 9bb616c621 Regen. 1998-08-07 06:59:31 +00:00
thorpej 88c6239026 Add product IDs for the 3Com Cyclone-based PCI Ethernet devices,
the 3c90xB DMA-only cards.
1998-08-07 06:58:57 +00:00
thorpej 558733ffc6 Track our carrier status and report it in the media status callback. 1998-08-07 05:55:14 +00:00
matt 202c97c54d Add an isapnp frontend for the ess driver. It somewhat works
(sounds is made but one buffer is played continuously).
1998-08-07 00:53:23 +00:00
matt 7b044dea51 Make the irq checking logic somewhat less bogus. 1998-08-07 00:51:06 +00:00
augustss 51bb504a6e Report a sensible MIDI device name. 1998-08-07 00:28:20 +00:00
augustss 48bae9ee88 Add MIDI support. The MIDI devices can be accessed as ``raw'' through
the /dev/rmidiN devices, or with a sequencer interface via /dev/music.
So far the only supported MIDI device is the MPU401 port on SoundBlaster
(and only on SB on isapnp, since we do not have locators with multiple
values yet).
1998-08-07 00:00:55 +00:00
augustss 02c9ad1755 And fix pastos. 1998-08-06 12:26:51 +00:00
augustss a79bb0d7ae Fix tyop. 1998-08-06 12:23:39 +00:00
drochner e2a2525203 fix incorrect length of LOCATE CDB (reported in PR kern/5306 by
Dave Huang <khym@bga.com>)
1998-08-06 10:20:38 +00:00
augustss 0c6791d804 Add macro to test iobase validity. 1998-08-05 16:40:22 +00:00
augustss 28e2d6024a Clarify a comment. 1998-08-05 16:38:09 +00:00
drochner 32fce55082 Improve generation of default disklabels:
-store printable product ID in cd's and sd's softc, use it as "typename"
-for this, add a "destination buffer length" argument to scsipi_strvis()
-return ATAPI device type for ATAPI devices
1998-08-05 16:29:04 +00:00
augustss a0aeff98c4 Fix two pastos. 1998-08-05 10:16:25 +00:00
augustss f76fb48283 Use looping DMA for play channel.
More cleanup.
1998-08-04 13:14:42 +00:00
augustss 5b057ab09f Allow option AUDIO_INTR_TIME even if the platform does not support
FP in the kernel.
1998-08-04 11:26:14 +00:00
augustss ac2b25e392 Improve some error messages.
Make some preparations for isochronous transfers.
1998-08-02 22:30:52 +00:00
augustss 607075abc6 Use wskbd enable function. 1998-08-02 22:27:01 +00:00
drochner 0dc548ce7d Adapt to wskbd interface changes; add dummy enable/disable function. 1998-08-02 14:22:25 +00:00
drochner 86b0985e69 Adapt to wskbd interface changes; implement enable/disable function.
Disable the keyboard on attach if not console.
1998-08-02 14:21:02 +00:00
drochner 4ee71fe4f4 Split the wskbd_attach arguments into console and autoconfiguration parts
(again); put some constant data into shared structures. This makes it
more look like the mouse part, and it helps USB integration.
Implement wskbd_enable() to enable/disable the keyboard.
1998-08-02 14:18:07 +00:00
augustss eba74b9369 Abort interrupt pipe on disconnect. 1998-08-01 20:52:45 +00:00
augustss 6aff95b06c Make sure to abort the interrupt pipe on disconnect of a mouse or keyboard.
Improve some error messages.
1998-08-01 20:11:38 +00:00
augustss f654e0188e Switch from a global flag to tell if the host controller should use
polling to a local one for each controller.
1998-08-01 18:16:19 +00:00
augustss 5a1f4dd6bc Complete the scancode conversion table.
Tell the keyboard not to send idle reports.
1998-08-01 17:46:22 +00:00
augustss ce69d417a2 Make it compile without DIAGNOSTIC 1998-07-31 23:54:09 +00:00
mjacob 6e34b79e01 Suggestion from Matthias Drochner: If at close you decide to write
filemark 'coz you opened write only and didn't do anything else,
call st_check_eod to possibly write TWO furshlugginer filemarks.

Also- return any errors from writing filemarks out of stclose.
1998-07-31 17:25:55 +00:00
augustss 6b407a79c6 Major cleanup of the ESS driver. It now sorta works. More to come. 1998-07-31 15:17:17 +00:00
thorpej 53878c1925 Change one word to be consistent w/ a previous message. 1998-07-31 05:37:02 +00:00
thorpej 99d64ae1ca Oops, unused variable. 1998-07-31 05:29:48 +00:00
thorpej 4ea9132164 Rearrange isapnp_callback() slightly. 1998-07-31 05:28:24 +00:00
thorpej c489673819 Ensure we're probed only once per ISA bus. 1998-07-31 05:26:15 +00:00
wrstuden 06761b1ed4 Merge in a register definition mentioned only in passing in one place in
the Zilog docs.
1998-07-31 05:08:38 +00:00
thorpej 6ec566abd2 Add BeBox support. 1998-07-31 04:56:55 +00:00
thorpej c46ad7a0cc Add NetBSD/arm32 support. 1998-07-31 04:50:54 +00:00
thorpej 171cebde9c Actually add support for the Atari. 1998-07-31 04:45:01 +00:00
thorpej 75db93cec2 Pull in files.isapnp here; the two busses are linked together quite closely
(more than we'd like maybe, but don't we wish ISA didn't suck...)
1998-07-31 04:40:39 +00:00
thorpej 54de49fcb9 Add support for NetBSD/alpha. 1998-07-31 04:35:22 +00:00
thorpej f40a42d5c4 Use config_defer() to scan for ISA PnP cards. 1998-07-31 04:00:35 +00:00
mjacob b90b2a3798 Several more changes. First of all, move CTRL_MODE to have I/O behaviour
like a no-rewind device. Secondly figure out whether the initial TUR
for a CTRL_MODE open resulted in a tape being actually found (if so,
then do a mount session).

Move the 'sun compatibility' behaviour into stdone && stclose- don't
mark a tape as having been written in stopenm, fer gosh sakes.
1998-07-31 04:00:22 +00:00
thorpej 03ffe0a516 Use the pool allocator for scsipi_xfer structures. 1998-07-31 03:00:51 +00:00