The NetBSD Project

CVS log for src/sys/dev/usb/if_urndis.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / usb

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.47.4.2: download - view: text, markup, annotated - select for diffs
Sat Oct 14 07:05:39 2023 UTC (18 months, 1 week ago) by martin
Branches: netbsd-10
CVS tags: 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
Diff to: previous 1.47.4.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.4.1: +20 -4 lines
Pull up following revision(s) (requested by abs in ticket #416):

	sys/dev/usb/if_urndis.c: revision 1.49

Apply the new diff from
kern/55273 urndis(4) error "could not find data bulk in/out" without
CDC union descriptor

Fallback to the interface association descriptor if  no CDC Union
Descriptor is found.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Oct 1 06:55:27 2023 UTC (18 months, 3 weeks ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +20 -4 lines
Apply the new diff from

kern/55273 urndis(4) error "could not find data bulk in/out" without CDC union descriptor

Fallback to the interface association descriptor if  no CDC Union Descriptor is
found.

Revision 1.21.4.3: download - view: text, markup, annotated - select for diffs
Fri Feb 17 17:41:24 2023 UTC (2 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.21.4.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.4.2: +3 -2 lines
Pull up following revision(s) (requested by nia in ticket #1599):

	share/man/man4/urndis.4: revision 1.11
	sys/dev/usb/if_urndis.c: revision 1.48

urndis(4): Add OnePlus 5T to the quirky devices list. This allows it to
be attached as an urndis instead of ugen, and to transmit this commit
message across the tubes.

urndis.4: Add OnePlus 5T

Revision 1.47.4.1: download - view: text, markup, annotated - select for diffs
Fri Feb 17 17:36:26 2023 UTC (2 years, 2 months ago) by martin
Branches: netbsd-10
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -2 lines
Pull up following revision(s) (requested by nia in ticket #89):

	share/man/man4/urndis.4: revision 1.11
	sys/dev/usb/if_urndis.c: revision 1.48

urndis(4): Add OnePlus 5T to the quirky devices list. This allows it to
be attached as an urndis instead of ugen, and to transmit this commit
message across the tubes.

urndis.4: Add OnePlus 5T

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Feb 11 22:42:49 2023 UTC (2 years, 2 months ago) by nia
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -2 lines
urndis(4): Add OnePlus 5T to the quirky devices list. This allows it to
be attached as an urndis instead of ugen, and to transmit this commit
message across the tubes.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:56:58 2022 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +9 -22 lines
urndis(4): Simplify circuitous initialization logic.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:56:28 2022 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
usbnet: Omit needless detachcv name parameter to usbnet_attach.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:56:09 2022 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +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.44: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:56:00 2022 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -4 lines
usbnet drivers: Simplify return of usbnet_init_rx_tx.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:55:52 2022 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -3 lines
usbnet: Handle usbnet_set_link for drivers with no media detect.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:55:19 2022 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -5 lines
usbnet drivers: Prune dead IFF_RUNNING branches in *_uno_init.

usbnet(9) guarantees !IFF_RUNNING now before calling it.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:54:45 2022 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +6 -28 lines
urndis(4): Delete some crazy logic that I think is unnecessary.

XXX definitely need to test this one

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:50:22 2022 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +10 -3 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.18.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:49 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.1: +297 -755 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Mar 15 23:04:51 2020 UTC (5 years, 1 month ago) by thorpej
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-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +24 -24 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.38: download - view: text, markup, annotated - select for diffs
Fri Mar 13 18:17:40 2020 UTC (5 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +24 -24 lines
PR/55068: sc.dying: Fix printf formats:
- no %s/%p for kernel log
- 0x% -> %#
- always %j for kernel log

Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:16 2020 UTC (5 years, 1 month ago) by ad
Branches: ad-namecache
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +4 -4 lines
Sync with head.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Feb 4 07:37:16 2020 UTC (5 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
Adopt <net/if_stats.h>

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Jan 29 06:39:07 2020 UTC (5 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
Adopt <net/if_stats.h>.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Jan 7 06:42:26 2020 UTC (5 years, 3 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.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
Localify, constify.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Oct 31 11:59:40 2019 UTC (5 years, 5 months ago) by maya
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -3 lines
check if buf/bufsz are non-NULL before freeing.

not all control messages that can be received result in buf being
initialized, we might get a spurious different control message

seen in practice when swapping modes a few times on a urndis device

urndis0: SAMSUNG ...
autoconfiguration error: urndis0: invalid address
panic: kernel diagnostic assertion "p != NULL" failed: file "/cvs/src/sys/kern/subr_kmem.c", line 263
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x178
kern_assert() at netbsd:kern_assert+0x48
kmem_intr_free() at netbsd:kmem_intr_free+0xca
urndis_attach() at netbsd:urndis_attach+0x4c2

Revision 1.21.4.2: download - view: text, markup, annotated - select for diffs
Fri Sep 13 06:51:58 2019 UTC (5 years, 7 months ago) by martin
Branches: netbsd-9
CVS tags: 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.21.4.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.1: +40 -2 lines
Pull up following revision(s) (requested by mrg in ticket #197):

	sys/dev/usb/if_url.c: revision 1.71
	sys/dev/usb/usbnet.h: revision 1.15
	sys/dev/usb/usb_mem.c: revision 1.72
	sys/dev/usb/if_urndis.c: revision 1.24
	sys/dev/usb/if_upl.c: revision 1.67
	sys/dev/usb/usbnet.c: revision 1.25
	sys/dev/usb/usbnet.c: revision 1.26
	sys/dev/usb/usbnet.c: revision 1.27
	sys/dev/usb/usbnet.c: revision 1.28

Teach urndis to handle some REMOTE_NDIS_INDICATE_STATUS_MSG. If the status
is reasonable, don't tell userland we got an error. Stops spurious EIO.
From openbsd.

Fix bug, remove {0,0} because we switched to usb_lookup().

s/no free/no freelist entry/ in a debug message.

fix a lock hang reported by sc.dying in PR#54495.

remove locking in usbnet_tick().  assume that all locking
needs are handled inside usbnet_tick_task(), which runs in
the usbtask thread.  ensure that usbnet private is valid
before using it.

also check NULL private pointer in usbnet_isdying().
all the other cases should never happen.

don't try to set dying when we haven't usbnet_attach()d yet.
reported by maxv.

- use CALLARGS vs CALLED for better usbhist
- turn off usbnetdebug default
- log for all entry/exit points of usbnet_pipe_intr()
- in usbnet_start_locked() track whether any packet has been
  transmitted for setting the timer.  avoids spurious
  "watchdog timeouts"
- in usbnet_stop() use callout_halt() vs callout_halt, and
  also stop the usb task.  fixes crash of usbtask after the
  phy has detached.
- add a little more defensive checking in the tick task, and
  add some high-log-level logs.
- in usbnet_detach() move the call to usbnet_stop_ifp() above
  the calls to callout/usbtask stopping.
- set ec_mii and unp_pri to NULL when freeing their data

normalise an error message.

document usbnet_private locking.  minor knf.

Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Sun Sep 1 13:00:36 2019 UTC (5 years, 7 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +238 -735 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.33: download - view: text, markup, annotated - select for diffs
Tue Aug 20 06:37:06 2019 UTC (5 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -4 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.32: download - view: text, markup, annotated - select for diffs
Sun Aug 18 08:16:34 2019 UTC (5 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
usbnet_ifp() doesn't work before usbnet_attach().  avoid it.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Aug 15 05:52:23 2019 UTC (5 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -6 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.30: download - view: text, markup, annotated - select for diffs
Wed Aug 14 03:44:58 2019 UTC (5 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +9 -5 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.29: download - view: text, markup, annotated - select for diffs
Sun Aug 11 23:55:43 2019 UTC (5 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +8 -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.28: download - view: text, markup, annotated - select for diffs
Sun Aug 11 13:16:10 2019 UTC (5 years, 8 months ago) by hannken
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
urndis_attach: change "sc->sc_bulkout_no" to "un->un_ed[USBNET_ENDPT_TX]"
in DPRINTF().

Kernels ALL/amd64 and ALL/i386 compile again.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Aug 10 02:17:36 2019 UTC (5 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +13 -10 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.26: download - view: text, markup, annotated - select for diffs
Fri Aug 9 06:38:39 2019 UTC (5 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +233 -738 lines
switch urndis(4) to usbnet.  thanks to maya@ for testing and helping
fix the few issues in the conversion.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Aug 8 18:03:40 2019 UTC (5 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -2 lines
fix arm64 build (new le32toh() call needs sys/endian.h which is
probably include by some other header on amd64?)

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Aug 8 06:16:40 2019 UTC (5 years, 8 months ago) by maya
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +40 -2 lines
Teach urndis to handle some REMOTE_NDIS_INDICATE_STATUS_MSG. If the status
is reasonable, don't tell userland we got an error. Stops spurious EIO.
From openbsd.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Aug 7 22:26:28 2019 UTC (5 years, 8 months ago) by macallan
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -2 lines
match USB_PRODUCT_SAMSUNG_ANDROID too
now this works with my Galaxy S8 active

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Aug 1 00:10:22 2019 UTC (5 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -5 lines
remove unused code and use common ethernet media code where equivalent.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:34 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +101 -42 lines
Sync with HEAD

Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 9 17:10:20 2019 UTC (6 years, 1 month ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.1: +84 -37 lines
Pull up following revision(s) via patch (requested by nonaka in ticket #1210):

	sys/dev/hyperv/vmbusvar.h: revision 1.1
	sys/dev/hyperv/hvs.c: revision 1.1
	sys/dev/hyperv/if_hvn.c: revision 1.1
	sys/dev/hyperv/vmbusic.c: revision 1.1
	sys/arch/x86/x86/lapic.c: revision 1.69
	sys/arch/x86/isa/clock.c: revision 1.34
	sys/arch/x86/include/intrdefs.h: revision 1.22
	sys/arch/i386/conf/GENERIC: revision 1.1201
	sys/arch/x86/x86/hyperv.c: revision 1.1
	sys/arch/x86/include/cpu.h: revision 1.105
	sys/arch/x86/x86/x86_machdep.c: revision 1.124
	sys/arch/i386/conf/GENERIC: revision 1.1203
	sys/arch/amd64/amd64/genassym.cf: revision 1.74
	sys/arch/i386/conf/GENERIC: revision 1.1204
	sys/arch/amd64/conf/GENERIC: revision 1.520
	sys/arch/x86/x86/hypervreg.h: revision 1.1
	sys/arch/amd64/amd64/vector.S: revision 1.69
	sys/dev/hyperv/hvshutdown.c: revision 1.1
	sys/dev/hyperv/hvshutdown.c: revision 1.2
	sys/dev/usb/if_urndisreg.h: file removal
	sys/arch/x86/x86/cpu.c: revision 1.167
	sys/arch/x86/conf/files.x86: revision 1.107
	sys/dev/usb/if_urndis.c: revision 1.20
	sys/dev/hyperv/vmbusicreg.h: revision 1.1
	sys/dev/hyperv/hvheartbeat.c: revision 1.1
	sys/dev/hyperv/vmbusicreg.h: revision 1.2
	sys/dev/hyperv/hvheartbeat.c: revision 1.2
	sys/dev/hyperv/files.hyperv: revision 1.1
	sys/dev/ic/rndisreg.h: revision 1.1
	sys/arch/i386/i386/genassym.cf: revision 1.111
	sys/dev/ic/rndisreg.h: revision 1.2
	sys/dev/hyperv/hyperv_common.c: revision 1.1
	sys/dev/hyperv/hvtimesync.c: revision 1.1
	sys/dev/hyperv/hypervreg.h: revision 1.1
	sys/dev/hyperv/hvtimesync.c: revision 1.2
	sys/dev/hyperv/vmbusicvar.h: revision 1.1
	sys/dev/hyperv/if_hvnreg.h: revision 1.1
	sys/arch/x86/x86/lapic.c: revision 1.70
	sys/arch/amd64/amd64/vector.S: revision 1.70
	sys/dev/ic/ndisreg.h: revision 1.1
	sys/arch/amd64/conf/GENERIC: revision 1.516
	sys/dev/hyperv/hypervvar.h: revision 1.1
	sys/arch/amd64/conf/GENERIC: revision 1.518
	sys/arch/amd64/conf/GENERIC: revision 1.519
	sys/arch/i386/conf/files.i386: revision 1.400
	sys/dev/acpi/vmbus_acpi.c: revision 1.1
	sys/dev/hyperv/vmbus.c: revision 1.1
	sys/dev/hyperv/vmbus.c: revision 1.2
	sys/arch/x86/x86/intr.c: revision 1.144
	sys/arch/i386/i386/vector.S: revision 1.83
	sys/arch/amd64/conf/files.amd64: revision 1.112

separate RNDIS definitions from urndis(4) for use with Hyper-V NetVSC.

 -

Added Microsoft Hyper-V support.  It ported from OpenBSD and FreeBSD.
graphical console is not work on Gen.2 VM yet. To use the serial console,
enter "consdev com,0x3f8,115200" on efiboot.

 -

Add __diagused.

 -

PR/53984: Partial revert of modify lapic_calibrate_timer() in lapic.c r1.69.

 -

Update Hyper-V related drivers description.

 -

Remove unused definition.

 -

Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.
NFCI intended.

 -

commented out hvkvp entry.

 -

fix typo. pointed out by pgoyette@n.o.

 -

Use IDTVEC instead of NENTRY for handle_hyperv_hypercall.

 -

Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Mar 5 08:25:03 2019 UTC (6 years, 1 month ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -3 lines
 Centralize ETHER_ALIGN into net/if_ether.h. Note that this commit also changes
if_upgt.c's ETHER_ALIGN from 0 to 2.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Feb 14 03:33:55 2019 UTC (6 years, 2 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +86 -37 lines
separate RNDIS definitions from urndis(4) for use with Hyper-V NetVSC.

Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:47 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.1: +17 -6 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Nov 9 21:57:09 2018 UTC (6 years, 5 months ago) by maya
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +17 -6 lines
Set and check NDIS version.

Throw away length 1 packets without a warning: we already throw away messages
with (len < sizeof(*msg)) a short while after, but print a warning.

Hardware is allowed to pad USB packets which % wMaxPacketSize length with
such packets for hardware implementation simplicity reasons.

This is described in
https://docs.microsoft.com/en-us/windows-hardware/drivers/network/usb-short-packets

From Artturi Alm in tech-net, with amendment from pgoyette.

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:58 2018 UTC (6 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Sync with HEAD

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:02 2018 UTC (6 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +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.9.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 19 19:33:06 2018 UTC (7 years, 2 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +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.16.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 31 18:01:55 2018 UTC (7 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +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.17: download - view: text, markup, annotated - select for diffs
Sun Jan 21 13:57:12 2018 UTC (7 years, 3 months ago) by skrll
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +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.4.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:34 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.2: +113 -156 lines
update from HEAD

Revision 1.9.4.17: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:27 2017 UTC (7 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.16: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.16: +8 -53 lines
Sync with HEAD

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:12 2017 UTC (7 years, 10 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -53 lines
remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 5 19:54:19 2017 UTC (8 years ago) by snj
Branches: netbsd-7
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +198 -152 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.9.4.16: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:46 2017 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.15: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.15: +2 -3 lines
Sync with HEAD

Revision 1.9.8.2: download - view: text, markup, annotated - select for diffs
Thu Jan 26 21:54:24 2017 UTC (8 years, 2 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.9.8.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.8.1: +108 -64 lines
Sync with HEAD/nhusb

Revision 1.9.4.15: download - view: text, markup, annotated - select for diffs
Thu Jan 26 12:40:16 2017 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.14: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.14: +17 -17 lines
consistent softc member name prefix

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:41 2017 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +6 -6 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.9.4.14: download - view: text, markup, annotated - select for diffs
Thu Dec 29 08:04:08 2016 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.13: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.13: +14 -9 lines
Initialise later and tidyup better in the attach routine.

Revision 1.9.4.13: download - view: text, markup, annotated - select for diffs
Wed Dec 28 09:45:16 2016 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.12: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.12: +7 -2 lines
Destroy all mutexes on detach

Revision 1.9.4.12: download - view: text, markup, annotated - select for diffs
Tue Dec 27 11:37:36 2016 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.11: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.11: +98 -64 lines
WIP MPification

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Dec 15 09:28:06 2016 UTC (8 years, 4 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, pgoyette-localcount-20170107, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -6 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.9.4.11: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:18 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.10: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.10: +6 -2 lines
Sync with HEAD

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Nov 25 12:56:29 2016 UTC (8 years, 5 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20161204
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -2 lines
+#include "opt_usb.h"

Revision 1.9.4.10: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:57 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.9: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.9: +19 -15 lines
Sync with HEAD

Revision 1.9.8.1: download - view: text, markup, annotated - select for diffs
Tue Sep 6 20:33:08 2016 UTC (8 years, 7 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +103 -101 lines
First pass at netbsd-7 updated with USB code from HEAD

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Jul 14 04:00:46 2016 UTC (8 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +19 -15 lines
- Use aprint*() instead of printf() in xxx_attach().
- Add missing aprint_naive("\n");
- KNF

Revision 1.9.4.9: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:15 2016 UTC (8 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.8: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.8: +3 -3 lines
Sync with HEAD

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:15 2016 UTC (8 years, 10 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160907
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +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.11: download - view: text, markup, annotated - select for diffs
Sat Apr 23 10:15:31 2016 UTC (9 years ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +86 -88 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.9.4.8: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:19 2016 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.7: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.7: +3 -3 lines
Sync with HEAD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Feb 9 08:32:12 2016 UTC (9 years, 2 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +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.9.4.7: download - view: text, markup, annotated - select for diffs
Mon Dec 28 09:26:33 2015 UTC (9 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.6: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.6: +19 -12 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.9.4.6: download - view: text, markup, annotated - select for diffs
Tue Oct 6 21:32:15 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.5: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.5: +37 -44 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.9.4.5: download - view: text, markup, annotated - select for diffs
Tue May 26 12:02:26 2015 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.4: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.4: +3 -3 lines
Whitespace.

Revision 1.9.4.4: download - view: text, markup, annotated - select for diffs
Sat Mar 21 11:33:37 2015 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.3: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.3: +16 -18 lines
Add prefixes to attach_arg structure member names. No functional change.

Revision 1.9.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 19 17:26:43 2015 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.2: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.2: +8 -8 lines
Do the same as OpenBSD and get rid of the *_handle typedefs and use
plain structures insteads

Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Tue Dec 23 11:24:32 2014 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.1: +18 -18 lines
KNF. No brackets around return value.

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 2 09:00:33 2014 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +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.4.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:51 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +24 -20 lines
Rebase to HEAD as of a few days ago.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:58 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +26 -20 lines
Rebase.

Revision 1.3.6.2: download - view: text, markup, annotated - select for diffs
Thu Aug 7 08:06:37 2014 UTC (10 years, 8 months ago) by msaitoh
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE
Diff to: previous 1.3.6.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.6.1: +4 -4 lines
Pull up following revision(s) (requested by skrll in ticket #1094):
	sys/dev/usb/if_urndis.c: revision 1.7
PR/48963: kmem_free size mismatch causes panic when attaching urndis(4).
Fix the size passed in kmem_free in the urndis_ctrl_{query,set} functions

Revision 1.3.2.1.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 7 08:05:24 2014 UTC (10 years, 8 months ago) by msaitoh
Branches: netbsd-6-1
CVS tags: netbsd-6-1-5-RELEASE
Diff to: previous 1.3.2.1: preferred, colored; next MAIN 1.3.2.2: preferred, colored
Changes since revision 1.3.2.1: +4 -4 lines
Pull up following revision(s) (requested by skrll in ticket #1094):
	sys/dev/usb/if_urndis.c: revision 1.7
PR/48963: kmem_free size mismatch causes panic when attaching urndis(4).
Fix the size passed in kmem_free in the urndis_ctrl_{query,set} functions

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 7 08:01:37 2014 UTC (10 years, 8 months ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +4 -4 lines
Pull up following revision(s) (requested by skrll in ticket #1094):
	sys/dev/usb/if_urndis.c: revision 1.7
PR/48963: kmem_free size mismatch causes panic when attaching urndis(4).
Fix the size passed in kmem_free in the urndis_ctrl_{query,set} functions

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jul 19 08:38:28 2014 UTC (10 years, 9 months ago) by skrll
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-base, 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, 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.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Don't return an error in urndis_init if IFF_RUNNING is set on entry.

That is, fix my mistake in handling PR/48964

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jul 5 11:13:13 2014 UTC (10 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +24 -18 lines
PR/48964: In urndis(4), initialization of ifnet structure is not enough,
cause panic.

Update urndis_init to return and error and use as if_init based on the
patch in the PR with stylistic changes from me.

XXX IFF_RUNNING should be ignored here?

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Jul 5 09:30:08 2014 UTC (10 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4 lines
PR/48963: kmem_free size mismatch causes panic when attaching urndis(4).

Fix the size passed in kmem_free in the urndis_ctrl_{query,set} functions

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:36 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +8 -10 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.5.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:47 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +2 -4 lines
sync with head

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Oct 17 21:07:37 2013 UTC (11 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, 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.5: preferred, colored
Changes since revision 1.5: +2 -4 lines
- remove unused variables
- move ifdef variables inside ifdef sections

Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:22 2013 UTC (11 years, 10 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +8 -8 lines
resync from head

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Mar 30 03:15:53 2013 UTC (12 years ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +8 -8 lines
remove trailing whitespace

Revision 1.3.6.1: download - view: text, markup, annotated - select for diffs
Sat Nov 24 04:01:30 2012 UTC (12 years, 5 months ago) by riz
Branches: netbsd-6-0
CVS tags: 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
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -3 lines
Pull up following revision(s) (requested by joerg in ticket #700):
	sys/dev/usb/if_urndis.c: revision 1.4
Don't match on idVendor=0x0000 && idProduct=0x0000.
OpenBSD usb_lookup() might need this as a terminating entry,
but we don't at this point.
Repulsively enough, something that should be a uhidev(4),
ServerEngines SE USB Device, rev 1.10/0.01
has these ID numbers.

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 24 04:01:21 2012 UTC (12 years, 5 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE
Branch point for: netbsd-6-1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -3 lines
Pull up following revision(s) (requested by joerg in ticket #700):
	sys/dev/usb/if_urndis.c: revision 1.4
Don't match on idVendor=0x0000 && idProduct=0x0000.
OpenBSD usb_lookup() might need this as a terminating entry,
but we don't at this point.
Repulsively enough, something that should be a uhidev(4),
ServerEngines SE USB Device, rev 1.10/0.01
has these ID numbers.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:06 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -3 lines
sync with head

Revision 1.1.6.4: download - view: text, markup, annotated - select for diffs
Tue Mar 6 18:26:46 2012 UTC (13 years, 1 month ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.1.6.3: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.6.3: +2 -3 lines
sync to -current

Revision 1.1.6.3: download - view: text, markup, annotated - select for diffs
Tue Mar 6 09:56:22 2012 UTC (13 years, 1 month ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.1.6.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.6.2: +3 -2 lines
sync to -current

Revision 1.1.6.2: download - view: text, markup, annotated - select for diffs
Sun Mar 4 00:46:28 2012 UTC (13 years, 1 month ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.1.6.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.6.1: +2 -3 lines
sync to latest -current.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Mar 2 04:22:57 2012 UTC (13 years, 1 month ago) by jakllsch
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -3 lines
Don't match on idVendor=0x0000 && idProduct=0x0000.

OpenBSD usb_lookup() might need this as a terminating entry,
but we don't at this point.

Repulsively enough, something that should be a uhidev(4),
ServerEngines SE USB Device, rev 1.10/0.01
has these ID numbers.

Revision 1.1.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:07 2012 UTC (13 years, 2 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
merge to -current.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Dec 23 00:51:44 2011 UTC (13 years, 4 months ago) by jakllsch
Branches: MAIN
CVS tags: netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base5, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6-0, netbsd-6
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +8 -8 lines
Revert previous due to active usbmp branch(es).

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Dec 22 20:07:00 2011 UTC (13 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +8 -8 lines
Adjust-away inconsistent and trailing whitespace.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Jul 20 19:59:49 2011 UTC (13 years, 9 months ago) by jakllsch
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
Add urndis(4) driver for USB networking devices implementing the
Microsoft RNDIS specification.  From OpenBSD.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>