Enable kmod-sched for adm5120
[openwrt.git] / target / linux / ar7-2.4 / patches / 004-atm_driver.patch
1 diff -urN linux.old/include/linux/atmdev.h linux.dev/include/linux/atmdev.h
2 --- linux.old/include/linux/atmdev.h 2005-08-22 23:18:37.812526104 +0200
3 +++ linux.dev/include/linux/atmdev.h 2005-08-23 06:33:33.425389944 +0200
4 @@ -30,6 +30,9 @@
5 #define ATM_DS3_PCR (8000*12)
6 /* DS3: 12 cells in a 125 usec time slot */
7
8 +#define ATM_PDU_OVHD 0 /* number of bytes to charge against buffer
9 + quota per PDU */
10 +
11 #define ATM_SD(s) ((s)->sk->protinfo.af_atm)
12
13
14 @@ -94,7 +97,8 @@
15 /* set backend handler */
16 #define ATM_NEWBACKENDIF _IOW('a',ATMIOC_SPECIAL+3,atm_backend_t)
17 /* use backend to make new if */
18 -
19 +#define ATM_STOPTX _IOW('a',ATMIOC_SPECIAL+4,struct atmif_sioc)
20 + /* Stop Tx on Sangam DSL */
21 /*
22 * These are backend handkers that can be set via the ATM_SETBACKEND call
23 * above. In the future we may support dynamic loading of these - for now,
24 @@ -199,7 +203,9 @@
25 "SESSION", "HASSAP", "BOUND", "CLOSE"
26
27
28 -#ifdef __KERNEL__
29 +#ifndef __KERNEL__
30 +#undef __AAL_STAT_ITEMS
31 +#else
32
33 #include <linux/sched.h> /* wait_queue_head_t */
34 #include <linux/time.h> /* struct timeval */
35 @@ -291,6 +297,7 @@
36 int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
37 void *dev_data; /* per-device data */
38 void *proto_data; /* per-protocol data */
39 + struct timeval timestamp; /* AAL timestamps */
40 struct k_atm_aal_stats *stats; /* pointer to AAL stats group */
41 wait_queue_head_t sleep; /* if socket is busy */
42 struct sock *sk; /* socket backpointer */
43 @@ -333,13 +340,14 @@
44 struct k_atm_dev_stats stats; /* statistics */
45 char signal; /* signal status (ATM_PHY_SIG_*) */
46 int link_rate; /* link rate (default: OC3) */
47 - atomic_t refcnt; /* reference count */
48 - spinlock_t lock; /* protect internal members */
49 + atomic_t refcnt; /* reference count */
50 + spinlock_t lock; /* protect internal members */
51 #ifdef CONFIG_PROC_FS
52 struct proc_dir_entry *proc_entry; /* proc entry */
53 char *proc_name; /* proc entry name */
54 #endif
55 - struct list_head dev_list; /* linkage */
56 + struct list_head dev_list; /* linkage */
57 +
58 };
59
60
This page took 0.04124 seconds and 5 git commands to generate.