mbalmer
adac122864
Before trying to attach a child device driver, make sure the GPIO pins can
...
be mapped. This prevents drivers from later failing in the attach routine.
Problem found by me, solution suggested by jmcneill.
2009-08-21 12:53:42 +00:00
mbalmer
3270b18844
Use device_t instead of struct device * per cegger's request.
2009-07-25 16:30:44 +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
gmcgarry
333aec56cb
Both legs of a diagraph must return the same type.
2008-06-24 10:05:01 +00:00
dyoung
fef8b3ebea
#include <sys/device.h> for device_t definition.
2008-05-27 19:26:27 +00:00
cegger
b574865ea4
gpio(4): Extend with open/close to request/release the ppbus(4) on open/close.
...
ppbus(4): Extend to attach on gpiobus.
From Hans Rosenfeld from tech-kern:
http://mail-index.netbsd.org/tech-kern/2008/04/28/msg001168.html
Hint: Hans sent me this diff which differs in the one from tech-kern in:
- 2-clause license
- sprinkled some consts
2008-04-29 14:07:36 +00:00
riz
74baa88e7d
Flesh out the framework for attaching drivers to the GPIO pins.
...
From OpenBSD, Alexander Yurchenko <grange@openbsd
2006-02-20 03:18:36 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
drochner
dbbdf74175
-kill gba_name in attach arg
...
-use constants from locators.h
2005-10-11 16:01:03 +00:00
jmcneill
bec79ef231
Import general purpose I/O framework from OpenBSD.
2005-09-27 02:34:02 +00:00