Prafulla Deuskar
a7fabc2b60
Added support for 82545EM and 82546EB based adapters.
...
Added Vlan support.
MFC after: 1 week
2002-06-03 22:30:51 +00:00
Ian Dowse
5c97ca54e5
Use a per-device worker thread to avoid blocking in mdstrategy()
...
until the I/O completes. This fixes some easily reproducable deadlocks
that occur when using md(4) with GEOM.
Reviewed by: phk
2002-06-03 22:09:04 +00:00
Matthew N. Dodd
b20d4649f9
Quick and dirty convert to newbus. (Eventually 'eni.c' should go away.)
...
Module loads and unloads properly.
Thanks to Richard Hodges <rh@matriplex.com> for donating the hardware
to allow me to work on this driver.
2002-06-03 09:16:52 +00:00
Jens Schweikhardt
21dc7d4f57
Fix typo in the BSD copyright: s/withough/without/
...
Spotted and suggested by: des
MFC after: 3 weeks
2002-06-02 20:05:59 +00:00
Alfred Perlstein
47f654d3a0
Fix warnings.
...
There's no need to use concatination when you have 'something.macro_arg'.
Comment out comment following #endif.
2002-06-01 18:50:35 +00:00
Alfred Perlstein
e27f378e33
Fix a couple of places where preprocessor concatination was misused and
...
something wound up grafted to a comma.
2002-06-01 16:21:26 +00:00
Alfred Perlstein
78b226dc81
Silence warning.
...
When casting a "const void *" to a "struct foo **" you want to actually
cast it to "struct foo * const *" not simply "const struct foo **".
2002-06-01 16:20:27 +00:00
Ruslan Ermilov
960a771286
Quick, low impact band-aide to unbreak the build. Added && 0 so we
...
ifdef out what appears to be a bogus call to softintr using data
elements that aren't in the softc.
Forgotten by: imp
2002-06-01 08:29:12 +00:00
Alfred Perlstein
058dc44ca0
Should have been part of recent commit:
...
Fix GCC warnings caused by initializing a zero length array. In the process,
simply things a bit by getting rid of 'struct ng_parse_struct_info' which
was useless because it only contained one field.
But now I'm unbreaking compilation by adjusting these files to the recent
netgraph change.
2002-06-01 07:18:32 +00:00
Alfred Perlstein
fa900b3699
Call destroy_dev in detach routine to cleanup properly otherwise we
...
panic because of a repeat make_dev if/when the device is reattached
to the system.
Remove an "#if __FreeBSD__" in code that's nested under a "#if __NetBSD__"
(*sigh*)
Reported by: Seth Hettich <sjh@whiskey.ucf.ics.uci.edu>
Tested by: Seth Hettich <sjh@whiskey.ucf.ics.uci.edu>
2002-06-01 06:23:47 +00:00
Warner Losh
d508dd347c
Use PCI_INTERRUPT_VALI in stead of hard coded 255
2002-06-01 05:48:58 +00:00
Warner Losh
3c2d2c7cea
More style(9) nits
2002-06-01 05:44:45 +00:00
Warner Losh
f60115a36c
Define a PCI_INVALID_IRQ to augment PCI_INTERRUPT_VALID
2002-06-01 05:40:33 +00:00
Warner Losh
c9579f73e0
Make this file mostly conform to style(9).
...
Approved by: msmith in principle before walkabout
2002-06-01 03:41:02 +00:00
Warner Losh
cbcfdbcfe6
Quick, low impact band-aide to unbreak the build. Added && 0 so we
...
ifdef out what appears to be a bogus call to softintr using data
elements that aren't in the softc.
2002-05-31 23:39:04 +00:00
Eric Anholt
4956c7034c
Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__
...
Approved by: des
2002-05-31 23:19:50 +00:00
Warner Losh
6f20d5e68f
Use __FreeBSD_version to test what things to use
2002-05-31 03:27:34 +00:00
Takanori Watanabe
6e8f09ca61
Fix build breakage on my pccard related commit.
2002-05-31 01:08:49 +00:00
Julian Elischer
a86d27ac85
Add missing unlock
...
Submitted by: dirkx@covalent.net
2002-05-30 23:41:51 +00:00
Takanori Watanabe
80f1001813
Make oldcard and newcard kernel module work.
2002-05-30 17:38:00 +00:00
Alfred Perlstein
99b9331a4f
Check for defined(__i386__) instead of just defined(i386) since the compiler
...
will be updated to only define(__i386__) for ANSI cleanliness.
2002-05-30 07:32:58 +00:00
Alfred Perlstein
8e5e1ed874
Check for defined(__i386__) instead of just defined(i386) since the compiler
...
will be updated to only define(__i386__) for ANSI cleanliness.
2002-05-30 07:13:40 +00:00
Poul-Henning Kamp
f4258597dc
Add one copy of crc32() and crc32_tab[] in libkern, and remove it two other
...
places.
Comment out crc32 related definitions in zlib.h, we don't seem to have the
corresponding code in our kernel.
2002-05-29 20:24:09 +00:00
Josef Karthauser
43c6b63e82
NetBSD have adopted our usage of the DMAADDR macro:
...
date: 2002/05/28 12:42:39; author: augustss;
Change DMAADDR macro slightly.
Update the $NetBSD$ tags to reflect this and make slight changes to
usb_mem.h so that we're in sync with each other.
2002-05-28 20:51:43 +00:00
Søren Schmidt
d9d34030a4
Use %02d in track numbers, so that 1 is 01, much easier for scripts
2002-05-28 17:39:17 +00:00
Josef Karthauser
ca3971124e
Regen.
2002-05-27 00:01:21 +00:00
Josef Karthauser
b826a68b7f
Add a couple of new aue ethernet adapters from NetBSD:
...
ELECOM LDUSBLTX
IODATA USBETTXS
2002-05-27 00:00:48 +00:00
Josef Karthauser
12d2a2a729
Use aue_lookup for looking up devices.
2002-05-26 23:54:37 +00:00
Josef Karthauser
5908b50130
Correct the usage of DMAADDR in a piece of '#if 0'd code. (The compiler
...
didn't pick it up.)
2002-05-26 22:13:09 +00:00
Josef Karthauser
cc12206976
MFNetBSD:
...
revision 1.124
date: 2002/05/26 03:10:02; author: minoura; state: Exp; lines: +3 -3
Clear done_head in the HCCA *before* acknoledging the interrupt.
Driver lost some completed transfers under heavy loads.
2002-05-26 22:11:34 +00:00
Josef Karthauser
883d14d6c6
MFNetBSD: ohci.c (1.124), uhci.c (1.159), usbdi.c (1.100)
...
date: 2002/05/19 06:24:31; author: augustss; state: Exp;
Update dma memory access API a little.
NetBSD have adopted our way of using the KERNADDR macro. Update
the revision tags to show that we're in sync, and remove the casts
that they did in their adaptation.
2002-05-26 22:00:06 +00:00
Poul-Henning Kamp
fcf867e9f7
Mis-edit in last commit.
2002-05-26 09:57:59 +00:00
Poul-Henning Kamp
fde2a2e414
Be a bit smarter about rewriting data so we don't loose too much performance.
...
Sponsored by: DARPA & NAI Labs.
2002-05-26 09:38:51 +00:00
Poul-Henning Kamp
f43b2bac72
Use an umazone per unit for allocating the sectors for malloc backing.
...
Clean up things properly when we unconfigure malloc backed units.
Sponsored by: DARPA & NAI Labs.
2002-05-26 06:48:55 +00:00
Poul-Henning Kamp
c6517568df
Give the "malloc" backing of md(4) an adaptive multilevel index tree to
...
remove the need for a contiguous array with pointers to all the sectors.
Try to make failure to malloc(9) memory a non-hang situation.
Eventually this will allow us to test the 64bit cleanness of the disk
I/O patch, but more work is outstanding here and elsewhere.
Sponsored by: DARPA & NAI Labs.
2002-05-25 20:44:20 +00:00
Bruce Evans
e788f79698
Fixed printf format errors which apparently crept in while -Wformat was
...
disabled for gcc-3.
2002-05-25 11:18:03 +00:00
Bruce Evans
ae4c33defa
"Fixed" printf format errors (64-bit daddr_t casualties; should use %jx
...
instead of %llx when %j is available).
Changed nearby output formats from %x to %#x so that it is obvious that the
numbers are in hex (vinum mostly uses 0x%x elsewhere).
Didn't fix nearby format printf errors (long lines).
2002-05-25 11:12:30 +00:00
Bruce Evans
ff8cc2eb35
Fixed printf format errors. Most of them are 64-bit daddr_t casualties.
...
Printing daddr_t's using %d format was always an error, but gcc's
warning about it was ignored for supported 64-bit arches and not printed
for supported 32-bit arches. Hundreds if not thousands thousands of
previously "fixed" daddr_t printings are now broken on 32-bit machines
by casting daddr_t's to longs. daddr_t's should be printed using %jd
format, but this fix uses %lld since %j is not implemented in the
kernel yet.
Fixed some nearby format printf errors (style bugs).
2002-05-25 11:05:07 +00:00
Thomas Moestl
9bb711b95d
Fully reset a gem on some error conditions; otherwise it would hang in
...
about 1 of 10 cases.
Proposed and tested by: phk
2002-05-24 12:47:41 +00:00
Peter Wemm
daefef7cae
Fix warnings due to macro varargs.
2002-05-24 06:32:18 +00:00
Peter Wemm
885fbc97c1
Fix new compiler unhappiness.
2002-05-24 06:01:07 +00:00
Peter Wemm
7d05a38314
Fix deprecated use of label at end of compound statement
2002-05-24 05:58:13 +00:00
Peter Wemm
70148712be
Constify a debug function arg that we pass __func__ to in order to pacify
...
gcc-3.1's 'const char *__func__;'
2002-05-24 05:57:47 +00:00
Peter Wemm
9c580bea80
Fix new gcc-3.1 warnings. I think this gets GENERIC compiling cleanly
...
again.
2002-05-24 05:21:36 +00:00
Søren Schmidt
949e9d36aa
Dont panic if only one disk on a channel can do tagged queueing.
...
MFC: asap
2002-05-23 08:17:16 +00:00
Josef Karthauser
4de1678702
Fix a panic by allocating the iface structure locally in the attach
...
function instead of in usb_probe_and_attach.
2002-05-23 00:36:14 +00:00
Josef Karthauser
0f19b0d03a
Reflect some changes in the NetBSD code path, and sligh adjustments to ours.
...
(Non-functional changes).
2002-05-23 00:26:06 +00:00
Josef Karthauser
a257364105
Sync with NetBSD. (Non functional changes).
2002-05-22 23:01:13 +00:00
Josef Karthauser
1acba7451d
Fix a bug: Use USBD_DEFAULT_INTERVAL instead of USBD_DEFAULT_TIMEOUT
...
in a call to usbd_open_pipe_ival.
2002-05-22 22:58:38 +00:00
Warner Losh
3029e334b7
Use correct inactivity timeout of 2 minutes rather than 24 seconds due to
...
bogons introduced at some point.
Submitted by: thomas skibo
2002-05-20 19:33:49 +00:00