[PATCH] USB: add endpoint information to sysfs
[linux-2.6] / drivers / serial / cpm_uart / cpm_uart_cpm1.h
1 /*
2  * linux/drivers/serial/cpm_uart_cpm1.h
3  *
4  * Driver for CPM (SCC/SMC) serial ports
5  * 
6  * definitions for cpm1
7  *
8  */
9
10 #ifndef CPM_UART_CPM1_H
11 #define CPM_UART_CPM1_H
12
13 #include <asm/commproc.h>
14
15 /* defines for IRQs */
16 #define SMC1_IRQ        (CPM_IRQ_OFFSET + CPMVEC_SMC1)
17 #define SMC2_IRQ        (CPM_IRQ_OFFSET + CPMVEC_SMC2)
18 #define SCC1_IRQ        (CPM_IRQ_OFFSET + CPMVEC_SCC1)
19 #define SCC2_IRQ        (CPM_IRQ_OFFSET + CPMVEC_SCC2)
20 #define SCC3_IRQ        (CPM_IRQ_OFFSET + CPMVEC_SCC3)
21 #define SCC4_IRQ        (CPM_IRQ_OFFSET + CPMVEC_SCC4)
22
23 /* the CPM address */
24 #define CPM_ADDR        IMAP_ADDR
25
26 static inline void cpm_set_brg(int brg, int baud)
27 {
28         cpm_setbrg(brg, baud);
29 }
30
31 static inline void cpm_set_scc_fcr(volatile scc_uart_t * sup)
32 {
33         sup->scc_genscc.scc_rfcr = SMC_EB;
34         sup->scc_genscc.scc_tfcr = SMC_EB;
35 }
36
37 static inline void cpm_set_smc_fcr(volatile smc_uart_t * up)
38 {
39         up->smc_rfcr = SMC_EB;
40         up->smc_tfcr = SMC_EB;
41 }
42
43 #define DPRAM_BASE      ((unsigned char *)&cpmp->cp_dpmem[0])
44
45 #endif