treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / include / asm / vr41xx / giu.h
blob0211fa89897a6d717cac15847078e4c167d46487
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Include file for NEC VR4100 series General-purpose I/O Unit.
5 * Copyright (C) 2005-2009 Yoichi Yuasa <yuasa@linux-mips.org>
6 */
7 #ifndef __NEC_VR41XX_GIU_H
8 #define __NEC_VR41XX_GIU_H
11 * NEC VR4100 series GIU platform device IDs.
13 enum {
14 GPIO_50PINS_PULLUPDOWN,
15 GPIO_36PINS,
16 GPIO_48PINS_EDGE_SELECT,
19 typedef enum {
20 IRQ_TRIGGER_LEVEL,
21 IRQ_TRIGGER_EDGE,
22 IRQ_TRIGGER_EDGE_FALLING,
23 IRQ_TRIGGER_EDGE_RISING,
24 } irq_trigger_t;
26 typedef enum {
27 IRQ_SIGNAL_THROUGH,
28 IRQ_SIGNAL_HOLD,
29 } irq_signal_t;
31 extern void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger,
32 irq_signal_t signal);
34 typedef enum {
35 IRQ_LEVEL_LOW,
36 IRQ_LEVEL_HIGH,
37 } irq_level_t;
39 extern void vr41xx_set_irq_level(unsigned int pin, irq_level_t level);
41 #endif /* __NEC_VR41XX_GIU_H */