/freebsd-current/lib/libgpio/ |
H A D | Makefile | 2 LIB= gpio 5 SRCS= gpio.c 7 MAN+= gpio.3 11 MLINKS= gpio.3 gpio_open.3 \ 12 gpio.3 gpio_open_device.3 \ 13 gpio.3 gpio_close.3 \ 14 gpio.3 gpio_pin_list.3 \ 15 gpio.3 gpio_pin_config.3 \ 16 gpio.3 gpio_pin_set_flags.3 \ 17 gpio [all...] |
/freebsd-current/sys/dev/sdhci/ |
H A D | sdhci_fdt_gpio.c | 27 * Support routines usable by any SoC sdhci bridge driver that uses gpio pins 33 #include <sys/gpio.h> 38 #include <dev/gpio/gpiobusvar.h> 65 struct sdhci_fdt_gpio *gpio = arg; local 67 sdhci_handle_card_present(gpio->slot, sdhci_fdt_gpio_get_present(gpio)); 74 cd_setup(struct sdhci_fdt_gpio *gpio, phandle_t node) argument 80 dev = gpio->dev; 87 gpio->slot->opt |= SDHCI_NON_REMOVABLE; 88 gpio 171 wp_setup(struct sdhci_fdt_gpio *gpio, phandle_t node) argument 199 struct sdhci_fdt_gpio *gpio; local 214 sdhci_fdt_gpio_teardown(struct sdhci_fdt_gpio *gpio) argument 233 sdhci_fdt_gpio_get_present(struct sdhci_fdt_gpio *gpio) argument 250 sdhci_fdt_gpio_get_readonly(struct sdhci_fdt_gpio *gpio) argument [all...] |
H A D | sdhci_fdt_gpio.h | 27 * Support routines usable by any SoC sdhci bridge driver that uses gpio pins 45 * Process FDT properties that use gpio pins and set up interrupt handling (if 49 * return the values from standard sdhci registers. If the gpio controller 51 * for card presence detection. If it can't access the gpio pin at all it sets 56 void sdhci_fdt_gpio_teardown(struct sdhci_fdt_gpio *gpio); 64 bool sdhci_fdt_gpio_get_present(struct sdhci_fdt_gpio *gpio); 65 int sdhci_fdt_gpio_get_readonly(struct sdhci_fdt_gpio *gpio);
|
/freebsd-current/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_gpio.c | 39 ar5212GpioCfgOutput(struct ath_hal *ah, uint32_t gpio, HAL_GPIO_MUX_TYPE type) argument 41 HALASSERT(gpio < AR_NUM_GPIO); 48 OS_REG_READ(ah, AR_GPIOCR) | AR_GPIOCR_CR_A(gpio)); 57 ar5212GpioCfgInput(struct ath_hal *ah, uint32_t gpio) argument 59 HALASSERT(gpio < AR_NUM_GPIO); 62 (OS_REG_READ(ah, AR_GPIOCR) &~ AR_GPIOCR_CR_A(gpio)) 63 | AR_GPIOCR_CR_N(gpio)); 72 ar5212GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val) argument 76 HALASSERT(gpio < AR_NUM_GPIO); 79 reg &= ~(1 << gpio); 90 ar5212GpioGet(struct ath_hal *ah, uint32_t gpio) argument 105 ar5212GpioSetIntr(struct ath_hal *ah, u_int gpio, uint32_t ilevel) argument [all...] |
/freebsd-current/sys/dev/ath/ath_hal/ar5312/ |
H A D | ar5315_gpio.c | 38 ar5315GpioCfgOutput(struct ath_hal *ah, uint32_t gpio, HAL_GPIO_MUX_TYPE type) argument 42 HALASSERT(gpio < AR_NUM_GPIO); 45 (OS_REG_READ(ah, gpioOffset+AR5315_GPIODIR) &~ AR5315_GPIODIR_M(gpio)) 46 | AR5315_GPIODIR_O(gpio)); 55 ar5315GpioCfgInput(struct ath_hal *ah, uint32_t gpio) argument 59 HALASSERT(gpio < AR_NUM_GPIO); 62 (OS_REG_READ(ah, gpioOffset+AR5315_GPIODIR) &~ AR5315_GPIODIR_M(gpio)) 63 | AR5315_GPIODIR_I(gpio)); 72 ar5315GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val) argument 77 HALASSERT(gpio < AR_NUM_GPI 91 ar5315GpioGet(struct ath_hal *ah, uint32_t gpio) argument 108 ar5315GpioSetIntr(struct ath_hal *ah, u_int gpio, uint32_t ilevel) argument [all...] |
H A D | ar5312_gpio.c | 38 ar5312GpioCfgOutput(struct ath_hal *ah, uint32_t gpio, HAL_GPIO_MUX_TYPE type) argument 42 HALASSERT(gpio < AR_NUM_GPIO); 45 (OS_REG_READ(ah, gpioOffset+AR5312_GPIOCR) &~ AR_GPIOCR_CR_A(gpio)) 46 | AR_GPIOCR_CR_A(gpio)); 55 ar5312GpioCfgInput(struct ath_hal *ah, uint32_t gpio) argument 59 HALASSERT(gpio < AR_NUM_GPIO); 62 (OS_REG_READ(ah, gpioOffset+AR5312_GPIOCR) &~ AR_GPIOCR_CR_A(gpio)) 63 | AR_GPIOCR_CR_N(gpio)); 72 ar5312GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val) argument 77 HALASSERT(gpio < AR_NUM_GPI 91 ar5312GpioGet(struct ath_hal *ah, uint32_t gpio) argument 108 ar5312GpioSetIntr(struct ath_hal *ah, u_int gpio, uint32_t ilevel) argument [all...] |
H A D | ar5312.h | 44 extern HAL_BOOL ar5312GpioCfgOutput(struct ath_hal *, uint32_t gpio, 46 extern HAL_BOOL ar5312GpioCfgInput(struct ath_hal *, uint32_t gpio); 47 extern HAL_BOOL ar5312GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val); 48 extern uint32_t ar5312GpioGet(struct ath_hal *ah, uint32_t gpio); 52 extern HAL_BOOL ar5315GpioCfgOutput(struct ath_hal *, uint32_t gpio, 54 extern HAL_BOOL ar5315GpioCfgInput(struct ath_hal *, uint32_t gpio); 55 extern HAL_BOOL ar5315GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val); 56 extern uint32_t ar5315GpioGet(struct ath_hal *ah, uint32_t gpio);
|
/freebsd-current/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_gpio.c | 35 cfgOutputMux(struct ath_hal *ah, uint32_t gpio, uint32_t type) argument 40 HALDEBUG(ah, HAL_DEBUG_GPIO, "%s: gpio=%d, type=%d\n", 41 __func__, gpio, type); 44 if (gpio > 11) 46 else if (gpio > 5) 55 gpio_shift = (gpio % 6) * 5; 84 ar5416GpioCfgOutput(struct ath_hal *ah, uint32_t gpio, HAL_GPIO_MUX_TYPE type) argument 90 HALASSERT(gpio < AH_PRIVATE(ah)->ah_caps.halNumGpioPins); 107 "%s: gpio=%d, type=%d\n", __func__, gpio, typ 137 ar5416GpioCfgInput(struct ath_hal *ah, uint32_t gpio) argument 161 ar5416GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val) argument 182 ar5416GpioGet(struct ath_hal *ah, uint32_t gpio) argument 208 ar5416GpioSetIntr(struct ath_hal *ah, u_int gpio, uint32_t ilevel) argument [all...] |
/freebsd-current/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_gpio.c | 38 u_int32_t gpio, 61 if (gpio <= MAX_JTAG_GPIO_PIN) { 67 out_func = gpio / 4; 68 shift = (gpio % 4); 75 flags &= ~(1 << gpio); 82 ar9300_gpio_cfg_output_mux(struct ath_hal *ah, u_int32_t gpio, u_int32_t type) argument 88 if (gpio > 11) { 90 } else if (gpio > 5) { 101 gpio_shift = (gpio % 6) * 5; 112 u_int32_t gpio, 36 ar9340_soc_gpio_cfg_output_mux( struct ath_hal *ah, u_int32_t gpio, u_int32_t ah_signal_type) argument 110 ar9300_gpio_cfg_output( struct ath_hal *ah, u_int32_t gpio, HAL_GPIO_MUX_TYPE hal_signal_type) argument 240 ar9300_gpio_cfg_output_led_off( struct ath_hal *ah, u_int32_t gpio, HAL_GPIO_MUX_TYPE halSignalType) argument 344 ar9300_gpio_cfg_input(struct ath_hal *ah, u_int32_t gpio) argument 375 ar9300_gpio_set(struct ath_hal *ah, u_int32_t gpio, u_int32_t val) argument 393 ar9300_gpio_get(struct ath_hal *ah, u_int32_t gpio) argument 424 ar9300_gpio_set_intr(struct ath_hal *ah, u_int gpio, u_int32_t ilevel) argument [all...] |
/freebsd-current/usr.sbin/gpioctl/ |
H A D | Makefile | 7 LIBADD= gpio
|
/freebsd-current/sys/contrib/device-tree/include/dt-bindings/gpio/ |
H A D | tegra241-gpio.h | 5 * This header provides constants for the nvidia,tegra241-gpio DT binding. 10 * The second cell contains standard flag values specified in gpio.h. 16 #include <dt-bindings/gpio/gpio.h>
|
H A D | aspeed-gpio.h | 3 * This header provides constants for binding aspeed,*-gpio. 8 * The second cell contains standard flag values specified in gpio.h. 14 #include <dt-bindings/gpio/gpio.h>
|
H A D | tegra-gpio.h | 3 * This header provides constants for binding nvidia,tegra*-gpio. 8 * The second cell contains standard flag values specified in gpio.h. 14 #include <dt-bindings/gpio/gpio.h>
|
H A D | tegra194-gpio.h | 5 * This header provides constants for binding nvidia,tegra194-gpio*. 10 * The second cell contains standard flag values specified in gpio.h. 16 #include <dt-bindings/gpio/gpio.h>
|
H A D | tegra186-gpio.h | 3 * This header provides constants for binding nvidia,tegra186-gpio*. 8 * The second cell contains standard flag values specified in gpio.h. 14 #include <dt-bindings/gpio/gpio.h>
|
/freebsd-current/sys/modules/gpio/gpioled/ |
H A D | Makefile | 31 .PATH: ${SRCTOP}/sys/dev/gpio/ 41 CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
|
/freebsd-current/sys/modules/gpio/gpioiic/ |
H A D | Makefile | 31 .PATH: ${SRCTOP}/sys/dev/gpio/ 38 CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
|
/freebsd-current/sys/modules/gpio/gpiospi/ |
H A D | Makefile | 31 .PATH: ${SRCTOP}/sys/dev/gpio/ 38 CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
|
/freebsd-current/sys/modules/gpio/gpiopps/ |
H A D | Makefile | 31 .PATH: ${SRCTOP}/sys/dev/gpio/ 37 CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
|
/freebsd-current/sys/modules/gpio/gpiokeys/ |
H A D | Makefile | 4 .PATH: ${SRCTOP}/sys/dev/gpio/ 11 CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
|
/freebsd-current/sys/modules/gpio/gpioths/ |
H A D | Makefile | 3 .PATH: ${SRCTOP}/sys/dev/gpio/ 16 CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
|
/freebsd-current/sys/arm/ti/omap4/ |
H A D | omap4_gpio.c | 35 #include <sys/gpio.h> 52 {"ti,omap4-gpio", 1}, 53 {"ti,gpio", 1}, 75 omap4_gpio_set_flags(device_t dev, uint32_t gpio, uint32_t flags) argument 92 return ti_pinmux_padconf_set_gpiomode((sc->sc_bank-1)*32 + gpio, state); 96 omap4_gpio_get_flags(device_t dev, uint32_t gpio, uint32_t *flags) argument 104 if (ti_pinmux_padconf_get_gpiomode((sc->sc_bank-1)*32 + gpio, &state) != 0) { 143 DEFINE_CLASS_1(gpio, omap4_gpio_driver, omap4_gpio_methods,
|
/freebsd-current/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_firmware.h | 153 uint32_t gpio; member in struct:msg_get_gpio_state::__anon1001 156 uint32_t gpio; member in struct:msg_get_gpio_state::__anon1002 163 uint32_t gpio; member in struct:msg_set_gpio_state::__anon1003 167 uint32_t gpio; member in struct:msg_set_gpio_state::__anon1004 173 uint32_t gpio; member in struct:msg_get_gpio_config::__anon1005 176 uint32_t gpio; member in struct:msg_get_gpio_config::__anon1006 186 uint32_t gpio; member in struct:msg_set_gpio_config::__anon1007 194 uint32_t gpio; member in struct:msg_set_gpio_config::__anon1008
|
/freebsd-current/sys/arm/ti/ |
H A D | ti_pinmux.h | 74 int ti_pinmux_padconf_set_gpiomode(uint32_t gpio, unsigned int state); 75 int ti_pinmux_padconf_get_gpiomode(uint32_t gpio, unsigned int *state);
|
/freebsd-current/sys/modules/gpio/gpiobus/ |
H A D | Makefile | 31 .PATH: ${SRCTOP}/sys/dev/gpio/ 42 CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
|