]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/mips/include/asm/vr41xx/giu.h
UBUNTU: Ubuntu-5.4.0-117.132
[mirror_ubuntu-focal-kernel.git] / arch / mips / include / asm / vr41xx / giu.h
CommitLineData
1a59d1b8 1/* SPDX-License-Identifier: GPL-2.0-or-later */
e400bae9
YY
2/*
3 * Include file for NEC VR4100 series General-purpose I/O Unit.
4 *
ada8e951 5 * Copyright (C) 2005-2009 Yoichi Yuasa <yuasa@linux-mips.org>
e400bae9
YY
6 */
7#ifndef __NEC_VR41XX_GIU_H
8#define __NEC_VR41XX_GIU_H
9
44173fb2
YY
10/*
11 * NEC VR4100 series GIU platform device IDs.
12 */
13enum {
14 GPIO_50PINS_PULLUPDOWN,
15 GPIO_36PINS,
16 GPIO_48PINS_EDGE_SELECT,
17};
18
e400bae9
YY
19typedef enum {
20 IRQ_TRIGGER_LEVEL,
21 IRQ_TRIGGER_EDGE,
22 IRQ_TRIGGER_EDGE_FALLING,
23 IRQ_TRIGGER_EDGE_RISING,
24} irq_trigger_t;
25
26typedef enum {
27 IRQ_SIGNAL_THROUGH,
28 IRQ_SIGNAL_HOLD,
29} irq_signal_t;
30
27fdd325
YY
31extern void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger,
32 irq_signal_t signal);
e400bae9
YY
33
34typedef enum {
35 IRQ_LEVEL_LOW,
36 IRQ_LEVEL_HIGH,
37} irq_level_t;
38
39extern void vr41xx_set_irq_level(unsigned int pin, irq_level_t level);
40
e400bae9 41#endif /* __NEC_VR41XX_GIU_H */