diff options
author | Andrew Morton <akpm@osdl.org> | 2006-01-11 15:17:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 21:42:14 -0500 |
commit | 8d8706e2f86d28814c1b40a116ffdeca35e4c949 (patch) | |
tree | 146567d7a807feb37a5368fbb4a6ee76d9d7bc7e /drivers/char/rio/pkt.h | |
parent | a9415644583ef344e02f84faf5fe24bfadb2af8e (diff) |
[PATCH] lindent rio drivers
Run all rio files through indent -kr -i8 -bri0 -l255, as requested by Alan.
rioboot.c and rioinit.c were skipped due to worrisome lindent warnings.
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/rio/pkt.h')
-rw-r--r-- | drivers/char/rio/pkt.h | 72 |
1 files changed, 32 insertions, 40 deletions
diff --git a/drivers/char/rio/pkt.h b/drivers/char/rio/pkt.h index 66bb2ff0f694..882fd429ac2e 100644 --- a/drivers/char/rio/pkt.h +++ b/drivers/char/rio/pkt.h | |||
@@ -69,52 +69,44 @@ | |||
69 | #define CONTROL_PKT_TTL_MASK (PKT_TTL_MASK << 8) | 69 | #define CONTROL_PKT_TTL_MASK (PKT_TTL_MASK << 8) |
70 | #define CONTROL_DATA_WNDW (DATA_WNDW << 8) | 70 | #define CONTROL_DATA_WNDW (DATA_WNDW << 8) |
71 | 71 | ||
72 | struct PKT { | 72 | struct PKT { |
73 | #ifdef INKERNEL | 73 | #ifdef INKERNEL |
74 | BYTE dest_unit ; /* Destination Unit Id */ | 74 | BYTE dest_unit; /* Destination Unit Id */ |
75 | BYTE dest_port ; /* Destination POrt */ | 75 | BYTE dest_port; /* Destination POrt */ |
76 | BYTE src_unit ; /* Source Unit Id */ | 76 | BYTE src_unit; /* Source Unit Id */ |
77 | BYTE src_port ; /* Source POrt */ | 77 | BYTE src_port; /* Source POrt */ |
78 | #else | 78 | #else |
79 | union | 79 | union { |
80 | { | 80 | ushort destination; /* Complete destination */ |
81 | ushort destination; /* Complete destination */ | 81 | struct { |
82 | struct | 82 | unsigned char unit; /* Destination unit */ |
83 | { | 83 | unsigned char port; /* Destination port */ |
84 | unsigned char unit; /* Destination unit */ | 84 | } s1; |
85 | unsigned char port; /* Destination port */ | 85 | } u1; |
86 | } s1; | 86 | union { |
87 | } u1; | 87 | ushort source; /* Complete source */ |
88 | union | 88 | struct { |
89 | { | 89 | unsigned char unit; /* Source unit */ |
90 | ushort source; /* Complete source */ | 90 | unsigned char port; /* Source port */ |
91 | struct | 91 | } s2; |
92 | { | 92 | } u2; |
93 | unsigned char unit; /* Source unit */ | ||
94 | unsigned char port; /* Source port */ | ||
95 | } s2; | ||
96 | } u2; | ||
97 | #endif | 93 | #endif |
98 | #ifdef INKERNEL | 94 | #ifdef INKERNEL |
99 | BYTE len ; | 95 | BYTE len; |
100 | BYTE control; | 96 | BYTE control; |
101 | #else | 97 | #else |
102 | union | 98 | union { |
103 | { | 99 | ushort control; |
104 | ushort control; | 100 | struct { |
105 | struct | 101 | unsigned char len; |
106 | { | 102 | unsigned char control; |
107 | unsigned char len; | 103 | } s3; |
108 | unsigned char control; | 104 | } u3; |
109 | } s3; | ||
110 | } u3; | ||
111 | #endif | 105 | #endif |
112 | BYTE data[PKT_MAX_DATA_LEN] ; | 106 | BYTE data[PKT_MAX_DATA_LEN]; |
113 | /* Actual data :-) */ | 107 | /* Actual data :-) */ |
114 | WORD csum ; /* C-SUM */ | 108 | WORD csum; /* C-SUM */ |
115 | } ; | 109 | }; |
116 | #endif | 110 | #endif |
117 | 111 | ||
118 | /*********** end of file ***********/ | 112 | /*********** end of file ***********/ |
119 | |||
120 | |||