Root/
1 | /****************************************************************************** |
2 | * |
3 | * atm_nicstar.h |
4 | * |
5 | * Driver-specific declarations for use by NICSTAR driver specific utils. |
6 | * |
7 | * Author: Rui Prior |
8 | * |
9 | * (C) INESC 1998 |
10 | * |
11 | ******************************************************************************/ |
12 | |
13 | |
14 | #ifndef LINUX_ATM_NICSTAR_H |
15 | #define LINUX_ATM_NICSTAR_H |
16 | |
17 | /* Note: non-kernel programs including this file must also include |
18 | * sys/types.h for struct timeval |
19 | */ |
20 | |
21 | #include <linux/atmapi.h> |
22 | #include <linux/atmioc.h> |
23 | |
24 | #define NS_GETPSTAT _IOWR('a',ATMIOC_SARPRV+1,struct atmif_sioc) |
25 | /* get pool statistics */ |
26 | #define NS_SETBUFLEV _IOW('a',ATMIOC_SARPRV+2,struct atmif_sioc) |
27 | /* set buffer level markers */ |
28 | #define NS_ADJBUFLEV _IO('a',ATMIOC_SARPRV+3) |
29 | /* adjust buffer level */ |
30 | |
31 | typedef struct buf_nr |
32 | { |
33 | unsigned min; |
34 | unsigned init; |
35 | unsigned max; |
36 | }buf_nr; |
37 | |
38 | |
39 | typedef struct pool_levels |
40 | { |
41 | int buftype; |
42 | int count; /* (At least for now) only used in NS_GETPSTAT */ |
43 | buf_nr level; |
44 | } pool_levels; |
45 | |
46 | /* type must be one of the following: */ |
47 | #define NS_BUFTYPE_SMALL 1 |
48 | #define NS_BUFTYPE_LARGE 2 |
49 | #define NS_BUFTYPE_HUGE 3 |
50 | #define NS_BUFTYPE_IOVEC 4 |
51 | |
52 | |
53 | #endif /* LINUX_ATM_NICSTAR_H */ |
54 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9