giu.h (842B)
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Include file for NEC VR4100 series General-purpose I/O Unit. 4 * 5 * Copyright (C) 2005-2009 Yoichi Yuasa <yuasa@linux-mips.org> 6 */ 7#ifndef __NEC_VR41XX_GIU_H 8#define __NEC_VR41XX_GIU_H 9 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 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 31extern void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger, 32 irq_signal_t signal); 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 41#endif /* __NEC_VR41XX_GIU_H */