| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
attachment.
Reviewed by: silby (mentor)
Approved by: re (scottl)
|
|
|
|
|
|
|
| |
Fixes a panic that occured when setting the interface parameters while
the interface was associated.
Approved by: re (scottl)
|
|
|
|
|
| |
Reviewed by: avatar
Approved by: re (scottl)
|
|
|
|
|
|
| |
Reviewed by: damien
Approved by: re (scottl)
Obtained from: openbsd
|
|
|
|
|
| |
Approved by: re (scottl)
Obtained from: netbsd
|
|
|
|
|
|
| |
Reported by: Tomokazu Hirai
Approved by: re (scottl)
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
o Indent usb ids properly
o Check the return value of if_alloc()
o Call if_free() in ural_detach()
Reviewed by: silby (mentor)
Approved by: re (scottl)
|
|
|
|
|
| |
Reviewed by: silby (mentor)
Approved by: re (scottl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
struct ifnet or the layer 2 common structure it was embedded in have
been replaced with a struct ifnet pointer to be filled by a call to the
new function, if_alloc(). The layer 2 common structure is also allocated
via if_alloc() based on the interface type. It is hung off the new
struct ifnet member, if_l2com.
This change removes the size of these structures from the kernel ABI and
will allow us to better manage them as interfaces come and go.
Other changes of note:
- Struct arpcom is no longer referenced in normal interface code.
Instead the Ethernet address is accessed via the IFP2ENADDR() macro.
To enforce this ac_enaddr has been renamed to _ac_enaddr.
- The second argument to ether_ifattach is now always the mac address
from driver private storage rather than sometimes being ac_enaddr.
Reviewed by: sobomax, sam
|
| |
|
| |
|
|
|
|
|
|
| |
and amd64. The optimization is a trivial on recent machines.
Reviewed by: -arch (imp, marcel, dfr)
|
|
|
|
| |
Approved by: silby (mentor)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
are used onboard in most of the newer PCI-based sun4u machines
(cosmetic change as they were also already probed as generic OHCI
without this). Detect whether their intpin register is valid and
correct it if necessary, i.e. set the respective IVAR to the right
value for allocating the IRQ resource, as some of them come up
having it set to 0 (mainly those used in Blade 100 and the first
one on AX1105 boards). This fixes attaching affected controllers.
Correcting the intpin value might be better off in the PCI code
via a quirk table but on the other hand gem(4) and hem(4) also
correct it themselves and at least for the USB controller part
the intpin register is truely hardwired to 0 and can't be changed.
This means that we would have to hook up the quirk information
in a lot of places in the PCI code (i.e. whenever the value of the
intpin register is read from or written to the pci_devinfo of the
respective device) in order to do it the right way.
MFC after: 1 month
|
| |
|
|
|
|
| |
Noticed by: Coverity Prevent analysis tool.
|
|
|
|
|
|
|
| |
could sleep which I think can lead to races. However, there are fewer
with this code than without it.
Submitted by: Hans Petter Selasky
|
|
|
|
|
|
| |
not suer where it comes from but suspect kimoto at ohnolab.org
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
ipw - Intel PRO/Wireless 2100
iwi - Intel PRO/Wireless 2200BG/2225BG/2915ABG
ral - Ralink Technology RT2500
ural - Ralink Technology RT2500USB
Approved by: silby (mentor)
|
|
|
|
|
|
|
|
|
|
| |
whether or not the receive pipe is stopped. This ensures that we
do not attempt to start the same transfer twice, and it allows
ucomstop() to skip the restarting of the read pipe if it was not
originally running, such as when called indirectly from ucomreadcb().
PR: kern/79420
MFC after: 1 day
|
|
|
|
|
| |
PR: usb/79230
Submitted by: Rick van der Zwet <rick@wzoeterwoude.net>
|
|
|
|
| |
Tested by: Mike Tancsa <mike@sentex.net>
|
|
|
|
| |
err has nothing to say about this specific error.
|
|
|
|
|
|
|
| |
to avoid a race condition that can cause the ukbd timeout routine
to run after the keyboard has detached.
Reported and tested by: wpaul
|
|
|
|
|
|
|
| |
This ensures that we explore EHCI busses before their companion
controllers' busses, so that ports connected to full/low speed
devices will be properly routed to the companion controllers by the
time the OHCI/UHCI exploration occurs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
with the ALT_IFACE_1 quirk.
PR: usb/79190
Submitted by: Hans Petter Selasky <hselasky@c2i.net>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
location.
|
|
|
|
| |
PR: kern/73295
|
|
|
|
|
|
| |
on BE arches.
Obtained from: OpenBSD
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
- G.Mate, Inc's YP3X00 PDA;
- Prolific's PL2501 Host-Host interface;
- Numver of Sharp's Zaurus PDAs.
|
|
|
|
| |
message about them if the hub depth is zero.
|
|
|
|
|
|
| |
messages unless EHCI debugging is enabled.
Suggested by: scottl
|
|
|
|
| |
update the TODO comments to more closely match current reality.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
dynamicaly allocate the per port array.
allow up to 32 serials per USB device.
ask the device for correct pipe sizes.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
system have been attached, but no later. This ensures that we do
not explore ohci or uhci busses before the companion echi controller
has been initialised, so it should fix the problem of multi-speed
USB devices getting attached as USB 1 devices first and then
re-attached as USB 2.
Some further changes are needed on architectures that do not currently
allow hooks to be inserted before configure_final() - alpha, ia64,
powerpc and sparc64. On these architectures the exploration will
now be delayed until the usb kthread runs.
|
| |
|
|
|
|
|
| |
final piece needed to make split transaction interrupt pipes work,
which I thought I had already committed.
|