/freebsd-11-stable/stand/kshim/ |
H A D | bsd_global.h | 32 #include <sys/gpio.h>
|
/freebsd-11-stable/sys/dev/gpio/ |
H A D | gpioc.c | 28 __FBSDID("$FreeBSD: stable/11/sys/dev/gpio/gpioc.c 324755 2017-10-19 16:07:57Z ian $"); 34 #include <sys/gpio.h> 40 #include <dev/gpio/gpiobusvar.h> 228 DRIVER_MODULE(gpioc, gpio, gpioc_driver, gpioc_devclass, 0, 0);
|
H A D | gpiopps.c | 31 #include <sys/gpio.h> 39 #include <dev/gpio/gpiobusvar.h> 47 {"pps-gpio", 1}, 204 * Look up the configured gpio pin and ensure it can be configured for 209 device_printf(dev, "Cannot obtain gpio pin\n"); 216 device_printf(dev, "Cannot query capabilities of gpio pin\n");
|
H A D | gpioiic.c | 29 __FBSDID("$FreeBSD: stable/11/sys/dev/gpio/gpioiic.c 354064 2019-10-25 09:24:41Z avg $"); 36 #include <sys/gpio.h> 45 #include <dev/gpio/gpiobusvar.h> 155 * Must always be called with gpio bus locked.
|
/freebsd-11-stable/sys/dev/cxgb/common/ |
H A D | cxgb_aq100x.c | 468 unsigned int v, v2, gpio, wait; local 480 gpio = phy_addr ? F_GPIO10_OUT_VAL : F_GPIO6_OUT_VAL; 481 t3_set_reg_field(adapter, A_T3DBG_GPIO_EN, gpio, 0); 483 t3_set_reg_field(adapter, A_T3DBG_GPIO_EN, gpio, gpio);
|
/freebsd-11-stable/sys/dev/sdhci/ |
H A D | fsl_sdhci.c | 61 #include <dev/gpio/gpiobusvar.h> 82 struct sdhci_fdt_gpio * gpio; member in struct:fsl_sdhci_softc 756 return (sdhci_fdt_gpio_get_readonly(sc->gpio)); 764 return (sdhci_fdt_gpio_get_present(sc->gpio)); 813 if (sc->gpio != NULL) 814 sdhci_fdt_gpio_teardown(sc->gpio); 919 * Set up any gpio pin handling described in the FDT data. This cannot 922 sc->gpio = sdhci_fdt_gpio_setup(dev, &sc->slot);
|
/freebsd-11-stable/sys/arm/samsung/exynos/ |
H A D | chrome_kb.c | 47 #include <sys/gpio.h> 127 int gpio; member in struct:ckb_softc 362 GPIO_PIN_GET(sc->gpio_dev, sc->gpio, &status); 747 if ((len = OF_getproplen(node, "freebsd,intr-gpio")) <= 0) 749 OF_getencprop(node, "freebsd,intr-gpio", &dts_value, len); 750 sc->gpio = dts_value; 779 if ((sc->rows == 0) || (sc->cols == 0) || (sc->gpio == 0)) 819 sc->gpio_dev = devclass_get_device(devclass_find("gpio"), 0); 821 device_printf(sc->dev, "Can't find gpio device.\n"); 830 pad_setup_intr(sc->gpio, ckb_ec_int [all...] |
H A D | chrome_ec_spi.c | 44 #include <sys/gpio.h> 75 sc->dev_gpio = devclass_get_device(devclass_find("gpio"), 0);
|
/freebsd-11-stable/sys/arm/nvidia/ |
H A D | as3722.c | 37 #include <sys/gpio.h> 48 #include <dev/gpio/gpiobusvar.h> 408 static DEFINE_CLASS_0(gpio, as3722_driver, as3722_methods,
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210.h | 220 extern HAL_BOOL ar5210GpioCfgInput(struct ath_hal *, uint32_t gpio); 221 extern HAL_BOOL ar5210GpioCfgOutput(struct ath_hal *, uint32_t gpio, 223 extern uint32_t ar5210GpioGet(struct ath_hal *, uint32_t gpio); 224 extern HAL_BOOL ar5210GpioSet(struct ath_hal *, uint32_t gpio, uint32_t);
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211.h | 243 extern uint32_t ar5211GpioGet(struct ath_hal *, uint32_t gpio); 245 extern HAL_BOOL ar5211GpioCfgOutput(struct ath_hal *, uint32_t gpio, 247 extern HAL_BOOL ar5211GpioCfgInput(struct ath_hal *, uint32_t gpio); 248 extern HAL_BOOL ar5211GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val);
|
/freebsd-11-stable/sys/dev/drm2/radeon/ |
H A D | rs600.c | 170 if ((voltage->type == VOLTAGE_GPIO) && (voltage->gpio.valid)) { 172 tmp = RREG32(voltage->gpio.reg); 174 tmp |= voltage->gpio.mask; 176 tmp &= ~(voltage->gpio.mask); 177 WREG32(voltage->gpio.reg, tmp); 181 tmp = RREG32(voltage->gpio.reg); 183 tmp &= ~voltage->gpio.mask; 185 tmp |= voltage->gpio.mask; 186 WREG32(voltage->gpio.reg, tmp);
|
/freebsd-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_stub_funcs.h | 48 extern HAL_BOOL ar9300_Stub_GpioCfgOutput(struct ath_hal *, uint32_t gpio, 50 extern HAL_BOOL ar9300_Stub_GpioCfgInput(struct ath_hal *, uint32_t gpio); 51 extern HAL_BOOL ar9300_Stub_GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val); 52 extern uint32_t ar9300_Stub_GpioGet(struct ath_hal *ah, uint32_t gpio);
|
/freebsd-11-stable/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_spi.c | 245 device_t gpio; local 257 gpio = devclass_get_device(devclass_find("gpio"), 0); 258 if (!gpio) { 263 bcm_gpio_set_alternate(gpio, bcm_spi_pins[i], BCM_GPIO_ALT0);
|
H A D | bcm2835_bsc.c | 300 device_t gpio; local 333 gpio = devclass_get_device(devclass_find("gpio"), 0); 334 if (!gpio) { 339 bcm_gpio_set_alternate(gpio, bcm_bsc_pins[i].sda, BCM_GPIO_ALT0); 340 bcm_gpio_set_alternate(gpio, bcm_bsc_pins[i].scl, BCM_GPIO_ALT0);
|
H A D | bcm2835_gpio.c | 36 #include <sys/gpio.h> 49 #include <dev/gpio/gpiobusvar.h> 161 {"broadcom,bcm2835-gpio", 1}, 162 {"brcm,bcm2835-gpio", 1}, 676 phandle_t gpio, node, reserved; local 680 gpio = ofw_bus_get_node(sc->sc_dev); 681 if (bcm_gpio_get_ro_pins(sc, gpio, "broadcom,read-only", 686 node = OF_child(gpio); 837 phandle_t gpio; local 846 mtx_init(&sc->sc_mtx, "bcm gpio", "gpi [all...] |
/freebsd-11-stable/sys/arm/amlogic/aml8726/ |
H A D | aml8726_gpio.c | 48 #include <sys/gpio.h> 56 #include <dev/gpio/gpiobusvar.h> 80 "gpio", MTX_DEF) 97 if (!ofw_bus_is_compatible(dev, "amlogic,aml8726-gpio")) 364 "gpio",
|
/freebsd-11-stable/sys/powerpc/mpc85xx/ |
H A D | mpc85xx_gpio.c | 43 #include <sys/gpio.h> 50 #include <dev/gpio/gpiobusvar.h> 64 "gpio", MTX_DEF) 188 if (!ofw_bus_is_compatible(dev, "gpio")) 299 "gpio",
|
H A D | qoriq_gpio.c | 40 #include <sys/gpio.h> 46 #include <dev/gpio/gpiobusvar.h> 60 "gpio", MTX_DEF) 222 if (!ofw_bus_is_compatible(dev, "fsl,qoriq-gpio") && 223 !ofw_bus_is_compatible(dev, "fsl,mpc8572-gpio")) 302 "gpio",
|
/freebsd-11-stable/sys/dev/sound/pci/hda/ |
H A D | hdaa.h | 199 uint32_t gpio; member in struct:hdaa_devinfo 269 uint32_t hdaa_gpio_patch(uint32_t gpio, const char *str);
|
/freebsd-11-stable/sys/arm/allwinner/ |
H A D | aw_usbphy.c | 42 #include <sys/gpio.h> 46 #include <dev/gpio/gpiobusvar.h>
|
/freebsd-11-stable/sys/dev/ow/ |
H A D | owc_gpiobus.c | 35 #include <sys/gpio.h> 48 #include <dev/gpio/gpiobusvar.h> 91 if (!fdt_is_compatible_strict(w1, "w1-gpio")) 107 if (ofw_bus_is_compatible(dev, "w1-gpio")) {
|
/freebsd-11-stable/sys/arm/rockchip/ |
H A D | rk30xx_gpio.c | 41 #include <sys/gpio.h> 48 #include <dev/gpio/gpiobusvar.h> 58 * RK3188 has 4 banks of gpio. 102 { "rockchip,rk30xx-gpio", &rk30_gpios_prop_handle }, 103 { "rockchip,rk30xx-gpio", &rk30_gpios_prop_handle }, 104 { "rockchip,rk30xx-gpio", &rk30_gpios_prop_handle }, 105 { "rockchip,rk30xx-gpio", &rk30_gpios_prop_handle }, 393 if (!ofw_bus_is_compatible(dev, "rockchip,rk30xx-gpio")) 405 phandle_t gpio; local 411 mtx_init(&sc->sc_mtx, "rk30 gpio", "gpi [all...] |
/freebsd-11-stable/sys/arm/ti/ |
H A D | ti_sdhci.c | 34 #include <sys/gpio.h> 65 struct sdhci_fdt_gpio * gpio; member in struct:ti_sdhci_softc 370 return (sdhci_fdt_gpio_get_readonly(sc->gpio)); 378 return (sdhci_fdt_gpio_get_present(sc->gpio)); 385 /* sdhci_fdt_gpio_teardown(sc->gpio); */ 565 * Set up handling of card-detect and write-protect gpio lines. 574 sc->gpio = sdhci_fdt_gpio_setup(sc->dev, &sc->slot);
|
/freebsd-11-stable/sys/mips/cavium/ |
H A D | octeon_gpio.c | 44 #include <sys/gpio.h> 50 #include <contrib/octeon-sdk/cvmx-gpio.h> 54 #include <dev/gpio/gpiobusvar.h> 367 BUS_ADD_CHILD(parent, 0, "gpio", 0); 388 ("octeon_gpio: Only one gpio module supported")); 464 KASSERT(mtx_initialized(&sc->gpio_mtx), ("gpio mutex not initialized")); 500 "gpio",
|