n_hibma
7a76a6d4d2
Fix debugging output. The TDs are linked through the dnext field, not
...
nexttd.
2000-01-29 18:01:15 +00:00
n_hibma
5b4848a6e2
Remove a warning from LINT
2000-01-29 16:25:55 +00:00
peter
7b46b1fff9
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
53ed6e8650
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
n_hibma
66f371b6b8
Unbreak LINT.
...
Pointed out by: Peter Wemm
2000-01-29 15:55:03 +00:00
peter
d801231f79
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
d7e5eb3faa
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
n_hibma
46a154cb23
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
8760ab7a11
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
54dfcd8d2c
Remove #include "vga.h" and #if NVGA > 0 as it's implied by config.
2000-01-29 14:43:47 +00:00
peter
62db142ea5
Remove #include "splash.h" and #if NSPLASH > 0" - it's implied by config.
2000-01-29 14:42:57 +00:00
peter
9c240b8a2d
Remove #if NIE > 0 test, it's guaranteed to be true by config.
2000-01-29 14:41:52 +00:00
n_hibma
c63e4d9590
Add comments and debugging info.
2000-01-29 14:41:48 +00:00
peter
ef55d4b61b
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
2fb5b3a053
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
b4c2b19801
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
c29982e9d2
Remove #include "eisa.h" and #if NEISA > 0 - this is guaranteed by config.
2000-01-29 14:27:26 +00:00
peter
34c7d2ad4f
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
n_hibma
0701def723
The toggle carry bit is stored in the headp not the tailp.
2000-01-29 14:18:31 +00:00
sos
027422c351
cosmetic changes only.
2000-01-29 14:10:59 +00:00
peter
1a453ea9ce
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
n_hibma
904db0db42
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
n_hibma
720b7903cb
Tripmine for bad hardware.
2000-01-29 11:50:44 +00:00
bde
4c824a9165
"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
wpaul
e81c093824
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
cg
c7803fdb7d
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
sos
8f80ebe2c0
Get the MEDIA_CHANGED status right here too.
2000-01-28 22:17:29 +00:00
sos
9fa489ba71
Use atapi_test_ready not atapi_wait_ready, I need more sleep :(
2000-01-28 21:30:31 +00:00
sos
fcb7935df1
Get the MEDIA_CHANGED status right.
2000-01-28 21:03:25 +00:00
sos
23174db79e
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
groudier
ba40b8cc86
- 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
sos
f12f1350a5
Fix compilation on ISA only setups...
2000-01-28 15:57:13 +00:00
sos
1f5af77314
Cleanup the ata_dmainit function a bit.
...
Also allow BIOS setup DMA on unknown controllers.
2000-01-28 13:35:43 +00:00
n_hibma
76324b32bd
Correct the list of error messages. It was incomplete.
2000-01-28 13:05:26 +00:00
n_hibma
f9bed91ed9
Regen.
2000-01-28 10:31:12 +00:00
n_hibma
0ea7dddb88
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
sos
f1a70ea24f
Oops, fix compile error due to the new way of storing the transfer mode.
2000-01-28 08:03:21 +00:00
gallatin
b223e32eee
Add support for detection of the ESS 1688 found on my Dell Latitude LM
2000-01-28 04:28:11 +00:00
wpaul
10d6a2ddbb
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
n_hibma
d9cd3d7688
The values for OHCI_HALTED and OHCI_TOGGLECARRY were reversed.
2000-01-28 00:03:45 +00:00
n_hibma
5674e93381
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
n_hibma
64633582ac
Add umass.c
2000-01-27 23:19:14 +00:00
sos
0dd4bc7de0
Add sysctl oid hw.atamodes to set the transfermodes online.
2000-01-27 19:00:51 +00:00
cg
c54637f284
handle simplex devices right
2000-01-26 20:27:45 +00:00
n_hibma
7e6dc45292
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
n_hibma
64cda4e365
Don't set ivars until we checked the return value from device_add_child.
2000-01-26 10:27:12 +00:00
n_hibma
4a29dd1cc9
Add comments
2000-01-26 08:46:41 +00:00
dfr
17a2aa68ca
Make this lot build on alpha.
2000-01-25 22:23:48 +00:00
dfr
7fef19bf38
* 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
sos
b5f4230b55
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