Nate Lawson
43ce1c7762
If a device_add_child fails (i.e. low memory situation), be sure to free
...
the unused ivars also.
Submitted by: pjd
Obtained from: Coverity Prevent analysis
2005-03-27 03:37:43 +00:00
Sam Leffler
4a8bef25fe
check copyin+copyout return values when processing TWA_IOCTL_GET_LOCK
...
Noticed by: Coverity Prevent analysis tool
2005-03-27 00:29:37 +00:00
Sam Leffler
155fb57323
purge dead code
...
Noticed by: Coverity Prevent analysis tool
2005-03-26 23:51:39 +00:00
Sam Leffler
f6ef5ddaa4
correct logic so we recognize timeout on alloc
...
Noticed by: Coverity Prevent analysis tool
2005-03-26 23:43:54 +00:00
Sam Leffler
83888a7f30
purge dead code
...
Noticed by: Coverity Prevent analysis tool
2005-03-26 23:37:54 +00:00
Sam Leffler
52c94c38dc
deal with malloc failure when setting up the multicast filter
...
Noticed by: Coverity Prevent analysis tool
2005-03-26 23:26:49 +00:00
Sam Leffler
af5691cdd5
handle malloc failure and sk_vpd_prodname potentially being null for
...
other reasons
Noticed by: Coverity Prevent analysis tool
Reviewed by: bz, jmg
2005-03-26 22:57:28 +00:00
John-Mark Gurney
1a82818b98
fix a copy/paste typo for scanner/gameport...
...
Spotted by: Michal Mertl <mime@traveller.cz>
2005-03-26 22:17:48 +00:00
Poul-Henning Kamp
23db907c0f
Don't call mlx_free() i mlx_attach() in case of failure. Doing so
...
in mlx_attach_pci() is much cleaner.
Inspired by: Coverity
2005-03-26 21:58:09 +00:00
Sam Leffler
2f83086184
deal with malloc failure
...
Noticed by: Coverity Prevent analysis tool
2005-03-26 21:34:12 +00:00
Sam Leffler
4204b6b9a0
deal with failed malloc calls
...
Noticed by: Coverity Prevent analysis tool
Glanced at by: mdodd
2005-03-26 21:30:49 +00:00
John-Mark Gurney
4ea3b0e7e2
add some additional pci classes and sub-classes..
...
Reviewed by: imp (almost 6 months ago)
2005-03-26 20:31:09 +00:00
Sam Leffler
2307fc820c
deref correct mbuf ptr to collect any vlan tag
...
Noticed by: Coverity Prevent analysis tool
2005-03-26 18:47:17 +00:00
Sam Leffler
05aabdfcf1
eliminate double free when sym_cam_attach fails
...
Noticed by: Coverity Prevent analysis tool
2005-03-26 18:17:58 +00:00
Sam Leffler
ca640ca965
check copyin return values when loading pallete
...
Noticed by: Coverity Prevent analysis tool
2005-03-26 18:01:35 +00:00
Nate Lawson
55fa5feab7
Check for invalid frequencies after parsing the package. Keep a running
...
count of valid frequencies and use that as the final package count, don't
give up when the first invalid state is found. Also, add 0x9999 and expand
our upper check to >= 0xffff Mhz [2].
Submitted by: Bruno Ducrot, Jung-uk Kim [2]
2005-03-26 17:30:34 +00:00
Maxim Sobolev
e33b116b78
Comment out rue_miibus_statchg() function. Using trial-and-error approach I
...
found it guilty in putting the card into unusable state after UP->DOWN->UP
media status change.
Looks like some of register writes in this functions mess up PHY interface.
No visible regressions has been found after commenting this code out -
the card properly handles forceful local mode changes and auto-detects changes
made remotely (tested with Auto, 10HD, 10FD, 100HD, 100FD).
Sponsored by: PBXpress Inc.
MFC after: 3 days
2005-03-25 20:19:18 +00:00
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