Matthew N. Dodd
33b04e2fcb
Move some code around.
...
Minor whitespace changes.
2002-06-07 01:55:42 +00:00
Justin T. Gibbs
cdd49e97b4
Hook up the ahd driver.
2002-06-06 16:35:58 +00:00
Justin T. Gibbs
c19a298149
Remove one more multi-line string literal.
2002-06-06 16:07:18 +00:00
Alfred Perlstein
f5bd5dceda
Make sc_saver_keyb_only (sceen saver interrupted by keyboard input only)
...
the default.
2002-06-06 06:02:17 +00:00
Justin T. Gibbs
9b2af00eda
Silence GCC warnings about multi-line strings.
...
Sync Perforce IDs.
2002-06-05 22:51:54 +00:00
Justin T. Gibbs
eda578ae9f
Add some PCI-X register definitions.
...
PCIM_CMD_SERREN -> PCIM_CMD_SERRESPEN to be consistent with
the PERR definition.
2002-06-05 22:25:51 +00:00
Justin T. Gibbs
17d2475554
Enter the ahd driver which supports the Adaptec AIC7902 Ultra320, PCI-X
...
SCSI Controller chip.
2002-06-05 19:52:45 +00:00
Doug Ambrisko
e94c058ad1
Add device id. for fxp chip on Intel D845EPT2L boards. This seems to
...
make the onboard NIC work.
Sponsored by: Vernier Networks
MFC after: 1 day
2002-06-05 18:34:08 +00:00
Thomas Moestl
c883a66af1
Don't treat statistics counter wrap-overs as errors.
2002-06-05 15:21:44 +00:00
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