Document the new USB notification types.
This commit is contained in:
parent
a1a667ecf1
commit
139e9ad4d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207072
@ -250,18 +250,40 @@ CIS-vendor.
|
|||||||
Device class.
|
Device class.
|
||||||
.It Li device
|
.It Li device
|
||||||
Device ID.
|
Device ID.
|
||||||
|
.It Li devclass
|
||||||
|
Device Class (USB)
|
||||||
|
.It Li devsubclass
|
||||||
|
Device Sub-class (USB)
|
||||||
.It Li device-name
|
.It Li device-name
|
||||||
Name of attached/detached device.
|
Name of attached/detached device.
|
||||||
|
.It Li endpoints
|
||||||
|
Endpoint count (USB)
|
||||||
.It Li function
|
.It Li function
|
||||||
Card functions.
|
Card functions.
|
||||||
|
.It Li interface
|
||||||
|
Interface ID (USB)
|
||||||
|
.It Li intclass
|
||||||
|
Interface Class (USB)
|
||||||
|
.It Li intprotocol
|
||||||
|
Interface Protocol (USB)
|
||||||
|
.It Li intsubclass
|
||||||
|
Interface Sub-class (USB)
|
||||||
.It Li manufacturer
|
.It Li manufacturer
|
||||||
Manufacturer ID (pccard).
|
Manufacturer ID (pccard).
|
||||||
|
.It Li mode
|
||||||
|
Peripheral mode (USB)
|
||||||
.It Li notify
|
.It Li notify
|
||||||
Match the value of the
|
Match the value of the
|
||||||
.Dq Li notify
|
.Dq Li notify
|
||||||
variable.
|
variable.
|
||||||
|
.It Li parent
|
||||||
|
Parent device
|
||||||
|
.It Li port
|
||||||
|
Hub port number (USB)
|
||||||
.It Li product
|
.It Li product
|
||||||
Product ID (pccard).
|
Product ID (pccard/USB).
|
||||||
|
.It Li release
|
||||||
|
Hardware revision (USB)
|
||||||
.It Li serial
|
.It Li serial
|
||||||
Serial Number (USB).
|
Serial Number (USB).
|
||||||
.It Li slot
|
.It Li slot
|
||||||
@ -342,6 +364,27 @@ The
|
|||||||
node is destroyed.
|
node is destroyed.
|
||||||
.El
|
.El
|
||||||
.El
|
.El
|
||||||
|
.It Li USB
|
||||||
|
Events related to the USB subsystem.
|
||||||
|
.Bl -tag -width ".Sy Subsystem" -compact
|
||||||
|
.It Sy Subsystem
|
||||||
|
.It Li DEVICE
|
||||||
|
.Bl -tag -width ".Li DETACH" -compact
|
||||||
|
.It Sy Type
|
||||||
|
.It Li ATTACH
|
||||||
|
USB device is attached to the system.
|
||||||
|
.It Li DETACH
|
||||||
|
USB device is detached from the system.
|
||||||
|
.El
|
||||||
|
.It Li INTERFACE
|
||||||
|
.Bl -tag -width ".Li DETACH" -compact
|
||||||
|
.It Sy Type
|
||||||
|
.It Li ATTACH
|
||||||
|
USB interface is attached from a device.
|
||||||
|
.It Li DETACH
|
||||||
|
USB interface is detached from a device.
|
||||||
|
.El
|
||||||
|
.El
|
||||||
.It Li coretemp
|
.It Li coretemp
|
||||||
Events related to the
|
Events related to the
|
||||||
.Xr coretemp 4
|
.Xr coretemp 4
|
||||||
@ -460,6 +503,17 @@ notify 0 {
|
|||||||
action "logger Lid opened, the sleeper must awaken!";
|
action "logger Lid opened, the sleeper must awaken!";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#
|
||||||
|
# Match a USB device type
|
||||||
|
#
|
||||||
|
notify 0 {
|
||||||
|
match "system" "USB";
|
||||||
|
match "subsystem" "INTERFACE";
|
||||||
|
match "type" "ATTACH";
|
||||||
|
match "intclass" "0x0e";
|
||||||
|
action "logger USB video device attached";
|
||||||
|
};
|
||||||
|
|
||||||
#
|
#
|
||||||
# Try to configure ath and wi devices with pccard_ether
|
# Try to configure ath and wi devices with pccard_ether
|
||||||
# as they are attached.
|
# as they are attached.
|
||||||
|
Loading…
Reference in New Issue
Block a user