Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pmcc4_defs.h
Go to the documentation of this file.
1 #ifndef _INC_PMCC4_DEFS_H_
2 #define _INC_PMCC4_DEFS_H_
3 
4 /*-----------------------------------------------------------------------------
5  * c4_defs.h -
6  *
7  * Implementation elements of the wanPMC-C4T1E1 device driver
8  *
9  * Copyright (C) 2005 SBE, Inc.
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * For further information, contact via email: [email protected]
22  * SBE, Inc. San Ramon, California U.S.A.
23  *-----------------------------------------------------------------------------
24  */
25 
26 
27 #define MAX_BOARDS 8
28 #define MAX_CHANS_USED 128
29 
30 #ifdef SBE_PMCC4_ENABLE
31 #define MUSYCC_NPORTS 4 /* CN8474 */
32 #endif
33 #ifdef SBE_WAN256T3_ENABLE
34 #define MUSYCC_NPORTS 8 /* CN8478 */
35 #endif
36 #define MUSYCC_NCHANS 32 /* actually, chans per port */
37 
38 #define MUSYCC_NIQD 0x1000 /* power of 2 */
39 #define MUSYCC_MRU 2048 /* default */
40 #define MUSYCC_MTU 2048 /* default */
41 #define MUSYCC_TXDESC_MIN 10 /* HDLC mode default */
42 #define MUSYCC_RXDESC_MIN 18 /* HDLC mode default */
43 #define MUSYCC_TXDESC_TRANS 4 /* Transparent mode minimum # of TX descriptors */
44 #define MUSYCC_RXDESC_TRANS 12 /* Transparent mode minimum # of RX descriptors */
45 
46 #define MAX_DEFAULT_IFQLEN 32 /* network qlen */
47 
48 
49 #define SBE_IFACETMPL "pmcc4-%d"
50 #ifdef IFNAMSIZ
51 #define SBE_IFACETMPL_SIZE IFNAMSIZ
52 #else
53 #define SBE_IFACETMPL_SIZE 16
54 #endif
55 
56 /* we want the PMCC4 watchdog to fire off every 250ms */
57 #define WATCHDOG_TIMEOUT 250000
58 
59 /* if we restart the watchdog every 250ms, then we'll time out
60  * an additional 300ms later */
61 #define WATCHDOG_UTIMEOUT (WATCHDOG_TIMEOUT+300000)
62 
63 #if !defined(SBE_ISR_TASKLET) && !defined(SBE_ISR_IMMEDIATE) && !defined(SBE_ISR_INLINE)
64 #define SBE_ISR_TASKLET
65 #endif
66 
67 #endif /*** _INC_PMCC4_DEFS_H_ ***/
68