2 * Platform information definitions for the CPM Uart driver.
4 * 2006 (c) MontaVista Software, Inc.
5 * Vitaly Bordug <vbordug@ru.mvista.com>
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
15 #include <linux/version.h>
16 #include <asm/types.h>
28 static inline int fs_uart_id_scc2fsid(int id
)
30 return fsid_scc1_uart
+ id
- 1;
33 static inline int fs_uart_id_fsid2scc(int id
)
35 return id
- fsid_scc1_uart
+ 1;
38 static inline int fs_uart_id_smc2fsid(int id
)
40 return fsid_smc1_uart
+ id
- 1;
43 static inline int fs_uart_id_fsid2smc(int id
)
45 return id
- fsid_smc1_uart
+ 1;
48 struct fs_uart_platform_info
{
49 void(*init_ioports
)(void);
50 /* device specific information */
51 int fs_no
; /* controller index */