summaryrefslogtreecommitdiffstats
path: root/sys/dev/gpio/gpio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Test for device_lookup() returning NULL in gpioioctl() and gpioclose().jsg2017-08-181-1/+7
| | | | Coverity CIDs 1453046, 1453184.
* simple sizes for free()deraadt2015-08-271-6/+5
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-3/+3
| | | | after discussions with beck deraadt kettenis.
* Add a 'flag' locator to gpioiic(4), and define a first flagmatthieu2011-10-031-1/+3
| | | | | | value to swap the SDA and SCL pins assigment during attach. Mostly from work with mbalmer@NetBSD. ok miod@
* submatch functions used with config_found_sm() are required to invoke themiod2009-08-291-2/+5
| | | | | | driver's ca_match function. (only offender in the whole tree) ok deraadt@
* Add my copyright here, too.mbalmer2008-11-261-1/+2
|
* Change the semantics of gpio(4) devices by locking down pinmbalmer2008-11-261-40/+149
| | | | | | | | | | | configuration and device attachment/detachment to securelevel 0. GPIO pins can now only be configured at securelevel 0. Once the securelevel is raised, only pins that have been configured and set for securelevel access using the GPIOPINSET ioctl are accessible. This also adds the possibility to give GPIO pins a name. ok uwe@
* - Add two new ioctls to gpio(4), GPIOATTACH and GPIODETACH, to allow to attachmbalmer2008-11-241-4/+47
| | | | | | | | | | | | and detach devices on a gpiobus at runtime. The offset and mask locators in kernel config files can still be used for static configuration, so this does not break existing custome kernel configs. - Have gpioow(4) unmap the pins it used from the gpiobus during detach Changes to gpioctl(8) will be a separate committ. ok uwe
* Don't allow to change gpio pin state if /dev/gpio was openedgrange2006-03-261-1/+11
| | | | in read-only mode. Spotted by form@.
* Add gpio_pin_caps() method to provide pin capabilities.grange2006-01-141-1/+9
|
* Finish framework for attaching kernel drivers to the GPIO pins.grange2006-01-051-5/+86
| | | | Not used yet.
* Let gpio_detach() do something useful.grange2004-11-231-2/+14
| | | | Tested by reyk@ on gpio@ath.
* added detach function to support hotpluggable gpios.reyk2004-11-221-2/+10
| | | | ok grange@
* Tweak in comment.grange2004-09-151-2/+2
|
* A framework for supporting various General Purpose Input/Output (GPIO)grange2004-06-031-0/+241
devices. Such devices provide a set of pins that you can use to connect for example leds to it. The pins can be accessed either from userland through the /dev/gpio* device files or from the kernel drivers. The latter is necessary for implementing timing-sensitive things like i2c or 1-wire master controller. ok deraadt@