mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-19 23:23:16 +03:00
796a9d1091
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
33 lines
1016 B
C
33 lines
1016 B
C
/*
|
|
* Linux Broadcom BCM47xx GPIO char driver
|
|
*
|
|
* Copyright 2007, Broadcom Corporation
|
|
* All Rights Reserved.
|
|
*
|
|
* THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
|
|
* KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
|
|
* SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
* FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
|
|
*
|
|
*/
|
|
|
|
#ifndef _linux_gpio_h_
|
|
#define _linux_gpio_h_
|
|
|
|
struct gpio_ioctl {
|
|
uint32 mask;
|
|
uint32 val;
|
|
};
|
|
|
|
#define GPIO_IOC_MAGIC 'G'
|
|
|
|
/* reserve/release a gpio to the caller */
|
|
#define GPIO_IOC_RESERVE _IOWR(GPIO_IOC_MAGIC, 1, struct gpio_ioctl)
|
|
#define GPIO_IOC_RELEASE _IOWR(GPIO_IOC_MAGIC, 2, struct gpio_ioctl)
|
|
/* ioctls to read/write the gpio registers */
|
|
#define GPIO_IOC_OUT _IOWR(GPIO_IOC_MAGIC, 3, struct gpio_ioctl)
|
|
#define GPIO_IOC_IN _IOWR(GPIO_IOC_MAGIC, 4, struct gpio_ioctl)
|
|
#define GPIO_IOC_OUTEN _IOWR(GPIO_IOC_MAGIC, 5, struct gpio_ioctl)
|
|
|
|
#endif /* _linux_gpio_h_ */
|