gpiodev the internal state holder, opaque struct parent optional parent device providing the GPIOs owner helps prevent removal of modules exporting active GPIOs request optional hook for chip-specific activation, such asĮnabling module power and clock may sleep free optional hook for chip-specific deactivation, such asĭisabling module power and clock may sleep get_direction returns direction for signal “offset”, 0=out, 1=in,
Number or the name of the SoC IP-block implementing it. Members label a functional name for the GPIO device, such as a part Int (*of_xlate)(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) Void (*write_reg)(void _iomem *reg, unsigned long data) Unsigned long (*read_reg)(void _iomem *reg) Void (*dbg_show)(struct seq_file *s, struct gpio_chip *chip) Int (*to_irq)(struct gpio_chip *chip, unsigned offset) Int (*set_config)(struct gpio_chip *chip,unsigned offset, unsigned long config) Void (*set_multiple)(struct gpio_chip *chip,unsigned long *mask, unsigned long *bits) Void (*set)(struct gpio_chip *chip, unsigned offset, int value) Int (*get_multiple)(struct gpio_chip *chip,unsigned long *mask, unsigned long *bits) Int (*get)(struct gpio_chip *chip, unsigned offset) Int (*direction_output)(struct gpio_chip *chip, unsigned offset, int value) Int (*direction_input)(struct gpio_chip *chip, unsigned offset) Int (*get_direction)(struct gpio_chip *chip, unsigned offset) Void (*free)(struct gpio_chip *chip, unsigned offset) Int (*request)(struct gpio_chip *chip, unsigned offset) Will allocate and map all IRQs during initialization. first Required for static IRQ allocation. valid_mask If not NULL holds bitmask of GPIOs which are valid to be included need_valid_mask If set core allocates valid_mask with all bits set to one. threaded True if set the interrupt handling uses nested threads. map A list of interrupt parents for each line of a GPIO chip. This is owned by theĭriver, so the core will only reference this list, not modify it. parents A list of interrupt parents of a GPIO chip. num_parents The number of interrupt parents of a GPIO chip. parent_handler_data Data associated, and passed to, the handler for the parent NULL if the parent interrupts are nested rather than cascaded. parent_handler The interrupt handler for the GPIO chip’s parent interrupts, may be lock_key Per GPIO IRQ chip lockdep classes.
default_type Default IRQ triggering type applied during GPIO driver handler The IRQ handler to use (often a predefined IRQ core function) for domain_ops Table of interrupt domain operations for this IRQ chip. domain Interrupt translation domain responsible for mapping between GPIO Members chip GPIO IRQ chip implementation, provided by GPIO driver. Error Detection And Correction (EDAC) Devices.
High Speed Synchronous Serial Interface (HSI).The Linux driver implementer’s API guide.Working with the kernel development community.The Linux kernel user’s and administrator’s guide.