freebsd-nq/sys
Andrew Thompson 3acd904d85 Change usb devd events from fake attach to a notify. The ugen device is not a
proper device_t so it faked the devctl event to appear like one, this is now a
notify which allows more information to be passed.

We notify for both the device attach/detach and for each usb interface. A devd
rule can now match on the interface properties, including composite devices
which may have a uvideo interface and also usound and possibly uhid too.

An example to match a umass device with a scsi subclass and BBB protocol would be

notify 100 {
	match "system"          "USB";
	match "subsystem"       "INTERFACE";
	match "type"            "ATTACH";
	match "intclass"        "0x08";
	match "intsubclass"     "0x06";
	match "intprotocol"     "0x50";
	action ...
};

The old attach devctl event has been retained for the moment to make merging to
8.1 easier. This was never compatible with 7.x or earlier due to the ugen regex
change needed.

Reviewed by:	warner
MFC after:	1 week
2010-04-21 21:51:14 +00:00
..
amd64 As was done in r155238 for i386 and in r155239 for amd64, clear the carry 2010-04-21 11:17:16 +00:00
arm Add BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all the 2010-04-08 19:34:55 +00:00
boot Add driver for Silicon Integrated Systems SiS190/191 Fast/Gigabit Ethernet. 2010-04-14 20:45:33 +00:00
bsm
cam scsi_cd: CD_FLAG_VALID_MEDIA is sufficient to set d_sectorsize and 2010-04-15 08:29:14 +00:00
cddl Rename the cyclic global variable lapic_cyclic_clock_func to just 2010-04-20 17:03:30 +00:00
compat Provide compat32 shims for kinfo_proc sysctl. This allows 32bit ps(1) to 2010-04-21 19:32:00 +00:00
conf Remove unused file. 2010-04-19 07:51:57 +00:00
contrib We don't need the definition for in_cksum repeated here since we get 2010-04-14 20:50:07 +00:00
crypto
ddb Move two copies of the same definition to a common include file. 2010-04-14 23:06:07 +00:00
dev Change usb devd events from fake attach to a notify. The ugen device is not a 2010-04-21 21:51:14 +00:00
fs The cache_enter(9) function shall not be called for doomed dvp. 2010-04-20 10:19:27 +00:00
gdb
geom Fix ddb(4) "show geom addr" command when INVARIANTS is enabled. Don't 2010-04-19 20:07:35 +00:00
gnu
i386 Rename the cyclic global variable lapic_cyclic_clock_func to just 2010-04-20 17:03:30 +00:00
ia64 Populate the sysctl tree with any MCA records we collected. 2010-04-13 22:20:12 +00:00
isa Introduce the new kernel sub-tree x86 which should contain all the code 2010-02-25 14:13:39 +00:00
kern Fix typo. 2010-04-21 20:04:42 +00:00
kgssapi
libkern Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
mips Add the necessary hooks for dtrace cyclic module. 2010-04-20 17:22:20 +00:00
modules The amd64 version of the cyclic dtrace module is a verbatim copy of the 2010-04-20 16:30:17 +00:00
net Move two copies of the same definition to a common include file. 2010-04-14 23:06:07 +00:00
net80211 Make this code a little more portable by wrapping the mtx calls into 2010-04-14 18:29:40 +00:00
netatalk
netgraph Start copyright notice with /*- 2010-04-07 16:29:10 +00:00
netinet Avoid memory access after free. Use the (shortend) copy for the 2010-04-21 10:21:34 +00:00
netinet6 Plug reference leaks in the link-layer code ("new-arp") that previously 2010-04-11 16:04:08 +00:00
netipsec Locks SPTREE when setting some SP entries to state DEAD. 2010-04-15 12:40:33 +00:00
netipx
netnatm
netncp Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
netsmb Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
nfs Factor out the code shared between NFS client and server into its own 2010-02-16 20:00:21 +00:00
nfsclient Simplify code a bit. 2010-02-18 22:10:55 +00:00
nfsserver Patch the regular NFS server so that it returns ESTALE to the client 2010-03-26 01:19:29 +00:00
nlm
opencrypto
pc98 Comply with the new cyclic dtrace module variable name 2010-04-21 11:28:13 +00:00
pci Consistently use capital letters. 2010-04-09 23:00:24 +00:00
powerpc With r205496 in place we should ensure that nargs and nreturns are always 2010-04-02 21:48:27 +00:00
rpc When the regular NFS server replied to a UDP client out of the replay 2010-03-23 23:03:30 +00:00
security Update device-labeling logic for Biba, LOMAC, and MLS to recognize new-style 2010-03-02 15:05:48 +00:00
sparc64 Update for UltraSPARC-IV{,+} and SPARC64 V, VI, VII and VIIIfx CPUs. 2010-04-11 15:35:17 +00:00
sun4v Change the arguments of exec_setregs() so that it receives a pointer 2010-03-25 14:24:00 +00:00
sys Make this file more C++ friendly. 2010-04-20 17:57:43 +00:00
teken Just use <stdint.h> instead of <inttypes.h>. We don't need it here. 2010-04-03 17:22:28 +00:00
tools
ufs The cache_enter(9) function shall not be called for doomed dvp. 2010-04-20 10:19:27 +00:00
vm Eliminate an unnecessary call to pmap_remove_all(). If a page belongs to 2010-04-20 04:16:39 +00:00
x86 Fix another instance of lapic_cyclic_clock_func. 2010-04-20 21:04:57 +00:00
xdr
xen don't hold spin lock across free 2010-02-21 01:12:18 +00:00
Makefile