The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.161 / (download) - annotate - [select for diffs], Wed Apr 6 22:01:45 2022 UTC (23 months, 3 weeks ago) by mlelstv
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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
Changes since 1.160: +2 -22 lines
Diff to previous 1.160 (colored) to selected 1.37 (colored)

revert accidental last commit (except ukbd.c)

Revision 1.160 / (download) - annotate - [select for diffs], Wed Apr 6 21:51:29 2022 UTC (23 months, 3 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.159: +24 -4 lines
Diff to previous 1.159 (colored) to selected 1.37 (colored)

remove debug printf

Revision 1.159 / (download) - annotate - [select for diffs], Fri Feb 4 23:03:38 2022 UTC (2 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.158: +67 -2 lines
Diff to previous 1.158 (colored) to selected 1.37 (colored)

uhub(4): Sprinkle dtrace probes.

Revision 1.158 / (download) - annotate - [select for diffs], Fri Oct 15 11:59:16 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.157: +2 -29 lines
Diff to previous 1.157 (colored) to selected 1.37 (colored)

Revert "usb: uhub: remove unnecessary delays when powering on ports"

syzbot says that the change exposes UB in usb_free_device and I can't
see how, so revert until I have a better understanding of what's going on.

Reported-by: syzbot+c445f7149cce07d4c252@syzkaller.appspotmail.com
Reported-by: syzbot+a2ae42f37de765a54b20@syzkaller.appspotmail.com

Revision 1.157 / (download) - annotate - [select for diffs], Mon Oct 11 06:30:23 2021 UTC (2 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.156: +3 -2 lines
Diff to previous 1.156 (colored) to selected 1.37 (colored)

Add missing inclusion of sys/bitops.h.

Revision 1.156 / (download) - annotate - [select for diffs], Mon Oct 11 00:16:08 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.155: +5 -4 lines
Diff to previous 1.155 (colored) to selected 1.37 (colored)

uhub: Skip USB_POWER_DOWN_TIME delay for root hubs

Revision 1.155 / (download) - annotate - [select for diffs], Mon Oct 11 00:08:31 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.154: +4 -2 lines
Diff to previous 1.154 (colored) to selected 1.37 (colored)

Fix previous; restore 'up' pointer in second uhub_explore loop.

Revision 1.154 / (download) - annotate - [select for diffs], Sun Oct 10 23:39:50 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.153: +28 -4 lines
Diff to previous 1.153 (colored) to selected 1.37 (colored)

usb: uhub: remove unnecessary delays when powering on ports

In uhub_explore instead of waiting 300ms after powering up each
connected port, power up all of the connected ports and then wait for
300ms total.

Revision 1.147.6.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:31 2021 UTC (2 years, 9 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.147: +44 -14 lines
Diff to previous 1.147 (colored) next main 1.148 (colored) to selected 1.37 (colored)

Sync w/ HEAD.

Revision 1.153 / (download) - annotate - [select for diffs], Sun Jun 13 14:48:10 2021 UTC (2 years, 9 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.152: +7 -5 lines
Diff to previous 1.152 (colored) to selected 1.37 (colored)

usb(4): Bus exploration is single-threaded -- assert it so.

New usb_in_event_thread(dev) returns true if dev is a USB device --
that is, a device with a usbN ancestor -- and the current thread is
the USB event thread.

(Kinda kludgey to pass around the device_t instead of, say, struct
usbd_bus, but I don't see a good way to get to the usbN device_t or
struct usb_softc from there.)

Revision 1.152 / (download) - annotate - [select for diffs], Sun Jun 13 14:46:07 2021 UTC (2 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.151: +23 -59 lines
Diff to previous 1.151 (colored) to selected 1.37 (colored)

uhub(4): Defer rescan to USB event thread.

Keep all of the USB bus exploration in a single thread -- this
appears to have been the original assumption, violated back in 2008
when uhub_rescan was added, and will make everything simpler.

Revision 1.151 / (download) - annotate - [select for diffs], Sun Jun 13 00:11:57 2021 UTC (2 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.150: +6 -2 lines
Diff to previous 1.150 (colored) to selected 1.37 (colored)

uhub(4): Trigger bus exploration after rescanning children.

Otherwise, if uhub4 is attached at uhub1, then when we do

	# drvctl -d uhub4
	# drvctl -r -a usbdevif uhub1

the rescan never discovers devices attached recursively at uhub4, and
uhub4 leaks a config_pending_incr count so it can't be detached.

Revision 1.150 / (download) - annotate - [select for diffs], Sat Jun 12 12:13:23 2021 UTC (2 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.149: +5 -2 lines
Diff to previous 1.149 (colored) to selected 1.37 (colored)

usb(4), uhub(4): Sprinkle usbhist.

Revision 1.149 / (download) - annotate - [select for diffs], Sat Jun 12 12:13:10 2021 UTC (2 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.148: +8 -2 lines
Diff to previous 1.148 (colored) to selected 1.37 (colored)

usb(4): Sprinkle kernel lock assertions.

Revision 1.148 / (download) - annotate - [select for diffs], Sat Jun 12 12:11:01 2021 UTC (2 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.147: +53 -2 lines
Diff to previous 1.147 (colored) to selected 1.37 (colored)

uhub(4): Allow only one explore/rescan at a time.

Otherwise we might simultaneously attach two autoconf instances of
the same device, which leads to no good.

Revision 1.147 / (download) - annotate - [select for diffs], Fri Jun 5 17:20:56 2020 UTC (3 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.146: +10 -6 lines
Diff to previous 1.146 (colored) to selected 1.37 (colored)

Register eight vHCI buses, and use separate KCOV mailboxes for them.

Revision 1.146 / (download) - annotate - [select for diffs], Sun May 31 08:05:30 2020 UTC (3 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.145: +2 -3 lines
Diff to previous 1.145 (colored) to selected 1.37 (colored)

sc_statuspend is allocated with kmem_zalloc, so no need to memset it.

Revision 1.145 / (download) - annotate - [select for diffs], Fri May 15 12:34:52 2020 UTC (3 years, 10 months ago) by maxv
Branch: MAIN
Changes since 1.144: +10 -3 lines
Diff to previous 1.144 (colored) to selected 1.37 (colored)

Introduce KCOV remote support. This allows to collect KCOV coverage on
threads other than curlwp, which is useful when fuzzing components that
defer processing, such as the network stack (partially runs in softints)
and the USB stack (partially runs in uhub kthreads).

A subsystem that whishes to provide coverage for its threads creates a
"mailbox" via kcov_remote_register() and gives it a (subsystem, id)
identifier. There is one mailbox per "target lwp". The target lwp(s)
must then call kcov_remote_enter() and kcov_remote_leave() with the
identifier, to respectively enable and disable coverage within the
thread.

On the userland side, the fuzzer has access to the mailboxes on the
system with the KCOV_IOC_REMOTE_ATTACH and KCOV_IOC_REMOTE_DETACH ioctls.
When attached to a mailbox with a given identifier, the KCOV_IOC_ENABLE,
KCOV_IOC_DISABLE and mmap() operations will affect the mailbox.

As a demonstrator, the vHCI subsystem is changed to use KCOV mailboxes.
When the vHCI bus attaches it creates as many mailboxes as it has USB
ports, each mailbox being associated with a distinct port. Uhub is changed
to enable KCOV coverage in usbd_new_device(). With that in place, all of
the USB enumeration procedure can be traced with KCOV.

Revision 1.138.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:49 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.138.4.2: +10 -10 lines
Diff to previous 1.138.4.2 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored) to selected 1.37 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.138.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:13 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.138.4.1: +12 -12 lines
Diff to previous 1.138.4.1 (colored) to branchpoint 1.138 (colored) to selected 1.37 (colored)

Merge changes from current as of 20200406

Revision 1.144 / (download) - annotate - [select for diffs], Tue Jan 7 06:42:26 2020 UTC (4 years, 2 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.143: +12 -12 lines
Diff to previous 1.143 (colored) to selected 1.37 (colored)

Localify, constify.

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Sun Sep 1 13:00:36 2019 UTC (4 years, 6 months ago) by martin
Branch: 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
Changes since 1.142: +12 -12 lines
Diff to previous 1.142 (colored) next main 1.143 (colored) to selected 1.37 (colored)

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.143 / (download) - annotate - [select for diffs], Wed Aug 21 10:48:37 2019 UTC (4 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.142: +12 -12 lines
Diff to previous 1.142 (colored) to selected 1.37 (colored)

convert pairs of USBHIST_CALLED()+USBHIST_LOG*() into
USBHIST_CALLARGS() calls.  this reduces the number of
kernel history lines consumed by these callers, and
for the +LOGN versions, add useful log info to a
message that just says "called!".

reduces the line spam which means the total info in a
full log is significantly increased.

Revision 1.138.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:34 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.138: +32 -25 lines
Diff to previous 1.138 (colored) to selected 1.37 (colored)

Sync with HEAD

Revision 1.142 / (download) - annotate - [select for diffs], Sun May 5 03:17:54 2019 UTC (4 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.141: +3 -3 lines
Diff to previous 1.141 (colored) to selected 1.37 (colored)

remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h

Revision 1.138.2.3 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:47 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.138.2.2: +6 -6 lines
Diff to previous 1.138.2.2 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored) to selected 1.37 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.136.2.3 / (download) - annotate - [select for diffs], Sun Nov 4 11:08:10 2018 UTC (5 years, 4 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.136.2.2: +12 -12 lines
Diff to previous 1.136.2.2 (colored) to branchpoint 1.136 (colored) next main 1.137 (colored) to selected 1.37 (colored)

Pull up following revision(s) (requested by manu in ticket #1078):

	sys/dev/usb/uhub.c: revision 1.140
	sys/dev/usb/uhub.c: revision 1.141
	sys/dev/usb/usb_subr.c: revision 1.228

Make USB port numbers display consistent

Make sure USB ports numbers are displayed with the first one as number one
and not number zero when rescanning bus. The change makes the display
consistent with the display at boot time USB discovery.

While we are there, make port iteration consistent everywhere in the code,
always starting at one instead of zero.

 -

Make USB port iteration code consistent, always startint at port #1
This complements change in revision 1.140

Revision 1.141 / (download) - annotate - [select for diffs], Tue Oct 23 01:49:37 2018 UTC (5 years, 5 months ago) by manu
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, isaki-audio2-base, isaki-audio2
Changes since 1.140: +6 -6 lines
Diff to previous 1.140 (colored) to selected 1.37 (colored)

Make USB port iteration code consistent, always startint at port #1

This complements change in revision 1.140

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:43 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.138.2.1: +8 -8 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored) to selected 1.37 (colored)

Sync with head

Revision 1.140 / (download) - annotate - [select for diffs], Fri Oct 19 00:33:27 2018 UTC (5 years, 5 months ago) by manu
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Changes since 1.139: +8 -8 lines
Diff to previous 1.139 (colored) to selected 1.37 (colored)

Make USB port numbers display consistent

Make sure USB ports numbers are displayed with the first one as number one
and not number zero when rescanning bus. The change makes the display
consistent with the display at boot time USB discovery.

While we are there, make port iteration consistent everywhere in the code,
always starting at one instead of zero.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:51 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.138: +21 -14 lines
Diff to previous 1.138 (colored) to selected 1.37 (colored)

Ssync with HEAD

Revision 1.136.2.2 / (download) - annotate - [select for diffs], Thu Sep 27 14:52:26 2018 UTC (5 years, 6 months ago) by martin
Branch: netbsd-8
Changes since 1.136.2.1: +21 -14 lines
Diff to previous 1.136.2.1 (colored) to branchpoint 1.136 (colored) to selected 1.37 (colored)

Pull up following revision(s) (requested by mrg in ticket #1037):

	sys/dev/usb/uhub.c: revision 1.139
	sys/external/bsd/dwc2/dwc2.c: revision 1.55
	sys/ddb/db_output.c: revision 1.34
	sys/ddb/db_command.c: revision 1.160
	sys/dev/usb/ehci.c: revision 1.264
	sys/dev/usb/xhci.c: revision 1.99
	sys/dev/usb/ehci.c: revision 1.265
	sys/kern/subr_userconf.c: revision 1.27
	sys/dev/usb/ehcivar.h: revision 1.46
	sys/dev/usb/ohci.c: revision 1.287
	sys/dev/usb/uhci.c: revision 1.284
	sys/dev/usb/usbdi.c: revision 1.178
	sys/dev/usb/usb.c: revision 1.172
	sys/dev/pci/xhci_pci.c: revision 1.14
	sys/dev/usb/usb.c: revision 1.173
	sys/dev/usb/usb.c: revision 1.174
	share/man/man4/usb.4: revision 1.110
	sys/ddb/db_command.c: revision 1.159
	sys/dev/usb/usb_subr.c: revision 1.227
	sys/dev/usb/uhcivar.h: revision 1.56
	(all via patch)

consolidate the handling of polling across HC drivers, and generic USB:
- don't take mutexes if polling
- normalise the code across all drivers
- add some not yet code to block discovery to/from polling
- minor CSE
- adjust comment for usbd_set_polling() to reality now i properly
  understand what it is used for and why.

this, with a hack to make RB_ASKNAME to wait 5 seconds allows boot -a
work with USB keyboards.  there are still multiple issues remaining:
- discovery and polling need to be mutually exclusive
- attachment of ukbd and wskbd is not handled by config_pending, and
  the 5 second delay isn't going to always be enough.

call cnpollc(1) and cnpollc(0) around cngetc().
(christos has a good idea to add a function that does all 3,
and we should switch all the callers in this sequence to use
it (and fix the MD ones missing it still).  not all can, as
eg, line-grabbing functions can use cngetsn(), which only
calls cnpollc() twice.)


When this file is used when not building the kernel (eg: /usr/sbin/crash)
make cnpollc() go away.


reorder some struct members to remove holes.


add config_pending usage to uhub and general USB device attachment.
- call config_pending_incr() and config_pending_decr() around attaching
  devices against "usbdevif" attribute.

uhub:
- convert sc_explorepending and sc_running to bool.  add new sc_first_explore.
- call config_pending_incr() at the start of uhub_attach().  dropped in
  uhub_explore(), if this is the first explore.


implement a gross hack to fix "boot -a" on systems with usb keyboards on
systems with ehci handover to uhci (and maybe ohci), and fix a similar
problem for "boot -s".

there is effort to ensure that all devices attached via USB are probed
before RB_ASKNAME or RB_SINGLE attempts to ask any questions on the console,
and largely this works, often by chance, today, for USB disks and root.
i've recently pushed this more into uhub and general USB device attachment
as well, and kept a config_pending reference across the first explore of
a bus.  these fix many issues with directly attached hubs.

however, on systems where devices connected to ehci ports are handed over
to a companion uhci or ohci port, it may not be the first, or even second,
bus explore that finds the device finally before attachment, and at this
point all config_pending references are dropped.

there is no direct communication between drivers, the potentials are
looked up but their device_t is only used for generic things like the name,
so informing the correct companion to expect a device and deal with the
config_pending references is not possible without some fairly ugly layer
violations or multi-level callbacks (eg, we have "ehci0", and usually an
the relevant companion, eg, "uhci2", but it is the uhub that uhci2 has
attached that will deal with the device attachment.)

with the above fixes to generic USB code, the disown happens during the
first explore.  the hack works by, at this point, checking if (a) root
is not mounted, (b) single user or ask name are set, and (c) if the hack
as not been triggered already.  if all 3 conditions are true, then a
config_pending_incr() is called and a callback is triggered for (default)
5 seconds to call config_pending_decr().  ehci detach pauses waiting for
this callback if scheduled.

this allows enough time for the uhub and the ukbd/wskbd to attach before
the RK_ASKROOT prompts appear.  testing shows it takes between 1.5 and
2 seconds for the keyboard to appear after the disown occurs.

Index: dev/usb/ehcivar.c
- new sc_compcallout, sc_compcallout, sc_complock, and a state for th
  handover hack.

Index: dev/usb/ehci.c
ehci_init():
- use aprint_normal_dev() instead of manual device_xname().
- initialise sc_compcallout, sc_compcallout, sc_complock, and sc_comp_state.
ehci_detach():
- if there are companion controllers, tear own the above, including waiting
  if there is a callback scheduled.
ehci_disown_callback():
- new callout to call config_pending_decr() in the the future.
  schedule this ca
ehci_disown_sched_callback():
- if booting to single user or asking names, call config_pending_incr() and
  schedule the callout above, default 5 second delay.
ehci_disown():
- if disowning a port call ehci_disown_sched_callback().
deal with partial attach failures in usb_attach vs usb_detach aka PR 53598.
- make sure xhci's sc->sc_ios is NULL if failure happens.
- rearrange usb_attach() / usb_doattach() to make it simpler to clean up.
- move usb_async_intr softint into usb_once_init().  previously, each USB
  controller would start a new one, and leave the old one leaked.
- handle controller interrupts without a bus attached


remove usb(4)'s "flags 1" code.  it has been dead for a while,
as it runs during the interrupts part of configuration now,
and all the devices try attach as early as possible, including
any root or boot required disk or keyboard device, which is
what this flag was for.

Revision 1.139 / (download) - annotate - [select for diffs], Tue Sep 18 01:36:44 2018 UTC (5 years, 6 months ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-0930
Changes since 1.138: +21 -14 lines
Diff to previous 1.138 (colored) to selected 1.37 (colored)

add config_pending usage to uhub and general USB device attachment.

- call config_pending_incr() and config_pending_decr() around attaching
  devices against "usbdevif" attribute.

uhub:
- convert sc_explorepending and sc_running to bool.  add new sc_first_explore.
- call config_pending_incr() at the start of uhub_attach().  dropped in
  uhub_explore(), if this is the first explore.

Revision 1.138 / (download) - annotate - [select for diffs], Thu Feb 1 09:50:48 2018 UTC (6 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.137: +5 -4 lines
Diff to previous 1.137 (colored) to selected 1.37 (colored)

 Mark DVF_DETACH_SHUTDOWN to USB root HUB. This change makes USB host
controller drivers detachable. OK'd by Nick.

Revision 1.118.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:34 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.118.2.3: +450 -213 lines
Diff to previous 1.118.2.3 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored) to selected 1.37 (colored)

update from HEAD

Revision 1.136.2.1 / (download) - annotate - [select for diffs], Thu Nov 2 21:29:52 2017 UTC (6 years, 4 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.136: +34 -31 lines
Diff to previous 1.136 (colored) to selected 1.37 (colored)

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.137 / (download) - annotate - [select for diffs], Sat Oct 28 00:37:12 2017 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.136: +34 -31 lines
Diff to previous 1.136 (colored) to selected 1.37 (colored)

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.126.2.31 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:28 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.30: +2 -13 lines
Diff to previous 1.126.2.30 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored) to selected 1.37 (colored)

Sync with HEAD

Revision 1.136 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:12 2017 UTC (6 years, 9 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base
Branch point for: netbsd-8
Changes since 1.135: +2 -13 lines
Diff to previous 1.135 (colored) to selected 1.37 (colored)

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.124.4.2 / (download) - annotate - [select for diffs], Wed Apr 5 19:54:20 2017 UTC (6 years, 11 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.124.4.1: +450 -207 lines
Diff to previous 1.124.4.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored) to selected 1.37 (colored)

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.124.4.1.2.2 / (download) - annotate - [select for diffs], Thu Jan 26 21:54:24 2017 UTC (7 years, 2 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.124.4.1.2.1: +7 -3 lines
Diff to previous 1.124.4.1.2.1 (colored) to branchpoint 1.124.4.1 (colored) next main 1.124.4.2 (colored) to selected 1.37 (colored)

Sync with HEAD/nhusb

Revision 1.133.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:42 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.133: +6 -2 lines
Diff to previous 1.133 (colored) next main 1.134 (colored) to selected 1.37 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.126.2.30 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:18 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.29: +6 -2 lines
Diff to previous 1.126.2.29 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Sync with HEAD

Revision 1.135 / (download) - annotate - [select for diffs], Fri Nov 25 12:56:29 2016 UTC (7 years, 4 months ago) by skrll
Branch: 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, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.134: +6 -2 lines
Diff to previous 1.134 (colored) to selected 1.37 (colored)

+#include "opt_usb.h"

Revision 1.126.2.29 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:57 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.28: +3 -3 lines
Diff to previous 1.126.2.28 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Sync with HEAD

Revision 1.134 / (download) - annotate - [select for diffs], Tue Sep 13 07:30:32 2016 UTC (7 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004, localcount-20160914
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored) to selected 1.37 (colored)

tiny KNF

Revision 1.124.4.1.2.1 / (download) - annotate - [select for diffs], Tue Sep 6 20:33:09 2016 UTC (7 years, 6 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.124.4.1: +446 -207 lines
Diff to previous 1.124.4.1 (colored) to selected 1.37 (colored)

First pass at netbsd-7 updated with USB code from HEAD

Revision 1.133 / (download) - annotate - [select for diffs], Sat Apr 23 10:15:32 2016 UTC (7 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529
Branch point for: pgoyette-localcount
Changes since 1.132: +372 -185 lines
Diff to previous 1.132 (colored) to selected 1.37 (colored)

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.126.2.28 / (download) - annotate - [select for diffs], Sun Apr 10 15:44:56 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.27: +2 -3 lines
Diff to previous 1.126.2.27 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Revert 1.126.2.12 partially: fix some devices ware not recognized.
uhub would give up enumeration too quickly.

From Takahiro HAYASHI

Revision 1.126.2.27 / (download) - annotate - [select for diffs], Sun Apr 10 15:42:43 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.26: +3 -3 lines
Diff to previous 1.126.2.26 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

default uhubdebug to 0 again

Revision 1.126.2.26 / (download) - annotate - [select for diffs], Sun Apr 10 15:40:25 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.25: +3 -3 lines
Diff to previous 1.126.2.25 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Fix a debug message: sync with other device name expressions.

From Takahiro HAYASHI

Revision 1.126.2.25 / (download) - annotate - [select for diffs], Sun Apr 10 15:39:28 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.24: +7 -3 lines
Diff to previous 1.126.2.24 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Add a comment

Revision 1.126.2.24 / (download) - annotate - [select for diffs], Tue Mar 29 08:42:41 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.23: +10 -10 lines
Diff to previous 1.126.2.23 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Whitespace

Revision 1.132 / (download) - annotate - [select for diffs], Sun Mar 13 07:01:43 2016 UTC (8 years ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored) to selected 1.37 (colored)

KNF

Revision 1.124.4.1 / (download) - annotate - [select for diffs], Tue Mar 8 09:49:00 2016 UTC (8 years ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-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
Branch point for: netbsd-7-nhusb
Changes since 1.124: +4 -2 lines
Diff to previous 1.124 (colored) to selected 1.37 (colored)

Pull up following revision(s) (requested by skrll in ticket #1134):
	sys/dev/usb/uhub.c: revision 1.130
Use the port status straight after the reset and not after the
	usbd_clear_port_feature(dev, port, UHF_C_PORT_RESET)
The Gadget USB HUB in the IBM x3250 sborrill sent me returns the wrong
status and this would appear to leave the attached cdce(4) in the default
state.  The next device probed fails as a result.

Revision 1.126.2.23 / (download) - annotate - [select for diffs], Tue Feb 16 08:02:49 2016 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.22: +7 -15 lines
Diff to previous 1.126.2.22 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Re-enable the TT support that existed previously here as well

Revision 1.131 / (download) - annotate - [select for diffs], Tue Feb 16 07:51:13 2016 UTC (8 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.130: +2 -10 lines
Diff to previous 1.130 (colored) to selected 1.37 (colored)

Re-enable the TT support that existed previously.

Revision 1.126.2.22 / (download) - annotate - [select for diffs], Sat Feb 6 07:53:11 2016 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.21: +4 -2 lines
Diff to previous 1.126.2.21 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Pull across fix from HEAD

Use the port status straight after the reset and not after the

	usbd_clear_port_feature(dev, port, UHF_C_PORT_RESET)

The Gadget USB HUB in the IBM x3250 sborrill sent me returns the wrong
status and this would appear to leave the attached cdce(4) in the default
state.  The next device probed fails as a result.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Feb 5 15:41:49 2016 UTC (8 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.129: +4 -2 lines
Diff to previous 1.129 (colored) to selected 1.37 (colored)

Use the port status straight after the reset and not after the

	usbd_clear_port_feature(dev, port, UHF_C_PORT_RESET)

The Gadget USB HUB in the IBM x3250 sborrill sent me returns the wrong
status and this would appear to leave the attached cdce(4) in the default
state.  The next device probed fails as a result.

Revision 1.126.2.21 / (download) - annotate - [select for diffs], Thu Jan 28 13:01:30 2016 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.20: +5 -5 lines
Diff to previous 1.126.2.20 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Whitespace

Revision 1.126.2.20 / (download) - annotate - [select for diffs], Sat Jan 2 16:14:46 2016 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.19: +4 -2 lines
Diff to previous 1.126.2.19 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Destroy the mutex on detach

Revision 1.126.2.19 / (download) - annotate - [select for diffs], Sat Jan 2 14:14:45 2016 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.18: +3 -3 lines
Diff to previous 1.126.2.18 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Add a missing curly from previous

Revision 1.126.2.18 / (download) - annotate - [select for diffs], Sat Jan 2 14:04:41 2016 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.17: +30 -26 lines
Diff to previous 1.126.2.17 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Generalise the hub status change notification and registering of
pending changes while exploring.

Notifications could be lost before

Revision 1.126.2.17 / (download) - annotate - [select for diffs], Sat Jan 2 13:54:38 2016 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.16: +18 -18 lines
Diff to previous 1.126.2.16 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Make debug output consistent

Revision 1.126.2.16 / (download) - annotate - [select for diffs], Sat Oct 3 16:32:25 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.15: +51 -34 lines
Diff to previous 1.126.2.15 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

From t-hash
    + Import port speed detection code from OpenBSD.
      Check port power bit instead of speed bits. It's a cool idea.

Revision 1.126.2.15 / (download) - annotate - [select for diffs], Tue Sep 29 11:38:29 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.14: +4 -4 lines
Diff to previous 1.126.2.14 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

sizeof KNF

Revision 1.126.2.14 / (download) - annotate - [select for diffs], Wed Sep 23 13:49:59 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.13: +9 -2 lines
Diff to previous 1.126.2.13 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

From t-hash
    + Fix devices were not recognized at boot on some xhci
      (AFAIK Intel PCHs).

Revision 1.126.2.13 / (download) - annotate - [select for diffs], Sat Jun 6 15:24:18 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.12: +12 -8 lines
Diff to previous 1.126.2.12 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Simplify treatment of WRC condition and add comments.

From t-hash.

Revision 1.126.2.12 / (download) - annotate - [select for diffs], Thu May 28 06:15:47 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.11: +174 -33 lines
Diff to previous 1.126.2.11 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

More changes from Takahiro HAYASHI

+ Add sc_statuspend that stores ports bitmap of pending interrupts
  instead of sc_isxhciroothub hack til someone implements suspend pipe.
  While sc_explorepending == 1, uhub_intr shall merge sc_status into
  sc_statuspend.
+ Eliminate confusing UPS_SUPER_SPEED flag and introduce
  UPS_OTHER_SPEED flag that indicates ud_speed of device is
  super speed (or more).
  uhub shall set this flag if ud_speed is super speed (or more).
+ Add the macro that checks ud_speed is super speed.
  The codes shall use this macro to check ud_speed is super speed.
+ Add speed type conversion functions.
+ Include port link status in port_status if port is super speed.

Various other changes to support SS hubs and devices

Revision 1.126.2.11 / (download) - annotate - [select for diffs], Tue Apr 7 06:23:10 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.10: +5 -2 lines
Diff to previous 1.126.2.10 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Another DPRINTF.  From Takahiro HAYASHI.

Revision 1.126.2.10 / (download) - annotate - [select for diffs], Tue Apr 7 06:09:55 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.9: +4 -5 lines
Diff to previous 1.126.2.9 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

KNF

Revision 1.126.2.9 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:13 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.8: +96 -39 lines
Diff to previous 1.126.2.8 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Sync with HEAD

Revision 1.129 / (download) - annotate - [select for diffs], Sat Mar 28 07:58:00 2015 UTC (9 years ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.128: +27 -17 lines
Diff to previous 1.128 (colored) to selected 1.37 (colored)

Improve DPRINTFs - partially from Takahiro HAYASHI

Revision 1.128 / (download) - annotate - [select for diffs], Thu Mar 26 16:19:26 2015 UTC (9 years ago) by skrll
Branch: MAIN
Changes since 1.127: +15 -13 lines
Diff to previous 1.127 (colored) to selected 1.37 (colored)

Note the uhub the DPRINTF is about in many cases

Revision 1.127 / (download) - annotate - [select for diffs], Thu Mar 26 15:53:58 2015 UTC (9 years ago) by skrll
Branch: MAIN
Changes since 1.126: +79 -36 lines
Diff to previous 1.126 (colored) to selected 1.37 (colored)

Convert to USBHIST. Inspired by patch from Takahiro HAYASHI

Revision 1.126.2.8 / (download) - annotate - [select for diffs], Sat Mar 21 11:33:37 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.7: +5 -5 lines
Diff to previous 1.126.2.7 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Add prefixes to attach_arg structure member names. No functional change.

Revision 1.126.2.7 / (download) - annotate - [select for diffs], Thu Mar 19 17:26:43 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.6: +13 -13 lines
Diff to previous 1.126.2.6 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Do the same as OpenBSD and get rid of the *_handle typedefs and use
plain structures insteads

Revision 1.126.2.6 / (download) - annotate - [select for diffs], Sat Dec 6 08:39:57 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.5: +4 -4 lines
Diff to previous 1.126.2.5 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Fix pasto that meant kmem_free was called twice against sc_statusbuf. Free
sc_status instead.

Revision 1.126.2.5 / (download) - annotate - [select for diffs], Sat Dec 6 08:27:23 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.4: +4 -4 lines
Diff to previous 1.126.2.4 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

KNF. Remove argument name from function declarations.

No functional change.

Revision 1.126.2.4 / (download) - annotate - [select for diffs], Fri Dec 5 09:37:49 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.3: +9 -9 lines
Diff to previous 1.126.2.3 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

KNF. Remove ( ) from return statements.

Revision 1.126.2.3 / (download) - annotate - [select for diffs], Wed Dec 3 14:18:07 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.2: +22 -17 lines
Diff to previous 1.126.2.2 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

Replace malloc(9) with kmem(9)

Revision 1.126.2.2 / (download) - annotate - [select for diffs], Wed Dec 3 12:52:07 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126.2.1: +69 -69 lines
Diff to previous 1.126.2.1 (colored) to branchpoint 1.126 (colored) to selected 1.37 (colored)

The grand renaming of structure members.

No functional change.

Revision 1.126.2.1 / (download) - annotate - [select for diffs], Sun Nov 30 12:18:58 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored) to selected 1.37 (colored)

Use C99 types. u_int{8,16,32,64}_t to uint{8,16,32,64}_t.

No functional change.

Revision 1.118.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:51 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.118.2.2: +5 -5 lines
Diff to previous 1.118.2.2 (colored) to branchpoint 1.118 (colored) to selected 1.37 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.126 / (download) - annotate - [select for diffs], Wed Aug 13 06:26:32 2014 UTC (9 years, 7 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.125: +6 -3 lines
Diff to previous 1.125 (colored) to selected 1.37 (colored)

SS device detection needs more work. #if 0 previous attempt for now.

PR/49106: panic: ehci_open: bad device speed 4

Revision 1.125 / (download) - annotate - [select for diffs], Tue Aug 12 13:36:40 2014 UTC (9 years, 7 months ago) by skrll
Branch: MAIN
Changes since 1.124: +5 -3 lines
Diff to previous 1.124 (colored) to selected 1.37 (colored)

Some USB3 / SS support - baby steps.  From Takahiro HAYASHI.

Revision 1.114.2.5 / (download) - annotate - [select for diffs], Thu May 22 11:40:37 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.114.2.4: +8 -7 lines
Diff to previous 1.114.2.4 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored) to selected 1.37 (colored)

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.123.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:48 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored) next main 1.124 (colored) to selected 1.37 (colored)

sync with head

Revision 1.124 / (download) - annotate - [select for diffs], Sun Sep 15 15:33:47 2013 UTC (10 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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: netbsd-7
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored) to selected 1.37 (colored)

Remove unused variable

Revision 1.123 / (download) - annotate - [select for diffs], Tue Jun 25 15:37:17 2013 UTC (10 years, 9 months ago) by jakllsch
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored) to selected 1.37 (colored)

Spell "Windows 98" not-incorrectly in comment.

Revision 1.118.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:39 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.118.2.1: +5 -6 lines
Diff to previous 1.118.2.1 (colored) to branchpoint 1.118 (colored) to selected 1.37 (colored)

resync with head

Revision 1.114.2.4 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:13 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.114.2.3: +2 -4 lines
Diff to previous 1.114.2.3 (colored) to branchpoint 1.114 (colored) to selected 1.37 (colored)

sync with head

Revision 1.122 / (download) - annotate - [select for diffs], Tue Jan 22 21:12:32 2013 UTC (11 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: khorben-n900, agc-symver-base, agc-symver
Changes since 1.121: +5 -4 lines
Diff to previous 1.121 (colored) to selected 1.37 (colored)

uhub is mpsafe

Revision 1.114.2.3 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:35 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.114.2.2: +3 -3 lines
Diff to previous 1.114.2.2 (colored) to branchpoint 1.114 (colored) to selected 1.37 (colored)

sync with (a bit old) head

Revision 1.121 / (download) - annotate - [select for diffs], Sat Jan 5 23:34:19 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.120: +2 -6 lines
Diff to previous 1.120 (colored) to selected 1.37 (colored)

fix debug variables.
- include opt_usb.h in usb.h so that USB_DEBUG gets set properly in it.
- normalize and sort debugging variables

Revision 1.120 / (download) - annotate - [select for diffs], Sat Jan 5 01:30:17 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.119: +4 -2 lines
Diff to previous 1.119 (colored) to selected 1.37 (colored)

- need opt_usb.h if depending on USB_DEBUG
- remove trailing whitespace
- add missing KERNEL_RCSID

Revision 1.118.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:34 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored) to selected 1.37 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.119 / (download) - annotate - [select for diffs], Wed Nov 14 13:53:23 2012 UTC (11 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored) to selected 1.37 (colored)

Fix function name in DPRINTF

Revision 1.114.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:08 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.114.2.1: +3 -3 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored) to selected 1.37 (colored)

sync with head

Revision 1.118 / (download) - annotate - [select for diffs], Sun Sep 9 20:23:38 2012 UTC (11 years, 6 months ago) by gsutre
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (colored) to selected 1.37 (colored)

In uhub_childdet, do not free the array of sub-devices if there is none.
This prevents a kernel panic at shutdown on my laptop.

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:08 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.114: +19 -5 lines
Diff to previous 1.114 (colored) to selected 1.37 (colored)

sync with head

Revision 1.114.6.3 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:34 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.114.6.2: +11 -1 lines
Diff to previous 1.114.6.2 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored) to selected 1.37 (colored)

sync to latest -current.

Revision 1.114.10.1 / (download) - annotate - [select for diffs], Mon Mar 19 23:13:59 2012 UTC (12 years ago) by riz
Branch: 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-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.114: +13 -3 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.37 (colored)

Pull up following revision(s) (requested by mrg in ticket #125):
	sys/dev/scsipi/scsiconf.c: revision 1.263
	sys/dev/scsipi/scsiconf.c: revision 1.264
	sys/dev/ic/ncr53c9x.c: revision 1.144
	sys/dev/ic/ninjascsi32.c: revision 1.22
	sys/dev/usb/uhub.c: revision 1.117
take the kernel lock in functions called from attach*().
scsidevdetached ioctl path enters scsipi code without kernel lock
and this upsets the newer kasserts.  take kernel lock here.
take the kernel lock a few more places when doing detach, to avoid
triggering KERNEL_LOCK_P() asserts in both scsi and usb code.
with this and other recent fixes i can now "drvctl -d ehci0".

Revision 1.117 / (download) - annotate - [select for diffs], Mon Mar 12 02:44:17 2012 UTC (12 years ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Changes since 1.116: +13 -3 lines
Diff to previous 1.116 (colored) to selected 1.37 (colored)

take the kernel lock a few more places when doing detach, to avoid
triggering KERNEL_LOCK_P() asserts in both scsi and usb code.

with this and other recent fixes i can now "drvctl -d ehci0".

Revision 1.114.6.2 / (download) - annotate - [select for diffs], Sun Mar 11 01:52:29 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.114.6.1: +7 -3 lines
Diff to previous 1.114.6.1 (colored) to branchpoint 1.114 (colored) to selected 1.37 (colored)

sync to latest -current

Revision 1.116 / (download) - annotate - [select for diffs], Fri Mar 9 00:12:10 2012 UTC (12 years ago) by jakllsch
Branch: MAIN
CVS Tags: jmcneill-usbmp-base7
Changes since 1.115: +7 -3 lines
Diff to previous 1.115 (colored) to selected 1.37 (colored)

Restore parts of uhub_explore() needed to make usb_needs_reattach() work.

Revision 1.114.6.1 / (download) - annotate - [select for diffs], Tue Mar 6 18:26:47 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored) to selected 1.37 (colored)

sync to -current

Revision 1.115 / (download) - annotate - [select for diffs], Mon Mar 5 16:14:03 2012 UTC (12 years ago) by sborrill
Branch: MAIN
CVS Tags: jmcneill-usbmp-base6
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored) to selected 1.37 (colored)

not enable -> not enabled

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:10 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.113: +5 -3 lines
Diff to previous 1.113 (colored) next main 1.114 (colored) to selected 1.37 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.109.4.3 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:26 2011 UTC (12 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.109.4.2: +3 -1 lines
Diff to previous 1.109.4.2 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored) to selected 1.37 (colored)

sync with head

Revision 1.114 / (download) - annotate - [select for diffs], Thu Jun 9 19:08:32 2011 UTC (12 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.113: +5 -3 lines
Diff to previous 1.113 (colored) to selected 1.37 (colored)

Move EHCI_DEBUG, OHCI_DEBUG, UHCI_DEBUG, USB_DEBUG, UHUB_DEBUG to opt_usb.h
(ya dependencies).
Cleanup usb_mem.c a little more and add block tracking code.  Help find
corruption problems.
Comment out the SPEED check for ETTF.  XXX why doesn't that work right?

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:43 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.112: +7 -2 lines
Diff to previous 1.112 (colored) next main 1.113 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.109.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:04:56 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.109.4.1: +5 -0 lines
Diff to previous 1.109.4.1 (colored) to branchpoint 1.109 (colored) to selected 1.37 (colored)

sync with head

Revision 1.113 / (download) - annotate - [select for diffs], Sun May 29 12:37:09 2011 UTC (12 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.112: +7 -2 lines
Diff to previous 1.112 (colored) to selected 1.37 (colored)

When a child device is detached and no interfaces are claimed by drivers,
free the port's subdevice list. This allows for detaching a driver from
a USB device and loading a different one without disconnecting the device.

Revision 1.109.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:54:14 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.109: +13 -5 lines
Diff to previous 1.109 (colored) to selected 1.37 (colored)

sync with head

Revision 1.109.2.2 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:38 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.109.2.1: +6 -6 lines
Diff to previous 1.109.2.1 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.112 / (download) - annotate - [select for diffs], Wed Nov 3 22:59:40 2010 UTC (13 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base4, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored) to selected 1.37 (colored)

Change a stray USBDEVNAME to device_xname().  Only affects DIAGNOSTIC
kernels.

Revision 1.111 / (download) - annotate - [select for diffs], Wed Nov 3 22:34:24 2010 UTC (13 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.110: +5 -5 lines
Diff to previous 1.110 (colored) to selected 1.37 (colored)

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

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:18 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.109: +10 -2 lines
Diff to previous 1.109 (colored) to selected 1.37 (colored)

Sync with HEAD (-D20101022).

Revision 1.96.2.5 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:27 2010 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.96.2.4: +10 -2 lines
Diff to previous 1.96.2.4 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.37 (colored)

sync with head

Revision 1.110 / (download) - annotate - [select for diffs], Wed Sep 8 14:01:58 2010 UTC (13 years, 6 months ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base3
Changes since 1.109: +10 -2 lines
Diff to previous 1.109 (colored) to selected 1.37 (colored)

Ensure that it is UPS_PORT_ENABLED before checking the speed of the device.

Revision 1.96.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:06 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.96.2.3: +28 -43 lines
Diff to previous 1.96.2.3 (colored) to branchpoint 1.96 (colored) to selected 1.37 (colored)

sync with head

Revision 1.109 / (download) - annotate - [select for diffs], Tue Feb 2 23:18:49 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.108: +16 -3 lines
Diff to previous 1.108 (colored) to selected 1.37 (colored)

Introduce the uhub_ubermatch variable.  Setting it to 1 makes sure
than a uhub attaches even at higher priority than ugen when
ugen_override is set to 1.  This allows to probe the whole USB bus
and attach its functions with ugen.

A better infrastructure to control this would be nice ....

Revision 1.108 / (download) - annotate - [select for diffs], Thu Nov 12 20:11:35 2009 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.107: +14 -42 lines
Diff to previous 1.107 (colored) to selected 1.37 (colored)

Re-order operations in usb_detach() so that if a usb(4) instance's
children will not detach, the instance is not left in an inconsistent
state.

If uhub(4) port is disconnected, forcefully detach the children on
that port.

Simplify detachment hooks.  (sc_dying must die!)

Pass along and respect detachment flags, esp. DETACH_FORCE,
throughout.

Revision 1.96.2.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:58 2009 UTC (14 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.96.2.2: +27 -26 lines
Diff to previous 1.96.2.2 (colored) to branchpoint 1.96 (colored) to selected 1.37 (colored)

sync with head

Revision 1.107 / (download) - annotate - [select for diffs], Fri Sep 4 18:14:41 2009 UTC (14 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.106: +12 -11 lines
Diff to previous 1.106 (colored) to selected 1.37 (colored)

Expand some definitions from <dev/usb/usb_port.h>.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Sep 4 16:42:38 2009 UTC (14 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored) to selected 1.37 (colored)

KNF: compare a pointer with NULL instead of evaluating its "truth."

Revision 1.105 / (download) - annotate - [select for diffs], Thu Sep 3 20:54:03 2009 UTC (14 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.104: +16 -16 lines
Diff to previous 1.104 (colored) to selected 1.37 (colored)

Expand some of the portability macros from sys/dev/usb/usb_port.h.
There is no change in the generated assembly.

Revision 1.103.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:35 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.103: +5 -4 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.37 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.96.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:21 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.96.2.1: +102 -70 lines
Diff to previous 1.96.2.1 (colored) to branchpoint 1.96 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:39 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.103: +5 -4 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.104 / (download) - annotate - [select for diffs], Tue Apr 7 18:15:45 2009 UTC (14 years, 11 months ago) by dyoung
Branch: 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-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.103: +5 -4 lines
Diff to previous 1.103 (colored) to selected 1.37 (colored)

Detach uhub(4) and usb(4) at shutdown.

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:10 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.101: +24 -6 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.95.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:33 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.95.6.2: +22 -4 lines
Diff to previous 1.95.6.2 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:11 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.97.2.1: +24 -6 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored) to selected 1.37 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.103 / (download) - annotate - [select for diffs], Mon Aug 18 18:03:21 2008 UTC (15 years, 7 months ago) by kent
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, nick-hppapmap-base2, 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, mjf-devfs2-base, 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-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Changes since 1.102: +23 -4 lines
Diff to previous 1.102 (colored) to selected 1.37 (colored)

Implement uhub_rescan().  After this change, "modload uaudio.kmod"
configures an audio device correctly for a device which is already
plugged.

* usb_subr.c
 Add locators parameter to usbd_attachinterfaces()
 Add usbd_reatach_device()

* usbdivar.h
 Export usbd_reatach_device()

Revision 1.100.2.2 / (download) - annotate - [select for diffs], Thu Jul 31 04:51:02 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.100.2.1: +3 -4 lines
Diff to previous 1.100.2.1 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.102 / (download) - annotate - [select for diffs], Mon Jul 28 15:22:01 2008 UTC (15 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.101: +3 -4 lines
Diff to previous 1.101 (colored) to selected 1.37 (colored)

-in usbd_probe_and_attach(), split out the code for per-device and
 per-interface attachment into individual functions, to ease
 maintainance and allow easier plugin of new attachment functions
-keep a counter of USB interfaces in use on a device, and try to
 keep track of interfaces claimed by drivers behind the framework's
 back

Revision 1.95.6.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:11 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.95.6.1: +34 -1 lines
Diff to previous 1.95.6.1 (colored) to branchpoint 1.95 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:37 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.97: +80 -67 lines
Diff to previous 1.97 (colored) to selected 1.37 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:26 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.100: +36 -3 lines
Diff to previous 1.100 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.95.8.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:02 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.95.8.2: +36 -3 lines
Diff to previous 1.95.8.2 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.101 / (download) - annotate - [select for diffs], Mon Jun 16 10:37:54 2008 UTC (15 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: haad-dm
Changes since 1.100: +36 -3 lines
Diff to previous 1.100 (colored) to selected 1.37 (colored)

-plug a minimal memory leak on attach/detach
-avoid unnecessary tree walks and port status requests:
 -acknowledge hub status change notifications (but do nothing)
 -clear cached port status change bits earlier (but not on ehci, due
  to an ehci driver bug)
-do the ehci check on attach rather than a string comparision at runtime

Revision 1.95.8.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:20 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.95.8.1: +47 -67 lines
Diff to previous 1.95.8.1 (colored) to branchpoint 1.95 (colored) to selected 1.37 (colored)

sync with head

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:34 2008 UTC (15 years, 9 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.83: +6 -4 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.37 (colored)

Sync with netbsd-4.

Revision 1.95.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:54 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.95: +49 -76 lines
Diff to previous 1.95 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.100 / (download) - annotate - [select for diffs], Tue May 27 20:44:28 2008 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.99: +3 -20 lines
Diff to previous 1.99 (colored) to selected 1.37 (colored)

minor unifdef and cleanup, no functional change

Revision 1.99 / (download) - annotate - [select for diffs], Sun May 25 21:41:35 2008 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.98: +10 -7 lines
Diff to previous 1.98 (colored) to selected 1.37 (colored)

-make the list of USB child devices a (possibly sparse) array rather
 than a zero-terminated list; this makes the code simpler and also
 hopefully fixes the recent "childdet" botch, see PR kern/38528
-handle the root hub specially a bit earlier, this allows to kick out
 the "submatch" functions completely which needed to second-guess
 from the port number (where "0" meant root hub")
 (we could handle the root hub specially even earlier, but as done
 now big parts of the hub emulation code are exercised regularely,
 this would bitrot otherwise)

Revision 1.98 / (download) - annotate - [select for diffs], Sat May 24 16:40:58 2008 UTC (15 years, 10 months ago) by cube
Branch: MAIN
Changes since 1.97: +38 -44 lines
Diff to previous 1.97 (colored) to selected 1.37 (colored)

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.95.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:51 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.95: +4 -11 lines
Diff to previous 1.95 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:10 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.96: +2 -9 lines
Diff to previous 1.96 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:59 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.96: +2 -9 lines
Diff to previous 1.96 (colored) to selected 1.37 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.96 / (download) - annotate - [select for diffs], Mon Apr 21 23:31:18 2008 UTC (15 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored) to selected 1.37 (colored)

Cleanup uhub autoconfiguration messages.

Revision 1.89.10.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:54 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.89.10.2: +40 -54 lines
Diff to previous 1.89.10.2 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored) to selected 1.37 (colored)

sync with HEAD

Revision 1.76.2.9 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:47 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.8: +36 -52 lines
Diff to previous 1.76.2.8 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.90.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:26 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.90.2.2: +41 -54 lines
Diff to previous 1.90.2.2 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Feb 18 05:24:24 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, 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: yamt-pf42, mjf-devfs2
Changes since 1.94: +36 -52 lines
Diff to previous 1.94 (colored) to selected 1.37 (colored)

Use device_t and its accessor functions.

Register _childdetached methods with drivers that attach children.
Wait to set child references to NULL there, instead of doing that
in the detach method.

Replace many uses of USB_DECLARE_DRIVER() with CFATTACH_DECL2().

Revision 1.76.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:39 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.7: +6 -4 lines
Diff to previous 1.76.2.7 (colored) to branchpoint 1.76 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Sun Feb 3 19:13:28 2008 UTC (16 years, 1 month ago) by riz
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.83: +6 -4 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.37 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #1056):
	sys/dev/usb/uhub.c: revision 1.94
Speed up uhub attachment considerably. Rather than powering up each port
individually then waiting for it to become stable, power them up all
at once and then delay. Don't even bother delaying if we are a root hub,
as this is handled separately in the event thread. From OpenBSD.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Jan 25 00:29:12 2008 UTC (16 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.93: +6 -4 lines
Diff to previous 1.93 (colored) to selected 1.37 (colored)

Speed up uhub attachment considerably. Rather than powering up each port
individually then waiting for it to become stable, power them up all
at once and then delay. Don't even bother delaying if we are a root hub,
as this is handled separately in the event thread. From OpenBSD.

Revision 1.76.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:46 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.6: +6 -2 lines
Diff to previous 1.76.2.6 (colored) to branchpoint 1.76 (colored) to selected 1.37 (colored)

sync with head

Revision 1.89.10.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:43 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.89.10.1: +21 -13 lines
Diff to previous 1.89.10.1 (colored) to branchpoint 1.89 (colored) to selected 1.37 (colored)

sync with HEAD

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:22 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.92: +3 -2 lines
Diff to previous 1.92 (colored) next main 1.93 (colored) to selected 1.37 (colored)

Sync with HEAD

Revision 1.93 / (download) - annotate - [select for diffs], Fri Jan 4 03:56:47 2008 UTC (16 years, 2 months ago) by smb
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.92: +3 -2 lines
Diff to previous 1.92 (colored) to selected 1.37 (colored)

Add calls to pmf_deregister on detach.

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:32 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.90.2.1: +5 -2 lines
Diff to previous 1.90.2.1 (colored) to branchpoint 1.90 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.91.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:26 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.91: +5 -2 lines
Diff to previous 1.91 (colored) next main 1.92 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.91.4.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:40:04 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-kmem
Changes since 1.91: +5 -2 lines
Diff to previous 1.91 (colored) next main 1.92 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:24 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.91: +5 -2 lines
Diff to previous 1.91 (colored) to selected 1.37 (colored)

Merge jmcneill-pm branch.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:05 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.90: +17 -13 lines
Diff to previous 1.90 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.89.8.7 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:37 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.89.8.6: +3 -3 lines
Diff to previous 1.89.8.6 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored) to selected 1.37 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.76.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:37 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.5: +17 -13 lines
Diff to previous 1.76.2.5 (colored) to branchpoint 1.76 (colored) to selected 1.37 (colored)

sync with head

Revision 1.89.8.6 / (download) - annotate - [select for diffs], Sat Dec 1 04:51:58 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.89.8.5: +17 -13 lines
Diff to previous 1.89.8.5 (colored) to branchpoint 1.89 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.91 / (download) - annotate - [select for diffs], Sat Dec 1 04:50:50 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.90: +17 -13 lines
Diff to previous 1.90 (colored) to selected 1.37 (colored)

aprintify

Revision 1.89.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:30:38 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored) to selected 1.37 (colored)

sync with HEAD

Revision 1.89.8.5 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:34 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.89.8.4: +4 -5 lines
Diff to previous 1.89.8.4 (colored) to branchpoint 1.89 (colored) to selected 1.37 (colored)

Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.76.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:34:37 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.4: +3 -3 lines
Diff to previous 1.76.2.4 (colored) to branchpoint 1.76 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.89.8.4 / (download) - annotate - [select for diffs], Fri Oct 26 15:47:53 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.89.8.3: +3 -3 lines
Diff to previous 1.89.8.3 (colored) to branchpoint 1.89 (colored) to selected 1.37 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.89.14.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:51 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored) next main 1.90 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.85.4.3 / (download) - annotate - [select for diffs], Tue Oct 23 20:09:53 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.85.4.2: +3 -3 lines
Diff to previous 1.85.4.2 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Oct 19 12:01:22 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored) to selected 1.37 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.76.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:39:14 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.3: +77 -68 lines
Diff to previous 1.76.2.3 (colored) to branchpoint 1.76 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.89.8.3 / (download) - annotate - [select for diffs], Tue Aug 7 01:32:28 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.89.8.2: +3 -42 lines
Diff to previous 1.89.8.2 (colored) to branchpoint 1.89 (colored) to selected 1.37 (colored)

uhub power handler is not necessary; use pnp_generic_power

Revision 1.89.8.2 / (download) - annotate - [select for diffs], Tue Aug 7 01:00:59 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.89.8.1: +2 -3 lines
Diff to previous 1.89.8.1 (colored) to branchpoint 1.89 (colored) to selected 1.37 (colored)

Remove debug printf.

Revision 1.89.8.1 / (download) - annotate - [select for diffs], Tue Aug 7 01:00:22 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.89: +46 -2 lines
Diff to previous 1.89 (colored) to selected 1.37 (colored)

Add uhub power handler.

Revision 1.85.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:40 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.85: +77 -55 lines
Diff to previous 1.85 (colored) next main 1.86 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.85.8.3 / (download) - annotate - [select for diffs], Thu Jun 21 15:21:40 2007 UTC (16 years, 9 months ago) by itohy
Branch: itohy-usb1
Changes since 1.85.8.2: +64 -46 lines
Diff to previous 1.85.8.2 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored) to selected 1.37 (colored)

Pullup 1.87-1.88
I'm not sure we should use 1.89....

Revision 1.85.8.2 / (download) - annotate - [select for diffs], Mon Jun 18 13:53:06 2007 UTC (16 years, 9 months ago) by itohy
Branch: itohy-usb1
Changes since 1.85.8.1: +16 -5 lines
Diff to previous 1.85.8.1 (colored) to branchpoint 1.85 (colored) to selected 1.37 (colored)

- Pullup 1.86 (attach driver per interface) with #ifdef USB_USE_IFATTACH.
- Introduce sc_proto to simplify code (this is part of 1.86 and included
  without conditional compilation)

Revision 1.85.8.1 / (download) - annotate - [select for diffs], Tue May 22 14:57:42 2007 UTC (16 years, 10 months ago) by itohy
Branch: itohy-usb1
Changes since 1.85: +150 -59 lines
Diff to previous 1.85 (colored) to selected 1.37 (colored)

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.85.4.2 / (download) - annotate - [select for diffs], Tue Apr 10 13:24:34 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.85.4.1: +72 -50 lines
Diff to previous 1.85.4.1 (colored) to branchpoint 1.85 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Thu Mar 29 19:27:53 2007 UTC (17 years ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.86.2.1: +12 -3 lines
Diff to previous 1.86.2.1 (colored) next main 1.87 (colored) to selected 1.37 (colored)

Pullup to -current

Revision 1.84.2.2 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:50 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.84.2.1: +77 -55 lines
Diff to previous 1.84.2.1 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Mar 23 21:51:34 2007 UTC (17 years ago) by drochner
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, thorpej-atomic-base, thorpej-atomic, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.88: +11 -2 lines
Diff to previous 1.88 (colored) to selected 1.37 (colored)

Work around imperfect hub emulation in the ehci root hub (ohci is affected
too, but that's not critical): real hubs send port status change
notifications until acknowledged, ehci/ohci send only once so there is
a chance that this gets lost if notifications are disabled during a scan.
The temporary fix is to force a rescan; the real fix will involve a
change in interrupt handling in ehci/ohci which needs more work and
testing.
ehci is critical because a port status change during scan regularely
happens if a full/lowspeed device is connected, due to the handover
process.
Fixes a problem where full/lowspeed devices were not reattached after
a disconnect, reported by Kouichirou Hiratsuka and Juan RP
on current-users.

Revision 1.88 / (download) - annotate - [select for diffs], Mon Mar 19 14:02:56 2007 UTC (17 years ago) by drochner
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored) to selected 1.37 (colored)

fix variable in DEBUG code, from Lubomir Kundrak per PR kern/36036

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Sun Mar 18 00:06:44 2007 UTC (17 years ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.86: +62 -49 lines
Diff to previous 1.86 (colored) to selected 1.37 (colored)

First attempt to bring branch in sync with HEAD

Revision 1.87 / (download) - annotate - [select for diffs], Thu Mar 15 15:29:09 2007 UTC (17 years ago) by drochner
Branch: MAIN
Changes since 1.86: +62 -49 lines
Diff to previous 1.86 (colored) to selected 1.37 (colored)

Keep track of the per-port status change notifications coming in
through the interrupt pipe; during exploration check only the ports
where we got such a notification. This speeds up things.
(I believe we should go a step further and use a thread per hub
instead of per bus. If power management gets implemented, we should
be able to react quickly on a resume event.)
Try to simplify the logics in the explore function a bit. (The reattach
thing was hacked in badly, not sure whether I broke it. Only used
by if_atu.)
Clean up some dead code.

Revision 1.85.4.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:53 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.85: +7 -7 lines
Diff to previous 1.85 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Mar 13 13:51:55 2007 UTC (17 years ago) by drochner
Branch: MAIN
Branch point for: reinoud-bufcleanup
Changes since 1.85: +7 -7 lines
Diff to previous 1.85 (colored) to selected 1.37 (colored)

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.84.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:07 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.84: +2 -15 lines
Diff to previous 1.84 (colored) to selected 1.37 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Feb 26 13:33:09 2007 UTC (17 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans, itohy-usb1
Changes since 1.84: +2 -15 lines
Diff to previous 1.84 (colored) to selected 1.37 (colored)

Remove the check which disallows to connect a bus powered hub to another
bus powered hub. While one can interpret the spec that way, it is not
stated clearly, and is at most a side effect of power budgeting.
Also, there are devices which don't report correctly whether they
are self powered, so the check was unreliable.

Revision 1.76.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:46 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.2: +19 -5 lines
Diff to previous 1.76.2.2 (colored) to branchpoint 1.76 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.78.8.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:49 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.78.8.1: +35 -7 lines
Diff to previous 1.78.8.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Jan 7 16:50:02 2007 UTC (17 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.83: +19 -5 lines
Diff to previous 1.83 (colored) to selected 1.37 (colored)

Allocate storage for status change notifications dynamically, depending
on the number of ports. One byte wasn't even sufficient for 8 ports.
The code doesn't make use of the status bits yet, but it might be used
to speed up the exploration loop later.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:39 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.2.1: +21 -10 lines
Diff to previous 1.76.2.1 (colored) to branchpoint 1.76 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.78.10.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:17 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.78.10.1: +20 -10 lines
Diff to previous 1.78.10.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Dec 1 20:48:50 2006 UTC (17 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-base-1, 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, matt-nb4-arm-base, matt-nb4-arm
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.82: +18 -2 lines
Diff to previous 1.82 (colored) to selected 1.37 (colored)

-comment out transaction translator support for now, it doesn't do more
 than allocating memory, and it does wrongly use the hub's capabilities
 but not the actual setting
-switch a high-speed hub to "multiple TTs" but ignore errors; since
 we don't care whether there is one or multiple this is a "best effort"
 thing

Revision 1.82 / (download) - annotate - [select for diffs], Thu Nov 30 16:30:33 2006 UTC (17 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.81: +3 -5 lines
Diff to previous 1.81 (colored) to selected 1.37 (colored)

don't specify a polling interval for the interrupt pipe -- that's
what the descriptor is good for

Revision 1.78.8.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:51 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.78: +4 -7 lines
Diff to previous 1.78 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:26 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored) to selected 1.37 (colored)

__unused removal on arguments; approved by core.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Oct 24 21:03:30 2006 UTC (17 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.79: +2 -6 lines
Diff to previous 1.79 (colored) to selected 1.37 (colored)

clean up the USB attachment stuff a bit: use a dedicated interface
attribute ("usbdevif") to attach USB devices, be it a plain device or
a hub, and remove some strangeness caused by the former usb/uhub mess

Revision 1.78.10.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:52 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored) to selected 1.37 (colored)

sync with head

Revision 1.79 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:59 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored) to selected 1.37 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.77.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:55:33 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.37 (colored)

sync with head

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:07:44 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.77.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:30 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.37 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.77.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:25 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.77.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:38 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.37 (colored)

Sync with head.

Revision 1.77.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:30 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.37 (colored)

sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Apr 14 16:26:46 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.37 (colored)

Coverity CID 2330: Spell out that we are going to use the memory we allocated.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:01 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored) to selected 1.37 (colored)

merge ktrace-lwp.

Revision 1.64.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:08:05 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.64.2.6: +8 -6 lines
Diff to previous 1.64.2.6 (colored) next main 1.65 (colored) to selected 1.37 (colored)

Sync with HEAD. Here we go again...

Revision 1.76 / (download) - annotate - [select for diffs], Wed May 11 10:02:28 2005 UTC (18 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.75: +7 -5 lines
Diff to previous 1.75 (colored) to selected 1.37 (colored)

Don't keep the devinfo string on the stack, instead use malloc/free.
This should cure some rare stack overflows.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Apr 30 20:54:13 2005 UTC (18 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.37 (colored)

Root hubs don't have transaction translators, so don't print anything
about them for depth 0.  From FreeBSD.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:18 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.71: +9 -6 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.37 (colored)

sync with -current

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:58 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.37 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.64.2.6 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:55 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.64.2.5: +4 -4 lines
Diff to previous 1.64.2.5 (colored) to selected 1.37 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.74 / (download) - annotate - [select for diffs], Wed Mar 2 11:37:27 2005 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, 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, netbsd-3, kent-audio2-base
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.37 (colored)

Copyright maintenance.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:51 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.37 (colored)

nuke trailing whitespace

Revision 1.64.2.5 / (download) - annotate - [select for diffs], Mon Jan 24 08:35:36 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.64.2.4: +7 -4 lines
Diff to previous 1.64.2.4 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Jan 24 01:30:38 2005 UTC (19 years, 2 months ago) by joff
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km
Changes since 1.71: +7 -4 lines
Diff to previous 1.71 (colored) to selected 1.37 (colored)

Implementation requirements of usb_needs_reattach(), from OpenBSD and required
for atu(4) to do a USB reconnect after firmware upload.

Revision 1.64.2.4 / (download) - annotate - [select for diffs], Tue Nov 2 07:53:03 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.64.2.3: +46 -6 lines
Diff to previous 1.64.2.3 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Oct 26 05:00:59 2004 UTC (19 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.37 (colored)

Free memory in the correct order.  Pointed out by Jeff Rizzo.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Oct 23 16:17:56 2004 UTC (19 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.69: +33 -8 lines
Diff to previous 1.69 (colored) to selected 1.37 (colored)

Keep track of what high speed port (if any) a device belongs to so we can
set the transaction translator fields for the transfer.
Add a gross hack for split transaction completion in the ehci driver that
allows control transfers to be translated.  Interrupt transfers do not work.
Warn when any low/full speed device is opened.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Oct 22 12:03:21 2004 UTC (19 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.68: +17 -2 lines
Diff to previous 1.68 (colored) to selected 1.37 (colored)

Print information for high speed hubs about the number of TTs.
Print a message when low/full speed devices are ignored on high speed hubs.

Revision 1.64.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:33:46 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.64.2.2: +2 -2 lines
Diff to previous 1.64.2.2 (colored) to selected 1.37 (colored)

Fix the sync with head I botched.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:46 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.64.2.1: +0 -0 lines
Diff to previous 1.64.2.1 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:36 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.64: +9 -5 lines
Diff to previous 1.64 (colored) to selected 1.37 (colored)

Sync with HEAD

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Fri Jul 2 17:17:52 2004 UTC (19 years, 9 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.65.2.1: +6 -3 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.37 (colored)

Pull up revision 1.68 (requested by mycroft in ticket #572):
  Several fixes mostly related to USB:
   o Ignore a port error that happens to come in at the same
     time as a connect status change.  Some root hubs appear
     to report both.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Jun 29 06:30:05 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.67: +6 -3 lines
Diff to previous 1.67 (colored) to selected 1.37 (colored)

Ignore a port error that happens to come in at the same time as a connect
status change.  Some root hubs seem to report both.

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Jun 14 04:15:30 2004 UTC (19 years, 9 months ago) by jmc
Branch: netbsd-2-0
Changes since 1.65: +3 -2 lines
Diff to previous 1.65 (colored) to selected 1.37 (colored)

Pullup rev 1.67 (requested by petrov in ticket #470)

Initialize restartcnt.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jun 11 17:25:47 2004 UTC (19 years, 9 months ago) by petrov
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored) to selected 1.37 (colored)

Initialize restartcnt. from FreeBSD.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Apr 23 17:25:25 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored) to selected 1.37 (colored)

use bounded string ops (snprintf, strl*)

Revision 1.57.10.1 / (download) - annotate - [select for diffs], Mon Mar 15 04:37:39 2004 UTC (20 years ago) by jmc
Branch: netbsd-1-6
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.37 (colored)

Pullup rev 1.65 (requested by toshii in ticket #1599)

Use the correct wValue to get hub desriptors.
Also, make wValue checks of root hub codes less strict.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Dec 29 08:17:11 2003 UTC (20 years, 3 months ago) by toshii
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) to selected 1.37 (colored)

Use the correct wValue to get hub desriptors.
Also, make wValue checks of root hub codes less strict.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Feb 8 03:32:51 2003 UTC (21 years, 1 month ago) by ichiro
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.37 (colored)

change URL pointers of USB[1,2] specification

Revision 1.49.2.6 / (download) - annotate - [select for diffs], Fri Jan 3 17:08:17 2003 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.49.2.5: +3 -3 lines
Diff to previous 1.49.2.5 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Jan 2 03:20:09 2003 UTC (21 years, 3 months ago) by dsainty
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) to selected 1.37 (colored)

Initialise uhubdebug so that it's patchable in a kernel image

Revision 1.49.2.5 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:33 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.49.2.4: +2 -5 lines
Diff to previous 1.49.2.4 (colored) to branchpoint 1.49 (colored) to selected 1.37 (colored)

Catch up to -current.

Revision 1.49.4.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:39 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.49.4.2: +4 -7 lines
Diff to previous 1.49.4.2 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored) to selected 1.37 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.62 / (download) - annotate - [select for diffs], Wed Oct 2 16:53:16 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) to selected 1.37 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Oct 1 01:25:25 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.60: +4 -6 lines
Diff to previous 1.60 (colored) to selected 1.37 (colored)

Use CFATTACH_DECL().

Revision 1.60 / (download) - annotate - [select for diffs], Fri Sep 27 20:42:00 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored) to selected 1.37 (colored)

Declare all cfattach structures const.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Sep 23 05:51:20 2002 UTC (21 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.58: +2 -3 lines
Diff to previous 1.58 (colored) to selected 1.37 (colored)

Remove breaks after returns, unreachable returns and returns after
returns(!).

Revision 1.49.4.2 / (download) - annotate - [select for diffs], Fri Sep 6 08:46:57 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.49.4.1: +18 -18 lines
Diff to previous 1.49.4.1 (colored) to branchpoint 1.49 (colored) to selected 1.37 (colored)

sync kqueue branch with HEAD

Revision 1.49.2.4 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:58 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.49.2.3: +18 -18 lines
Diff to previous 1.49.2.3 (colored) to branchpoint 1.49 (colored) to selected 1.37 (colored)

Catch up to -current.

Revision 1.57.8.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:08 2002 UTC (21 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.57: +18 -18 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.37 (colored)

catch up with -current.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jul 11 21:14:30 2002 UTC (21 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.57: +18 -18 lines
Diff to previous 1.57 (colored) to selected 1.37 (colored)

Get rid of trailing white space.

Revision 1.49.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:58 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.49: +45 -11 lines
Diff to previous 1.49 (colored) to selected 1.37 (colored)

Sync kqueue branch with -current.

Revision 1.49.2.3 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:10 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.49.2.2: +31 -6 lines
Diff to previous 1.49.2.2 (colored) to branchpoint 1.49 (colored) to selected 1.37 (colored)

Catch up to -current.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Nov 20 16:08:37 2001 UTC (22 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored) to selected 1.37 (colored)

Add a comment.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Nov 20 13:48:03 2001 UTC (22 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.55: +12 -5 lines
Diff to previous 1.55 (colored) to selected 1.37 (colored)

Keep track of device speed for USB 2.0.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Nov 16 02:21:54 2001 UTC (22 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored) to selected 1.37 (colored)

Better error message.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Nov 16 01:57:47 2001 UTC (22 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.53: +19 -2 lines
Diff to previous 1.53 (colored) to selected 1.37 (colored)

Handle devices that disappear during reset gracefully.

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:18 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.49.2.1: +13 -4 lines
Diff to previous 1.49.2.1 (colored) to branchpoint 1.49 (colored) to selected 1.37 (colored)

Catch up to -current.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Nov 13 06:24:55 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored) to selected 1.37 (colored)

add RCSIDs

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:32 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.50: +10 -4 lines
Diff to previous 1.50 (colored) next main 1.51 (colored) to selected 1.37 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Oct 26 17:53:59 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.51: +8 -2 lines
Diff to previous 1.51 (colored) to selected 1.37 (colored)

Compare pointer with NULL instead of using them as a condition.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Oct 24 15:30:17 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.37 (colored)

Better debug message.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Mon Oct 8 20:11:37 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored) to selected 1.37 (colored)

Catch up to -current.

Revision 1.49.6.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:32 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.37 (colored)

Catch up with -current.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Sep 28 23:42:16 2001 UTC (22 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored) to selected 1.37 (colored)

Only clear the endpoint on stall (from FreeBSD).

Revision 1.32.2.3 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:26 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.2: +2 -2 lines
Diff to previous 1.32.2.2 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored) to selected 1.37 (colored)

Sync with HEAD.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jan 21 19:00:06 2001 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored) to selected 1.37 (colored)

Change the operation of the USB event thread.  Before it only performed
USB device discovery, now it can also perform (short) tasks for device
drivers that need a process context, but don't have one.
This is not pretty, but better than using busy-wait in an interrupt context.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:32 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.1: +2 -2 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) to selected 1.37 (colored)

Sync with HEAD

Revision 1.48 / (download) - annotate - [select for diffs], Fri Dec 29 01:24:56 2000 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored) to selected 1.37 (colored)

Update many URLs.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:43:27 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32: +185 -153 lines
Diff to previous 1.32 (colored) to selected 1.37 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Sep 24 02:08:38 2000 UTC (23 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.46: +8 -8 lines
Diff to previous 1.46 (colored) to selected 1.37 (colored)

Don't give up so easily if the device does not respond properly.
Mostly from Nick Hibma (FreeBSD).

Revision 1.46 / (download) - annotate - [select for diffs], Fri Sep 22 02:34:58 2000 UTC (23 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.37 (colored)

Fix a device diconnect bug found by  Christian Groessler <cpg@aladdin.de>.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:38 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.44: +7 -15 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.37 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jun 1 14:29:00 2000 UTC (23 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.44: +7 -15 lines
Diff to previous 1.44 (colored) to selected 1.37 (colored)

Bring the coding style into the 80s, i.e., get rid of __P and use
ANSI prototypes and declarations.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Apr 27 15:26:48 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored) to selected 1.37 (colored)

Change my email address.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Apr 21 19:51:43 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.42: +4 -2 lines
Diff to previous 1.42 (colored) to selected 1.37 (colored)

Use a 255 ms interrupt interval even if the descriptor in the hub asks
for something else, because the spec says that it should be 255.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Apr 21 16:05:50 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.41: +63 -72 lines
Diff to previous 1.41 (colored) to selected 1.37 (colored)

Change the exact sequence of commands when a hub is attached to follow
Windoze more closely.  This makes more devices work.

After two years of doing USB work I've finally access to a USB protocol
analyzer.  Which means I should be able to mimic what Windoze does in
certain cases instead of just following the specs.  Following the specs
is not enough since the devices often don't.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Mar 27 12:33:56 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.40: +8 -8 lines
Diff to previous 1.40 (colored) to selected 1.37 (colored)

Change (almost) all static to Static.  The symbol `Static' can then be defined
to `' or `static' depending on if you want to debug or not.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Feb 29 21:37:01 2000 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) to selected 1.37 (colored)

Distinguish between device and interface classes.
(I finally found a document that said that they were different.)

Revision 1.39 / (download) - annotate - [select for diffs], Sat Feb 12 23:44:16 2000 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.38: +14 -11 lines
Diff to previous 1.38 (colored) to selected 1.37 (colored)

Avoid panic when a non-working hub is detached.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Feb 2 13:18:46 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.37: +1 -6 lines
Diff to previous 1.37 (colored)

Generate usb events on attach and detach.

Revision 1.37 / (download) - annotate - [selected], Wed Feb 2 07:33:59 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.36: +5 -1 lines
Diff to previous 1.36 (colored)

Change the USB event mechanism to include more information about devices
and drivers.  Partly from FreeBSD.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jan 19 00:23:58 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored) to selected 1.37 (colored)

Add an argument to usbd_open_pipe_intr() to specify the polling interval
for an interrupt pipe in case we don't what what the descriptor suggests.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:43 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.29: +169 -102 lines
Diff to previous 1.29 (colored) next main 1.30 (colored) to selected 1.37 (colored)

Pull up to last week's -current.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Nov 24 23:13:19 1999 UTC (24 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.34: +18 -10 lines
Diff to previous 1.34 (colored) to selected 1.37 (colored)

Add some more debug printing.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 18 23:32:29 1999 UTC (24 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.33: +48 -10 lines
Diff to previous 1.33 (colored) to selected 1.37 (colored)

Cosmetic changes and some small improvements.  From FreeBSD and Nick Hibma.

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:36 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.32: +53 -54 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.37 (colored)

Sync with -current

Revision 1.33 / (download) - annotate - [select for diffs], Fri Nov 12 00:34:57 1999 UTC (24 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.32: +53 -54 lines
Diff to previous 1.32 (colored) to selected 1.37 (colored)

A number of stylistic changes to increase readability (many suggested
by Nick Hibma):
	use NULL not 0
	declare all local definitions static
	rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
	rename s/r/err/
	use implicit test for no err
	KNF

Revision 1.32 / (download) - annotate - [select for diffs], Wed Oct 13 08:10:56 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.31: +46 -15 lines
Diff to previous 1.31 (colored) to selected 1.37 (colored)

Merge in a large batch of changes from Nick Hibma <hibma@skylink.it> so
the USB stack compiles on FreeBSD again.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Oct 12 20:02:47 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.30: +4 -5 lines
Diff to previous 1.30 (colored) to selected 1.37 (colored)

Fix some bugs in USB controller detach code.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Oct 11 09:15:34 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.29: +12 -20 lines
Diff to previous 1.29 (colored) to selected 1.37 (colored)

Remove an obsolete comment.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Sep 15 10:25:31 1999 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.28: +3 -60 lines
Diff to previous 1.28 (colored) to selected 1.37 (colored)

Add preliminary (untested) code for detaching the USB host controller
(needed for CardBus based controllers).

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 13 19:18:17 1999 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored) to selected 1.37 (colored)

Rearrange the code a little so we can decide if we are in process
or interrupt context in a reliable way.  Mainly used for DIAGNOSTIC.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Sep 12 08:23:42 1999 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.26: +13 -1 lines
Diff to previous 1.26 (colored) to selected 1.37 (colored)

Add a flag in the request to determine if the data copying is done by the
driver or the usbdi layer.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Sep 5 19:32:18 1999 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.25: +8 -9 lines
Diff to previous 1.25 (colored) to selected 1.37 (colored)

Change the way the `struct device' base part of all driver softc are
declared and accessed to make it more portable.  Idea from Nick Hibma, FreeBSD.
No functional changes.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Sep 2 18:13:50 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.24: +9 -7 lines
Diff to previous 1.24 (colored) to selected 1.37 (colored)

Avoid null reference, from Nick Hibma, FreeBSD.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Aug 28 21:42:35 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored) to selected 1.37 (colored)

Change some 'struct device' to 'bdevice'.  From FreeBSD.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 23 22:55:14 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.22: +9 -1 lines
Diff to previous 1.22 (colored) to selected 1.37 (colored)

Make sure to mark the device as dying already in the (de)activate routine.
This avoids access to it before the detach routine has blown it away.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Aug 22 20:12:39 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored) to selected 1.37 (colored)

Move more of the transfer completion processing to HC independent code.
Fix some problems with transfer abort & timeout.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Aug 19 19:51:36 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.20: +8 -8 lines
Diff to previous 1.20 (colored) to selected 1.37 (colored)

Add a utility function, usbd_errstr(), to print error strings.  From FreeBSD.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 17 16:06:21 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.37 (colored)

Make some small changes to make it compile on OpenBSD.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Aug 14 14:49:32 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.18: +21 -4 lines
Diff to previous 1.18 (colored) to selected 1.37 (colored)

Some changes from FreeBSD (no functional differences).

Revision 1.16.4.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:40:22 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.16.4.1: +95 -65 lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.37 (colored)

Sync w/ -current.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 30 06:44:23 1999 UTC (24 years, 9 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.17: +95 -65 lines
Diff to previous 1.17 (colored) to selected 1.37 (colored)

Totally redo the way device detach is done.  It now uses a kernel event
thread and the config detach method.
Squish a number of space leaks on detach.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:19:27 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.16: +10 -4 lines
Diff to previous 1.16 (colored) to selected 1.37 (colored)

Sync w/ -current.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 14 16:59:47 1999 UTC (24 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.16: +10 -4 lines
Diff to previous 1.16 (colored) to selected 1.37 (colored)

Check that the hub ports actually power up.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jan 10 19:13:15 1999 UTC (25 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored) to selected 1.37 (colored)

Some minor updates from FreeBSD.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 10 11:13:36 1999 UTC (25 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored) to selected 1.37 (colored)

Update/add URLs to relevant USB specs.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 8 11:58:25 1999 UTC (25 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.13: +7 -8 lines
Diff to previous 1.13 (colored) to selected 1.37 (colored)

Various little fixes from the FreeBSD version.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 30 18:06:25 1998 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored) to selected 1.37 (colored)

Split usbd_delay_ms() into two functions, one can be used in
device drivers.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 28 02:23:25 1998 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored) to selected 1.37 (colored)

Add another power up wait so that some devices (that do not follow
the spec) start up more reliably.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Dec 26 12:53:02 1998 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.10: +171 -106 lines
Diff to previous 1.10 (colored) to selected 1.37 (colored)

Merge changes to make the USB stack work with FreeBSD.  The original
diffs from Nick Hibma <n_hibma@freebsd.org>, but with substantial
changes from me.
XXX Not tested on FreeBSD yet.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 9 19:24:28 1998 UTC (25 years, 3 months ago) by drochner
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.9: +21 -13 lines
Diff to previous 1.9 (colored) to selected 1.37 (colored)

make compile without USB_DEBUG, wrap lines to 80 cols

Revision 1.9 / (download) - annotate - [select for diffs], Wed Dec 9 01:01:24 1998 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.8: +2 -4 lines
Diff to previous 1.8 (colored) to selected 1.37 (colored)

Clear stall condition on interrupt pipe.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Dec 8 15:48:18 1998 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.7: +16 -10 lines
Diff to previous 1.7 (colored) to selected 1.37 (colored)

Use plaintest error messages for debugging.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 2 17:20:20 1998 UTC (25 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.37 (colored)

Avoid wrapping lines in attach printfs.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 25 22:32:05 1998 UTC (25 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored) to selected 1.37 (colored)

Make the copyright header conform to the NetBSD template.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 2 22:30:52 1998 UTC (25 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.37 (colored)

Improve some error messages.
Make some preparations for isochronous transfers.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Aug 1 20:11:38 1998 UTC (25 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.37 (colored)

Make sure to abort the interrupt pipe on disconnect of a mouse or keyboard.
Improve some error messages.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 1 18:16:19 1998 UTC (25 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored) to selected 1.37 (colored)

Switch from a global flag to tell if the host controller should use
polling to a local one for each controller.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 22 12:22:08 1998 UTC (25 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) to selected 1.37 (colored)

Loop over all configurations when trying to probe for interface drivers.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 12 19:52:00 1998 UTC (25 years, 8 months ago) by augustss
Branch: MAIN
Diff to selected 1.37 (colored)

Add USB support.  Supported so far:
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>