Peter Wemm
690f85de65
Remove a bunch of unused (NO-OP) #if NFOO > 0 type includes and some
...
#include "foo.h" headers.
2000-01-29 16:17:36 +00:00
Peter Wemm
e27c1addaa
Remove #if NFOO > 0 (it's not required in most cases) and also where it
...
isn't used as a result, remove #include "foo.h". Many of these drivers
still use NFOO for softc struct sizing etc however.
2000-01-29 16:00:34 +00:00
Nick Hibma
acd60c3cb0
Unbreak LINT.
...
Pointed out by: Peter Wemm
2000-01-29 15:55:03 +00:00
Peter Wemm
cebf86fa3f
Put a FYI in the compatability shims so that people are aware that they
...
are using an old unconverted driver. Most (if not all) of the drivers
for common hardware are newbus these days. However, we don't want
to encourage people to take the easy way out and write new drivers
using the shims. This is just passive "encouragement".
Reviewed by: phk
2000-01-29 15:37:36 +00:00
Peter Wemm
8f8e587948
Use config's conditional compilation rather than using #ifdefs that make
...
modular compilation harder. I'm doing this because people seem to like
cut/pasting examples of bad practices in existing code.
2000-01-29 15:08:56 +00:00
Nick Hibma
8010b90dc6
First part of the fix for ohci_hash_find_td panic.
...
Some controllers submit bogus pointers to the Done queue.
ohci_hash_find_td fails to find these in its hash and panics. Instead of
panicing we now assume the whole done queue is lost and let the timeout
code to clean up the mess after us.
2000-01-29 14:53:47 +00:00
Peter Wemm
b7598e9bd7
Remove #if NVX > 0 and #if NEISA > 0 (and #include "eisa.h") as it's not
...
needed.
2000-01-29 14:50:32 +00:00
Peter Wemm
bc51803479
Remove #include "vga.h" and #if NVGA > 0 as it's implied by config.
2000-01-29 14:43:47 +00:00
Peter Wemm
25a2c600af
Remove #include "splash.h" and #if NSPLASH > 0" - it's implied by config.
2000-01-29 14:42:57 +00:00
Peter Wemm
2d8e7d39da
Remove #if NIE > 0 test, it's guaranteed to be true by config.
2000-01-29 14:41:52 +00:00
Nick Hibma
75fc24dc62
Add comments and debugging info.
2000-01-29 14:41:48 +00:00
Peter Wemm
5c5ea07fc6
Remove #if NEN > 0 in the name of FreeBSD - it's not required as config
...
only compiles this file if it's true. NEN is still used though. :-(
2000-01-29 14:38:04 +00:00
Peter Wemm
71619ad987
Remove #include "eisa.h" and #if NEISA > 0 as it's only ever compiled
...
if NEISA is > 0 as guaranteed by config.
2000-01-29 14:31:57 +00:00
Peter Wemm
0b5436a74a
Remove #if NCCD > 0 - it's guaranteed to be true by config if ccd.c is
...
being compiled. (NCCD is used elsewhere though :-( )
2000-01-29 14:29:56 +00:00
Peter Wemm
3ec08445be
Remove #include "eisa.h" and #if NEISA > 0 - this is guaranteed by config.
2000-01-29 14:27:26 +00:00
Peter Wemm
0cdb7d6692
remove #include "eisa.h" and #if NEISA > 0 - this is guaranteed by
...
config since ahc_eisa.c is "optional ahc eisa" meaning "only compile
ahc_eisa if ahc and eisa are defined"
2000-01-29 14:22:19 +00:00
Nick Hibma
a59ac0e8be
The toggle carry bit is stored in the headp not the tailp.
2000-01-29 14:18:31 +00:00
Søren Schmidt
eff43d0e8a
cosmetic changes only.
2000-01-29 14:10:59 +00:00
Peter Wemm
2b898d39e5
Remove #include "ppc.h" and #if NPPC > 0 - this is always true as it is
...
'optional ppc' in conf/files*
2000-01-29 14:02:30 +00:00
Nick Hibma
e0d607e198
Mask off the last two bits before comparing. It might just be that some
...
hardware might leave those bits in the wrong state.
2000-01-29 11:59:31 +00:00
Nick Hibma
fa1df741fb
Tripmine for bad hardware.
2000-01-29 11:50:44 +00:00
Bruce Evans
689315d4f7
"Completed" the previous fix. Return ENOMEM on memory allocation failure
...
in sioattach(), not ENXIO. Free resources before returning early in
sioprobe() and sioattach().
2000-01-29 03:02:55 +00:00
Bill Paul
e225ecbbd4
Minor tweak: the D-Link 10/100 USB ethernet adapter is apparently using
...
the same design as the LinkSys adapter and needs the same special handling
to enable its PHY.
2000-01-29 02:16:47 +00:00
Cameron Grant
a05382d9ae
differentiate cmi8330 and als100 pnp cards based on their vendor id. this
...
is a kludge for 4.0
2000-01-29 00:18:29 +00:00
Søren Schmidt
a4fec20898
Get the MEDIA_CHANGED status right here too.
2000-01-28 22:17:29 +00:00
Søren Schmidt
211a760057
Use atapi_test_ready not atapi_wait_ready, I need more sleep :(
2000-01-28 21:30:31 +00:00
Søren Schmidt
78e0324341
Get the MEDIA_CHANGED status right.
2000-01-28 21:03:25 +00:00
Søren Schmidt
0b905b407e
Fix the atapi-fd.c (afd device) so that fx MSDOS formatted ZIP
...
disks can be mounted. Use b_pblkno instead of b_blkno
Found by: phk
Protect (proberly) against setting modes on nonexisting devices.
2000-01-28 20:18:19 +00:00
Gerard Roudier
b5727bb5f0
- Fix an issue that paniced the machine in data overrun
...
condition.
- 1 line change that allows to balance chips between ncr
and sym using pci compat option (not compiled by default
in 4.0 but maintains the driver source 3.4 compatible).
2000-01-28 20:11:32 +00:00
Søren Schmidt
96478887ff
Fix compilation on ISA only setups...
2000-01-28 15:57:13 +00:00
Søren Schmidt
02ce0452e1
Cleanup the ata_dmainit function a bit.
...
Also allow BIOS setup DMA on unknown controllers.
2000-01-28 13:35:43 +00:00
Nick Hibma
031ca4fb23
Correct the list of error messages. It was incomplete.
2000-01-28 13:05:26 +00:00
Nick Hibma
e1b2b4098c
Regen.
2000-01-28 10:31:12 +00:00
Nick Hibma
d8634f7c3d
Correct the entry for the Kodak DC290.
...
Submitted By: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>
2000-01-28 10:26:29 +00:00
Søren Schmidt
6a7f51845b
Oops, fix compile error due to the new way of storing the transfer mode.
2000-01-28 08:03:21 +00:00
Andrew Gallatin
de6d75328e
Add support for detection of the ESS 1688 found on my Dell Latitude LM
2000-01-28 04:28:11 +00:00
Bill Paul
935e6be657
Fix a bug in the uhci driver that breaks large bulk IN transfers. The
...
uhci_check_intr() routine needs to be more careful about deciding when
the end of a transfer has been detected.
This allows me to remove the nasty workaround code from if_aue and if_cue.
Receive performance is now much better for these adapters (500KB/sec
vs. 350KB/sec).
Also removed unused KUE_CUTOFF define from if_kuereg.h.
Submitted by: Lennart Augustsson
Reviewed by: n_hibma
2000-01-28 02:15:31 +00:00
Nick Hibma
fd43044e52
The values for OHCI_HALTED and OHCI_TOGGLECARRY were reversed.
2000-01-28 00:03:45 +00:00
Nick Hibma
8648a2cdb9
Move the defines to the right location.
...
Add a DIAGNOSTIC when closing interrupt pipes.
Insert splx(s) which were left out with iso pipes (non-functional yet) and
in a DIAGNOSTIC.
2000-01-27 23:25:58 +00:00
Nick Hibma
cc16f1b9d9
Add umass.c
2000-01-27 23:19:14 +00:00
Søren Schmidt
0fd4327bb6
Add sysctl oid hw.atamodes to set the transfermodes online.
2000-01-27 19:00:51 +00:00
Cameron Grant
45248baa3c
handle simplex devices right
2000-01-26 20:27:45 +00:00
Nick Hibma
2aff98945c
Properly teardown the allocated and initialised stuff when an error
...
occurs (OHCIwas already done for UHCI).
Get rid of the usbus variable. It is confusing.
Align uhci_pci.c and ohci_pci.c again.
2000-01-26 10:52:27 +00:00
Nick Hibma
9e2bdb4369
Don't set ivars until we checked the return value from device_add_child.
2000-01-26 10:27:12 +00:00
Nick Hibma
06ffae8586
Add comments
2000-01-26 08:46:41 +00:00
Doug Rabson
150630c449
Make this lot build on alpha.
2000-01-25 22:23:48 +00:00
Doug Rabson
d64d73c906
* Don't use ivars to access resources, bus_set/get_resource is much better.
...
* First approximation of making this work on alpha (not working yet).
2000-01-25 22:21:45 +00:00
Søren Schmidt
0817db9f98
Retry a bit more agressively on the atapi identify.
...
Try to support older systems reporting irq0 for the first channels.
Support sharing of the std interrupts (says peter :) )
Dont use READ_CD on normal data reads (2048 bytes), too many old drives
doesn't support this command even if the std says "shall" :(, but still
use READ_CD on all other blocksizes.
Add the geometry to the ad probe, its still usefull.
2000-01-25 20:14:51 +00:00
Nick Hibma
f68d3a9c5c
Add usbd_clear_endpoint_toggle(pipe) function.
...
This is needed to implement a asynchronous callback for clear endpoint
stall, needed for the umass driver.
2000-01-25 18:40:39 +00:00
Nick Hibma
ad705781e1
Correct subroutine names in DPRINTF
2000-01-25 18:37:58 +00:00