John Baldwin
5165a17df5
Add code to read the primary PCI bus number out of the Compaq/HP 6010
...
hotplug Host to PCI bridge. This is only needed for the non-ACPI case
as the BIOS includes a proper _BBN method in ACPI.
2005-03-25 14:18:50 +00:00
Maxim Sobolev
ddbcc78273
Add /* _FOO_H_ */ after the final #endif to make danfe happy.
2005-03-25 13:22:58 +00:00
Maxim Sobolev
8eadbd831e
Fix identation.
2005-03-25 12:55:06 +00:00
Maxim Sobolev
f1cc4b713e
Add missed KUE_UNLOCK(). This is NOOP yet, but may be handy later on.
2005-03-25 12:53:26 +00:00
Maxim Sobolev
5135f8e687
Fix breakage in the previous commit caused by the last-minute change.
2005-03-25 12:50:57 +00:00
Maxim Sobolev
87fcbb8fe0
Protect against multiple inclusions.
2005-03-25 12:49:26 +00:00
Maxim Sobolev
d521dc21e7
Move Rx/Tx lists management routines into central location.
2005-03-25 12:42:30 +00:00
Maxim Sobolev
710fa1d820
GC unused fields.
2005-03-25 10:39:23 +00:00
Maxim Sobolev
9245facb49
GC unused field.
2005-03-25 09:48:24 +00:00
John Baldwin
04f716a436
- Use pci_get_device() and pci_get_vendor() when we only want one part
...
of the device id.
- Use BAR2 rather than BAR0 for the Rocketport UPCI 8O card. I suspect
that other UPCI cards might need to use BAR2 as well.
Tested by: wsk at gddsn dot org dot cn
MFC after: 1 week
2005-03-25 03:10:51 +00:00
Ian Dowse
5e1f111310
Fix an incorrect NULL argument to usbd_set_interface() associated
...
with the ALT_IFACE_1 quirk.
PR: usb/79190
Submitted by: Hans Petter Selasky <hselasky@c2i.net>
2005-03-25 01:47:01 +00:00
Ian Dowse
e2b66de827
Use usbd_get_string() instead of calling usbd_get_string_desc()
...
with the wrong language parameter when retrieving the device serial
number. This invalid request caused some devices not to work at
all.
PR: usb/79190
Submitted by: Hans Petter Selasky <hselasky@c2i.net>
2005-03-25 01:44:38 +00:00
Maxim Sobolev
8a9cf808e6
Move xxx_newbuf() function, which was the same in all drivers into central
...
location.
2005-03-25 00:44:21 +00:00
Ian Dowse
70a18c2253
Use M_NOWAIT when allocating from a callout routine.
...
PR: kern/73295
2005-03-25 00:38:46 +00:00
Pawel Jakub Dawidek
0440fc940a
Use device_set_desc_copy() for non-constant strings.
...
Approved by: njl
2005-03-24 21:07:55 +00:00
John Baldwin
3da063baf7
Add another HID for the Toshiba SPA40 laptop.
...
Submitted by: Chris Reece car at crank dot org dot uk
MFC after: 1 week
2005-03-24 19:02:13 +00:00
David E. O'Brien
53b1897c62
Support MCP versions 4-11.
2005-03-24 18:55:07 +00:00
Matthew N. Dodd
5b9c896ccd
Offer unhandled IOCTLS to fddi_ioctl().
2005-03-24 01:58:20 +00:00
John-Mark Gurney
244f64d007
relocate the power state transition statements to the
...
pci_set_powerstate_method function...
Reviewed by: imp
MFC after: 1 week
2005-03-23 21:24:29 +00:00
Nate Lawson
8b28b622f7
Add support for bus_delete_resource() and make acpi_bus_alloc_gas() do
...
this before setting a new resource.
2005-03-22 20:00:57 +00:00
Maxim Sobolev
4562351ad0
Zaurus expecrs CRC to be in little-endian order, so that convert it into LE
...
on BE arches.
Obtained from: OpenBSD
2005-03-22 16:35:15 +00:00
Maxim Sobolev
6bcf003260
Add USB Communication Device Class Ethernet driver. Originally written for
...
FreeBSD based on aue(4) it was picked by OpenBSD, then from OpenBSD ported
to NetBSD and finally NetBSD version merged with original one goes into
FreeBSD.
Obtained from: http://www.gank.org/freebsd/cdce/
NetBSD
OpenBSD
2005-03-22 14:52:40 +00:00
Philip Paeps
4b0eb6a716
Make sure status variable is always initialized. Why didn't this show up in
...
my testing? *grmbl*
2005-03-21 18:11:50 +00:00
Maxim Sobolev
c159c9d8bb
Add the following products in preparation for addition of CDCE driver:
...
- G.Mate, Inc's YP3X00 PDA;
- Prolific's PL2501 Host-Host interface;
- Numver of Sharp's Zaurus PDAs.
2005-03-21 08:43:54 +00:00
Scott Long
586cfbb265
Start the process of modernizing the Tigon driver by using busdma for the
...
descriptor and configuration data. Thanks to Martin Nilsson for providing
hardware.
2005-03-21 07:17:27 +00:00
Ian Dowse
20289f7920
Root hubs don't have transaction translators, so skip printing the
...
message about them if the hub depth is zero.
2005-03-20 23:45:00 +00:00
Ian Dowse
0b07d58eb3
Don't display the redundant `ehci_pci_attach: companion usbX'
...
messages unless EHCI debugging is enabled.
Suggested by: scottl
2005-03-20 23:42:54 +00:00
Philip Paeps
d8e0b9e1c0
Simplify sysctl handling by consolidating various get/set functions into
...
generic functions, use a table for hooking up sysctls nodes rather than doing
it manually. While here, clean up some style bugs.
Glanced at by: njl
2005-03-20 23:36:36 +00:00
Ian Dowse
a3a574f503
Remove trailing whitespace as per NetBSD's revision 1.91. Also
...
update the TODO comments to more closely match current reality.
2005-03-20 22:22:18 +00:00
Murray Stokely
ddc5ac8b73
Return BUS_PROBE_DEFAULT in preference to 0.
...
Pointed out by: Nate Lawson <nate@root.org>
2005-03-20 20:13:21 +00:00
Nate Lawson
6638c61aa6
Attach acpi_perf early. Especially when it is being used to provide info
...
to other devices, it needs to be attached first. (Multi-pass newbus
probes would be a better solution.)
2005-03-20 03:51:18 +00:00
Sam Leffler
eb9883565a
fix braino introduced when converting from madwifi
2005-03-20 01:55:02 +00:00
Sam Leffler
57a4a75853
eliminate mid-block variable decls
2005-03-20 01:27:33 +00:00
Nate Lawson
e33bea8d9e
Add the acpi_ec_read and write methods. This allows an external driver
...
(like an EC/SMbus controller) to access the EC address space. Access
is synchronized by the EcLock/Unlock routines in EcSpaceHandler().
Tested by: Hans Petter Selasky
2005-03-20 01:27:27 +00:00
Nate Lawson
823d404a6d
Only activate ICH speedstep if we're going to use it. No bugs were observed
...
due to this but it's cleaner this way.
2005-03-20 01:25:21 +00:00
Sam Leffler
b276305606
version 1.1 (with cleanups)
...
Submitted by: John Bicket
2005-03-19 21:04:53 +00:00
Ian Dowse
4c11f583a3
Now that all architectures allow hooks to be inserted before
...
configure_final(), assert that "cold" is true in usb_cold_explore()
when there are busses to explore. When USB is kldloaded after boot,
usb_cold_explore() will still get invoked but the list of busses
to explore in that case should always be empty.
2005-03-19 19:27:38 +00:00
Maxim Konovalov
c017b3b664
s/SLIST/STAILQ/
...
Spotted by: clive
2005-03-19 19:17:17 +00:00
Ian Dowse
a3d327674a
It was possible to have two threads concurrently aborting the same
...
transfer, which lead to panics or page faults. For example if a
transfer timed out, another thread could come along and attempt to
abort the same transfer while the timeout task was sleeping in
the *_abort_xfer() function.
Add an "aborting" flag to the private transfer state in each host
controller driver and use this to ensure that the abort is only
executed once. Also prioritise normal abort requests over timeouts
so that the callback is always given a status of USB_CANCELLED even
if the timeout-initiated abort began first.
The crashes caused by this bug were mainly reported in connection
with lpd printing to a USB printer.
PR: usb/78208, usb/78986
2005-03-19 19:08:46 +00:00
Poul-Henning Kamp
9ca3d6d5b7
Instead of a rather useless generation number, use a sample number to
...
keep track of things.
2005-03-19 12:55:46 +00:00
Scott Long
b5f516cdaf
Handle failures better in the passthrough bus creation code.
...
Submitted by: Coverity Prevent analysis tool
2005-03-19 06:29:32 +00:00
Murray Stokely
a52010a036
Add device id for nForce 4 audio controller.
...
PR: kern/78482
Submitted by: Markus Niemistö <markus.niemisto@iki.fi>
MFC after: 1 week
2005-03-19 01:39:13 +00:00
Warner Losh
3eafe746ab
Need to initialize the resource list that we keep for our children.
...
STAILQ's require this, while it is optional for SLIST (well, as long
as the memory is bzeroed).
Noticed by: phk's crash
2005-03-18 16:37:51 +00:00
Poul-Henning Kamp
be1bf4d2b8
s/SLIST/STAILQ/
...
/imp/a\
pointy hat
.
2005-03-18 11:57:44 +00:00
Philip Paeps
9a8b554fc2
Add acpi_fujitsu for handling acpi-controlled buttons on Fujitsu laptops.
...
Submitted by: Anish Mistry <mistry.7 -at- osu.edu>
Reviewed by: njl
X-MFC after: 5.4-RELEASE
2005-03-18 08:48:10 +00:00
Poul-Henning Kamp
f7e6cbd933
Fix off-by-one (too little!) array size problem.
...
Detected by: Coverity (ID#661)
2005-03-18 07:13:35 +00:00
David Schultz
730eb84011
If mlx_attach() returns an error, don't free sc again.
...
Spotted by: Ted Unangst using the Coverity Prevent static analysis tool
Reviewed by: scottl
2005-03-18 05:43:37 +00:00
David Schultz
14f1a8cc08
Don't read past the end of pVDevice[]. (Previously, we would iterate
...
twice as many times as there were entries in the array.)
Spotted by: Ted Unangst using the Coverity Prevent static analysis tool
Reviewed by: scottl
2005-03-18 05:43:34 +00:00
David Schultz
844b51308e
Don't write past the end of the VendorId field (and into the ProductId
...
field).
Spotted by: Ted Unangst using the Coverity Prevent static analysis tool
Reviewed by: scottl
2005-03-18 05:43:31 +00:00
Warner Losh
36fed96550
Use STAILQ in preference to SLIST for the resources. Insert new resources
...
last in the list rather than first.
This makes the resouces print in the 4.x order rather than the 5.x order
(eg fdc0 at 0x3f0-0x3f5,0x3f7 is 4.x, but 0x3f7,0x3f0-0x3f5 is 5.x). This
also means that the pci code will once again print the resources in BAR
ascending order.
2005-03-18 05:19:50 +00:00