WIP FPC-III support
[linux/fpc-iii.git] / arch / mips / include / asm / vr41xx / siu.h
blobe920cd2cf8b2a4ce43b3bf430952cdd5057a1f4c
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Include file for NEC VR4100 series Serial Interface Unit.
5 * Copyright (C) 2005-2008 Yoichi Yuasa <yuasa@linux-mips.org>
6 */
7 #ifndef __NEC_VR41XX_SIU_H
8 #define __NEC_VR41XX_SIU_H
10 #define SIU_PORTS_MAX 2
12 typedef enum {
13 SIU_INTERFACE_RS232C,
14 SIU_INTERFACE_IRDA,
15 } siu_interface_t;
17 extern void vr41xx_select_siu_interface(siu_interface_t interface);
19 typedef enum {
20 SIU_USE_IRDA,
21 FIR_USE_IRDA,
22 } irda_use_t;
24 extern void vr41xx_use_irda(irda_use_t use);
26 typedef enum {
27 SHARP_IRDA,
28 TEMIC_IRDA,
29 HP_IRDA,
30 } irda_module_t;
32 typedef enum {
33 IRDA_TX_1_5MBPS,
34 IRDA_TX_4MBPS,
35 } irda_speed_t;
37 extern void vr41xx_select_irda_module(irda_module_t module, irda_speed_t speed);
39 #ifdef CONFIG_SERIAL_VR41XX_CONSOLE
40 extern void vr41xx_siu_early_setup(struct uart_port *port);
41 #else
42 static inline void vr41xx_siu_early_setup(struct uart_port *port) {}
43 #endif
45 #endif /* __NEC_VR41XX_SIU_H */