Matthew N. Dodd
bafe85a4ad
Remove duplicate make_dev() calls.
2002-10-04 08:33:10 +00:00
Matthew N. Dodd
3ae5b53264
newbus & bus_space the mcd(4) driver.
2002-10-04 07:14:19 +00:00
Matthew N. Dodd
efe66a4be9
Minor style(9) changes.
2002-10-04 02:21:26 +00:00
Matthew N. Dodd
4c7a1919f6
Remove duplicate calls to make_dev().
2002-10-04 01:58:55 +00:00
Peter Wemm
f5e283f206
Oops, missed this one. Fix a printf format error on 64 bit systems
...
where sizes are long instead of int.
2002-10-04 00:35:22 +00:00
Peter Wemm
0b57bf8a75
Fix printf format errors on 64 bit systems where sizes are long
...
instead of just int.
2002-10-04 00:33:46 +00:00
Peter Wemm
f144391b8f
Display the name of the acpi node that we do not find the pci interrupt
...
routing table for.
2002-10-04 00:32:09 +00:00
Alfred Perlstein
780c174bca
Static'ify a variable.
...
Submitted by: Matt Emmerton <matt@gsicomp.on.ca>
2002-10-03 06:44:01 +00:00
Eric Anholt
d5157cd692
Correct an indentation.
...
Noticed by: phk
2002-10-03 06:10:54 +00:00
Don Lewis
91e97a8266
In an SMP environment post-Giant it is no longer safe to blindly
...
dereference the struct sigio pointer without any locking. Change
fgetown() to take a reference to the pointer instead of a copy of the
pointer and call SIGIO_LOCK() before copying the pointer and
dereferencing it.
Reviewed by: rwatson
2002-10-03 02:13:00 +00:00
Poul-Henning Kamp
8311f05a45
Fix rare and probably inconsequential memory leak.
...
Spotted by: FlexeLint
2002-10-02 20:34:23 +00:00
Poul-Henning Kamp
42117b6c4d
Fix a probably rare and inconsequential memory leak.
...
Spotted by: FlexeLint
2002-10-02 20:29:54 +00:00
Poul-Henning Kamp
8c5d013757
Fix mis-indentation.
...
Spotted by: FlexeLint
2002-10-02 09:09:25 +00:00
Scott Long
316ec49abd
Some kernel threads try to do significant work, and the default KSTACK_PAGES
...
doesn't give them enough stack to do much before blowing away the pcb.
This adds MI and MD code to allow the allocation of an alternate kstack
who's size can be speficied when calling kthread_create. Passing the
value 0 prevents the alternate kstack from being created. Note that the
ia64 MD code is missing for now, and PowerPC was only partially written
due to the pmap.c being incomplete there.
Though this patch does not modify anything to make use of the alternate
kstack, acpi and usb are good candidates.
Reviewed by: jake, peter, jhb
2002-10-02 07:44:29 +00:00
Matthew N. Dodd
945a11211b
Use more standard variable names for modevent functions.
2002-10-02 04:47:52 +00:00
Matthew N. Dodd
c12ef98f27
Create/destroy memory zones on module load/unload, not on device
...
attach/detach.
2002-10-02 04:42:24 +00:00
Jake Burkholder
17cc43149a
Fix a typo in BGE_BIGENDIAN_INIT.
2002-10-01 22:33:40 +00:00
Matthew N. Dodd
f72e17e233
Add a field to struct cmn_unit to hold a pointer to the driver's softc.
2002-10-01 22:04:31 +00:00
Søren Schmidt
94ec75ef27
Misc cleanups.
...
Pointed out by: phk/flexelint
2002-10-01 15:21:57 +00:00
Søren Schmidt
26cc243d90
Add yet another Promise PCI id.
2002-10-01 15:21:09 +00:00
Bruce Evans
7e3998a3de
Removed the only PCI_DEBUG ifdef in the kernel. PCI_DEBUG was not a
...
supported option and it disabled a whole 2 lines of bootverbose messages.
I wanted to see 1 of the messages (about the latency timers). This
is a wrong place to decode pci configurations, but the code is already
here and handles more details than pciconf(8).
2002-10-01 13:28:24 +00:00
Poul-Henning Kamp
b13866404a
The bus number is unsigned, it cannot be less than zero.
...
Found by: FlexeLint
2002-10-01 10:18:22 +00:00
Brooks Davis
13d4f45b18
Use if_printf(ifp, "foo") instead of printf("xe%d: foo", ifp->it_unit).
2002-10-01 01:03:02 +00:00
Brooks Davis
deffb46b90
Use if_printf(ifp, "blah") instead of printf("vx%d: blah", ifp->if_unit).
2002-10-01 00:59:40 +00:00
Brooks Davis
091f3945cb
Use if_printf(ifp, "blah") instead of printf("sr%d: blah", ifp->if_unit).
2002-10-01 00:58:16 +00:00
Brooks Davis
421f55825b
Use if_printf(ifp, "blah") instead of printf("sn%d: blah", ifp->if_unit).
2002-10-01 00:56:39 +00:00
Brooks Davis
c10b63ba8d
Use if_printf() instead of printf() to print "sbni#: blah".
2002-10-01 00:55:22 +00:00
Brooks Davis
af98feb19c
Use if_printf(ifp, "blah") instead of printf("fe%d: blah", ifp->if_unit).
...
A number of functions in this driver still use the unit number in their
printouts because they pass the unit directly as a function argument
instead of passing a softc or struct ifnet pointer. This should be
resolved at a future date.
2002-10-01 00:52:58 +00:00
Brooks Davis
38d8969122
Use if_printf() instead of printf() to print "ed#: blah".
2002-10-01 00:49:28 +00:00
Brooks Davis
3a6ceb1592
Use if_printf(ifp, "blah") instead of
...
printf(CS_NAME"%d: blah", ifp->if_unit);
2002-10-01 00:46:41 +00:00
Brooks Davis
ed1e614af3
Use if_printf(ifp, "blah") instead of
...
printf("%s%d: blah", ifp->if_name, ifp->if_unit);
2002-10-01 00:44:31 +00:00
Brooks Davis
a5d0e57adc
Use if_printf(ifp, "blah") instead of printf("ar%d: blah", ifp->if_unit).
2002-10-01 00:42:51 +00:00
Justin T. Gibbs
655a5ce411
Remove a left over '&' from the conversion to using our
...
softc referenced seeprom store.
MFC after: 1 day
2002-09-30 19:55:42 +00:00
Josef Karthauser
854add2319
Gremlins ate my comment!
...
Submitted by: Clive Lin <clive@tongi.org>
2002-09-30 19:12:43 +00:00
Josef Karthauser
fe74650816
In rev 1.51 of usb_port.h I switched over to using the USB_USE_SOFTINTR
...
code path to fix a bug in the non USB_USE_SOFTINTR path that caused
the usb bus to hang and generally misbehave when devices were unplugged.
In the process though it also reduced the throughput of usb devices because
of a less than optimal implementation under FreeBSD.
This commit fixes the non USB_USE_SOFTINTR code in uhci and ohci
so that it works again, and switches back to using this code path.
The uhci code has been tested, but the ohci code hasn't. It's
essentially the same anyway and so I don't envisage any difficulties.
Code for uhci submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
2002-09-30 17:50:18 +00:00
Poul-Henning Kamp
c91a63aa2c
Add support for DIOCGMEDIASIZE and DIOCGSECTORSIZE.
...
Remove all traces of disklabel.
Sponsored by: DARPA & NAI Labs.
2002-09-30 13:53:22 +00:00
Poul-Henning Kamp
150b2bdfb2
If GEOM is in the kernel, take these three out. I have no way of
...
testing any modifications to them, they shouldn't even bother with
disklabels in the first place and they are just plain obsolete old
hardware which should be axed entirely before 5.0-R IMO.
Sponsored by: DARPA & NAI Labs.
2002-09-30 13:49:20 +00:00
Poul-Henning Kamp
419f39ce0f
Prefix private BIO commands with "FD" so people get a hint that they
...
are in fact private.
Sponsored by: DARPA & NAI Labs.
2002-09-30 13:42:06 +00:00
Matthew N. Dodd
0e0e9411f2
HARP driver for the IDT77201/211 NICStAR ATM Adapter (Including Fore LE155).
...
Obtained from: Richard Hodges <rh@matriplex.com>
2002-09-30 05:12:39 +00:00
David E. O'Brien
940f2da74e
Use fcntl.h from inside /sys.
...
Reviewd by: scottl
2002-09-30 02:47:23 +00:00
Warner Losh
0d9ad27e7e
mbuf leak in the error case has been fixed. When we have
...
an error, go ahead and m_freem the buffer.
PR: 32666
Submitted by: Chi-Fung Fan
2002-09-30 00:18:12 +00:00
Warner Losh
d909f3e20c
Fix comment
2002-09-29 18:42:14 +00:00
Warner Losh
7f2907fd70
Limit the TX key to a valid range
...
PR: 39960, 39961 (patches here pointed out problem, but didn't quite fix it)
2002-09-29 18:40:35 +00:00
Warner Losh
214c0b3da4
Don't leak the bar list for each thing we allocate.
...
# This code really needs a rewrite
Spotted by the eagle eyes of: phk
2002-09-29 18:07:29 +00:00
Poul-Henning Kamp
61ddb5c9d7
Rename "struct device" to "struct midway_device" to avoid clashing
...
with newbus.
2002-09-28 21:59:59 +00:00
Poul-Henning Kamp
b9b7876d2b
This driver doesn't need to include <sys/bus_private.h> either.
...
Spotted by: FlexeLint
2002-09-28 20:59:59 +00:00
Poul-Henning Kamp
a3ae595729
Disabuse this driver of the notion that it needs to include
...
<sys/bus_private.h> to find the unit from a device_t.
Spotted by: FlexeLint
2002-09-28 20:56:32 +00:00
Mitsuru IWASAKI
01598b8d4a
Add support for the BCM5702x chips.
...
Reviewed by: jdp
MFC after: 1 week
2002-09-28 18:04:12 +00:00
Poul-Henning Kamp
b28a0fe196
Don't use GCC shorthand for ?: unless it really matters.
2002-09-28 17:47:51 +00:00
Poul-Henning Kamp
024cb40078
Fix an indentation problem.
2002-09-28 17:34:31 +00:00