John Baldwin
64de80195b
Add a new device control utility for new-bus devices called devctl. This
...
allows the user to request administrative changes to individual devices
such as attach or detaching drivers or disabling and re-enabling devices.
- Add a new /dev/devctl2 character device which uses ioctls for device
requests. The ioctls use a common 'struct devreq' which is somewhat
similar to 'struct ifreq'.
- The ioctls identify the device to operate on via a string. This
string can either by the device's name, or it can be a bus-specific
address. (For unattached devices, a bus address is the only way to
locate a device.) Bus drivers register an eventhandler to claim
unrecognized device names that the driver recognizes as a valid address.
Two buses currently support addresses: ACPI recognizes any device
in the ACPI namespace via its full path starting with "\" and
the PCI bus driver recognizes an address specification of
'pci[<domain>:]<bus>:<slot>:<func>' (identical to the PCI selector
strings supported by pciconf).
- To make it easier to cut and paste, change the PnP location string
in the PCI bus driver to output a full PCI selector string rather
than 'slot=<slot> function=<func>'.
- Add a devctl(3) interface in libdevctl which provides a wrapper around
the ioctls and is the preferred interface for other userland code.
- Add a devctl(8) program which is a simple wrapper around the requests
supported by devctl(3).
- Add a device_is_suspended() function to check DF_SUSPENDED.
- Add a resource_unset_value() function that can be used to remove a
hint from the kernel environment. This is used to clear a
hint.<driver>.<unit>.disabled hint when re-enabling a boot-time
disabled device.
Reviewed by: imp (parts)
Requested by: imp (changing PCI location string)
Relnotes: yes
2015-02-06 16:09:01 +00:00
..
2014-06-28 03:56:17 +00:00
2014-03-30 23:43:36 +00:00
2014-10-28 12:00:39 +00:00
2015-02-06 16:09:01 +00:00
2014-06-21 00:53:56 +00:00
2014-11-21 21:01:24 +00:00
2014-09-19 03:51:26 +00:00
2014-09-18 21:01:41 +00:00
2015-01-23 15:14:30 +00:00
2014-11-21 21:01:24 +00:00
2014-11-21 21:01:24 +00:00
2015-02-01 20:00:08 +00:00
2014-11-21 21:01:24 +00:00
2014-08-08 11:47:04 +00:00
2015-01-30 01:13:07 +00:00
2014-10-08 01:03:32 +00:00
2014-09-23 06:31:15 +00:00
2015-01-04 23:14:04 +00:00
2014-09-23 06:31:15 +00:00
2014-09-23 05:54:18 +00:00
2014-10-13 13:13:42 +00:00
2014-08-08 11:47:09 +00:00
2015-01-06 12:59:37 +00:00
2014-11-21 21:01:24 +00:00
2014-10-28 12:00:39 +00:00
2014-11-26 04:23:21 +00:00
2015-01-28 04:44:42 +00:00
2014-09-22 14:27:26 +00:00
2014-12-27 18:24:15 +00:00
2015-01-05 16:43:22 +00:00
2014-09-18 21:03:13 +00:00
2015-01-06 12:59:37 +00:00
2014-08-30 18:01:45 +00:00
2014-09-18 21:05:59 +00:00
2014-11-21 21:01:24 +00:00
2014-03-09 02:07:15 +00:00
2014-09-19 03:51:26 +00:00
2014-09-19 03:51:26 +00:00
2014-12-01 11:45:24 +00:00
2014-09-19 03:51:26 +00:00
2015-01-14 05:41:31 +00:00
2014-09-18 20:53:02 +00:00
2015-01-06 12:59:37 +00:00
2014-02-02 19:17:28 +00:00
2014-10-17 17:34:05 +00:00
2014-10-16 18:04:43 +00:00
2015-01-06 15:48:20 +00:00
2015-01-06 12:59:37 +00:00
2015-01-06 12:59:37 +00:00
2014-12-20 16:40:49 +00:00
2015-01-06 12:59:37 +00:00
2014-11-20 20:50:05 +00:00
2015-01-06 12:59:37 +00:00
2015-01-23 15:14:30 +00:00
2015-01-19 21:53:00 +00:00
2015-02-06 01:10:04 +00:00
2015-01-23 15:14:30 +00:00
2015-01-21 19:53:52 +00:00
2014-09-19 03:51:26 +00:00
2014-10-10 19:12:04 +00:00
2014-11-21 21:01:24 +00:00
2014-12-17 07:27:19 +00:00
2015-02-03 15:41:09 +00:00
2014-09-27 20:43:01 +00:00
2015-01-18 18:06:40 +00:00
2015-02-04 16:19:31 +00:00
2015-01-05 09:58:32 +00:00
2014-09-18 20:11:28 +00:00
2014-08-07 21:56:32 +00:00
2014-09-24 11:23:55 +00:00
2014-07-26 21:33:17 +00:00
2015-01-06 12:59:37 +00:00
2015-01-05 09:58:32 +00:00
2015-01-27 15:28:46 +00:00
2014-09-25 20:40:24 +00:00
2015-01-31 18:57:45 +00:00
2015-02-03 18:59:52 +00:00
2014-11-24 16:12:11 +00:00
2014-03-16 10:55:57 +00:00
2015-01-21 20:08:24 +00:00
2014-12-24 03:49:33 +00:00
2014-09-18 20:21:46 +00:00
2014-11-21 21:01:24 +00:00
2014-10-30 21:21:53 +00:00
2015-02-02 19:22:34 +00:00
2014-09-19 03:51:26 +00:00
2014-10-21 07:31:21 +00:00
2015-01-06 12:59:37 +00:00
2014-09-18 21:07:05 +00:00
2014-11-21 21:01:24 +00:00
2014-08-05 23:35:19 +00:00
2014-08-05 23:58:49 +00:00
2014-11-21 21:01:24 +00:00
2014-11-21 21:01:24 +00:00
2015-01-28 16:08:07 +00:00
2014-11-21 21:01:24 +00:00
2014-11-26 04:23:21 +00:00
2014-11-26 04:23:21 +00:00
2014-11-06 18:14:12 +00:00
2015-01-06 12:59:37 +00:00
2014-09-19 03:51:26 +00:00
2015-01-18 07:08:06 +00:00
2014-11-21 21:01:24 +00:00
2014-09-23 06:31:15 +00:00
2014-12-22 16:53:04 +00:00
2014-11-13 22:06:57 +00:00
2014-09-19 03:51:26 +00:00
2014-12-24 07:04:04 +00:00
2015-02-05 07:46:34 +00:00
2015-01-05 09:58:32 +00:00
2014-05-20 19:55:06 +00:00
2015-01-21 20:32:36 +00:00
2014-09-19 03:51:26 +00:00
2014-12-19 01:41:51 +00:00
2014-09-28 07:40:26 +00:00
2015-01-18 18:06:40 +00:00
2015-01-18 18:06:40 +00:00
2014-09-24 11:33:43 +00:00
2014-11-22 20:31:20 +00:00
2015-01-06 12:59:37 +00:00
2014-09-19 03:51:26 +00:00
2015-01-06 12:59:37 +00:00
2014-12-17 21:27:27 +00:00
2014-10-10 14:17:42 +00:00
2014-11-18 21:51:01 +00:00
2014-07-28 14:27:05 +00:00
2015-01-24 12:51:15 +00:00
2014-06-28 03:56:17 +00:00
2014-09-19 03:51:26 +00:00
2015-01-21 09:01:48 +00:00
2014-02-23 18:36:45 +00:00
2014-06-13 18:20:44 +00:00
2014-11-18 21:55:50 +00:00
2015-01-20 09:07:28 +00:00
2015-01-06 12:59:37 +00:00
2014-11-21 21:01:24 +00:00
2015-01-25 22:29:23 +00:00
2014-11-23 21:37:33 +00:00
2015-01-06 15:41:23 +00:00
2014-10-11 19:36:59 +00:00
2014-10-13 06:51:40 +00:00
2014-11-21 21:01:24 +00:00
2014-12-17 21:26:25 +00:00
2014-12-01 11:45:24 +00:00
2015-01-06 12:59:37 +00:00
2014-06-28 03:56:17 +00:00
2014-09-25 18:43:52 +00:00
2014-11-20 20:50:05 +00:00
2014-09-19 03:51:26 +00:00
2015-01-24 19:49:27 +00:00
2014-10-16 18:04:43 +00:00
2014-09-23 05:54:18 +00:00
2015-01-12 07:43:19 +00:00
2014-09-10 05:44:15 +00:00
2014-11-20 20:50:05 +00:00
2014-11-11 04:48:09 +00:00
2014-06-10 21:40:43 +00:00
2014-10-17 17:34:05 +00:00
2014-06-17 18:10:06 +00:00
2014-12-01 11:45:24 +00:00
2015-01-30 14:09:07 +00:00
2015-01-05 09:58:32 +00:00
2014-12-03 00:47:05 +00:00
2015-01-16 06:19:52 +00:00
2015-02-06 16:09:01 +00:00
2015-01-06 12:59:37 +00:00
2015-01-06 12:59:37 +00:00
2014-02-05 14:44:22 +00:00
2014-09-19 03:51:26 +00:00
2014-04-28 17:58:40 +00:00
2014-11-18 21:58:57 +00:00
2015-01-02 22:45:55 +00:00
2014-10-21 07:31:21 +00:00
2014-12-01 11:45:24 +00:00
2014-12-01 11:45:24 +00:00
2014-02-02 19:17:28 +00:00
2014-09-19 03:51:26 +00:00
2014-11-11 14:30:35 +00:00
2014-10-21 01:31:24 +00:00
2014-09-19 10:33:23 +00:00
2014-11-11 18:15:05 +00:00
2014-10-21 07:31:21 +00:00
2015-01-06 12:59:37 +00:00
2015-01-06 12:59:37 +00:00
2014-11-18 22:02:37 +00:00
2015-01-17 19:57:03 +00:00
2014-02-02 19:17:28 +00:00
2014-09-19 03:55:19 +00:00
2015-02-05 12:10:23 +00:00
2014-09-19 03:51:26 +00:00
2014-08-20 16:07:17 +00:00
2014-05-16 21:19:17 +00:00
2014-11-21 21:01:24 +00:00
2014-06-28 03:56:17 +00:00
2015-01-12 07:37:06 +00:00
2014-10-13 06:51:40 +00:00
2015-01-06 12:59:37 +00:00
2015-01-06 12:59:37 +00:00
2015-01-06 12:59:37 +00:00
2015-01-15 16:09:35 +00:00
2014-09-19 03:51:26 +00:00
2014-11-20 20:50:05 +00:00
2014-09-18 21:16:05 +00:00
2014-11-13 18:01:51 +00:00
2014-11-21 21:01:24 +00:00
2015-01-27 17:33:18 +00:00
2014-03-16 10:55:57 +00:00
2014-11-21 21:34:19 +00:00
2015-01-06 12:59:37 +00:00
2015-01-06 12:59:37 +00:00
2014-11-21 21:01:24 +00:00
2014-09-19 03:51:26 +00:00
2015-01-05 19:49:20 +00:00
2014-09-18 20:06:10 +00:00
2014-09-24 11:58:23 +00:00
2015-02-05 21:50:51 +00:00
2014-06-13 19:34:34 +00:00
2015-02-02 18:20:10 +00:00
2014-09-18 20:30:47 +00:00
2014-09-23 06:31:15 +00:00
2015-01-27 05:34:46 +00:00
2014-12-01 11:45:24 +00:00
2014-09-18 20:17:27 +00:00
2015-02-05 19:36:29 +00:00
2014-09-24 11:31:46 +00:00
2015-01-06 12:59:37 +00:00
2014-12-01 11:45:24 +00:00
2014-02-04 20:52:33 +00:00
2015-01-06 12:59:37 +00:00
2014-11-18 22:12:51 +00:00
2014-11-22 18:40:14 +00:00
2014-11-20 20:09:18 +00:00
2014-12-20 20:07:48 +00:00
2014-09-19 03:51:26 +00:00
2015-01-06 12:59:37 +00:00
2015-02-04 08:26:43 +00:00
2014-09-18 20:35:22 +00:00