Commit Graph

3805 Commits

Author SHA1 Message Date
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
thorpej
6056af462f Use the pool allocator for vndxfer and vndbuf structures. 1998-07-31 02:24:26 +00:00
thorpej
dcfe0e1506 Back out part of previous; it is perfectly reasonable, and desirable, to
print out debugging info ifdef DEBUG.
1998-07-31 02:14:40 +00:00
mjacob
bec14b0ce3 Part A (Cosmetic nonsense):
>We're not Linux.  If we still want driver version strings to be displayed
>at boot, then I suppose DEBUG is a reasonable compromise.
Makes the whole concept useless. This is for default printouts. If you
can build a debug kernel, you know what version you have. This was under
the concept of 'RAS' so that hapless users could tell you microversion
things. But I guess this isn't the right way according to our local
Jesuits. Oh, well. I'll think up something different and hopefully
less objectionable. And yes, NetBSD isn't linux. The developers seem
to be equally bad tempered, but linux is more successful.

Part B:
Field interrupts in OS layer so that (in this OS) bus_dmamap_sync(POSTREAD)
can (formally) ensure that the result queue is stable wrt to buffering
and that for sending a command a bus_dmamap_sync(PREWRITE) is done to
ensure that the device gets a good view of what the mailbox contents
should be.
1998-07-31 02:08:16 +00:00
thorpej
4356136193 Use the pool allocator for component buffer headers. 1998-07-31 01:23:56 +00:00
rvb
11c3d96b49 Flush spurious #endif after ADDMULTI 1998-07-31 01:10:13 +00:00
thorpej
3cd681ef27 Typo. 1998-07-31 00:42:31 +00:00
thorpej
34529b444b From cd.c: call disk_unbusy() if we are unable to enqueue our command. 1998-07-30 23:57:07 +00:00
pk
6026f141fd Enable bus_dmamem_alloc/bus_dmamem_map 1998-07-30 22:44:51 +00:00
thorpej
bf52ef5697 Squash unused variable. 1998-07-30 22:17:34 +00:00
is
ae2fb64e3a Document supported boards near the top of the driver source code. 1998-07-30 21:28:15 +00:00
thorpej
4f8d24662e Uncomment the SoundBlaster ofisa attachment; the Shark isn't the only
potenial user of ofisa (e.g. my FirePower).  An ofisa attachment for the
SoundBlaster is prefectly legitimate.
1998-07-30 21:25:05 +00:00
thorpej
0bd4f9291c Use the correct "compatible" strings (ESS, not generic SB!), and correct
some comments about what we expect as far as interrupt and dma properties.
1998-07-30 21:22:59 +00:00
thorpej
16ad73c288 Add the Simple Technology Communicator 28.8. 1998-07-30 20:47:11 +00:00
thorpej
b25d4941cd Regen. 1998-07-30 20:45:35 +00:00
thorpej
965404c104 Add Simple Technology vendor ID, and Simple Technology Communcator 28.8
product ID.
1998-07-30 20:44:25 +00:00
christos
b7a585b61d Use the previously committed pnp hook. 1998-07-30 18:03:34 +00:00
christos
c1303944f7 Add a hook that resets the bios configuration from the pnp devices
thus making them invisible to isa probes [from OpenBSD]
1998-07-30 18:02:50 +00:00
christos
dd49f248a4 Protect against multiple inclusions. 1998-07-30 18:01:44 +00:00
is
8bd9c69e11 Multicast support. 1998-07-30 16:40:19 +00:00
augustss
c0ca4781ed ESS attachments for ofisa. 1998-07-30 14:15:59 +00:00
augustss
cdeb158d5f A first stab at making the SHARK sound work. It doesn't really work
yet, but it probes and makes a noise when used.  Stay tuned!
1998-07-30 14:11:42 +00:00
drochner
326ffe6cd3 regen 1998-07-30 09:47:49 +00:00
drochner
085f3ce0cc add entry for Boca 56k (from Fujie Zhang <fzhang@NMSU.Edu>)
update comment for OPL3-SA2 / OPL3-SA3 (same PnP ID)
1998-07-30 09:45:16 +00:00
mjacob
e404c0efec Some minor comment tweaking.
Also- to be fair and on review, kern/391 isn't really addressed by
the previous commits. In reviewing, I'm embarassed to find that this
talks about reading at EOT. I'm actually going to claim that this
is 'not a bug' or 'fixed already' in that at the end of media (at the
edge of recorded media), you may continuously open the tape (should
you choose to) issue a read, and zero bytes will transfer- this is a
sufficient EOF indicator.
1998-07-30 04:11:43 +00:00
mjacob
c45a129a99 Clarify and name some of the 'open' modes. Clarify a few comments. Remove
a now unused variable. Also, remove the restriction against at density
code being greater than the max SCSI 2 density code: 0x80..0xff are the
Vendor Unique codes and most certainly should be allowed. The check for
invalid values should be less than 0 or greater than 255.

Oh- yeah, the previous commit addressed kern/391.
1998-07-30 03:17:22 +00:00
mjacob
7692effeed Make some changes wrt EOM behaviour. Distinguish EIO_PENDING from
EOM_PENDING. Set up a persistent EARLYWARNING behaviour flag. If
set, EOM behaviour forces a 'short read' to signal logical (as
opposed to physical) end of media. The user application may, of
course, do with this information what it will.

The EARLYWARNING behaviour may be enabled/disabled by a MTIOCTOP
operation. The default action is to not have EARLYWARNING enabled-
but this may be reversed by an option ST_ENABLE_EARLYWARN in
the kernel build.
1998-07-30 00:55:20 +00:00
mjacob
4205ca3d2a opt_scsiverbose.h now is opt_scsi.h and contains the defopted
SCSIVERBOSE and the new ST_ENABLE_EARLYWARN.
1998-07-30 00:49:19 +00:00
fvdl
d40e353fa6 Add NOLUNS quirk for the UMAX Astra 1220 scanner. 1998-07-30 00:00:06 +00:00
augustss
a0803787f7 Add functions to execute asynchronous requests and use these from
interrupt context.
[I had some feline debugging help here.  I noticed that every time Kem,
our kitty, jumped onto the USB keyboard the machine crashed.]
1998-07-29 20:50:11 +00:00
augustss
f453d02883 Make sure to report wheel movements. 1998-07-29 20:44:32 +00:00
pk
4f2fd378bb Use sbus_destroy_attach_args(). 1998-07-29 18:33:27 +00:00
pk
1d8ad313ab struct rom_range' => struct sbus_range' 1998-07-29 18:32:54 +00:00
pk
9a7ffd5724 Move some Sbus structures in here.
* attach arguments now directly support multiple register and
	  interrupt sets.
	* address translation (`ranges') has been made bus-specific
	* introduce sbus_destroy_attach_arg() to clean up after
	  attaching an an Sbus device.
1998-07-29 18:30:20 +00:00
augustss
d6a8a4f025 Don't print chip name in attach, the ad1848 attach already does. 1998-07-29 11:39:25 +00:00
augustss
0733d4c87f Do locator related defines using defines from locators.h rather
than literal constants.
1998-07-28 22:01:24 +00:00
thorpej
99b10d9e98 Regen. 1998-07-28 21:51:34 +00:00
thorpej
463fc03c76 Add the IMS TwinTurbo 128M graphics board. 1998-07-28 21:50:30 +00:00
augustss
ae97a4cbf5 Support for USB mice with Z axis or wheel. 1998-07-28 21:21:47 +00:00
augustss
20f454ae1c KNFify. 1998-07-28 20:58:39 +00:00
drochner
0a5abbe31d Reset the mouse in attach(); Bog knows what other drivers did to it
in their probe()s.
Clean up some "pms" vs. "psm" naming confusion.
1998-07-28 20:18:36 +00:00
is
0d257affa0 Add some constants. 1998-07-28 16:03:49 +00:00
is
a374ab61d8 ic/i82595reg.h 1998-07-28 16:02:34 +00:00
is
4fb93c48ec Remove dead code. 1998-07-28 14:44:46 +00:00
augustss
4e690f3740 Improve chances of success and make it compile again. 1998-07-28 14:16:29 +00:00
pk
4129139031 Supported medium is IFM_10_5 1998-07-28 12:22:37 +00:00
augustss
daed8d7ce1 Fix obsolete code in waiting for calibration on the ad1848.
(Sigh, the ad1848 driver should be rewritten.)
1998-07-28 12:13:34 +00:00
augustss
b068e817d9 Add missing .include <bsd.kinc.mk> 1998-07-28 08:45:46 +00:00
pk
2c49105697 Fix #includes.
Remove #ifdef SUN4C & SUN4M.
1998-07-28 00:44:39 +00:00
pk
5bf04ed2be Add `sbus' to SUBDIRS. 1998-07-28 00:36:31 +00:00
pk
783e554213 One header to install. 1998-07-28 00:33:03 +00:00
pk
315e1a28de Fix #includes 1998-07-28 00:31:42 +00:00
pk
fd9017990f Magma driver has been moved to <dev/sbus> 1998-07-28 00:17:47 +00:00
pk
48ca0ed59d Lance front-ends on Sbus moved here. 1998-07-27 23:56:26 +00:00
pk
947f2424a8 Add le at sbus', le at lebuffer' and `en at sbus'. 1998-07-27 23:54:58 +00:00
pk
fa624fd99a Moved to dev/sbus from arch/sparc/dev
Get headers from <dev/sbus>
1998-07-27 23:47:07 +00:00
tron
a79f26fe76 Regen from pcidevs. 1998-07-27 22:58:43 +00:00
tron
04affecc7a "Brooktree Brooktree Bt848" -> "Brooktree Bt848" 1998-07-27 22:58:07 +00:00
drochner
ee4bf8991d add support for native "Intelli" mice (wheel = z axis) 1998-07-27 22:36:23 +00:00
drochner
1b27072062 add zero z axis argument 1998-07-27 22:34:30 +00:00
drochner
87ad9bca7a add third axis for pointing devices (flying mice) 1998-07-27 22:33:22 +00:00
tron
0d386417e9 Regen from pcidevs. 1998-07-27 21:37:17 +00:00
tron
d54ccbde1a Add Brooktree Bt848 and BT849 video capture chips. 1998-07-27 21:34:11 +00:00
augustss
e8e8a975af Regen. 1998-07-27 20:04:10 +00:00
augustss
6585f9ebc1 Add S3 SonicVibes. 1998-07-27 20:02:27 +00:00
pk
81ff4e8b36 qec device register definitions (from OpenBSD). 1998-07-27 19:27:19 +00:00
pk
3252d462bb qec `bus' driver; much like lebuffer. 1998-07-27 19:26:32 +00:00
pk
08a95cc833 Change copyright. 1998-07-27 19:25:34 +00:00
pk
e68ada23e2 Move "sbusvar.h" hack in here.
Also define SBUS_BURST_* values here.
1998-07-27 19:15:40 +00:00
pk
3299f8cfe4 Get headers from dev/sbus. 1998-07-27 19:13:45 +00:00
pk
b1fe2da904 get headers from dev/sbus 1998-07-27 19:13:06 +00:00
pk
444f71921e sbus configuration file. 1998-07-27 19:04:14 +00:00
augustss
47f172660c Make ums attach to wsmouse only. 1998-07-27 18:51:32 +00:00
thorpej
e3eed5f706 Fix cfattach naming botch. 1998-07-27 18:27:36 +00:00
drochner
1e737a4010 add definition for pointing device's absolute z coordinates 1998-07-27 18:17:08 +00:00
drochner
e6f2ea1f40 define a z axis for pointing devices which support this 1998-07-27 16:59:22 +00:00
mrg
53017397ee move these files to sys/dev/sbus. currently uses a hack to access the correct "sbusvar.h" XXX fix me. 1998-07-27 05:43:58 +00:00
thorpej
8db7ed28a4 ISA with OpenFirmware configuration glue for the CS8900 Ethernet driver. 1998-07-27 01:26:43 +00:00
thorpej
0f7ec45c46 Add CS8900 Ethernet driver, and ISA front-end. 1998-07-27 01:22:41 +00:00
thorpej
e9128957a6 ISA front-end for CS8900 driver. 1998-07-27 01:20:43 +00:00
thorpej
f68dfbe928 Sigh, make this work with the i386 bus_space functions (which have debugging
glue in them, and thus subtle syntax quirks).
1998-07-27 01:20:19 +00:00
thorpej
2d588abad8 Split up the Shark CS8900 driver into front-ends and core back-end (which
is here, since the chip can only live on an ISA bus; only the autoconfig
glue is different).
1998-07-27 01:08:51 +00:00
augustss
638fb6a638 A first stab att supporting console access with a USB keyboard. 1998-07-26 17:42:48 +00:00
explorer
ab207dc49d add ntwo* at pci? function ?, a T1 network driver. 1998-07-26 03:28:28 +00:00
explorer
c5e450957a add (hopefully) bus-independent hd64570 driver, for the Hitachi serial
controller chip.
1998-07-26 03:26:57 +00:00
augustss
4e1976a433 Use PCI class/subclass/interface to match USB host controllers instead
of vendor/product id.  This makes the probe find more controllers
without recompilation.
1998-07-26 00:40:59 +00:00
augustss
72de215752 Use PCI class/subclass/interface to match USB host controllers instead
of vendor/product id.  This makes the probe find more controllers
without recompilation.
1998-07-25 23:23:01 +00:00
explorer
12f40f6481 commit this so it gets the right generated from tag 1998-07-25 23:12:16 +00:00
augustss
7c50ea1e65 Insert lots of `#if NWSMOUSE > 0'' and `#if NWSDISPLAY > 0'' to make it
possible to have a wsmouse and/or wskbd without having a wsdisplay.
1998-07-25 20:02:20 +00:00
augustss
3ff58ab530 Add wscons attachments for USB keyboard. 1998-07-25 15:36:30 +00:00
augustss
6532f4f144 Add an ioctl() to get host controller statistics. 1998-07-25 15:22:11 +00:00
augustss
2c5f27cf9d Don't print device class in attach message. 1998-07-25 15:19:09 +00:00
augustss
8bafec3cec I forgot to commit these when usb_mem was added. 1998-07-25 15:15:39 +00:00
explorer
9043581b85 define RISCom and RISCom N2 product 1998-07-25 11:57:50 +00:00
augustss
67ec8587a0 Provide wsmouse attachment for the USB mouse driver.
XXX Keep /dev/ums* for now since XFree86 does not understand wsmouse yet.
1998-07-25 01:46:38 +00:00
thorpej
930937fd49 Define the CS8900 memory size, and macros to test for valid memory
base and IRQ.
1998-07-25 00:41:47 +00:00
augustss
b916de0f86 Add special memory allocation routines that supports allocation
DMA-able memory in small chunks (USB uses a lot of 8 byte chunks).
Using the bus_dma functions directly is inefficient.
1998-07-24 21:09:07 +00:00
augustss
06e7ed2009 Make sure requests are aborted properly when the pipe is aborted. 1998-07-24 21:02:51 +00:00
augustss
1a5dd77c56 Punt if the mouse reports absolute coordinates. 1998-07-24 20:59:57 +00:00
augustss
b79d954aac Let hid_locate() return the item flags as well as the position. 1998-07-24 20:57:46 +00:00
drochner
658e297dd6 Initialize the new "dispoffset" (but don't use it for anything fancy). 1998-07-24 16:22:51 +00:00
drochner
3d545acb51 Overload the generic "copyrows" function by a private one which implents
a "fast scroll" by setting the display start in memory.
(Only implemented for "scroll up" because this is more used. "scroll down"
is easy to add.)
This moves the semantics of "copyrows" to something like "moverows";
the contents of the new visible lines at the bottom is undefined.
The emulations can live without the original "copy" semantics.
1998-07-24 16:20:14 +00:00
drochner
7764b57db5 allow the displayed area to start anywhere in display memory,
add a "dispoffset" variable to control this
1998-07-24 16:12:18 +00:00
drochner
e81ad8e2c6 add random generator hook 1998-07-24 13:42:29 +00:00
drochner
6dc9297499 remove unneeded typecast 1998-07-24 13:41:52 +00:00
sommerfe
8ba3494f9a Deal with new pool code's changed API by rewriting this to not use pools.
Instead, use a manually maintained freelist in a second tailq.
Uses less data space, looks more symmetrical.
1998-07-24 03:29:29 +00:00
christos
fe7d31fe1e First-gen 1998-07-23 19:31:36 +00:00
christos
bdb2269a46 Create a master list of pnp logical and compatibility device codes instead
of hard-coding it into each driver and use a centralized probe function.
1998-07-23 19:30:44 +00:00
thorpej
8d611b5f32 Remember the product ID and revision. 1998-07-23 19:25:52 +00:00
thorpej
d2bc077edb G/c a now unsed config flag. 1998-07-23 19:03:11 +00:00
thorpej
458ba64f3a Slight variation on last; be a bit more zealous about fixing up the
clock source.  Now, when my EtherPower II locks up, it eventually recovers!

(Geez, I'd like to know why it does this, and only apparently in 10mb/s mode).
1998-07-23 17:37:38 +00:00
drochner
c4c3297772 update comment ("John F. Woods" <jfw@funhouse.com>, PR kern/5798) 1998-07-23 16:39:24 +00:00
drochner
56a5adfaff Switch keyboard to "event mode" on open.
Nuke wskbd_set_translation(). It doesn't fit into the "screen" model.
1998-07-23 14:33:01 +00:00
augustss
d6ef9cbb33 Add some comments and a function to set the alternate settings in an
interface.
1998-07-23 13:44:21 +00:00
augustss
8cdf268a45 Implement bulk transfer for OHCI. 1998-07-23 13:41:04 +00:00
augustss
c263b1d26f Don't leak memory if opening a pipe fails. 1998-07-23 09:18:37 +00:00
augustss
964fdc18b8 Use the pipe maximum packet length rather than the device max length when
setting up a transfer.
Update the UHCI data toggle correctly.
1998-07-23 01:46:27 +00:00
augustss
0f40401a23 Fix bug in freeing TD chain after bulk transfer. 1998-07-23 00:27:36 +00:00
thorpej
daf40e1b0b Add common OpenFirmware network interface functions. Currently supports
decoding the `supported-network-types' and `chosen-network-type' properties
into ifmedia words.
1998-07-22 22:04:14 +00:00
drochner
4c50fd2165 regen 1998-07-22 17:43:11 +00:00
drochner
28f1e61164 add IDs for ACC Micro 2051 "PCI Single Chip Solution" 1998-07-22 17:41:04 +00:00
augustss
40060e366e Loop over all configurations when trying to probe for interface drivers. 1998-07-22 12:22:08 +00:00
christos
e6efe5f7e9 Regen 1998-07-22 11:48:58 +00:00
christos
194f94bd97 Don't print bogus info about vendors in pcmciadevs_data.h
(Reported by John Kohl)
1998-07-22 11:47:13 +00:00
augustss
f190634e3d Add an Acer labs USB controller. 1998-07-22 10:43:37 +00:00
thorpej
02ad0b4eda Add support for ifmedia. 1998-07-21 22:58:31 +00:00
thorpej
d3882c1b56 Define autonegotiation bits. 1998-07-21 22:27:33 +00:00
thorpej
3db796d287 Define a couple more of the PacketPage registers. 1998-07-21 22:04:13 +00:00
thorpej
88a0132aec Correct the name of the CS8920M id, and fix some whitespace lossage. 1998-07-21 19:54:19 +00:00
drochner
49bb9d8214 adapt to LANCE driver split 1998-07-21 17:36:01 +00:00
drochner
68f2474820 adapt to LANCE driver split; let PCNET/PCI use the 32-bit mode 1998-07-21 17:30:26 +00:00
drochner
9a59784f70 Split the LANCE driver into a part specific to the classic chip with
24-bit DMA addresses, and an independant part.
Implement support for the 32-bit mode in the newer (79c9xx) chips.
1998-07-21 17:26:45 +00:00
drochner
dc08679458 Fix ioctl definitions for WSKBDIO_{SET,GET}LEDS.
from Takuya Koumoto <takuya-k@is.aist-nara.ac.jp>
1998-07-21 09:17:33 +00:00
mycroft
3780fa036e Add RCS IDs. 1998-07-21 07:48:36 +00:00
thorpej
0611893e60 Move the cs8900 driver's softc, etc. definitions to an MI location. 1998-07-21 01:04:01 +00:00
thorpej
0987caaee6 G/c unused definition. 1998-07-21 00:39:21 +00:00
thorpej
a083bc2950 Split the CS8900 register description from the SHARK-specific header file,
and place it here.
1998-07-21 00:07:33 +00:00
thorpej
9e17315847 Write the CLOCK TEST bit *at least 16 consecutive times* during initialization,
as the clock source will be set incorrectly otherwise!  From SMC Application
Note 7-15.  Thanks to Christoph Badura for the pointer!
1998-07-20 21:39:05 +00:00
thorpej
d8e4026492 Oops, unused variable warning. 1998-07-20 21:17:30 +00:00
thorpej
74fc0579eb We're not Linux. If we still want driver version strings to be displayed
at boot, then I suppose DEBUG is a reasonable compromise.
1998-07-20 21:16:52 +00:00
thorpej
79f77cc9ce The mystery bit in the TEST register is actually the CLOCK TEST bit. 1998-07-20 20:45:06 +00:00
christos
f5f944adfd Regen 1998-07-20 07:34:11 +00:00
christos
87dc83ee69 Remove duplicate DEC card 1998-07-20 07:33:54 +00:00
mellon
7a03c42491 Fix typo. 1998-07-20 02:17:17 +00:00
drochner
fb28f87855 Remove a check which restricted raw SCSI commands to the "minor 3"
("CTLMODE") subdevice. There are legitimate uses for raw commands with
normal tape handles too.
[I'm not sure if this is a final solution. Administrators might want
to set up a more finegrained policy. However, this should not be mixed
with the "set defaults" semantics of the "CTLMODE" subdevice; another
flag should be used instead (eg execute permission or a minor number bit).]
1998-07-19 18:43:20 +00:00
christos
66370d4fe9 Regen 1998-07-19 17:30:02 +00:00
christos
e3bc291504 Add a devlist2h.awk so that we don't sprinkle the same constants over
each device driver file and use it.
1998-07-19 17:28:15 +00:00
tron
334afaa14e Regen from pcidevs. 1998-07-19 12:25:46 +00:00
tron
463e7e6dce Fix product ID for Matrox Mystique, add NEC PowerVR PCX2. 1998-07-19 12:23:56 +00:00
is
6054d626f9 Switching dev/ic/lpt.c to use spllpt() instead of spltty(). It doesn't use
tty structures, and on some machines (namely the DraCo internal lpt, and some
multi-i/o boards for Amigas and DraCos), tying spltty to the pretty high printer
interupt level would hurt serial performance.

On all affected ports but Amiga, spllpt() has been defined in machine/intr.h
to be spltty(), thus preserving old behaviour. Portmasters are encouraged to
change is, if they feel something else is better (e.g., one of its own were
possible).
1998-07-18 21:27:25 +00:00
mjacob
a455ce7531 Locking is now in the outer framework for isp_init/isp_reset- this allows
us to call isp_reset/isp_init internally with impunity.

Rename isp_phoenix to isp_restart and make it global. Clean it up a tad.

If we get an ASYNC_SYSTEM_ERROR code in isp_intr, call isp_restart and
return- the f/w is toasted at this point (usually), so we have to bring
things back to a known state.

In isp_mboxcmd, when we don't see the HOST_INT bit go clear, try and
find out if the isp is trying to tell us something and try again. This
may avoid a potential deadlock where the previous mailbox command hasn't
been cleared by the ISP.

In isp_init don't try and get device parameters if we already have them-
this typically doesn't work if we're in the middle of an isp_restart.
1998-07-18 21:10:16 +00:00
mjacob
9afa921bc1 roll core version number and add a global visible isp_restart function 1998-07-18 21:06:20 +00:00
mjacob
35c8fecf3a fix headers 1998-07-18 21:05:39 +00:00
mjacob
b85bf24ed5 fix bogus comments 1998-07-18 21:05:04 +00:00
mjacob
576988940f roll revision 1998-07-18 21:04:46 +00:00
mjacob
1aa702b8f8 fix bogus initialization 1998-07-18 21:04:22 +00:00
mjacob
99ff11f6b7 locking now out of main framework for isp_reset/isp_init 1998-07-18 21:02:06 +00:00
is
985b3e8d4d Make this compile without USBVERBOSE. 1998-07-16 12:55:19 +00:00
mjacob
66ea6cc018 Fix for kern/3835: add an sd sense handler. If we get a check condition/sense
data ASC/ASCQ of 0x04/0x01 (logical unit not ready, initialization in progress),
hang out for 5 seconds and return a RETRY THE OPERATION command. If we
get a check condition/sense data ASC/ASCQ of 0x04/0x02 (logical unit not
ready, initialization command required), send a polled/nosleep START UNIT
command and return a RETRY THE OPERATION command if that succeeds.

Don't send a START UNIT to a disk quirked as SDEV_NO_START. Don't send
a START UNIT to removable media. The reason for the latter is to not
just blindly spin up new (maybe changed) media.

I should note that I've successfully made this work with the ISP host
adapter so far. Other host adapters will need some work to be able
to manage or reasonably fail NOSLEEP/POLL commands while in this
state. Alternatively, the internal SCSI midlayer structure has got
to allow for more controlled error recovery (e.g., restart queues
controlled by the target driver).
1998-07-15 20:21:12 +00:00
mjacob
bf29f419e7 part of fix for kern/3835: use of enumerated returns from target sense handlers 1998-07-15 20:13:30 +00:00
mjacob
dba811205f 1) Part of fix for kern/3835: add in enumerated return values for target
drivers' sense handlers to return. Coincidentally one of them ends up
being ERESTARTSYS.

2) Add a SCSI_URGENT flag to xs structure- this allows host adapters that
do command tagging to do the right thing wrt a tag.
1998-07-15 20:11:34 +00:00
mjacob
afb0e1b693 no framework 1998-07-15 19:53:57 +00:00
mjacob
e8f976016e Some major thrashing to handle building for other than NetBSD.
There is one change of note- build a list of completing commands in
ispintr and then say you're done- this avoids some re-entrancy issues
that had surfaced.
1998-07-15 19:50:16 +00:00
mjacob
d96bd50c07 NetBSD OS specific routines and definitions. 1998-07-15 19:44:04 +00:00
drochner
9d504aa676 rename "LK" -> "declk" for consistency 1998-07-15 14:06:34 +00:00
drochner
8babb8290c fix egcs warnings 1998-07-15 09:35:35 +00:00
drochner
37040ed809 support keyboards with PC interface and DEC layout (LK461) 1998-07-14 19:33:58 +00:00
drochner
bfd46dadad fix codes delivered by "Help" and "Do" keys 1998-07-14 19:32:17 +00:00
thorpej
750e240c97 Print the "model" property. 1998-07-14 01:39:34 +00:00
thorpej
943235ed66 Those tabs sure are excitable!! 1998-07-13 16:50:56 +00:00