Lines Matching full:gpio

593  * typedef GpioPolarity - Polarity of a GPIO line
595 * GPIO lines use either positive (active-high) logic,
609 * qdev_get_gpio_in: Get one of a device's anonymous input GPIO lines
610 * @dev: Device whose GPIO we want
611 * @n: Number of the anonymous GPIO line (which must be in range)
613 * Returns the qemu_irq corresponding to an anonymous input GPIO line
615 * @n of the GPIO line must be valid (i.e. be at least 0 and less than
620 * device models to wire up the GPIO lines; usually the return value
622 * connect another device's output GPIO line to this input.
624 * For named input GPIO lines, use qdev_get_gpio_in_named().
626 * Return: qemu_irq corresponding to anonymous input GPIO line
631 * qdev_get_gpio_in_named: Get one of a device's named input GPIO lines
632 * @dev: Device whose GPIO we want
633 * @name: Name of the input GPIO array
634 * @n: Number of the GPIO line in that array (which must be in range)
636 * Returns the qemu_irq corresponding to a single input GPIO line
637 * in a named array of input GPIO lines on a device (which the device
639 * The @name string must correspond to an input GPIO array which exists on
640 * the device, and the index @n of the GPIO line must be valid (i.e.
644 * For anonymous input GPIO lines, use qdev_get_gpio_in().
646 * Return: qemu_irq corresponding to named input GPIO line
651 * qdev_connect_gpio_out: Connect one of a device's anonymous output GPIO lines
652 * @dev: Device whose GPIO to connect
653 * @n: Number of the anonymous output GPIO line (which must be in range)
656 * This function connects an anonymous output GPIO line on a device
658 * output GPIO line, the qemu_irq's callback is invoked.
659 * The index @n of the GPIO line must be valid (i.e. be at least 0 and
663 * Outbound GPIO lines can be connected to any qemu_irq, but the common
664 * case is connecting them to another device's inbound GPIO line, using
667 * It is not valid to try to connect one outbound GPIO to multiple
672 * a device's outbound GPIO to the splitter's input, and connect each
677 * For named output GPIO lines, use qdev_connect_gpio_out_named().
683 * GPIO lines
684 * @dev: Device whose GPIO to connect
685 * @name: Name of the output GPIO array
686 * @n: Number of the output GPIO line within that array (which must be in range)
689 * This function connects a single GPIO output in a named array of output
690 * GPIO lines on a device up to an arbitrary qemu_irq, so that when the
691 * device asserts that output GPIO line, the qemu_irq's callback is invoked.
692 * The @name string must correspond to an output GPIO array which exists on
693 * the device, and the index @n of the GPIO line must be valid (i.e.
697 * Outbound GPIO lines can be connected to any qemu_irq, but the common
698 * case is connecting them to another device's inbound GPIO line, using
701 * It is not valid to try to connect one outbound GPIO to multiple
705 * For anonymous output GPIO lines, use qdev_connect_gpio_out().
711 * qdev_get_gpio_out_connector: Get the qemu_irq connected to an output GPIO
712 * @dev: Device whose output GPIO we are interested in
713 * @name: Name of the output GPIO array
714 * @n: Number of the output GPIO line within that array
717 * output GPIO line of @dev. This will be NULL if the output GPIO line
719 * returned does not belong to @dev -- it will be the input GPIO or
721 * output GPIO.
726 * Return: qemu_irq associated with GPIO or NULL if un-wired.
731 * qdev_intercept_gpio_out: Intercept an existing GPIO connection
732 * @dev: Device to intercept the outbound GPIO line from
734 * @name: Name of the output GPIO array
735 * @n: Number of the GPIO line in the array
741 * This function breaks an existing connection of an outbound GPIO
757 * qdev_init_gpio_in: create an array of anonymous input GPIO lines
759 * @handler: Function to call when GPIO line value is set
760 * @n: Number of GPIO lines to create
763 * their instance_init or realize methods to create any input GPIO
765 * anonymous and named GPIO lines. Stylistically, named GPIOs are
767 * has exactly one uniform kind of GPIO input whose purpose is obvious.
768 * Note that input GPIO lines can serve as 'sinks' for IRQ lines.
771 * hold of an input GPIO line to manipulate it.
776 * qdev_init_gpio_out: create an array of anonymous output GPIO lines
778 * @pins: Pointer to qemu_irq or qemu_irq array for the GPIO lines
779 * @n: Number of GPIO lines to create
783 * GPIO lines they need. There is no functional difference between
784 * anonymous and named GPIO lines. Stylistically, named GPIOs are
786 * has exactly one uniform kind of GPIO output whose purpose is obvious.
791 * lower the GPIO line by calling qemu_set_irq(). (If anything is
792 * connected to the other end of the GPIO this will cause the handler
793 * function for that input GPIO to be called.)
796 * can connect to one of its output GPIO lines.
805 * qdev_init_gpio_out_named: create an array of named output GPIO lines
807 * @pins: Pointer to qemu_irq or qemu_irq array for the GPIO lines
808 * @name: Name to give this array of GPIO lines
809 * @n: Number of GPIO lines to create in this array
811 * Like qdev_init_gpio_out(), but creates an array of GPIO output lines
812 * with a name. Code using the device can then connect these GPIO lines
819 * qdev_init_gpio_in_named_with_opaque() - create an array of input GPIO lines
821 * @handler: Function to call when GPIO line value is set
823 * @name: Name of the GPIO input (must be unique for this device)
824 * @n: Number of GPIO lines in this input set
832 * qdev_init_gpio_in_named() - create an array of input GPIO lines
834 * @handler: a &typedef qemu_irq_handler function to call when GPIO is set
835 * @name: Name of the GPIO input (must be unique for this device)
836 * @n: Number of GPIO lines in this input set
849 * qdev_pass_gpios: create GPIO lines on container which pass through to device
850 * @dev: Device which has GPIO lines
852 * @name: Name of GPIO array to pass through (NULL for the anonymous GPIO array)
857 * to create GPIO arrays on itself which simply pass through to a GPIO
864 * To users of the container device, the GPIO array created on @container