|
iPXE
|
General purpose I/O. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static | LIST_HEAD (all_gpios) |
| List of GPIO controllers. More... | |
| struct gpios * | alloc_gpios (unsigned int count, size_t priv_len) |
| Allocate GPIO controller. More... | |
| int | gpios_register (struct gpios *gpios) |
| Register GPIO controller. More... | |
| void | gpios_unregister (struct gpios *gpios) |
| Unregister GPIO controller. More... | |
| struct gpios * | gpios_find (unsigned int bus_type, unsigned int location) |
| Find GPIO controller. More... | |
| static int | null_gpio_in (struct gpios *gpios __unused, struct gpio *gpio __unused) |
| Get null GPIO input value. More... | |
| static void | null_gpio_out (struct gpios *gpios __unused, struct gpio *gpio __unused, int active __unused) |
| Set null GPIO output value. More... | |
| static int | null_gpio_config (struct gpios *gpios __unused, struct gpio *gpio __unused, unsigned int config __unused) |
| Configure null GPIO pin. More... | |
Variables | |
| struct gpio_operations | null_gpio_operations |
| Null GPIO operations. More... | |
General purpose I/O.
Definition in file gpio.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
List of GPIO controllers.
Allocate GPIO controller.
| count | Number of GPIO pins |
| priv_len | Size of driver-private data |
| gpios | GPIO controller, or NULL |
Definition at line 46 of file gpio.c.
References gpios::count, count, gpio, gpios::gpio, gpio::gpios, gpio::index, len, NULL, gpios::priv, and zalloc().
Referenced by dwgpio_probe().
| int gpios_register | ( | struct gpios * | gpios | ) |
Register GPIO controller.
| gpios | GPIO controller |
| rc | Return status code |
Definition at line 78 of file gpio.c.
References gpios::count, DBGC, gpios::dev, gpios_get(), gpios::list, list_add_tail, and device::name.
Referenced by dwgpio_probe().
| void gpios_unregister | ( | struct gpios * | gpios | ) |
Unregister GPIO controller.
| gpios | GPIO controller |
Definition at line 94 of file gpio.c.
References DBGC, gpios::dev, gpios_put(), gpios::list, list_del, and device::name.
Referenced by dwgpio_probe(), and dwgpio_remove().
| struct gpios* gpios_find | ( | unsigned int | bus_type, |
| unsigned int | location | ||
| ) |
Find GPIO controller.
| bus_type | Bus type |
| location | Bus location |
| gpios | GPIO controller, or NULL |
Definition at line 109 of file gpio.c.
References device_description::bus_type, device::desc, gpios::dev, gpios::list, list_for_each_entry, device_description::location, and NULL.
| struct gpio_operations null_gpio_operations |
Null GPIO operations.
Definition at line 161 of file gpio.c.
Referenced by gpios_nullify().
1.8.15