CVS log for src/sys/dev/usb/if_axe.c
Up to [cvs.NetBSD.org] / src / sys / dev / usb
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.151: download - view: text, markup, annotated - select for diffs
Sat Aug 20 14:08:59 2022 UTC (4 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20261102,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11,
netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +3 -3
lines
usbnet(9): New usbnet_ispromisc(un).
Replaces ifp->if_flags & IFF_PROMISC in multicast filter updates.
Revision 1.150: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:56:28 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +3 -3
lines
usbnet: Omit needless detachcv name parameter to usbnet_attach.
Revision 1.149: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:56:09 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +3 -3
lines
usbnet: Factor usbnet_init_rx_tx out into usbnet_if_init.
Make it private; no need for drivers to call it any more.
Revision 1.148: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:55:38 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +2 -5
lines
usbnet drivers: Omit redundant device reset via *_uno_stop on init.
Only those drivers where *_uno_stop is just *_reset, and *_uno_init
immediately calls *_reset afterward, are affected.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:55:29 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +3 -3
lines
usbnet drivers: From *_uno_init, call *_uno_stop, not usbnet_stop.
Make usbnet_stop private now that no drivers use it.
None of the driver-independent logic in usbnet_stop has any effect at
this point because we are guaranteed not to be running, so only the
driver-dependent logic in *_uno_stop (at most) is needed.
For drivers with no *_uno_stop, just omit the call to usbnet_stop
altogether.
Some of this logic is obviously redundant with the subsequent call to
*_reset -- to be addressed in a subsequent commit.
Revision 1.146: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:55:01 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +2 -5
lines
usbnet drivers: Omit needless isdying tests in *_uno_init.
usbnet(9) already checks this immediately before calling *_uno_init.
Revision 1.145: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:54:37 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +2 -11
lines
usbnet drivers: Omit needless usbnet core lock and assertions.
During attach, the caller has exclusive access to the usbnet until
usbnet_attach_ifp. At other times, register access is serialized
either by the usbnet multicast lock or by IFNET_LOCK.
Revision 1.144: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:54:21 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +6 -3
lines
usbnet drivers: Avoid undefined behaviour if read reg fails.
Some callers don't check the error code, e.g. ~all the mii phy
drivers using PHY_READ. Just return zero if the device is gone or
the xfer fails for any other reason.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:53:33 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +2 -5
lines
usbnet drivers: Omit redundant multicast filter update on init.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:53:23 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +2 -4
lines
usbnet: Apply hardware multicast filter updates synchronously again.
To make this work:
1. Do it only under a new lock, unp_mcastlock. This lock lives at
IPL_SOFTCLOCK so it can be taken from network stack callouts. It
is forbidden to acquire the usbnet core lock under unp_mcastlock.
2. Do it only after usbnet_init_rx_tx and before usbnet_stop; if
issued at any other time, drop the update on the floor.
3. Make usbnet_init_rx_tx apply any pending multicast filter updates
under the lock before setting the flag that allows SIOCADDMULTI or
SIOCDELMULTI to apply the updates.
4. Remove core lock asserts from various drivers' register access
routines. This is necessary because the multicast filter updates
are done with register reads/writes, but _cannot_ take the core
lock when the caller holds softnet_lock.
This now programs the hardware multicast filter redundantly in many
drivers which already explicitly call *_uno_mcast from the *_uno_init
routines. This is probably harmless, but it will likely be better to
remove the explicit calls.
Revision 1.141: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:53:04 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +5 -13
lines
usbnet drivers: Omit needless uno_mcast locked subroutines.
uno_mcast is now called with the core lock already held so there is
no need for a separate locked subroutine.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:52:46 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +2 -6
lines
usbnet: Take the core lock around uno_mcast.
Every driver does this already. This will enable us to change the
lock that serializes access to the registers so we can go back to
doing this synchronously in SIOCADDMULTI/SIOCDELMULTI.
Revision 1.139: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:52:35 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +3 -11
lines
usbnet drivers: Omit needless uno_init locked subroutines.
uno_init is now called with the core lock already held so there is no
need for a separate locked subroutine.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:52:20 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +2 -4
lines
usbnet: Make the tx/rx locks private to usbnet.c.
Suffice it for the drivers to know that uno_tx_prepare and
uno_rx_loop have exclusive access to the chain, and, for tx,
exclusive access to the mbuf.
Revision 1.137: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:51:44 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +2 -6
lines
usbnet drivers: No need for usbnet_busy during attach.
usbnet_detach cannot run until the attach routine has finished
(unless a driver goes out of its way to tie its shoelaces together
and explicitly call it during the attach routine, which none of them
do), so there is no need to hang onto a reference count that we
release before attach returns.
Revision 1.136: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:51:27 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +2 -4
lines
usbnet drivers: No need for usbnet_busy in uno_mcast.
This callback always runs with IFNET_LOCK held, and during a task
that usbnet_detach prevents scheduling anew and waits for finishing
before completing the detach, so there is no need to hang onto a
reference count here.
Revision 1.135: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:51:17 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +2 -6
lines
usbnet drivers: No need for usbnet_busy in uno_init.
This callback always runs with the IFNET_LOCK held, and the interface
cannot be detached until the IFNET_LOCK is released, so there is no
need to hang onto a reference count here. (None of the usbnet
drivers touch the IFNET_LOCK except to verify it is held sometimes.)
Revision 1.134: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:51:06 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +7 -16
lines
usbnet: Split multicast filter reprogramming into separate operation.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:50:22 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +2 -4
lines
usbnet: Enter uno_init with the core lock held.
This reduces code in all drivers except urndis(4) and aue(4).
However, it's still safe for urndis to drop the core lock because the
ifnet is locked, and the ifnet lock covers the DOWN->UP (uno_init)
and UP->DOWN (uno_stop) transitions.
Revision 1.131.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:50 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131: +5 -5
lines
Sync with HEAD.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Mon Mar 1 17:41:00 2021 UTC (5 years, 8 months ago) by jakllsch
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +5 -5
lines
reduce aprint_error(9) abuse
Revision 1.82.6.5: download - view: text, markup, annotated - select for diffs
Fri Aug 28 19:44:22 2020 UTC (6 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.82.6.4: preferred, colored; branchpoint 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.6.4: +4 -3
lines
Pull up following revision(s) (requested by riastradh in ticket #1599):
sys/dev/usb/if_atu.c: revision 1.73
sys/dev/usb/if_axe.c: apply patch
sys/dev/usb/if_axen.c: apply patch
atu(4): Reject packets larger than MCLBYTES.
Revision 1.90.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:49 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.90.2.1: preferred, colored; branchpoint 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90.2.1: +388 -1037
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.131: download - view: text, markup, annotated - select for diffs
Fri Mar 27 18:04:45 2020 UTC (6 years, 7 months ago) by nisimura
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Branch point for: thorpej-futex
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +26 -30
lines
- change to use rcvfilt_locked() name to clarify the intent.
- stylise receive filter manipulation logic.
- use ETHER_F_ALLMULTI flag.
Revision 1.130: download - view: text, markup, annotated - select for diffs
Sun Mar 15 23:04:50 2020 UTC (6 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +55 -60
lines
Define and implement a locking protocol for the ifmedia / mii layers:
- MP-safe drivers provide a mutex to ifmedia that is used to serialize
access to media-related structures / hardware regsiters. Converted
drivers use the new ifmedia_init_with_lock() function for this. The
new name is provided to ease the transition.
- Un-converted drivers continue to call ifmedia_init(), which will supply
a compatibility lock to be used instead. Several media-related entry
points must be aware of this compatibility lock, and are able to acquire
it recursively a limited number of times, if needed. This is a SPIN
mutex with priority IPL_NET.
- This same lock is used to serialize access to PHY registers and other
MII-related data structures.
The PHY drivers are modified to acquire and release the lock, as needed,
and assert the lock is held as a diagnostic aid.
The "usbnet" framework has had an overhaul of its internal locking
protocols to fit in with the media / mii changes, and the drivers adapted.
USB wifi drivers have been changed to provide their own adaptive mutex
to the ifmedia later via a new ieee80211_media_init_with_lock() function.
This is required because the USB drivers need an adaptive mutex.
Besised "usbnet", a few other drivers are converted: vmx, wm, ixgbe / ixv.
mcx also now calls ifmedia_init_with_lock() because it needs to also use
an adaptive mutex. The mcx driver still needs to be fully converted to
NET_MPSAFE.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Sun Mar 1 12:23:12 2020 UTC (6 years, 8 months ago) by nisimura
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +52 -50
lines
introduce AXE_IS_172() conditional to highlight odd ball 172 and invert most IF-THEN-ELSE. consistent white spaces.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Sun Mar 1 10:16:17 2020 UTC (6 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -8
lines
use DOPAUSE. 772B Lenovo now has working rxpause,txpause
Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun Mar 1 08:32:15 2020 UTC (6 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +5 -7
lines
simplify single bit tests. no code difference is observed
Revision 1.121.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:16 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.121: preferred, colored; next MAIN 1.122: preferred, colored
Changes since revision 1.121: +24 -35
lines
Sync with head.
Revision 1.126: download - view: text, markup, annotated - select for diffs
Sat Feb 29 04:27:53 2020 UTC (6 years, 8 months ago) by nisimura
Branches: MAIN
CVS tags: ad-namecache-base3
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +5 -5
lines
add comments to show the RX filter intent
Revision 1.125: download - view: text, markup, annotated - select for diffs
Sat Feb 29 04:02:06 2020 UTC (6 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +3 -3
lines
make sure to accept bcast frame all the time
Revision 1.124: download - view: text, markup, annotated - select for diffs
Sat Feb 29 02:51:14 2020 UTC (6 years, 8 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +11 -22
lines
iron out receive filter multicast/promisc logic
Revision 1.123: download - view: text, markup, annotated - select for diffs
Mon Feb 24 12:38:57 2020 UTC (6 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +8 -8
lines
0x%#x --> %#x for non-external codes.
Also, stop mixing up 0x%x and %#x in single files as far as possible.
Revision 1.122: download - view: text, markup, annotated - select for diffs
Wed Jan 29 06:24:10 2020 UTC (6 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +7 -7
lines
Adopt <net/if_stats.h>.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Tue Jan 7 06:42:26 2020 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
CVS tags: ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +7 -7
lines
Localify, constify.
Revision 1.102.2.2: download - view: text, markup, annotated - select for diffs
Sun Sep 1 14:03:02 2019 UTC (7 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Diff to: previous 1.102.2.1: preferred, colored; branchpoint 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102.2.1: +2 -13
lines
Pull up following revision(s) (requested by rin in ticket #146):
sys/arch/arm/conf/Makefile.arm: revision 1.50
sys/dev/usb/if_axe.c: revision 1.120
PR kern/54486
Workaround for alignment faults on ARMv6+, at least occur with
axe(4) and athn(4) drivers.
For ARMv6+, unaligned access is enabled by default. However, it
cannot be used for non-cacheable memory, which is used as DMA
buffers. This results in alignment faults above. A real fix is
to use cacheable memory as DMA buffers. However, it breaks some
drivers, awge(4) and vchiq(4) at least.
Until we figure out problems and fix them, we choose a fail-safe
workaround here; forbid unaligned memory access for whole kernel.
Affects on performance is negligibly small as far as we can see.
XXX
pullup netbsd-9
-
PR kern/54486
Revert workaround introduced in rev 1.94:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/usb/if_axe.c#rev1.94
This is a problem specific to ARMv6+, and addressed by
arch/arm/conf/Makefile.arm rev 1.50:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/conf/Makefile.arm#rev1.50
XXX
pullup netbsd-9
Revision 1.102.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 1 13:00:36 2019 UTC (7 years, 2 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +258 -1116
lines
Pull up following revision(s) (requested by mrg in ticket #135):
distrib/sets/lists/comp/mi 1.2279
distrib/sets/lists/modules/mi 1.123
share/man/man9/Makefile 1.438
share/man/man9/usbnet.9 1.1-1.9
sys/dev/ic/rndisreg.h 1.3
sys/dev/usb/TODO 1.47-1.52
sys/dev/usb/TODO.usbmp 1.15,1.16
sys/dev/usb/files.usb 1.157-1.167
sys/dev/usb/if_aue.c 1.155-1.161
sys/dev/usb/if_auereg.h 1.30-1.32
sys/dev/usb/if_axe.c 1.103-1.119
sys/dev/usb/if_axen.c 1.51-1.53,1.55-1.67
sys/dev/usb/if_axenreg.h 1.15
sys/dev/usb/if_cdce.c 1.54-1.67
sys/dev/usb/if_cue.c 1.85,1.86
sys/dev/usb/if_cuereg.h 1.23
sys/dev/usb/if_kue.c 1.97-1.100
sys/dev/usb/if_kuereg.h 1.23,1.24
sys/dev/usb/if_mue.c 1.51-1.55
sys/dev/usb/if_muereg.h 1.6
sys/dev/usb/if_muevar.h 1.9
sys/dev/usb/if_smsc.c 1.46-1.61
sys/dev/usb/if_smscreg.h 1.6
sys/dev/usb/if_smscvar.h delete
sys/dev/usb/if_udav.c 1.60-1.71
sys/dev/usb/if_udavreg.h 1.14,1.15
sys/dev/usb/if_upl.c 1.65,1.66
sys/dev/usb/if_ure.c 1.15-1.31
sys/dev/usb/if_urevar.h 1.4,1.5
sys/dev/usb/if_url.c 1.67-1.70
sys/dev/usb/if_urlreg.h 1.14
sys/dev/usb/if_urndis.c 1.22-1.33
sys/dev/usb/if_urtwn.c 1.72
sys/dev/usb/ohci.c 1.290
sys/dev/usb/uhub.c 1.143
sys/dev/usb/usb.c 1.180
sys/dev/usb/usb.h 1.118
sys/dev/usb/usb_mem.c 1.71
sys/dev/usb/usb_subr.c 1.238,1.239
sys/dev/usb/usbdevs 1.772
sys/dev/usb/usbdi.c 1.183,1.186
sys/dev/usb/usbdi.h 1.97
sys/dev/usb/usbdi_util.c 1.75
sys/dev/usb/usbhist.h 1.5,1.6
sys/dev/usb/usbnet.c 1.1-1.24
sys/dev/usb/usbnet.h 1.1-1.14
sys/dev/usb/usbroothub.c 1.9
sys/dev/usb/xhci.c 1.109,1.110
sys/modules/Makefile 1.223
sys/modules/usbnet/Makefile 1.1
usbnet(9): Add common framework for USB network devices.
This bring various safety fixes to all updated drivers,
and includes locking clean up, detach safety when being
used or not, separate rx/tx locks to improve performance,
porting to NET_MPSAFE, many edge/error case bugs in
drivers fixed, as well as resovling PRs 54303 and 54308.
These drivers are converted: axe(4), axen(4), aue(4),
cdce(4), cue(4), kue(4), mue(4), smsc(4), udav(4),
upl(4), ure(4), url(4), and urndis(4).
Revision 1.120: download - view: text, markup, annotated - select for diffs
Mon Aug 26 17:26:33 2019 UTC (7 years, 2 months ago) by rin
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +2 -13
lines
PR kern/54486
Revert workaround introduced in rev 1.94:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/usb/if_axe.c#rev1.94
This is a problem specific to ARMv6+, and addressed by
arch/arm/conf/Makefile.arm rev 1.50:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/conf/Makefile.arm#rev1.50
XXX
pullup netbsd-9
Revision 1.119: download - view: text, markup, annotated - select for diffs
Fri Aug 23 04:32:57 2019 UTC (7 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +4 -4
lines
s/UBSNET_MII_DECL_DEFAULT/USBNET_MII_DECL_DEFAULT/. from sc.dying.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Tue Aug 20 06:37:06 2019 UTC (7 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +17 -13
lines
couple more changes to usbnet(9):
- MII read/write reg return int instead of usbd_status (requested by skrll)
- usbnet_attach_ifp(9) changes arg, two mii-specific flags are placed by a
pointer to new struct usbnet_mii. if not NULL, then attach an MII to this
interface like previous have_mii parameter. use this to allow ure(4) to
properly pass PHY location to mii_attach().
welcome netbsd 9.99.10.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Mon Aug 19 07:33:37 2019 UTC (7 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +8 -2
lines
move the check against un_phyno from usbnet back into the drivers
that do this (axe, axen, mue, smsc, ure.) it made mii scanning
only work for phy 0, and aue needs it for at least one device.
fix smsc to return usbd_status not -1 on failure. XXX smsc was
writing to '*val' even in error cases, it does not now.
remove a double call to IFQ_SET_READY() (noticed by chuq).
avoid unlock+instant relock by using usbnet_lock_mii_un_locked().
Revision 1.116: download - view: text, markup, annotated - select for diffs
Fri Aug 16 08:29:20 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +3 -3
lines
make the default debug level zero.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Thu Aug 15 05:52:23 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +4 -7
lines
- usbnet_rx_loop_cb's usbd_xfer parameter is never used and available
in the usbnet_chain if needed. remove it
- usbnet media status change already set link to false, don't repeat
this in every driver
- don't clear link in stop, nothing was re-enabling it for non-MII
- add optional uno_tick_cb(struct usbnet *un) that is called from the
usbnet tick timer
- remove wrong debug sysctl prototype
rx_loop and timer are kernel versions changes, but hopefully this is
the last one for usbnet. working with 3 more drivers now (cue, mue
and url), leaving only aue, kue, upl and umb undone (aue may work
with previously supported devices, mine doesn't work with our driver,
kue and upl have patches for testing and umb is undone.)
Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed Aug 14 03:44:58 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +3 -31
lines
introduce usbnet_set_dying(). will be used by url(4) conversion.
bump version.
introduce USBNET_MODULE() that encompasses almost all the module
specific code for usbnet modules. they still need to include
the relevant ioconf.c, but everything else is now just, eg,
USBNET_MODULE(axen)
Revision 1.113: download - view: text, markup, annotated - select for diffs
Sun Aug 11 23:55:43 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -4
lines
don't set dv_private. it's a bad pattern and only didn't
trip kmem_free() lossage because struct usbnet is at the
start of the softc.
for now, enforce this as part of the ABI.
catch up urndis with tx_prepare checking buffer length,
and also add an assert to usbnet_start_locked() to match.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Sun Aug 11 05:14:41 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -3
lines
void -Wsign-compare issue and add a stupid cast.
revert this if m_pkthdr.len becomes unsigned.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Sun Aug 11 02:37:03 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +4 -4
lines
copy a pattern from if_udav.c, which already had "too much" check.
even though overflow or underflow is really unlikely here, reorder
various expressions to reduce the likelyhood even further.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Sun Aug 11 01:04:33 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +40 -39
lines
in tx_prepare callback make sure to reject any mbuf that is larger
than can fit in the buffer. done at the driver and not usbnet
layer because the driver knows how much beyond the mbuf data needs
to be sent (headers and trailers.)
axen(4) had a KASSERT() for this condition, but there's no
invariant here we can check so it's best as an error return.
XXX: only tested on these drivers, needs to be copied to udav, smsc
and urndis after testing as well as the not commited conversions.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Sat Aug 10 02:17:36 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +12 -8
lines
reduce the scope of struct usbnet:
- move a large number of members internal to usbnet.c's new
"struct usbnet_private".
- provide accessors for a few of these
- move struct usbnet_cdata into usbnet.c as well, but move
bufsz, list count, and xfer flags back out into struct usbnet,
and have them set as part of the setup efore usbnet_attach()
- split the intr pipe parts into their own structure
- move all the main usbnet*lock* code into usbnet.c too
usbnet_attach() goes down to 2 args, and the inputs needed are
now the full contents of 'struct usbnet' besides the driver
owned 'un_flags' and usbnet owned 'un_pri'.
welcome netbsd 9.99.6.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Fri Aug 9 02:52:59 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +35 -36
lines
use new un_flags member of usbnet:
- axen(4) and cdce(4) are now able to use struct usbnet directly
as softc, udav also done but untested
Revision 1.107: download - view: text, markup, annotated - select for diffs
Fri Aug 9 01:17:33 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +29 -25
lines
update usbnet some:
- move rx/tx xfer flags into usbnet_cdata
- move the callbacks into usbnet_ops structure
- move rx/tx xfer flags arguments from usbnet_init_rx_tx()
and move them all into usbnet_attach() arguments
- s/miibus/mii/ in some places for consistency
other clean up:
- create wrapper functions for callbacks, move knowledge about
special handling (OK to be missing, error eating) there.
- use cdata pointer if already available
- provide some more macros (will be real functions later) for
accessing usbnet members, use existing ones more
bump kernel version.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Tue Aug 6 01:42:22 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +2 -8
lines
for ethernet usb network devices, print the mac addr in usbnet.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Tue Aug 6 00:19:57 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -3
lines
extend usbnet to cope with if_upl, if_smsc, and if_umb needs:
- usbnet_enqueue() can set mbuf flags and csum_data
- usbnet_input() for non-ethernet based devices (upl, umb)
- allow a complete override for ioctl()
- remove converted list -- we have compiling and/or working patches for
all the devices except for umb(4), will be merged as testing happens
hopefully this is the last ABI change, though it may end up being
extended for additional smsc(4) support.
hello for real netbsd 9.99.3!
Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun Aug 4 09:03:46 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +207 -1045
lines
convert axe(4) and ure(4) to usbnet.
axe loses 838 lines (37%) and ure loses 716 lines (36%).
Revision 1.103: download - view: text, markup, annotated - select for diffs
Thu Aug 1 01:19:21 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -4
lines
fix locking botch.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Sun Jul 21 10:27:56 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +2 -4
lines
remove unused structure members. this brings most <foo>_chain and
<foo>_cdata structures into being identical for usb ethernet drivers.
upl(4) and url(4) need more work.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Sun Jul 21 09:38:28 2019 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +2 -6
lines
remove unused axe_accum and axe_idx members of struct axe_chain.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Jul 15 06:40:21 2019 UTC (7 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +306 -143
lines
adjust axe(4) similar to recent axen(4)/cdce(4)/ure(4) updates
(which were in turn partly based upon smsc(4) changes):
- mark network interface MPSAFE, and use MPSAFE calls
- convert to local tick task doing watchdog timeout
- add global, tx and rx locks
- add ratelimited tx error message
- split many functions into locked/unlocked version
- use more const
- fix some comments
- remove spl
- don't bother with OACTIVE and do it all internally (axe_tx_cnt)
additional changes here:
- use axe_stop() to abort pipes in detach
fixes a crash potential i only saw when almost finished debugging
these changes..
Revision 1.99: download - view: text, markup, annotated - select for diffs
Sun Jul 14 21:37:09 2019 UTC (7 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +90 -2
lines
move software parts out of the "reg" header.
Revision 1.90.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:33 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +63 -44
lines
Sync with HEAD
Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue May 28 07:41:50 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +9 -4
lines
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu May 23 13:10:52 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +5 -5
lines
Whitespace fix (mainly tabify).
Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu May 23 10:57:29 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -5
lines
-No functional change:
- KNF
- u_int*_t -> uint*_t.
Revision 1.84.2.7: download - view: text, markup, annotated - select for diffs
Sat Jan 26 22:00:24 2019 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.84.2.6: preferred, colored; branchpoint 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84.2.6: +35 -30
lines
Sync with HEAD
Revision 1.95: download - view: text, markup, annotated - select for diffs
Tue Jan 22 03:42:28 2019 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
isaki-audio2-base,
isaki-audio2
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +35 -30
lines
Change MII PHY read/write API from:
int (*mii_readreg_t)(device_t, int, int);
void (*mii_writereg_t)(device_t, int, int, int);
to:
int (*mii_readreg_t)(device_t, int, int, uint16_t *);
int (*mii_writereg_t)(device_t, int, int, uint16_t);
Now we can test if a read/write operation failed or not by the return value.
In 802.3 spec says that the PHY shall not respond to read/write transaction
to the unimplemented register(22.2.4.3). Detecting timeout can be used to
check whether a register is implemented or not (if the register conforms to
the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR.
Note that I noticed that the following code do infinite loop in the
read/wirte function. If it accesses unimplemented PHY register, it will hang.
It should be fixed:
arm/at91/at91emac.c
arm/ep93xx/epe.c
arm/omap/omapl1x_emac.c
mips/ralink/ralink_eth.c
arch/powerpc/booke/dev/pq3etsec.c(read)
dev/cadence/if_cemac.c <- hkenken
dev/ic/lan9118.c
Tested with the following device:
axe+ukphy
axe+rgephy
axen+rgephy (tested by Andrius V)
wm+atphy
wm+ukphy
wm+igphy
wm+ihphy
wm+makphy
sk+makphy
sk+brgphy
sk+gentbi
msk+makphy
sip+icsphy
sip+ukphy
re+rgephy
bge+brgphy
bnx+brgphy
gsip+gphyter
rtk+rlphy
fxp+inphy (tested by Andrius V)
tlp+acphy
ex+exphy
epic+qsphy
vge+ciphy (tested by Andrius V)
vr+ukphy (tested by Andrius V)
vte+ukphy (tested by Andrius V)
Not tested (MAC):
arm:at91emac
arm:cemac
arm:epe
arm:geminigmac
arm:enet
arm:cpsw
arm:emac(omac)
arm:emac(sunxi)
arm:npe
evbppc:temac
macppc:bm
macppc:gm
mips:aumac
mips:ae
mips:cnmac
mips:reth
mips:sbmac
playstation2:smap
powerpc:tsec
powerpc:emac(ibm4xx)
sgimips:mec
sparc:be
sf
ne(ax88190, dl10019)
awge
ep
gem
hme
smsh
mtd
sm
age
alc
ale
bce
cas
et
jme
lii
nfe
pcn
ste
stge
tl
xi
aue
mue
smsc
udav
url
Not tested (PHY):
amhphy
bmtphy
dmphy
etphy
glxtphy
ikphy
iophy
lxtphy
nsphyter
pnaphy
rdcphy
sqphy
tlphy
tqphy
urlphy
Revision 1.84.2.6: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:43 2019 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.84.2.5: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.2.5: +13 -2
lines
Synch with HEAD
Revision 1.94: download - view: text, markup, annotated - select for diffs
Sun Jan 6 00:39:05 2019 UTC (7 years, 10 months ago) by rin
Branches: MAIN
CVS tags: pgoyette-compat-20190118
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +13 -2
lines
Fix kernel panic on arm reported by @furandon_pig on Twitter.
Hardware header is 2-byte aligned in RX buffer, not 4-byte.
For some architectures, __builtin_memcpy() of GCC 6 attempts to
copy 4-byte header at once, which results in alignment error.
Revision 1.84.2.5: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:51 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.84.2.4: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.2.4: +3 -3
lines
Ssync with HEAD
Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Sep 12 21:57:18 2018 UTC (8 years, 2 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -3
lines
Don't have modules depend on bpf; they will find the dependency dynamically
at runtime. Otherwise builtin modules will complain about non-builtin bpf.
Revision 1.84.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:04 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.84.2.3: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.2.3: +5 -7
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.82.6.4: download - view: text, markup, annotated - select for diffs
Wed Aug 8 10:28:35 2018 UTC (8 years, 3 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.82.6.3: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.6.3: +5 -7
lines
Pull up following revision(s) (requested by riastradh in ticket #963):
sys/dev/usb/if_cue.c: revision 1.80
sys/dev/usb/umcs.c: revision 1.11
sys/dev/usb/umcs.c: revision 1.12
sys/dev/usb/if_ural.c: revision 1.56
sys/dev/usb/if_run.c: revision 1.28
sys/dev/usb/if_ural.c: revision 1.57
sys/dev/usb/if_run.c: revision 1.29
sys/dev/usb/uatp.c: revision 1.16
sys/dev/usb/uatp.c: revision 1.17
sys/dev/usb/if_axe.c: revision 1.91
sys/dev/usb/if_axe.c: revision 1.92
sys/dev/usb/if_zyd.c: revision 1.49
sys/dev/usb/if_axen.c: revision 1.15
sys/dev/usb/if_url.c: revision 1.60
sys/dev/usb/if_udav.c: revision 1.54
sys/dev/usb/if_axen.c: revision 1.16
sys/dev/usb/if_udav.c: revision 1.55
sys/dev/usb/if_athn_usb.c: revision 1.28
sys/dev/usb/if_athn_usb.c: revision 1.29
sys/dev/usb/if_urtw.c: revision 1.16
sys/dev/usb/if_urtw.c: revision 1.17
sys/dev/usb/if_cue.c: revision 1.79
sys/dev/usb/if_rum.c: revision 1.62
sys/dev/usb/if_urtwn.c: revision 1.61
sys/dev/usb/if_rum.c: revision 1.63
sys/dev/usb/if_urtwn.c: revision 1.63
sys/dev/usb/usb.c: revision 1.170
sys/dev/usb/usb.c: revision 1.171
sys/dev/usb/if_smsc.c: revision 1.35
sys/dev/usb/if_smsc.c: revision 1.36
sys/dev/usb/if_zyd.c: revision 1.50
sys/dev/usb/if_aue.c: revision 1.144
sys/dev/usb/if_aue.c: revision 1.145
sys/dev/usb/usb_subr.c: revision 1.225
sys/dev/usb/usb_subr.c: revision 1.226
sys/dev/usb/if_upgt.c: revision 1.21
sys/dev/usb/usbdi.h: revision 1.93
sys/dev/usb/if_upgt.c: revision 1.22
sys/dev/usb/if_url.c: revision 1.59
sys/dev/usb/usbdi.h: revision 1.95
sys/dev/usb/if_otus.c: revision 1.34
sys/dev/usb/if_atu.c: revision 1.62
sys/dev/usb/if_otus.c: revision 1.35
sys/dev/usb/if_atu.c: revision 1.63
New function usb_rem_task_wait(dev, task, queue).
If task is scheduled to run, removes it from the queue. If it may
have already begun to run, waits for it to complete. Caller must
guarantee it will not switch to another queue. If caller guarantees
it will not be scheduled again, then usb_rem_task_wait guarantees it
is not running on return.
This will enable us to fix a litany of bugs in detach where we
currently fail to wait for a pending task.
Use usb_rem_task_wait in various drivers.
Revision 1.67.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 8 10:17:11 2018 UTC (8 years, 3 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.67.2.3: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.2.3: +5 -7
lines
Pull up following revision(s) (requested by riastradh in ticket #1626):
sys/dev/usb/if_cue.c: revision 1.80
sys/dev/usb/umcs.c: revision 1.11
sys/dev/usb/umcs.c: revision 1.12
sys/dev/usb/if_ural.c: revision 1.56
sys/dev/usb/if_run.c: revision 1.28
sys/dev/usb/if_ural.c: revision 1.57
sys/dev/usb/if_run.c: revision 1.29
sys/dev/usb/uatp.c: revision 1.16
sys/dev/usb/uatp.c: revision 1.17
sys/dev/usb/if_axe.c: revision 1.91
sys/dev/usb/if_axe.c: revision 1.92
sys/dev/usb/if_zyd.c: revision 1.49
sys/dev/usb/if_axen.c: revision 1.15
sys/dev/usb/if_url.c: revision 1.60
sys/dev/usb/if_udav.c: revision 1.54
sys/dev/usb/if_axen.c: revision 1.16
sys/dev/usb/if_udav.c: revision 1.55
sys/dev/usb/if_athn_usb.c: revision 1.28
sys/dev/usb/if_athn_usb.c: revision 1.29
sys/dev/usb/if_urtw.c: revision 1.16
sys/dev/usb/if_urtw.c: revision 1.17
sys/dev/usb/if_cue.c: revision 1.79
sys/dev/usb/if_rum.c: revision 1.62
sys/dev/usb/if_urtwn.c: revision 1.61
sys/dev/usb/if_rum.c: revision 1.63
sys/dev/usb/if_urtwn.c: revision 1.63
sys/dev/usb/usb.c: revision 1.170
sys/dev/usb/usb.c: revision 1.171
sys/dev/usb/if_smsc.c: revision 1.35
sys/dev/usb/if_smsc.c: revision 1.36
sys/dev/usb/if_zyd.c: revision 1.50
sys/dev/usb/if_aue.c: revision 1.144
sys/dev/usb/if_aue.c: revision 1.145
sys/dev/usb/usb_subr.c: revision 1.225
sys/dev/usb/usb_subr.c: revision 1.226
sys/dev/usb/if_upgt.c: revision 1.21
sys/dev/usb/usbdi.h: revision 1.93
sys/dev/usb/if_upgt.c: revision 1.22
sys/dev/usb/if_url.c: revision 1.59
sys/dev/usb/usbdi.h: revision 1.95
sys/dev/usb/if_otus.c: revision 1.34
sys/dev/usb/if_atu.c: revision 1.62
sys/dev/usb/if_otus.c: revision 1.35
sys/dev/usb/if_atu.c: revision 1.63
New function usb_rem_task_wait(dev, task, queue).
If task is scheduled to run, removes it from the queue. If it may
have already begun to run, waits for it to complete. Caller must
guarantee it will not switch to another queue. If caller guarantees
it will not be scheduled again, then usb_rem_task_wait guarantees it
is not running on return.
This will enable us to fix a litany of bugs in detach where we
currently fail to wait for a pending task.
Use usb_rem_task_wait in various drivers.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Aug 2 06:09:04 2018 UTC (8 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-0906,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +4 -3
lines
Fix usb_rem_task_wait API.
- Return whether it removed task from queue or not.
. True if it was on the queue and we intercepted it before it ran.
. False if we could not intercept it: either it wasn't queued,
or it already ran. (Up to caller to distinguish these cases.)
- Pass an optional interlock like callout_halt.
While here, simplify.
ok mrg@
Revision 1.91: download - view: text, markup, annotated - select for diffs
Sun Jul 29 02:00:27 2018 UTC (8 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -7
lines
Use callout_halt and usb_rem_task_wait in axe(4).
Revision 1.84.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:57 2018 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.84.2.2: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.2.2: +3 -3
lines
Sync with HEAD
Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:02 2018 UTC (8 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728
Branch point for: phil-wifi
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +3 -3
lines
Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.
Revision 1.82.6.3: download - view: text, markup, annotated - select for diffs
Mon May 7 13:26:03 2018 UTC (8 years, 6 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE,
netbsd-8-0-RC2
Diff to: previous 1.82.6.2: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.6.2: +63 -38
lines
Pull up following revision(s) (requested by nonaka in ticket #782):
sys/dev/usb/if_axe.c: revision 1.85-1.89
propagate pullup-782 for NetBSD-8 to HEAD (gcc uninitialized)
It was not gcc's fault for correctly detecting an uninitialized variable.
Fix the uninitialized variable issues by error checking things.
downgrade error to debug.
merge duplicated code, back to logging error.
use the proper station nodeid read command.
Revision 1.84.2.2: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:11 2018 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.84.2.1: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.2.1: +29 -28
lines
Synch with HEAD
Revision 1.89: download - view: text, markup, annotated - select for diffs
Fri Apr 27 12:04:23 2018 UTC (8 years, 6 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +12 -10
lines
use the proper station nodeid read command.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Apr 22 20:32:27 2018 UTC (8 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +21 -22
lines
merge duplicated code, back to logging error.
Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 22 07:20:26 2018 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +45 -21
lines
Sync with HEAD
Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Apr 21 18:07:23 2018 UTC (8 years, 6 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-0422
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -4
lines
downgrade error to debug.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Apr 20 21:03:00 2018 UTC (8 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +46 -23
lines
It was not gcc's fault for correctly detecting an uninitialized variable.
Fix the uninitialized variable issues by error checking things.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Apr 20 11:14:40 2018 UTC (8 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -2
lines
propagate pullup-782 for NetBSD-8 to HEAD (gcc uninitialized)
Revision 1.67.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 19 19:33:06 2018 UTC (8 years, 8 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.67.2.2: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.2.2: +3 -3
lines
Pull up following revision(s) (requested by skrll in ticket #1556):
sys/dev/usb/if_athn_usb.c: 1.25
sys/dev/usb/if_atu.c: 1.56
sys/dev/usb/if_aue.c: 1.142
sys/dev/usb/if_axe.c: 1.84
sys/dev/usb/if_axen.c: 1.12
sys/dev/usb/if_cdce.c: 1.45
sys/dev/usb/if_cue.c: 1.77
sys/dev/usb/if_kue.c: 1.91
sys/dev/usb/if_otus.c: 1.32
sys/dev/usb/if_rum.c: 1.59
sys/dev/usb/if_run.c: 1.25
sys/dev/usb/if_smsc.c: 1.33
sys/dev/usb/if_udav.c: 1.52
sys/dev/usb/if_upgt.c: 1.18
sys/dev/usb/if_upl.c: 1.61
sys/dev/usb/if_ural.c: 1.53
sys/dev/usb/if_url.c: 1.57
sys/dev/usb/if_urndis.c: 1.17
sys/dev/usb/if_urtw.c: 1.14
sys/dev/usb/if_urtwn.c: 1.56
sys/dev/usb/if_zyd.c: 1.45
sys/dev/usb/irmce.c: 1.4
sys/dev/usb/pseye.c: 1.24
sys/dev/usb/ubt.c: 1.60
sys/dev/usb/ucom.c: 1.120
sys/dev/usb/udsir.c: 1.6
sys/dev/usb/ugen.c: 1.137
sys/dev/usb/uhso.c: 1.27
sys/dev/usb/uirda.c: 1.43
sys/dev/usb/ulpt.c: 1.99
sys/dev/usb/umass.c: 1.163
sys/dev/usb/umidi.c: 1.74
sys/dev/usb/uscanner.c: 1.82
sys/dev/usb/usscanner.c: 1.43
sys/dev/usb/ustir.c: 1.39
sys/dev/usb/utoppy.c: 1.30
sys/dev/usb/uvideo.c: 1.46
PR kern/52931 Kernel panics with Atheros usb wireless interface
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup. We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs
Revision 1.82.6.2: download - view: text, markup, annotated - select for diffs
Wed Jan 31 18:01:55 2018 UTC (8 years, 9 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RC1
Diff to: previous 1.82.6.1: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.6.1: +3 -3
lines
Pull up following revision(s) (requested by skrll in ticket #509):
sys/dev/usb/if_ural.c: revision 1.53
sys/dev/usb/if_run.c: revision 1.25
sys/dev/usb/ustir.c: revision 1.39
sys/dev/usb/irmce.c: revision 1.4
sys/dev/usb/if_urtwn.c: revision 1.56
sys/dev/usb/pseye.c: revision 1.24
sys/dev/usb/if_rum.c: revision 1.59
sys/dev/usb/if_upl.c: revision 1.61
sys/dev/usb/ucom.c: revision 1.120
sys/dev/usb/if_zyd.c: revision 1.45
sys/dev/usb/if_axen.c: revision 1.12
sys/dev/usb/umidi.c: revision 1.74
sys/dev/usb/if_udav.c: revision 1.52
sys/dev/usb/if_athn_usb.c: revision 1.25
sys/dev/usb/usscanner.c: revision 1.43
sys/dev/usb/ualea.c: revision 1.6 - 1.9
sys/dev/usb/if_upgt.c: revision 1.18
sys/dev/usb/if_atu.c: revision 1.56
sys/dev/usb/utoppy.c: revision 1.30
sys/dev/usb/ubt.c: revision 1.60
sys/dev/usb/if_urtw.c: revision 1.14
sys/dev/usb/uirda.c: revision 1.43
sys/dev/usb/umass.c: revision 1.163
sys/dev/usb/if_cdce.c: revision 1.45
sys/dev/usb/if_cue.c: revision 1.77
sys/dev/usb/if_kue.c: revision 1.91
sys/dev/usb/uvideo.c: revision 1.46
sys/dev/usb/uhso.c: revision 1.27
sys/dev/usb/if_smsc.c: revision 1.33
sys/dev/usb/ugen.c: revision 1.137
sys/dev/usb/if_axe.c: revision 1.84
sys/dev/usb/if_aue.c: revision 1.142
sys/dev/usb/uscanner.c: revision 1.82
sys/dev/usb/if_urndis.c: revision 1.17
sys/dev/usb/udsir.c: revision 1.6
sys/dev/usb/if_url.c: revision 1.57
sys/dev/usb/if_otus.c: revision 1.32
sys/dev/usb/ulpt.c: revision 1.99
PR kern/52931 Kernel panics with Atheros usb wireless interface
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup. We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs
ualea: Tidy up a bit. Fulfil requests completely.
Don't subtract uninitialized pktsize in error path.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Sun Jan 21 13:57:11 2018 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -3
lines
PR kern/52931 Kernel panics with Atheros usb wireless interface
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup. We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs
Revision 1.57.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:33 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.57.2.2: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.2: +634 -269
lines
update from HEAD
Revision 1.82.6.1: download - view: text, markup, annotated - select for diffs
Thu Nov 2 21:29:52 2017 UTC (9 years ago) by snj
Branches: netbsd-8
CVS tags: matt-nb8-mediatek-base,
matt-nb8-mediatek
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +20 -19
lines
Pull up following revision(s) (requested by pgoyette in ticket #335):
share/man/man9/kernhist.9: 1.5-1.8
sys/arch/acorn26/acorn26/pmap.c: 1.39
sys/arch/arm/arm32/fault.c: 1.105 via patch
sys/arch/arm/arm32/pmap.c: 1.350, 1.359
sys/arch/arm/broadcom/bcm2835_bsc.c: 1.7
sys/arch/arm/omap/if_cpsw.c: 1.20
sys/arch/arm/omap/tiotg.c: 1.7
sys/arch/evbarm/conf/RPI2_INSTALL: 1.3
sys/dev/ic/sl811hs.c: 1.98
sys/dev/usb/ehci.c: 1.256
sys/dev/usb/if_axe.c: 1.83
sys/dev/usb/motg.c: 1.18
sys/dev/usb/ohci.c: 1.274
sys/dev/usb/ucom.c: 1.119
sys/dev/usb/uhci.c: 1.277
sys/dev/usb/uhub.c: 1.137
sys/dev/usb/umass.c: 1.160-1.162
sys/dev/usb/umass_quirks.c: 1.100
sys/dev/usb/umass_scsipi.c: 1.55
sys/dev/usb/usb.c: 1.168
sys/dev/usb/usb_mem.c: 1.70
sys/dev/usb/usb_subr.c: 1.221
sys/dev/usb/usbdi.c: 1.175
sys/dev/usb/usbdi_util.c: 1.67-1.70
sys/dev/usb/usbroothub.c: 1.3
sys/dev/usb/xhci.c: 1.75
sys/external/bsd/drm2/dist/drm/i915/i915_gem.c: 1.34
sys/kern/kern_history.c: 1.15
sys/kern/kern_xxx.c: 1.74
sys/kern/vfs_bio.c: 1.275-1.276
sys/miscfs/genfs/genfs_io.c: 1.71
sys/sys/kernhist.h: 1.21
sys/ufs/ffs/ffs_balloc.c: 1.63
sys/ufs/lfs/lfs_vfsops.c: 1.361
sys/ufs/lfs/ulfs_inode.c: 1.21
sys/ufs/lfs/ulfs_vnops.c: 1.52
sys/ufs/ufs/ufs_inode.c: 1.102
sys/ufs/ufs/ufs_vnops.c: 1.239
sys/uvm/pmap/pmap.c: 1.37-1.39
sys/uvm/pmap/pmap_tlb.c: 1.22
sys/uvm/uvm_amap.c: 1.108
sys/uvm/uvm_anon.c: 1.64
sys/uvm/uvm_aobj.c: 1.126
sys/uvm/uvm_bio.c: 1.91
sys/uvm/uvm_device.c: 1.66
sys/uvm/uvm_fault.c: 1.201
sys/uvm/uvm_km.c: 1.144
sys/uvm/uvm_loan.c: 1.85
sys/uvm/uvm_map.c: 1.353
sys/uvm/uvm_page.c: 1.194
sys/uvm/uvm_pager.c: 1.111
sys/uvm/uvm_pdaemon.c: 1.109
sys/uvm/uvm_swap.c: 1.175
sys/uvm/uvm_vnode.c: 1.103
usr.bin/vmstat/vmstat.c: 1.219
Reorder to test for null before null deref in debug code
--
Reorder to test for null before null deref in debug code
--
KNF
--
No need for '\n' in UVMHIST_LOG
--
normalise a BIOHIST log message
--
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...
(As proposed on tech-kern@ with additional changes and enhancements.)
Details of changes:
* All history arguments are now stored as uintmax_t values[1], both in
the kernel and in the structures used for exporting the history data
to userland via sysctl(9). This avoids problems on some architectures
where passing a 64-bit (or larger) value to printf(3) can cause it to
process the value as multiple arguments. (This can be particularly
problematic when printf()'s format string is not a literal, since in
that case the compiler cannot know how large each argument should be.)
* Update the data structures used for exporting kernel history data to
include a version number as well as the length of history arguments.
* All [2] existing users of kernhist(9) have had their format strings
updated. Each format specifier now includes an explicit length
modifier 'j' to refer to numeric values of the size of uintmax_t.
* All [2] existing users of kernhist(9) have had their format strings
updated to replace uses of "%p" with "%#jx", and the pointer
arguments are now cast to (uintptr_t) before being subsequently cast
to (uintmax_t). This is needed to avoid compiler warnings about
casting "pointer to integer of a different size."
* All [2] existing users of kernhist(9) have had instances of "%s" or
"%c" format strings replaced with numeric formats; several instances
of mis-match between format string and argument list have been fixed.
* vmstat(1) has been modified to handle the new size of arguments in the
history data as exported by sysctl(9).
* vmstat(1) now provides a warning message if the history requested with
the -u option does not exist (previously, this condition was silently
ignored, with only a single blank line being printed).
* vmstat(1) now checks the version and argument length included in the
data exported via sysctl(9) and exits if they do not match the values
with which vmstat was built.
* The kernhist(9) man-page has been updated to note the additional
requirements imposed on the format strings, along with several other
minor changes and enhancements.
[1] It would have been possible to use an explicit length (for example,
uint64_t) for the history arguments. But that would require another
"rototill" of all the users in the future when we add support for an
architecture that supports a larger size. Also, the printf(3)
format
specifiers for explicitly-sized values, such as "%"PRIu64, are much
more verbose (and less aesthetically appealing, IMHO) than simply
using "%ju".
[2] I've tried very hard to find "all [the] existing users of
kernhist(9)"
but it is possible that I've missed some of them. I would be glad
to
update any stragglers that anyone identifies.
--
For some reason this single kernel seems to have outgrown its declared
size as a result of the kernhist(9) changes. Bump the size.
XXX The amount of increase may be excessive - anyone with more detailed
XXX knowledge please feel free to further adjust the value
appropriately.
--
Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commit
--
And yet another one. :(
--
Use correct mark-up for NetBSD version.
--
More improvements in grammar and readability.
--
Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.
--
And replace an instance of "%p" conversion with "%#jx"
--
Whitespace fix. Give Bl tag table a width. Fix Xr.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Oct 28 00:37:12 2017 UTC (9 years ago) by pgoyette
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +20 -19
lines
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...
(As proposed on tech-kern@ with additional changes and enhancements.)
Details of changes:
* All history arguments are now stored as uintmax_t values[1], both in
the kernel and in the structures used for exporting the history data
to userland via sysctl(9). This avoids problems on some architectures
where passing a 64-bit (or larger) value to printf(3) can cause it to
process the value as multiple arguments. (This can be particularly
problematic when printf()'s format string is not a literal, since in
that case the compiler cannot know how large each argument should be.)
* Update the data structures used for exporting kernel history data to
include a version number as well as the length of history arguments.
* All [2] existing users of kernhist(9) have had their format strings
updated. Each format specifier now includes an explicit length
modifier 'j' to refer to numeric values of the size of uintmax_t.
* All [2] existing users of kernhist(9) have had their format strings
updated to replace uses of "%p" with "%#jx", and the pointer
arguments are now cast to (uintptr_t) before being subsequently cast
to (uintmax_t). This is needed to avoid compiler warnings about
casting "pointer to integer of a different size."
* All [2] existing users of kernhist(9) have had instances of "%s" or
"%c" format strings replaced with numeric formats; several instances
of mis-match between format string and argument list have been fixed.
* vmstat(1) has been modified to handle the new size of arguments in the
history data as exported by sysctl(9).
* vmstat(1) now provides a warning message if the history requested with
the -u option does not exist (previously, this condition was silently
ignored, with only a single blank line being printed).
* vmstat(1) now checks the version and argument length included in the
data exported via sysctl(9) and exits if they do not match the values
with which vmstat was built.
* The kernhist(9) man-page has been updated to note the additional
requirements imposed on the format strings, along with several other
minor changes and enhancements.
[1] It would have been possible to use an explicit length (for example,
uint64_t) for the history arguments. But that would require another
"rototill" of all the users in the future when we add support for an
architecture that supports a larger size. Also, the printf(3) format
specifiers for explicitly-sized values, such as "%"PRIu64, are much
more verbose (and less aesthetically appealing, IMHO) than simply
using "%ju".
[2] I've tried very hard to find "all [the] existing users of kernhist(9)"
but it is possible that I've missed some of them. I would be glad to
update any stragglers that anyone identifies.
Revision 1.67.4.16: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:27 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.15: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.4.15: +5 -2
lines
Sync with HEAD
Revision 1.80.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:53 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +5 -2
lines
Sync with HEAD
Revision 1.67.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 5 19:54:19 2017 UTC (9 years, 7 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.67.2.1: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.2.1: +744 -316
lines
Pull up following revision(s) (requested by skrll in ticket #1395):
share/man/man4/axe.4: netbsd-7-nhusb
share/man/man4/axen.4: netbsd-7-nhusb
share/man/man4/cdce.4: netbsd-7-nhusb
share/man/man4/uaudio.4: netbsd-7-nhusb
share/man/man4/ucom.4: netbsd-7-nhusb
share/man/man4/uep.4: netbsd-7-nhusb
share/man/man4/urtw.4: netbsd-7-nhusb
share/man/man4/usb.4: netbsd-7-nhusb
share/man/man4/uyap.4: netbsd-7-nhusb
share/man/man4/xhci.4: netbsd-7-nhusb
share/man/man9/usbdi.9: netbsd-7-nhusb
sys/arch/amd64/conf/ALL: netbsd-7-nhusb
sys/arch/amd64/conf/GENERIC: netbsd-7-nhusb
sys/arch/amiga/dev/slhci_zbus.c: netbsd-7-nhusb
sys/arch/arm/allwinner/awin_otg.c: netbsd-7-nhusb
sys/arch/arm/allwinner/awin_usb.c: netbsd-7-nhusb
sys/arch/arm/amlogic/amlogic_dwctwo.c: netbsd-7-nhusb
sys/arch/arm/at91/at91ohci.c: netbsd-7-nhusb
sys/arch/arm/broadcom/bcm2835_dwctwo.c: netbsd-7-nhusb
sys/arch/arm/broadcom/bcm53xx_usb.c: netbsd-7-nhusb
sys/arch/arm/ep93xx/epohci.c: netbsd-7-nhusb
sys/arch/arm/gemini/obio_ehci.c: netbsd-7-nhusb
sys/arch/arm/imx/files.imx23: netbsd-7-nhusb
sys/arch/arm/imx/imxusb.c: netbsd-7-nhusb
sys/arch/arm/imx/imxusbreg.h: netbsd-7-nhusb
sys/arch/arm/omap/obio_ohci.c: netbsd-7-nhusb
sys/arch/arm/omap/omap3_ehci.c: netbsd-7-nhusb
sys/arch/arm/omap/omapl1x_ohci.c: netbsd-7-nhusb
sys/arch/arm/omap/tiotg.c: netbsd-7-nhusb
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c: netbsd-7-nhusb
sys/arch/arm/samsung/exynos_usb.c: netbsd-7-nhusb
sys/arch/arm/xscale/pxa2x0_ohci.c: netbsd-7-nhusb
sys/arch/arm/zynq/zynq_usb.c: netbsd-7-nhusb
sys/arch/hpcarm/dev/nbp_slhci.c: netbsd-7-nhusb
sys/arch/hpcmips/dev/plumohci.c: netbsd-7-nhusb
sys/arch/i386/conf/ALL: netbsd-7-nhusb
sys/arch/i386/conf/GENERIC: netbsd-7-nhusb
sys/arch/i386/pci/gcscehci.c: netbsd-7-nhusb
sys/arch/luna68k/conf/GENERIC: netbsd-7-nhusb
sys/arch/mips/adm5120/dev/ahci.c: netbsd-7-nhusb
sys/arch/mips/adm5120/dev/ahcivar.h: netbsd-7-nhusb
sys/arch/mips/alchemy/dev/ohci_aubus.c: netbsd-7-nhusb
sys/arch/mips/atheros/dev/ehci_arbus.c: netbsd-7-nhusb
sys/arch/mips/atheros/dev/ohci_arbus.c: netbsd-7-nhusb
sys/arch/mips/conf/files.adm5120: netbsd-7-nhusb
sys/arch/mips/ralink/ralink_ehci.c: netbsd-7-nhusb
sys/arch/mips/ralink/ralink_ohci.c: netbsd-7-nhusb
sys/arch/mips/rmi/rmixl_ehci.c: netbsd-7-nhusb
sys/arch/mips/rmi/rmixl_ohci.c: netbsd-7-nhusb
sys/arch/playstation2/dev/ohci_sbus.c: netbsd-7-nhusb
sys/arch/powerpc/booke/dev/pq3ehci.c: netbsd-7-nhusb
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c: netbsd-7-nhusb
sys/arch/x68k/dev/slhci_intio.c: netbsd-7-nhusb
sys/conf/files: netbsd-7-nhusb
sys/dev/cardbus/ehci_cardbus.c: netbsd-7-nhusb
sys/dev/cardbus/ohci_cardbus.c: netbsd-7-nhusb
sys/dev/cardbus/uhci_cardbus.c: netbsd-7-nhusb
sys/dev/ic/sl811hs.c: netbsd-7-nhusb
sys/dev/ic/sl811hsvar.h: netbsd-7-nhusb
sys/dev/isa/slhci_isa.c: netbsd-7-nhusb
sys/dev/marvell/ehci_mv.c: netbsd-7-nhusb
sys/dev/pci/ehci_pci.c: netbsd-7-nhusb
sys/dev/pci/ohci_pci.c: netbsd-7-nhusb
sys/dev/pci/uhci_pci.c: netbsd-7-nhusb
sys/dev/pci/xhci_pci.c: netbsd-7-nhusb
sys/dev/pcmcia/slhci_pcmcia.c: netbsd-7-nhusb
sys/dev/usb/Makefile.usbdevs: netbsd-7-nhusb
sys/dev/usb/TODO: netbsd-7-nhusb
sys/dev/usb/TODO.usbmp: netbsd-7-nhusb
sys/dev/usb/aubtfwl.c: netbsd-7-nhusb
sys/dev/usb/auvitek.c: netbsd-7-nhusb
sys/dev/usb/auvitek_audio.c: netbsd-7-nhusb
sys/dev/usb/auvitek_dtv.c: netbsd-7-nhusb
sys/dev/usb/auvitek_i2c.c: netbsd-7-nhusb
sys/dev/usb/auvitek_video.c: netbsd-7-nhusb
sys/dev/usb/auvitekvar.h: netbsd-7-nhusb
sys/dev/usb/ehci.c: netbsd-7-nhusb
sys/dev/usb/ehcireg.h: netbsd-7-nhusb
sys/dev/usb/ehcivar.h: netbsd-7-nhusb
sys/dev/usb/emdtv.c: netbsd-7-nhusb
sys/dev/usb/emdtv_dtv.c: netbsd-7-nhusb
sys/dev/usb/emdtv_ir.c: netbsd-7-nhusb
sys/dev/usb/emdtvvar.h: netbsd-7-nhusb
sys/dev/usb/ezload.c: netbsd-7-nhusb
sys/dev/usb/ezload.h: netbsd-7-nhusb
sys/dev/usb/files.usb: netbsd-7-nhusb
sys/dev/usb/hid.c: netbsd-7-nhusb
sys/dev/usb/hid.h: netbsd-7-nhusb
sys/dev/usb/if_athn_usb.c: netbsd-7-nhusb
sys/dev/usb/if_athn_usb.h: netbsd-7-nhusb
sys/dev/usb/if_atu.c: netbsd-7-nhusb
sys/dev/usb/if_atureg.h: netbsd-7-nhusb
sys/dev/usb/if_aue.c: netbsd-7-nhusb
sys/dev/usb/if_auereg.h: netbsd-7-nhusb
sys/dev/usb/if_axe.c: netbsd-7-nhusb
sys/dev/usb/if_axen.c: netbsd-7-nhusb
sys/dev/usb/if_axenreg.h: netbsd-7-nhusb
sys/dev/usb/if_axereg.h: netbsd-7-nhusb
sys/dev/usb/if_cdce.c: netbsd-7-nhusb
sys/dev/usb/if_cdcereg.h: netbsd-7-nhusb
sys/dev/usb/if_cue.c: netbsd-7-nhusb
sys/dev/usb/if_cuereg.h: netbsd-7-nhusb
sys/dev/usb/if_kue.c: netbsd-7-nhusb
sys/dev/usb/if_kuereg.h: netbsd-7-nhusb
sys/dev/usb/if_otus.c: netbsd-7-nhusb
sys/dev/usb/if_otusvar.h: netbsd-7-nhusb
sys/dev/usb/if_rum.c: netbsd-7-nhusb
sys/dev/usb/if_rumreg.h: netbsd-7-nhusb
sys/dev/usb/if_rumvar.h: netbsd-7-nhusb
sys/dev/usb/if_run.c: netbsd-7-nhusb
sys/dev/usb/if_runvar.h: netbsd-7-nhusb
sys/dev/usb/if_smsc.c: netbsd-7-nhusb
sys/dev/usb/if_smscreg.h: netbsd-7-nhusb
sys/dev/usb/if_smscvar.h: netbsd-7-nhusb
sys/dev/usb/if_udav.c: netbsd-7-nhusb
sys/dev/usb/if_udavreg.h: netbsd-7-nhusb
sys/dev/usb/if_upgt.c: netbsd-7-nhusb
sys/dev/usb/if_upgtvar.h: netbsd-7-nhusb
sys/dev/usb/if_upl.c: netbsd-7-nhusb
sys/dev/usb/if_ural.c: netbsd-7-nhusb
sys/dev/usb/if_uralreg.h: netbsd-7-nhusb
sys/dev/usb/if_uralvar.h: netbsd-7-nhusb
sys/dev/usb/if_url.c: netbsd-7-nhusb
sys/dev/usb/if_urlreg.h: netbsd-7-nhusb
sys/dev/usb/if_urndis.c: netbsd-7-nhusb
sys/dev/usb/if_urndisreg.h: netbsd-7-nhusb
sys/dev/usb/if_urtw.c: netbsd-7-nhusb
sys/dev/usb/if_urtwn.c: netbsd-7-nhusb
sys/dev/usb/if_urtwn_data.h: netbsd-7-nhusb
sys/dev/usb/if_urtwnreg.h: netbsd-7-nhusb
sys/dev/usb/if_urtwnvar.h: netbsd-7-nhusb
sys/dev/usb/if_urtwreg.h: netbsd-7-nhusb
sys/dev/usb/if_zyd.c: netbsd-7-nhusb
sys/dev/usb/if_zydreg.h: netbsd-7-nhusb
sys/dev/usb/irmce.c: netbsd-7-nhusb
sys/dev/usb/moscom.c: netbsd-7-nhusb
sys/dev/usb/motg.c: netbsd-7-nhusb
sys/dev/usb/motgvar.h: netbsd-7-nhusb
sys/dev/usb/ohci.c: netbsd-7-nhusb
sys/dev/usb/ohcireg.h: netbsd-7-nhusb
sys/dev/usb/ohcivar.h: netbsd-7-nhusb
sys/dev/usb/pseye.c: netbsd-7-nhusb
sys/dev/usb/slurm.c: netbsd-7-nhusb
sys/dev/usb/stuirda.c: netbsd-7-nhusb
sys/dev/usb/u3g.c: netbsd-7-nhusb
sys/dev/usb/uark.c: netbsd-7-nhusb
sys/dev/usb/uatp.c: netbsd-7-nhusb
sys/dev/usb/uaudio.c: netbsd-7-nhusb
sys/dev/usb/uberry.c: netbsd-7-nhusb
sys/dev/usb/ubsa.c: netbsd-7-nhusb
sys/dev/usb/ubsa_common.c: netbsd-7-nhusb
sys/dev/usb/ubsavar.h: netbsd-7-nhusb
sys/dev/usb/ubt.c: netbsd-7-nhusb
sys/dev/usb/uchcom.c: netbsd-7-nhusb
sys/dev/usb/ucom.c: netbsd-7-nhusb
sys/dev/usb/ucomvar.h: netbsd-7-nhusb
sys/dev/usb/ucycom.c: netbsd-7-nhusb
sys/dev/usb/udl.c: netbsd-7-nhusb
sys/dev/usb/udl.h: netbsd-7-nhusb
sys/dev/usb/udsbr.c: netbsd-7-nhusb
sys/dev/usb/udsir.c: netbsd-7-nhusb
sys/dev/usb/uep.c: netbsd-7-nhusb
sys/dev/usb/uftdi.c: netbsd-7-nhusb
sys/dev/usb/uftdireg.h: netbsd-7-nhusb
sys/dev/usb/ugen.c: netbsd-7-nhusb
sys/dev/usb/ugensa.c: netbsd-7-nhusb
sys/dev/usb/uhci.c: netbsd-7-nhusb
sys/dev/usb/uhcireg.h: netbsd-7-nhusb
sys/dev/usb/uhcivar.h: netbsd-7-nhusb
sys/dev/usb/uhid.c: netbsd-7-nhusb
sys/dev/usb/uhidev.c: netbsd-7-nhusb
sys/dev/usb/uhidev.h: netbsd-7-nhusb
sys/dev/usb/uhmodem.c: netbsd-7-nhusb
sys/dev/usb/uhso.c: netbsd-7-nhusb
sys/dev/usb/uhub.c: netbsd-7-nhusb
sys/dev/usb/uipad.c: netbsd-7-nhusb
sys/dev/usb/uipaq.c: netbsd-7-nhusb
sys/dev/usb/uirda.c: netbsd-7-nhusb
sys/dev/usb/uirdavar.h: netbsd-7-nhusb
sys/dev/usb/ukbd.c: netbsd-7-nhusb
sys/dev/usb/ukbdmap.c: netbsd-7-nhusb
sys/dev/usb/ukyopon.c: netbsd-7-nhusb
sys/dev/usb/ukyopon.h: netbsd-7-nhusb
sys/dev/usb/ulpt.c: netbsd-7-nhusb
sys/dev/usb/umass.c: netbsd-7-nhusb
sys/dev/usb/umass_isdata.c: netbsd-7-nhusb
sys/dev/usb/umass_isdata.h: netbsd-7-nhusb
sys/dev/usb/umass_quirks.c: netbsd-7-nhusb
sys/dev/usb/umass_quirks.h: netbsd-7-nhusb
sys/dev/usb/umass_scsipi.c: netbsd-7-nhusb
sys/dev/usb/umass_scsipi.h: netbsd-7-nhusb
sys/dev/usb/umassvar.h: netbsd-7-nhusb
sys/dev/usb/umcs.c: netbsd-7-nhusb
sys/dev/usb/umct.c: netbsd-7-nhusb
sys/dev/usb/umidi.c: netbsd-7-nhusb
sys/dev/usb/umidi_quirks.c: netbsd-7-nhusb
sys/dev/usb/umidi_quirks.h: netbsd-7-nhusb
sys/dev/usb/umodem.c: netbsd-7-nhusb
sys/dev/usb/umodem_common.c: netbsd-7-nhusb
sys/dev/usb/umodemvar.h: netbsd-7-nhusb
sys/dev/usb/ums.c: netbsd-7-nhusb
sys/dev/usb/uplcom.c: netbsd-7-nhusb
sys/dev/usb/urio.c: netbsd-7-nhusb
sys/dev/usb/urio.h: netbsd-7-nhusb
sys/dev/usb/usb.c: netbsd-7-nhusb
sys/dev/usb/usb.h: netbsd-7-nhusb
sys/dev/usb/usb_mem.c: netbsd-7-nhusb
sys/dev/usb/usb_mem.h: netbsd-7-nhusb
sys/dev/usb/usb_quirks.c: netbsd-7-nhusb
sys/dev/usb/usb_quirks.h: netbsd-7-nhusb
sys/dev/usb/usb_subr.c: netbsd-7-nhusb
sys/dev/usb/usbdevices.config: netbsd-7-nhusb
sys/dev/usb/usbdevs: netbsd-7-nhusb
sys/dev/usb/usbdevs.h: netbsd-7-nhusb
sys/dev/usb/usbdevs_data.h: netbsd-7-nhusb
sys/dev/usb/usbdi.c: netbsd-7-nhusb
sys/dev/usb/usbdi.h: netbsd-7-nhusb
sys/dev/usb/usbdi_util.c: netbsd-7-nhusb
sys/dev/usb/usbdi_util.h: netbsd-7-nhusb
sys/dev/usb/usbdivar.h: netbsd-7-nhusb
sys/dev/usb/usbhid.h: netbsd-7-nhusb
sys/dev/usb/usbhist.h: netbsd-7-nhusb
sys/dev/usb/usbroothub.c: netbsd-7-nhusb
sys/dev/usb/usbroothub.h: netbsd-7-nhusb
sys/dev/usb/usbroothub_subr.c: delete
sys/dev/usb/usbroothub_subr.h: delete
sys/dev/usb/uscanner.c: netbsd-7-nhusb
sys/dev/usb/uslsa.c: netbsd-7-nhusb
sys/dev/usb/usscanner.c: netbsd-7-nhusb
sys/dev/usb/ustir.c: netbsd-7-nhusb
sys/dev/usb/uthum.c: netbsd-7-nhusb
sys/dev/usb/utoppy.c: netbsd-7-nhusb
sys/dev/usb/uts.c: netbsd-7-nhusb
sys/dev/usb/uvideo.c: netbsd-7-nhusb
sys/dev/usb/uvisor.c: netbsd-7-nhusb
sys/dev/usb/uvscom.c: netbsd-7-nhusb
sys/dev/usb/uyap.c: netbsd-7-nhusb
sys/dev/usb/uyap_firmware.h: netbsd-7-nhusb
sys/dev/usb/uyurex.c: netbsd-7-nhusb
sys/dev/usb/x1input_rdesc.h: netbsd-7-nhusb
sys/dev/usb/xhci.c: netbsd-7-nhusb
sys/dev/usb/xhcireg.h: netbsd-7-nhusb
sys/dev/usb/xhcivar.h: netbsd-7-nhusb
sys/dev/usb/xinput_rdesc.h: netbsd-7-nhusb
sys/external/bsd/common/conf/files.linux: netbsd-7-nhusb
sys/external/bsd/common/include/linux/err.h: netbsd-7-nhusb
sys/external/bsd/common/include/linux/kernel.h: netbsd-7-nhusb
sys/external/bsd/common/include/linux/workqueue.h: netbsd-7-nhusb
sys/external/bsd/common/linux/linux_work.c: netbsd-7-nhusb
sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c: netbsd-7-nhusb
sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c: netbsd-7-nhusb
sys/external/bsd/drm2/drm/files.drmkms: netbsd-7-nhusb
sys/external/bsd/drm2/i915drm/files.i915drmkms: netbsd-7-nhusb
sys/external/bsd/drm2/include/linux/err.h: delete
sys/external/bsd/drm2/include/linux/workqueue.h: delete
sys/external/bsd/drm2/linux/files.drmkms_linux: netbsd-7-nhusb
sys/external/bsd/drm2/linux/linux_work.c: delete
sys/external/bsd/dwc2/dwc2.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dwc2.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dwc2var.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dwctwo2netbsd: netbsd-7-nhusb
sys/external/bsd/dwc2/conf/files.dwc2: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_core.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_core.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_coreintr.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcd.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcd.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdddma.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hw.h: netbsd-7-nhusb
sys/modules/drmkms_linux/Makefile: netbsd-7-nhusb
sys/modules/i915drmkms/Makefile: netbsd-7-nhusb
sys/rump/dev/lib/libugenhc/ugenhc.c: netbsd-7-nhusb
sys/rump/dev/lib/libusb/Makefile: netbsd-7-nhusb
sys/rump/dev/lib/libusb/USB.ioconf: netbsd-7-nhusb
sys/rump/dev/lib/libusb/usb_at_ugenhc.c: delete
sys/rump/dev/lib/libusb/opt/opt_usb.h: delete
sys/rump/dev/lib/libusb/opt/opt_usbverbose.h: delete
sys/sys/mbuf.h: netbsd-7-nhusb
usr.sbin/usbdevs/usbdevs.8: netbsd-7-nhusb
usr.sbin/usbdevs/usbdevs.c: netbsd-7-nhusb
Merge netbsd-7-nhusb:
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
- kern/48308
- uhub status notification improvements
- umass(4) probe fix (applied to HEAD already)
- ohci(4) short transfer fix
- Change the SOFTINT level from NET to SERIAL for the USB softint handler.
This gives the callback a chance of running when another softint handler
at SOFTINT_NET has blocked holding a lock, e.g. softnet_lock and most of
the network stack.
- kern/49065 - ifconfig tun0 ... sequence locks up system / lockup:
softnet_lock held across usb xfr
- kern/50491 - unkillable wait in usbd_transfer while using usmsc0
on raspberry pi 2
- kern/51395 - USB Ethernet makes xhci hang
- Various improvements to slhci(4)
- Various improvements to dwc2(4)
Revision 1.67.8.3: download - view: text, markup, annotated - select for diffs
Fri Mar 31 10:28:21 2017 UTC (9 years, 7 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.67.8.2: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.8.2: +4 -2
lines
Fix build
Revision 1.72.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:38 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.72.2.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.1: +6 -3
lines
Sync with HEAD
Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Mar 6 01:50:44 2017 UTC (9 years, 8 months ago) by ozaki-r
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -2
lines
Add missing function declarations
Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Mar 3 06:27:20 2017 UTC (9 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -2
lines
Add missing opt_net_mpsafe.h.
Revision 1.67.4.15: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:46 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.14: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.14: +3 -7
lines
Sync with HEAD
Revision 1.67.4.14: download - view: text, markup, annotated - select for diffs
Fri Feb 3 07:48:05 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.13: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.13: +8 -8
lines
Simplify. No functional change.
Revision 1.67.8.2: download - view: text, markup, annotated - select for diffs
Thu Jan 26 21:54:24 2017 UTC (9 years, 9 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.67.8.1: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.8.1: +675 -250
lines
Sync with HEAD/nhusb
Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Jan 12 18:26:08 2017 UTC (9 years, 10 months ago) by maya
Branches: MAIN
CVS tags: nick-nhusb-base-20170204,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3
lines
Appease coverity which is having nightmares about strings not being
null-terminated by using strlcpy rather than strncpy when it doesn't
matter.
ok christos.
Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:41 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +548 -188
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Dec 15 09:28:06 2016 UTC (9 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170107
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +2 -5
lines
Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input
The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
- Where/When if_ipackets is counted up
- Note that some drivers still update packet statistics in their own
way (periodical update)
- Moved bpf_mtap run in softint
- This makes it easy to MP-ify bpf
Proposed on tech-kern and tech-net
Revision 1.67.4.13: download - view: text, markup, annotated - select for diffs
Mon Dec 12 13:15:39 2016 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.12: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.12: +137 -75
lines
WIP MPification
Revision 1.67.4.12: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:18 2016 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.11: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.11: +547 -185
lines
Sync with HEAD
Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Dec 4 11:47:29 2016 UTC (9 years, 11 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20161204
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -3
lines
Fix a -Werror=sign-compare
Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Dec 4 10:08:26 2016 UTC (9 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -4
lines
Whitespace
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Dec 4 10:07:06 2016 UTC (9 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +546 -185
lines
Sync with FreeBSD/OpenBSD and add support for 88772B devices.
While I'm here convert to USB_DEBUG
Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Nov 25 12:56:29 2016 UTC (9 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -2
lines
+#include "opt_usb.h"
Revision 1.67.4.11: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:57 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.10: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.10: +3 -2
lines
Sync with HEAD
Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 18 06:00:20 2016 UTC (10 years, 2 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -2
lines
Pull up following revision(s) (requested by skrll in ticket #1245):
sys/dev/usb/if_axe.c: revision 1.73, 1.74
sys/dev/usb/usbdevs: revision 1.716
Add flxd's axe(4)
--
flxd's axe(4) - I think.
--
Fix harmless typo
Revision 1.67.8.1: download - view: text, markup, annotated - select for diffs
Tue Sep 6 20:33:08 2016 UTC (10 years, 2 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +84 -82
lines
First pass at netbsd-7 updated with USB code from HEAD
Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Aug 27 08:57:21 2016 UTC (10 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: pgoyette-localcount-20161104,
nick-nhusb-base-20161004,
localcount-20160914
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3
lines
Fix harmless typo
Revision 1.73: download - view: text, markup, annotated - select for diffs
Sat Aug 27 08:45:59 2016 UTC (10 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -2
lines
flxd's axe(4) - I think.
Revision 1.67.4.10: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:15 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.9: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.9: +3 -3
lines
Sync with HEAD
Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:15 2016 UTC (10 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3
lines
Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.
No functional change.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sat Apr 23 10:15:31 2016 UTC (10 years, 6 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +78 -82
lines
Merge nick-nhusb
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
- kern/48308
- uhub status notification improvements
- umass(4) probe fix (applied to HEAD already)
- ohci(4) short transfer fix
Revision 1.67.4.9: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:19 2016 UTC (10 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.8: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.8: +3 -3
lines
Sync with HEAD
Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Feb 9 08:32:12 2016 UTC (10 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3
lines
Introduce softint-based if_input
This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.
This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.
To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.
Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html
Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
Revision 1.67.4.8: download - view: text, markup, annotated - select for diffs
Mon Dec 28 09:26:33 2015 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.7: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.7: +30 -20
lines
Strictly follow the sequence abort pipe, destroy xfers, and close pipe as
API now requires. Plug some memory leaks in some drivers while doing
this.
Also, remove up_refcnt as it was broken and helped leak more memory.
Revision 1.67.4.7: download - view: text, markup, annotated - select for diffs
Tue Oct 6 21:32:15 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.6: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.6: +35 -49
lines
Move from usbd_{alloc,free}_xfer and usbd_{alloc,free}_buffer to
usbd_{create,destroy}_xfer. The API change will allow future changes
to HCDs to simplify the transfer resource allocation and activation.
Several devices tested including ucom, umass, smsc, uvideo, and uaudio.
Revision 1.67.4.6: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:13 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.5: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.5: +8 -3
lines
Sync with HEAD
Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon Apr 13 16:33:25 2015 UTC (11 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
Convert sys/dev to use <sys/rndsource.h>.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Apr 8 12:38:13 2015 UTC (11 years, 7 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +7 -2
lines
Added pmf hook.
Revision 1.67.4.5: download - view: text, markup, annotated - select for diffs
Sat Mar 21 11:33:37 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.4: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.4: +7 -7
lines
Add prefixes to attach_arg structure member names. No functional change.
Revision 1.67.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 19 17:26:42 2015 UTC (11 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.3: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.3: +7 -7
lines
Do the same as OpenBSD and get rid of the *_handle typedefs and use
plain structures insteads
Revision 1.67.4.3: download - view: text, markup, annotated - select for diffs
Sat Dec 6 08:27:23 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.2: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.2: +5 -5
lines
KNF. Remove argument name from function declarations.
No functional change.
Revision 1.67.4.2: download - view: text, markup, annotated - select for diffs
Wed Dec 3 12:52:07 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67.4.1: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.4.1: +5 -5
lines
The grand renaming of structure members.
No functional change.
Revision 1.67.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 2 09:00:33 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +5 -5
lines
Step #1 of memory allocation re-organisation.
Centralised the buffer allocation routine which now supports DMA
and non-DMA capable host controllers. Remove the
ubm_{alloc,free}m methods from usbd_bus_methods.
The buffer allocation is only allowed in thread context and,
therefore, negates the usefulness of the reserve dma code which
is removed in this change.
USBD_NO_COPY is also no longer required as usbd_transfer and
usbd_transfer_complete now track buffer usage and handle any
copying.
Revision 1.57.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:51 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.57.2.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.1: +183 -67
lines
Rebase to HEAD as of a few days ago.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Aug 10 16:44:36 2014 UTC (12 years, 3 months ago) by tls
Branches: MAIN
CVS tags: tls-maxphys-base,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base,
netbsd-7-base,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Branch point for: nick-nhusb,
netbsd-7-nhusb,
netbsd-7
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3
lines
Merge tls-earlyentropy branch into HEAD.
Revision 1.50.2.5: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:36 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.50.2.4: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.4: +182 -66
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:47 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +182 -66
lines
sync with head
Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 7 03:37:33 2014 UTC (12 years, 7 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +3 -3
lines
Be a little more clear and consistent about harvesting entropy from devices:
1) deprecate RND_FLAG_NO_ESTIMATE
2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE
3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE
4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME
5) Make entropy harvesting from environmental sensors a little more generic
and remove it from individual sensor drivers.
6) Remove individual open-coded delta-estimators for values from a few
places in the tree (uvm, environmental drivers).
7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
that had stubbed out code, other minor cleanups.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Nov 8 17:46:35 2013 UTC (13 years ago) by roy
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-earlyentropy-base,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +182 -70
lines
Add GPIO programming to support more PHY.
Most of the work done by skrll@ taken from FreeBSD,
but finished and tested by me using an AX88178 axe and a RTL8211 PHY.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Sep 12 21:03:11 2013 UTC (13 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +6 -2
lines
#ifdef some variables just like their use
Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:34 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +17 -8
lines
resync with head
Revision 1.50.2.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:11 2013 UTC (13 years, 9 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.50.2.3: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.2.3: +9 -8
lines
sync with head
Revision 1.64: download - view: text, markup, annotated - select for diffs
Tue Jan 22 12:40:42 2013 UTC (13 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pagecache-base8,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3
lines
- Add a USBD_MPSAFE flag to usbd_open_pipe. If not set, acquire KERNEL_LOCK
before invoking xfer callbacks on this pipe.
- Add an extra flags parameter to usb_init_task. If USBD_TASKQ_MPSAFE is not
present, acquire KERNEL_LOCK before invoking the task callback.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Jan 16 17:18:55 2013 UTC (13 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3
lines
fix misplaced paren
Revision 1.50.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:34 2013 UTC (13 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.50.2.2: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.2.2: +13 -5
lines
sync with (a bit old) head
Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Jan 5 01:30:15 2013 UTC (13 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -5
lines
- need opt_usb.h if depending on USB_DEBUG
- remove trailing whitespace
- add missing KERNEL_RCSID
Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Dec 27 16:42:32 2012 UTC (13 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -3
lines
Consistent/Correct error message from failing usbd_set_config.
Use aprint_error_dev.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Nov 26 21:15:34 2012 UTC (13 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base7
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -4
lines
put back rest of the lines that got cut off.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Nov 26 17:36:27 2012 UTC (13 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -2
lines
PR/47245: Toby Karyadi: more matches for AX88772B usb ethernet.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Nov 25 22:22:39 2012 UTC (13 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +10 -5
lines
PR/47245: Toby Karyadi: Add AX88772B support to axe(4), e.g. for DLINK
DUB-E100 C1
Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:04 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.2.1: +7 -7
lines
sync with head
Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Aug 24 09:01:23 2012 UTC (14 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -3
lines
Fix typos
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Jul 22 14:33:05 2012 UTC (14 years, 3 months ago) by matt
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -5
lines
Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.
Revision 1.50.6.5: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:29 2012 UTC (14 years, 5 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.50.6.4: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.6.4: +3 -3
lines
sync to latest -current.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Jun 1 12:38:25 2012 UTC (14 years, 5 months ago) by nonaka
Branches: MAIN
CVS tags: jmcneill-usbmp-base10
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3
lines
Add a dependency on bpf module.
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:06 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +5 -15
lines
sync with head
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Mar 11 01:06:06 2012 UTC (14 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3
lines
minor cleanups from usbmp:
- move usbd_delay_ms() into usbdivar.h in the usb_subr.c section
- minor rcsid fixes
- copyright maintenence
Revision 1.50.6.4: download - view: text, markup, annotated - select for diffs
Tue Mar 6 18:26:46 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.50.6.3: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.6.3: +3 -3
lines
sync to -current
Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Mar 6 03:35:29 2012 UTC (14 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: jmcneill-usbmp-base6
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -4
lines
pull down from usbmp branch:
- rename usb_detach_{wake,waitup}() to usb_detach_{wake,waitup}old()
- use some c99 struct .initialisers
Revision 1.50.6.3: download - view: text, markup, annotated - select for diffs
Sun Feb 26 07:12:49 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.50.6.2: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.6.2: +4 -4
lines
rename old usb_detach_wakeup/wait to usb_detach_{wake,wakeup}old().
Revision 1.50.6.2: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:42 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.50.6.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.6.1: +3 -6
lines
sync to -current.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Feb 24 06:48:23 2012 UTC (14 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -6
lines
remove any remnants of freebsd/openbsd code.
Revision 1.50.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:05 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -9
lines
merge to -current.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Feb 2 19:43:07 2012 UTC (14 years, 9 months ago) by tls
Branches: MAIN
CVS tags: netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-base2
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -9
lines
Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code
to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout
source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to
avoid expensive operations on disabled entropy sources; make the
rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM
system events, and skew between clocks, with a sample implementation
for each.
ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files). Tested with release
builds on amd64 and evbarm and live testing on amd64.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Aug 25 02:29:08 2011 UTC (15 years, 2 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
mrg-ohci-jmcneill-usbmp-base,
mrg-ohci-jmcneill-usbmp,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -6
lines
Remove some debugging code that was accidentally committed
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Aug 25 02:27:31 2011 UTC (15 years, 2 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +10 -6
lines
Update the module command-processing routine to match the ioconf files
Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Aug 23 12:53:29 2011 UTC (15 years, 2 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +34 -2
lines
Update for modular build
Revision 1.31.4.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:10 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.31.4.2: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.4.2: +50 -101
lines
sync with head
Revision 1.31.2.3: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:35 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.31.2.2: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.2: +13 -13
lines
Sync with HEAD.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Nov 3 22:28:31 2010 UTC (16 years ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base4,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +13 -13
lines
Stop using the compatibility macros USB_ATTACH(), USB_DETACH(),
USB_MATCH(), et cetera. These files produce the same assembly
(according to objdump -d) before and after the change, except for
if_cue.c where two adjacent instructions inexplicably change order.
Revision 1.24.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:26 2010 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.24.4.4: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.4.4: +39 -90
lines
sync with head
Revision 1.31.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:43 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.31.2.1: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.2.1: +632 -504
lines
Sync with HEAD.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Aug 14 12:11:46 2010 UTC (16 years, 3 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
uebayasi-xip-base3,
uebayasi-xip-base2
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +9 -9
lines
Don't free TX mbuf until it's passed to bpf(9).
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Aug 14 10:47:57 2010 UTC (16 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +7 -7
lines
- use uint8_t for xfer buffers and byte numbers
- use bool for sc_dying and sc_attached booleans
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Aug 14 10:30:11 2010 UTC (16 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +15 -61
lines
No need to keep TX/RX mbufs during xfers in struct axe_chain.
All xfers are done against axe_buf allocated by usbd_alloc_buffer()
and nothing touched preserved mbufs during xfers.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Aug 14 09:57:13 2010 UTC (16 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -4
lines
Fix missed botch in previous.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Aug 14 09:02:17 2010 UTC (16 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +15 -17
lines
Make pointer arithmetics of RX buf in axe_rxeof() more readable
to avoid further confusion.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Aug 14 08:42:15 2010 UTC (16 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -5
lines
Apply rev 1.39 again.
The assignment is not dead, but just a leftover that causes a RX bug.
Now axe(4) can receive fragmented packets.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Aug 14 08:10:49 2010 UTC (16 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -2
lines
Ugh, no, revert previous.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Aug 14 08:06:54 2010 UTC (16 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -5
lines
Remove dead assignment.
Revision 1.24.4.4: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:13 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.24.4.3: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.4.3: +632 -455
lines
sync with head.
Revision 1.31.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:41 2010 UTC (16 years, 4 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.31.4.1: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.4.1: +631 -452
lines
sync with head
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Jun 24 15:01:45 2010 UTC (16 years, 4 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-nfs-mp-base10
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +92 -98
lines
KNF and misc cosmetics.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Jun 24 14:41:31 2010 UTC (16 years, 4 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -4
lines
Remove unused sc->axe_stop_task in softc.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Jun 24 14:39:57 2010 UTC (16 years, 4 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -17
lines
Fix several botches:
* in axe_detach():
* call callout_destroy(9) after axe_stop() which calls callout_stop(9)
(otherwise gets panic on DIAGNOSTIC and LOCK_DEBUG kernel)
* no need to call usbd_abort_pipe() that are done in axe_stop()
* no need to call usb_detach_wait() twice
* also destroy axe_mii_lock mutex
* in axe_tick_task():
* fix an inverted logic
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Jun 23 19:00:26 2010 UTC (16 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +575 -377
lines
Update if_axe for additional chips and models. Mostly imported from
OpenBSD, with significant contribution from FUKAUMI Naoki.
Also addresses PR kern/40456
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jun 23 06:25:17 2010 UTC (16 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3
lines
Fix cut&paste error - the commit log message was correct, just the code
got messed up. Thanks cegger@ for noticing!
Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Jun 22 21:30:55 2010 UTC (16 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2
lines
Make sure we unlock before exit.
Revision 1.31.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:44 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -6
lines
sync with head
Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:51 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -6
lines
Sync with HEAD.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:21:48 2010 UTC (16 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -6
lines
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
Revision 1.24.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:05 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.24.4.2: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.4.2: +13 -27
lines
sync with head
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:07:43 2010 UTC (16 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -14
lines
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.
Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Dec 6 20:20:12 2009 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +5 -8
lines
Simplify several device-activation hooks.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Sep 23 19:07:19 2009 UTC (17 years, 1 month ago) by plunky
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +8 -9
lines
fix up USB drivers printing of autoconf information
1. expand the USB_ATTACH_SETUP macro (requested by jmcneill)
2. reorder the attach function so that the first thing it does is print
newlines.
3. after this, we can call usbd_devinfo_alloc(), which polls the device
allowing a context switch, and aprint_normal() the device information.
this avoids problems where autoconf messages are getting mixed up.
Revision 1.24.4.2: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:58 2009 UTC (17 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.24.4.1: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.4.1: +64 -55
lines
sync with head
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Sep 4 18:10:08 2009 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +42 -43
lines
Change spaces to tabs and remove some unnecessary parentheses. No
functional change intended.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Sep 4 17:53:58 2009 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +63 -53
lines
Expand <dev/usb/usb_port.h> definitions, and lightly unifdef(1).
Revision 1.24.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:20 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +22 -23
lines
sync with head.
Revision 1.25.6.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:08 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +6 -4
lines
Sync with HEAD.
Revision 1.23.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:09 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.23.6.1: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.6.1: +4 -2
lines
Sync with HEAD.
Revision 1.25.4.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:53 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +6 -4
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:12 2008 UTC (18 years ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
mjf-devfs2-base,
jymxensuspend-base,
jym-xensuspend-base,
jym-xensuspend,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -4
lines
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.
In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr. That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.
Pull device initialization out of switch statements under
SIOCINITIFADDR. For example, pull ..._init() out of any switch
statement that looks like this:
switch (...->sa_family) {
case ...:
..._init();
...
break;
...
default:
..._init();
...
break;
}
Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) {
case 0:
...
break;
case IFF_RUNNING:
...
break;
case IFF_UP:
...
break;
case IFF_UP|IFF_RUNNING:
...
break;
}
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure. Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source. In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use
sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with
NULL instead of "testing truth". Replace some instances of (type
*)0 with NULL. Change some K&R prototypes to ANSI C, and join
lines.
Revision 1.24.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:36 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +18 -21
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:20 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +18 -21
lines
sync with head
Revision 1.23.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:53 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +18 -21
lines
Sync with HEAD.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat May 24 16:40:58 2008 UTC (18 years, 5 months ago) by cube
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
haad-dm
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +18 -21
lines
Split device_t and softc for all USB device drivers, and related cosmetic
changes.
Matthias Drochner kindly reviewed this patch, and tested ums, ubt, uaudio
and ral. I tested umass myself.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Apr 5 16:35:35 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base2,
yamt-pf42-base,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
hpcarm-cleanup-nbase
Branch point for: yamt-pf42,
yamt-nfs-mp,
wrstuden-revivesa
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3
lines
use aprint_*_dev and device_xname
Revision 1.19.12.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:53 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.19.12.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.12.2: +11 -74
lines
sync with HEAD
Revision 1.20.6.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:25 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.20.6.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.6.1: +11 -74
lines
Sync with HEAD.
Revision 1.9.2.6: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:52 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9.2.5: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.5: +5 -5
lines
sync with head.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Feb 7 01:21:58 2008 UTC (18 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -5
lines
Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs. This will ease extending the kernel and sharing of code
between drivers.
First steps: Make the signature of ifioctl_common() match struct
ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.
Revision 1.9.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:44:42 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9.2.4: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.4: +8 -71
lines
sync with head
Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Sun Jan 20 17:51:41 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +8 -71
lines
Sync with HEAD
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Jan 19 22:10:20 2008 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: bouyer-xeni386-nbase,
bouyer-xeni386-base
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +8 -71
lines
Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange(). Check for
a non-ENXIO error return from mii_mediachg(). (ENXIO indicates
that a PHY is suspended.)
This patch shrinks the source code size by 979 lines. There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.
I have made a few miscellaneous changes, too:
gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
on a change of media
Except for the change to mtd(4), no functional changes are intended.
XXX This patch affects more architectures than I can feasibly
XXX compile and run. I have compiled macppc, sparc64, i386. I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
Revision 1.19.12.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:54:38 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.19.12.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.12.1: +20 -8
lines
sync with HEAD
Revision 1.19.10.2: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:38:02 2007 UTC (18 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.19.10.1: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.10.1: +20 -8
lines
Sync with HEAD.
Revision 1.20.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:20:01 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +20 -8
lines
Sync with HEAD.
Revision 1.20.8.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:33 2007 UTC (18 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +20 -8
lines
Sync with head.
Revision 1.9.2.4: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:31:29 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9.2.3: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.3: +20 -8
lines
sync with head
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Dec 5 07:58:32 2007 UTC (18 years, 11 months ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
matt-armv6-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-merge1
Branch point for: bouyer-xeni386
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +20 -8
lines
lockmgr -> mutex
Revision 1.19.12.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:30:32 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -5
lines
sync with HEAD
Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:42:08 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.18.2.1: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.1: +3 -5
lines
Sync with head.
Revision 1.19.10.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:41 2007 UTC (19 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -5
lines
Sync with HEAD.
Revision 1.9.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:39:02 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9.2.2: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.2: +5 -11
lines
sync with head.
Revision 1.19.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:22:01 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +3 -5
lines
Sync with HEAD.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Sep 1 07:32:32 2007 UTC (19 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
vmlocking2-base1,
vmlocking-nbase,
vmlocking-base,
nick-csl-alignment-base5,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: vmlocking2,
mjf-devfs
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -5
lines
Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
ether_addmulti(ifr, &sc->sc_ec) :
ether_delmulti(ifr, &sc->sc_ec);
if (error == ENETRESET) {
to this,
if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {
which does the same thing.
(A bazillion is a very large number. This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)
Use ifreq_getaddr() twice in es(4).
Whitespace nits.
Revision 1.18.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:08:30 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +2 -6
lines
Sync with head.
Revision 1.17.10.6: download - view: text, markup, annotated - select for diffs
Mon Jun 25 09:21:28 2007 UTC (19 years, 4 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.17.10.5: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.10.5: +324 -57
lines
Add support of AX88178 and AX88772 (based on OpenBSD).
(beware new Tx/Rx code, totally untested)
New devices from FreeBSD/OpenBSD:
- AboCom UFE2000 USB2.0 Fast Ethernet Adapter
- Acer Communications & Multimedia EP-1427X-2 Ethernet
- ASIX AX88178 USB 2.0 10/100 Ethernet adapter
- ASIX AX88772 USB 2.0 10/100 Ethernet adapter
- ATen UC210T Ethernet
- Belkin F5D5055 Ethernet adapter
- Billionton USB2AR Ethernet
- Cisco-Linksys USB200M v2
- D-Link DUB-E100 rev B1
- Good Way Technology GWUSB2E
- I-O DATA ETG-US2
- Ethernet port in the JVC MP-PRX1 port replicator.
- Linksys USB1000
- OQO model 01+ Ethernet
- Planex GU-1000T
Whitespace police.
Revision 1.17.10.5: download - view: text, markup, annotated - select for diffs
Fri Jun 22 10:42:10 2007 UTC (19 years, 4 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.17.10.4: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.10.4: +16 -32
lines
- Execute callback functions as tasks on FreeBSD.
- Cleanup.
Revision 1.17.10.4: download - view: text, markup, annotated - select for diffs
Mon Jun 18 13:40:37 2007 UTC (19 years, 5 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.17.10.3: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.10.3: +4 -2
lines
Pullup 1.19 (attach driver per interface) with #ifdef USB_USE_IFATTACH.
Revision 1.17.10.3: download - view: text, markup, annotated - select for diffs
Sun Jun 17 00:50:35 2007 UTC (19 years, 5 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.17.10.2: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.10.2: +4 -4
lines
Pullup 1.18 in a different way.
Revision 1.17.10.2: download - view: text, markup, annotated - select for diffs
Wed Jun 13 03:59:15 2007 UTC (19 years, 5 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.17.10.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.10.1: +128 -215
lines
- Convert to use usbd_map_buffer_mbuf() and eliminate mbuf-memory copy.
- Use common code in usb_ethersubr.[ch] and reduce duplicated code.
- Use ether_ioctl() to handle llinfo (what is it?) properly.
XXX Untested, missing hardware.
Revision 1.17.10.1: download - view: text, markup, annotated - select for diffs
Tue May 22 14:57:36 2007 UTC (19 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -4
lines
Overhaul of USB stack, mostly DMA related
This applies to NetBSD 4.99.13 (March 1, 2007)
usbdi(9) interface is based on FreeBSD version, excluding
- removal of portability code
Patch most NetBSD changes, excluding
- DMA memory "reserve", since we don't need contiguous buffers any longer
- volatiles in DMA structure, since it should not be needed
with proper bus_dmamap_sync(9)s
DMA/non-DMA memory management overhaul
- Move all DMA related code to usb_mem.[ch]
(add usb_alloc_buffer_dma(), usb_free_buffer_dma(), etc.).
XXX Should usb_mem.[ch] be renamed as usb_mem_dma.[ch] ?
- Add corresponding non-DMA code to usb_mem_nodma.[ch] .
Currently just use malloc(9).
- Above files are conditionally used by config framework (added
attributes to conf/files and dev/usb/files.usb).
- Add diagnostic panics when resource allocation is requested
on interrupt context.
- Change memory allocations (that require context) from NOWAIT to WAITOK.
Allocate DMA/non-DMA buffer per host interface, not globally.
advantage: Buffers can be freed on detaching host interface.
Activity of a host interface does not affect others.
disadvantages: It possibly consumes more memory.
API changes
- usbd_alloc_xfer() is changed:
old: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev);
new: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev,
usbd_pipe_handle pipe);
- pipe argument of usbd_setup_*xfer() are now unused
XXX the pipe argument should be removed?
- add mapping APIs
- async request will be processed as a task (kernel thread context),
and delayed to some extent
- usbdivar.h: struct usbd_xfer: renamed a member "allocbuf" to "hcbuffer"
(mapped/allocated/refered buffer for HCI driver)
- usb_port.h: change usb_proc_ptr from struct ptoc * to struct lwp *
- usb_port.h: add usb_sigproc_ptr for psignal(9) (struct proc *)
- usb.h: add UE_MAXPKTSZ(ep) and UE_MAXPKTSZ_MASK macros for USB 2.0
changes to USB device drivers
- atu, aue, axe, cdce, cue, kue, rum, udav, upl, ural, url,
uaudio, ubt, ucom, ugen, uhidev, uirda, ulpt, umidi, urio,
uscanner, ustir, utoppy:
* catch up API change of usbd_alloc_xfer()
- umass, usscanner:
* catch up API change of usbd_alloc_xfer()
* eliminate memory copy for large transfer
ohci
- free resources on detach
- add lots of bus_dmamap_sync() operations
- simplify the code of loading std chain
- rewrite code of looking up TD/ITD from DMA addr by using allocation chunk
- add workaround for CMD Tech 670 and 673 chipsets
- make sure resources are not allocated in interrupt context
- add support for mapping buffer and mbuf
slhci
- allocate xfer and slhci_xfer at once, and simplify relevant code
- add slhci_detach()
- remove second arg of slhci_attach() since it is the same as the first arg.
- add support for "mapping" (no, it doesn't map since it doesn't do DMA)
buffer and mbuf
- add pcmcia frontend
- NOT TESTED, missing hardware
ehci
- add lots of bus_dmamap_sync() operations, possibly too many
- make sure resources are not allocated in interrupt context
- add support for mapping buffer and mbuf
- done only simple test
uhci
- add lots of bus_dmamap_sync() operations, possibly too many
- make sure resources are not allocated in interrupt context
- add support for mapping buffer and mbuf
To do
- review, test, debug
- rewrite network drivers to utilize usbd_map_buffer_mbuf()
- rewrite uaudio(4) to eliminate memcpy
- "pipe" argument of usbd_setup_*xfer() should eventually be removed
Revision 1.17.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:55:47 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.17.4.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.4.1: +2 -6
lines
sync with head.
Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:50:32 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -6
lines
Sync with head.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Mar 13 13:51:54 2007 UTC (19 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup,
nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
matt-armv6,
jmcneill-pm
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -6
lines
Introduce different autoconf interface attributes for USB drivers
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the former don't use interface information for matching or that the
latter don't modify global device state.
The previous way left too much freedom do the drivers which led to
inconsistencies and abuse.
For now, I've not changed locators and submatch rules, this will
happen later.
There should not be any change in behaviour, except in the case of
some drivers which did behave inconsistently:
if_atu, if_axe, uep: matched the configured device in the interface
stage, but did configuration again. I've converted them to match
in the device stage.
ustir, utoppy: matched in the interface stage, but only against
vendor/device information, and used any configuration/interface
without checking. Changed to match in device stage, and added
some simple code to configure and use the first interface.
If you have one of those devices, please test!
Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:57:29 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4
lines
Sync with HEAD.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:48 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:49:38 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.1: +5 -24
lines
sync with head.
Revision 1.14.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:16 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.14.4.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.4.1: +4 -4
lines
sync with head.
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:50 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +5 -4
lines
Sync with head.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:26 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm,
itohy-usb1-base,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp,
itohy-usb1
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
__unused removal on arguments; approved by core.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Oct 31 20:43:31 2006 UTC (20 years ago) by joerg
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3
lines
Split the USB task queue into two parts, one for normal device tasks and
one for tasks of the host controllers. This is needed for drivers like
ural(4) that want to do synchronous USB transfers from the task handler.
Before the split timeouts could not be handled correctly as the task
thread was still blocked. From FreeBSD.
Revision 1.14.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:52 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -3
lines
sync with head
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:59 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -3
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.12.8.2: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:40 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.12.8.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.8.1: +2 -22
lines
sync with head.
Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:55:33 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +4 -22
lines
sync with head
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Sep 7 02:40:33 2006 UTC (20 years, 2 months ago) by dogcow
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -22
lines
remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.
Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:07:43 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +13 -8
lines
sync with head.
Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:37 2006 UTC (20 years, 6 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +4 -2
lines
Sync with head.
Revision 1.12.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:26:29 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +4 -2
lines
sync with head.
Revision 1.12.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:29 2006 UTC (20 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -2
lines
sync with head.
Revision 1.12.12.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:16 2006 UTC (20 years, 7 months ago) by tron
Branches: peter-altq
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +4 -2
lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Mar 19 22:30:56 2006 UTC (20 years, 8 months ago) by david
Branches: MAIN
CVS tags: yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
simonb-timecounters-base,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
chap-midi-nbase,
chap-midi-base,
chap-midi,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -2
lines
Free allocated memory if attach fails.
From Coverity CID 2329
Revision 1.6.2.5: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:05 2005 UTC (20 years, 11 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.6.2.4: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.4: +11 -8
lines
Sync with head.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 29 21:23:16 2005 UTC (20 years, 11 months ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +4 -4
lines
sync with head.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Nov 28 13:31:09 2005 UTC (20 years, 11 months ago) by augustss
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-readahead-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base,
ktrace-lwp-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
peter-altq,
elad-kernelauth
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls in
an interrupt context. From kern/32172 by darkstar@city-net.com.
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 10 23:56:13 2005 UTC (21 years ago) by snj
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +7 -5
lines
Pull up following revision(s) (requested by tron in ticket #950):
sys/dev/usb/if_axe.c: revision 1.10
Apply big endian fixes submitted by Garrett D'Amore in PR kern/32032.
Revision 1.6.2.4: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:08:05 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.6.2.3: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.3: +7 -6
lines
Sync with HEAD. Here we go again...
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Nov 10 12:05:01 2005 UTC (21 years ago) by augustss
Branches: MAIN
CVS tags: yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base2,
yamt-readahead-base
Branch point for: yamt-readahead
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -4
lines
Abuse types a little less.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Nov 10 10:00:19 2005 UTC (21 years ago) by tron
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -5
lines
Apply big endian fixes submitted by Garrett D'Amore in PR kern/32032.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon May 30 04:21:39 2005 UTC (21 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-lazymbuf
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3
lines
- const poisoning
- eliminate variable shadowing
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed May 11 10:02:28 2005 UTC (21 years, 6 months ago) by augustss
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -5
lines
Don't keep the devinfo string on the stack, instead use malloc/free.
This should cure some rare stack overflows.
Revision 1.6.6.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:18 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +4 -4
lines
sync with -current
Revision 1.6.8.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:35:58 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +4 -4
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:50:54 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.6.2.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.2: +4 -4
lines
Sync with HEAD.
Hi Perry!
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:51 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
kent-audio2-base
Branch point for: netbsd-3
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4
lines
nuke trailing whitespace
Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:53:02 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.1: +1407 -0
lines
Sync with HEAD.
Revision 1.6.2.1
Sat Oct 30 18:10:06 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.6: +0 -1407
lines
file if_axe.c was added on branch ktrace-lwp on 2004-11-02 07:53:02 +0000
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Oct 30 18:10:06 2004 UTC (22 years ago) by thorpej
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
ktrace-lwp,
kent-audio2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -3
lines
When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.
Fixes kern/27678.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Oct 26 17:20:47 2004 UTC (22 years ago) by augustss
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +21 -9
lines
Protect MII reads and writes properly against multiple access.
Set full duplex mode when status tells us to.
(I can now get 4Mbyte/s instead of 20kbyte/s rx speed.)
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Oct 24 12:53:26 2004 UTC (22 years ago) by augustss
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +10 -7
lines
Dont use lockmgr() from interrupt context.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Oct 24 08:49:13 2004 UTC (22 years ago) by augustss
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -3
lines
Get rid of an oddly placed assert().
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Oct 23 14:01:41 2004 UTC (22 years ago) by augustss
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3
lines
Alphabetize.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Oct 23 13:38:26 2004 UTC (22 years ago) by augustss
Branches: MAIN
Both FreeBSD and OpenBSD use Bill Paul axe driver instead of my uax
driver. Maybe because it actually works on with hardware besides mine? :)
So we switch to axe too.
CVSweb <webmaster@jp.NetBSD.org>