Warner Losh
4fdc73e4fa
Use a cv rather than tsleep and friends to do the sleep/wakeup
...
handshake between the ISR and the worker thread. Move the mutex lock
so that it only protects the cv_wait. This elimiates the not sleeping
with pccbb1 held messages some people were seeing.
Reviewed by: jhb (at least an early version)
2002-06-13 07:19:31 +00:00
Alfred Perlstein
d6d246bc1c
This actually compiles under lint now, by effectively #if 0'ing it
...
when compiling LINT, linking LINT was broke, so unbreak by removing
the preprocessor directives.
2002-06-11 21:22:32 +00:00
Maxim Sobolev
d8a186ebbb
- Whitespace only: use return statement consistentlt (return (foo), not
...
return(foo)), kill extra blank names between function names;
- fix format string in printf(): devtoname() returns string, not pointer.
2002-06-10 19:25:21 +00:00
Hellmuth Michaelis
30d12b5c86
Fix driver to re-enable sound output on AD1816 based cards caused by an
...
obviously bogous return value of ad1816chan_setformat().
PR: 37932
Submitted by: Martin Kaeske <Martin.Kaeske@Stud.TU-Ilmenau.DE>
Reviewed by: hm
MFC after: 10 days
2002-06-09 14:20:17 +00:00
Søren Schmidt
0b2577457c
Fix a '<<' that should have been a '>>' in the 48bit case.
...
Fortunately we only have had 32bit block counts until recently,
and no 2TB disks :)
2002-06-08 21:33:42 +00:00
Warner Losh
a1e85ec6fb
0 is not an invalid interrupt in the PCI world (just in the ia32
...
world), do not treat it as such. This fixes the alpha boot problem.
Reviewed by: drew, des
2002-06-07 15:28:16 +00:00
Matthew N. Dodd
14eaf06493
Recognize Adaptec ANA-5910/30/40[A] boards.
...
Read the MAC address from Adaptec boards correctly.
Bits borrowed from sys/pci/if_en_pci.c.
2002-06-07 05:23:01 +00:00
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