diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/net/dgrs_asstruct.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/net/dgrs_asstruct.h')
-rw-r--r-- | drivers/net/dgrs_asstruct.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/net/dgrs_asstruct.h b/drivers/net/dgrs_asstruct.h new file mode 100644 index 000000000000..a8e5bb5ef534 --- /dev/null +++ b/drivers/net/dgrs_asstruct.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * For declaring structures shared with assembly routines | ||
3 | * | ||
4 | * $Id: asstruct.h,v 1.1.1.1 1994/10/23 05:08:32 rick Exp $ | ||
5 | */ | ||
6 | |||
7 | #ifdef ASSEMBLER | ||
8 | |||
9 | # define MO(t,a) (a) | ||
10 | # define VMO(t,a) (a) | ||
11 | |||
12 | # define BEGIN_STRUCT(x) _Off=0 | ||
13 | # define S1A(t,x,n) _Off=(_Off+0)&~0; x=_Off; _Off=_Off+(1*n) | ||
14 | # define S2A(t,x,n) _Off=(_Off+1)&~1; x=_Off; _Off=_Off+(2*n) | ||
15 | # define S4A(t,x,n) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+(4*n) | ||
16 | # define WORD(x) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+4 | ||
17 | # define WORDA(x,n) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+(4*n) | ||
18 | # define VWORD(x) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+4 | ||
19 | # define S1(t,x) _Off=(_Off+0)&~0; x=_Off; _Off=_Off+1 | ||
20 | # define S2(t,x) _Off=(_Off+1)&~1; x=_Off; _Off=_Off+2 | ||
21 | # define S4(t,x) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+4 | ||
22 | # define END_STRUCT(x) _Off=(_Off+3)&~3; x=_Off | ||
23 | |||
24 | #else /* C */ | ||
25 | |||
26 | #define VMO(t,a) (*(volatile t *)(a)) | ||
27 | |||
28 | # define BEGIN_STRUCT(x) struct x { | ||
29 | # define S1(t,x) t x ; | ||
30 | # define S1A(t,x,n) t x[n] ; | ||
31 | # define S2(t,x) t x ; | ||
32 | # define S2A(t,x,n) t x[n] ; | ||
33 | # define S4(t,x) t x ; | ||
34 | # define S4A(t,x,n) t x[n] ; | ||
35 | # define END_STRUCT(x) } ; | ||
36 | |||
37 | #endif | ||