[IPV4]: Reassembly trim not clearing CHECKSUM_HW
[linux-2.6/kvm.git] / include / asm-m68knommu / nettel.h
blob9bda307e6544be02dea18d5ce52d4824eec29210
1 /****************************************************************************/
3 /*
4 * nettel.h -- Lineo (formerly Moreton Bay) NETtel support.
6 * (C) Copyright 1999-2000, Moreton Bay (www.moretonbay.com)
7 * (C) Copyright 2000-2001, Lineo Inc. (www.lineo.com)
8 * (C) Copyright 2001-2002, SnapGear Inc., (www.snapgear.com)
9 */
11 /****************************************************************************/
12 #ifndef nettel_h
13 #define nettel_h
14 /****************************************************************************/
16 #include <linux/config.h>
18 /****************************************************************************/
19 #ifdef CONFIG_NETtel
20 /****************************************************************************/
22 #ifdef CONFIG_COLDFIRE
23 #include <asm/coldfire.h>
24 #include <asm/mcfsim.h>
25 #endif
27 /*---------------------------------------------------------------------------*/
28 #if defined(CONFIG_M5307)
30 * NETtel/5307 based hardware first. DTR/DCD lines are wired to
31 * GPIO lines. Most of the LED's are driver through a latch
32 * connected to CS2.
34 #define MCFPP_DCD1 0x0001
35 #define MCFPP_DCD0 0x0002
36 #define MCFPP_DTR1 0x0004
37 #define MCFPP_DTR0 0x0008
39 #define NETtel_LEDADDR 0x30400000
41 #ifndef __ASSEMBLY__
43 extern volatile unsigned short ppdata;
46 * These functions defined to give quasi generic access to the
47 * PPIO bits used for DTR/DCD.
49 static __inline__ unsigned int mcf_getppdata(void)
51 volatile unsigned short *pp;
52 pp = (volatile unsigned short *) (MCF_MBAR + MCFSIM_PADAT);
53 return((unsigned int) *pp);
56 static __inline__ void mcf_setppdata(unsigned int mask, unsigned int bits)
58 volatile unsigned short *pp;
59 pp = (volatile unsigned short *) (MCF_MBAR + MCFSIM_PADAT);
60 ppdata = (ppdata & ~mask) | bits;
61 *pp = ppdata;
63 #endif
65 /*---------------------------------------------------------------------------*/
66 #elif defined(CONFIG_M5206e)
68 * NETtel/5206e based hardware has leds on latch on CS3.
69 * No support modem for lines??
71 #define NETtel_LEDADDR 0x50000000
73 /*---------------------------------------------------------------------------*/
74 #elif defined(CONFIG_M5272)
76 * NETtel/5272 based hardware. DTR/DCD lines are wired to GPB lines.
78 #define MCFPP_DCD0 0x0080
79 #define MCFPP_DCD1 0x0000 /* Port 1 no DCD support */
80 #define MCFPP_DTR0 0x0040
81 #define MCFPP_DTR1 0x0000 /* Port 1 no DTR support */
83 #ifndef __ASSEMBLY__
85 * These functions defined to give quasi generic access to the
86 * PPIO bits used for DTR/DCD.
88 static __inline__ unsigned int mcf_getppdata(void)
90 volatile unsigned short *pp;
91 pp = (volatile unsigned short *) (MCF_MBAR + MCFSIM_PBDAT);
92 return((unsigned int) *pp);
95 static __inline__ void mcf_setppdata(unsigned int mask, unsigned int bits)
97 volatile unsigned short *pp;
98 pp = (volatile unsigned short *) (MCF_MBAR + MCFSIM_PBDAT);
99 *pp = (*pp & ~mask) | bits;
101 #endif
103 #endif
104 /*---------------------------------------------------------------------------*/
106 /****************************************************************************/
107 #endif /* CONFIG_NETtel */
108 /****************************************************************************/
109 #endif /* nettel_h */