dyoung
711b27c90c
Delete unnecessary device-activation hooks. Simplify the rest.
2009-12-06 22:33:44 +00:00
mbalmer
2ce40e808d
Properly teardown the sysctl node and detach child driver if gpiosim gets
...
detached itself (e.g. when the 'drvctl -d gpiosimX' command is entered).
2009-08-07 08:08:18 +00:00
mbalmer
133c6e2a65
For the sake of correctness, call pmf_device_deregister() in the detach
...
function.
2009-08-06 13:16:49 +00:00
drochner
c07937acdd
add dummy pmf registration to allow suspend
2009-07-28 15:28:24 +00:00
mbalmer
9d8b69b23a
Do not attach gpiosim(4) at root, but make it a pseudo device.
...
With help from Matthias Drochner, thanks!
2009-07-27 17:40:57 +00:00
mbalmer
9e8bcf597e
Simplify the use _a lot_ by hooking this to sysctl instead of bio(4).
...
When it attaches, it creates a hw.gpiosimN.value sysctl node which can
then be used to manipulate the simulated device state.
2009-07-26 13:45:20 +00:00
mbalmer
8964d40bc5
Rework the GPIO framework. Tie it to the kauth(9) framework to control
...
access to the GPIO pins. Device drivers using GPIO pins can now be
attached and detached at runtime. GPIO pins can be named for easier
reference from userland programs. Introduce a new gpiosim(4) driver,
which is used for development.
Reviewed by many.
2009-07-25 16:17:10 +00:00