Commit Graph

3673 Commits

Author SHA1 Message Date
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
hpeyerl 76735d1493 Add support for ATA CD changer devices like the NEC CDR-251.
Evidence of managerial coding removed by Victor T. Cleaner (thorpej)
1998-07-13 12:04:29 +00:00
augustss 20106c31ca Add some useful HID ioctl()s. 1998-07-13 10:49:41 +00:00
nathanw dd34e06fe7 Add three more cards:
- USRobotics WorldPort 14.4 modem
 - Mototola Personal Messenger 100c CDPD modem
 - Socket Communications PageCard

Note: Most of this should be replaced with a com-port-detecting
heuristic better than the previous two.
1998-07-13 07:37:05 +00:00
mark b34e933db8 Regen. 1998-07-13 03:29:48 +00:00
mark 22d5b20046 Add ID for ALI M1541 Host-PCI bridge. 1998-07-13 03:29:00 +00:00
augustss 7732413b58 Regen. 1998-07-12 20:44:53 +00:00
augustss 022ab523d2 Add USB. 1998-07-12 20:07:27 +00:00
augustss deb00272b9 Add USB support. Supported so far:
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers
1998-07-12 19:51:55 +00:00
cgd 8f94f1a709 I went to Fry's and noticed a few more cards that probably will be
supportable with this driver, but currently aren't supported.  Add them.
1998-07-12 02:21:56 +00:00
mjacob 0978d23cc4 Clarify that Sense Key 1 is a "RECOVERED ERROR"- not just an error. 1998-07-11 00:52:09 +00:00
tron 67eb4c3488 Regen from pcidevs. 1998-07-10 20:41:36 +00:00
tron 763b848669 Add Intel's BX chipset, 3Dfx Interactive and their Voodoo board. 1998-07-10 20:40:06 +00:00
mjacob b5b5f16fba hmm, char sign extension bit me 1998-07-10 19:37:18 +00:00
thorpej 902855d60e Fix int32_t overflow with large serially concatenated components,
from Noriyuki SODA <soda@sra.co.jp>, PR #5729.
1998-07-09 20:56:12 +00:00
mycroft f37f08c48e This doesn't need opt_compat_netbsd.h any more. 1998-07-09 09:27:33 +00:00
mycroft 401accfd7a Don't #ifdef the encoding compatibility crud. It's needed for source
compatibility with other systems and much third party software.
1998-07-09 02:45:45 +00:00
mycroft 3158aca613 Fix the name of the ulinear_be mode. 1998-07-09 02:26:55 +00:00
thorpej 1b5fbe0b89 DRQ 4 is used to chain the two 8237s together. Make sure it's always
cascaded and that it will be unmasked when DMA is thawed after being
frozen.  (This also has the effect of making sure that no device ever
erroneously gets DRQ 4.)
1998-07-08 05:23:23 +00:00
thorpej 30291f0f2f Declare the ofisa soundblaster attachment. 1998-07-08 05:14:10 +00:00
drochner 2ba4227a6e from OpenBSD:
date: 1998/06/24 20:05:03;  author: deraadt;  state: Exp;  lines: +4 -4
initialization error; joel@wmi.com

(affects debug printout only)
1998-07-07 14:13:51 +00:00
thorpej 88139fff5a Never, ever, ever, ever include "assym.h" in C source file. 1998-07-07 02:02:53 +00:00
augustss 8af687b575 Add mixer output selection.
From gson@araneus.fi (Andreas Gustafsson)
1998-07-06 11:12:21 +00:00
jonathan 3472ba67bb * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID (from unsaved buffers).
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 18:27:18 +00:00
jonathan d275e56dee * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
jonathan 011f2bda08 defopt NS, NSIP. 1998-07-05 06:49:00 +00:00
jonathan fe484937cf defopt LLC 1998-07-05 03:14:41 +00:00
jonathan 8db0fcdbf7 defopt CCITT. 1998-07-05 02:12:22 +00:00
jonathan 3751946b97 defopt INET, NETATALK. 1998-07-05 00:51:04 +00:00
mjacob 15f982f580 port-i386/5706: I had no problem with the previous patch, but someone
else has. Rolling it back while we try and figure it out.
1998-07-04 22:29:46 +00:00
jonathan 466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
mjacob e558885a0e Minor enhancements:
1) Quirk entries for Storage Tek 9490 (Timberline) and D3 (Redwood)
	drives.

	2) Modification to st_loadtape to do a REWIND to BOT if the
	action is a load and the tape doesn't support the LOAD command
	(9490, SD3, and IBM 3590).

	3) Cleaned up the 'undersized user record' error message to
	make a little more sense.

Various bug fixes:

kern/1275:	Now returns values in dsreg and erreg and sets resid
		(as best as it can for a 16 but integer). See also
		a recent change to mtio.h. We are declining to fix
		the portion of this bug about naming a more specific
		SCSI device. Since there is nothing programmatic
		you can do with that information, it is not useful
		to pass back at this time.

		A side effect of this change is that doing MTIOCGET
		also forces a mode sense (to get the current state
		of WRITE PROTECT).


kern/5647:	Now no longer logs to the console ILI or Filemark or (first)
		EOM (on write) errors (unless SCSIDEBUG is set).

kern/5525:	Substantially increased timeouts for a variety of
		operations, and split them into categories of
		I/O, Space, and Control operations (each have
		likely different inherent times). I/O is for
		reads/writes. Control is for mode sense/select.
		Space is for spacing the tape.

Until EOM handling is changed, though kern/391 is still not fixed. A side
effect of EOM handling is that you now always 'lose' (to the writing
application's view) the last write since EIO is what is returned on
EOM detection during writes. Hopefully the reader applications don't
get too bent out of shape by this.
1998-07-04 01:50:20 +00:00
mjacob 205c293676 Patches from Justin that handle some REV B AIC7880 problems 1998-07-03 23:45:10 +00:00