treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
[sfrench/cifs-2.6.git] / arch / mips / include / asm / vr41xx / siu.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *  Include file for NEC VR4100 series Serial Interface Unit.
4  *
5  *  Copyright (C) 2005-2008  Yoichi Yuasa <yuasa@linux-mips.org>
6  */
7 #ifndef __NEC_VR41XX_SIU_H
8 #define __NEC_VR41XX_SIU_H
9
10 #define SIU_PORTS_MAX 2
11
12 typedef enum {
13         SIU_INTERFACE_RS232C,
14         SIU_INTERFACE_IRDA,
15 } siu_interface_t;
16
17 extern void vr41xx_select_siu_interface(siu_interface_t interface);
18
19 typedef enum {
20         SIU_USE_IRDA,
21         FIR_USE_IRDA,
22 } irda_use_t;
23
24 extern void vr41xx_use_irda(irda_use_t use);
25
26 typedef enum {
27         SHARP_IRDA,
28         TEMIC_IRDA,
29         HP_IRDA,
30 } irda_module_t;
31
32 typedef enum {
33         IRDA_TX_1_5MBPS,
34         IRDA_TX_4MBPS,
35 } irda_speed_t;
36
37 extern void vr41xx_select_irda_module(irda_module_t module, irda_speed_t speed);
38
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
44
45 #endif /* __NEC_VR41XX_SIU_H */