diff options
Diffstat (limited to 'drivers/char/rio/proto.h')
-rw-r--r-- | drivers/char/rio/proto.h | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/drivers/char/rio/proto.h b/drivers/char/rio/proto.h index ddff0ef84e3a..f9a3376333e5 100644 --- a/drivers/char/rio/proto.h +++ b/drivers/char/rio/proto.h | |||
@@ -23,15 +23,15 @@ | |||
23 | /* | 23 | /* |
24 | ** boot.c | 24 | ** boot.c |
25 | */ | 25 | */ |
26 | void init_boot( char *p, short stage); | 26 | void init_boot(char *p, short stage); |
27 | 27 | ||
28 | /* | 28 | /* |
29 | ** disconct.c | 29 | ** disconct.c |
30 | */ | 30 | */ |
31 | void kill_boot ( LPB *link ); | 31 | void kill_boot(LPB * link); |
32 | void disconnected( LPB *link ); | 32 | void disconnected(LPB * link); |
33 | short boot_3( LPB *link, PKT *pkt ); | 33 | short boot_3(LPB * link, PKT * pkt); |
34 | short send_3_pkt( LPB *link, PKT *pkt); | 34 | short send_3_pkt(LPB * link, PKT * pkt); |
35 | 35 | ||
36 | /* | 36 | /* |
37 | ** error.c | 37 | ** error.c |
@@ -41,116 +41,116 @@ void du_error(void); | |||
41 | /* | 41 | /* |
42 | ** formpkt.c | 42 | ** formpkt.c |
43 | */ | 43 | */ |
44 | ushort sum_it( PKT *pkt ) ; | 44 | ushort sum_it(PKT * pkt); |
45 | void form_rup_pkt( RUP *form_rup, PKT *pkt ); | 45 | void form_rup_pkt(RUP * form_rup, PKT * pkt); |
46 | void form_poll_pkt ( int type, LPB *link, int node ); | 46 | void form_poll_pkt(int type, LPB * link, int node); |
47 | void form_route_pkt ( int type, PKT *pkt, LPB *link ); | 47 | void form_route_pkt(int type, PKT * pkt, LPB * link); |
48 | 48 | ||
49 | /* | 49 | /* |
50 | ** idle.c | 50 | ** idle.c |
51 | */ | 51 | */ |
52 | void idle( Process *idle_p ); | 52 | void idle(Process * idle_p); |
53 | 53 | ||
54 | /* | 54 | /* |
55 | ** init.c | 55 | ** init.c |
56 | */ | 56 | */ |
57 | void general_init(void); | 57 | void general_init(void); |
58 | void mem_halt( int error); | 58 | void mem_halt(int error); |
59 | 59 | ||
60 | /* | 60 | /* |
61 | ** linkinit.c | 61 | ** linkinit.c |
62 | */ | 62 | */ |
63 | void initlink( u_short number, LPB *link); | 63 | void initlink(u_short number, LPB * link); |
64 | void runlink( LPB *link); | 64 | void runlink(LPB * link); |
65 | 65 | ||
66 | /* | 66 | /* |
67 | ** list.c | 67 | ** list.c |
68 | */ | 68 | */ |
69 | PKT *get_free_start(void); | 69 | PKT *get_free_start(void); |
70 | void put_free_start( PKT *pkt); | 70 | void put_free_start(PKT * pkt); |
71 | 71 | ||
72 | #ifdef HOST | 72 | #ifdef HOST |
73 | int can_remove_transmit ( PKT **pkt, PKT *pointer ); | 73 | int can_remove_transmit(PKT ** pkt, PKT * pointer); |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | #ifdef RTA | 76 | #ifdef RTA |
77 | int spl7 ( void ); | 77 | int spl7(void); |
78 | int spl0 ( void ); | 78 | int spl0(void); |
79 | Q_BUF *get_free_q( void ); | 79 | Q_BUF *get_free_q(void); |
80 | PKT *get_free_end(void); | 80 | PKT *get_free_end(void); |
81 | int add_end( PKT *pkt, PHB *phb, int type); | 81 | int add_end(PKT * pkt, PHB * phb, int type); |
82 | unsigned short free_packets( PHB *phb, int type); | 82 | unsigned short free_packets(PHB * phb, int type); |
83 | int can_remove_start( PKT **pkt, PHB *phb, int type); | 83 | int can_remove_start(PKT ** pkt, PHB * phb, int type); |
84 | int can_add_start( PHB *phb, int type); | 84 | int can_add_start(PHB * phb, int type); |
85 | int can_add_end( PHB *phb, int type); | 85 | int can_add_end(PHB * phb, int type); |
86 | void put_free_end( PKT *pkt); | 86 | void put_free_end(PKT * pkt); |
87 | int remove_start( PKT **pkt, PHB *phb, int type); | 87 | int remove_start(PKT ** pkt, PHB * phb, int type); |
88 | #endif | 88 | #endif |
89 | 89 | ||
90 | /* | 90 | /* |
91 | ** Lrt.c | 91 | ** Lrt.c |
92 | */ | 92 | */ |
93 | void lrt( Process *lrt_p, LPB *link ); | 93 | void lrt(Process * lrt_p, LPB * link); |
94 | 94 | ||
95 | #ifdef RTA | 95 | #ifdef RTA |
96 | void set_led_red ( LPB *link ); | 96 | void set_led_red(LPB * link); |
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | /* | 99 | /* |
100 | ** ltt.c | 100 | ** ltt.c |
101 | */ | 101 | */ |
102 | void ltt( Process *ltt_p, LPB *link, PHB *phb_ptr[] ); | 102 | void ltt(Process * ltt_p, LPB * link, PHB * phb_ptr[]); |
103 | void send_poll ( LPB *link ); | 103 | void send_poll(LPB * link); |
104 | void request_id ( LPB *link ); | 104 | void request_id(LPB * link); |
105 | void send_topology_update ( LPB *link ); | 105 | void send_topology_update(LPB * link); |
106 | void send_topology ( LPB *link ); | 106 | void send_topology(LPB * link); |
107 | void supply_id ( LPB *link ); | 107 | void supply_id(LPB * link); |
108 | 108 | ||
109 | #ifdef RTA | 109 | #ifdef RTA |
110 | void redirect_queue ( LPB *link, ushort flush ); | 110 | void redirect_queue(LPB * link, ushort flush); |
111 | int obtain_rup ( int rup_number, PKT **pkt_address, LPB *link ); | 111 | int obtain_rup(int rup_number, PKT ** pkt_address, LPB * link); |
112 | #endif | 112 | #endif |
113 | 113 | ||
114 | #ifdef TESTING_PERF | 114 | #ifdef TESTING_PERF |
115 | int consume_cpu( void ); | 115 | int consume_cpu(void); |
116 | #endif | 116 | #endif |
117 | 117 | ||
118 | /* | 118 | /* |
119 | ** lttwake.c | 119 | ** lttwake.c |
120 | */ | 120 | */ |
121 | #ifdef HOST | 121 | #ifdef HOST |
122 | void ltt_wakeup( Process *ltt_wakeup_p ); | 122 | void ltt_wakeup(Process * ltt_wakeup_p); |
123 | #endif | 123 | #endif |
124 | 124 | ||
125 | /* | 125 | /* |
126 | ** mapgen.c | 126 | ** mapgen.c |
127 | */ | 127 | */ |
128 | void generate_id_map( short mapping, ROUTE_STR route[] ); | 128 | void generate_id_map(short mapping, ROUTE_STR route[]); |
129 | void gen_map( int mapping, int looking_at, int come_from, ROUTE_STR route[], int link, int *ttl ); | 129 | void gen_map(int mapping, int looking_at, int come_from, ROUTE_STR route[], int link, int *ttl); |
130 | void adjust_ttl( int mapping, int looking_at, int come_from, ROUTE_STR route[], int link, int *ttl); | 130 | void adjust_ttl(int mapping, int looking_at, int come_from, ROUTE_STR route[], int link, int *ttl); |
131 | void init_sys_map(void); | 131 | void init_sys_map(void); |
132 | 132 | ||
133 | /* | 133 | /* |
134 | ** mmu.c | 134 | ** mmu.c |
135 | */ | 135 | */ |
136 | char *rio_malloc( unsigned int amount); | 136 | char *rio_malloc(unsigned int amount); |
137 | char *rio_calloc( unsigned int num, unsigned int size); | 137 | char *rio_calloc(unsigned int num, unsigned int size); |
138 | ERROR rio_mmu_init( uint total_mem ); | 138 | ERROR rio_mmu_init(uint total_mem); |
139 | 139 | ||
140 | /* | 140 | /* |
141 | ** partn.c | 141 | ** partn.c |
142 | */ | 142 | */ |
143 | void partition_tx( struct PHB *phb, u_short tx_size, u_short rx_size, u_short rx_limit); | 143 | void partition_tx(struct PHB *phb, u_short tx_size, u_short rx_size, u_short rx_limit); |
144 | 144 | ||
145 | /* | 145 | /* |
146 | ** poll.c | 146 | ** poll.c |
147 | */ | 147 | */ |
148 | void tx_poll( Process *tx_poll_p); | 148 | void tx_poll(Process * tx_poll_p); |
149 | 149 | ||
150 | /* | 150 | /* |
151 | ** process.c | 151 | ** process.c |
152 | */ | 152 | */ |
153 | int get_proc_space( Process **pd, int **pws, int wssize); | 153 | int get_proc_space(Process ** pd, int **pws, int wssize); |
154 | 154 | ||
155 | /* | 155 | /* |
156 | ** readrom.c | 156 | ** readrom.c |
@@ -160,85 +160,85 @@ void read_serial_number(char *buf); | |||
160 | /* | 160 | /* |
161 | ** rio.c | 161 | ** rio.c |
162 | */ | 162 | */ |
163 | int main( void ); | 163 | int main(void); |
164 | 164 | ||
165 | /* | 165 | /* |
166 | ** route.c | 166 | ** route.c |
167 | */ | 167 | */ |
168 | void route_update ( PKT *pkt, LPB *link); | 168 | void route_update(PKT * pkt, LPB * link); |
169 | 169 | ||
170 | /* | 170 | /* |
171 | ** rtainit.c | 171 | ** rtainit.c |
172 | */ | 172 | */ |
173 | #if defined(RTA) | 173 | #if defined(RTA) |
174 | void rta_init(ushort RtaType); | 174 | void rta_init(ushort RtaType); |
175 | #endif /* defined(RTA) */ | 175 | #endif /* defined(RTA) */ |
176 | 176 | ||
177 | /* | 177 | /* |
178 | ** rupboot.c | 178 | ** rupboot.c |
179 | */ | 179 | */ |
180 | void rup_boot( PKT *pkt, RUP *this_rup, LPB *link); | 180 | void rup_boot(PKT * pkt, RUP * this_rup, LPB * link); |
181 | 181 | ||
182 | #ifdef RTA | 182 | #ifdef RTA |
183 | void kill_your_neighbour( int link_to_kill ); | 183 | void kill_your_neighbour(int link_to_kill); |
184 | #endif | 184 | #endif |
185 | 185 | ||
186 | /* | 186 | /* |
187 | ** rupcmd.c | 187 | ** rupcmd.c |
188 | */ | 188 | */ |
189 | void rup_command( PKT *pkt, struct RUP *this_rup, LPB *link); | 189 | void rup_command(PKT * pkt, struct RUP *this_rup, LPB * link); |
190 | 190 | ||
191 | /* | 191 | /* |
192 | ** ruperr.c | 192 | ** ruperr.c |
193 | */ | 193 | */ |
194 | void rup_error( PKT *pkt, RUP *this_rup, LPB *link ); | 194 | void rup_error(PKT * pkt, RUP * this_rup, LPB * link); |
195 | void illegal_cmd( PKT *src_pkt ); | 195 | void illegal_cmd(PKT * src_pkt); |
196 | 196 | ||
197 | /* | 197 | /* |
198 | ** ruppoll.c | 198 | ** ruppoll.c |
199 | */ | 199 | */ |
200 | void rup_poll( PKT *pkt, RUP *this_rup, LPB *link ); | 200 | void rup_poll(PKT * pkt, RUP * this_rup, LPB * link); |
201 | 201 | ||
202 | /* | 202 | /* |
203 | ** ruppower.c | 203 | ** ruppower.c |
204 | */ | 204 | */ |
205 | void rup_power( PKT *pkt, RUP *this_rup, LPB *link ); | 205 | void rup_power(PKT * pkt, RUP * this_rup, LPB * link); |
206 | 206 | ||
207 | /* | 207 | /* |
208 | ** ruprm.c | 208 | ** ruprm.c |
209 | */ | 209 | */ |
210 | void rup_route_map( PKT *pkt, RUP *this_rup, LPB *link); | 210 | void rup_route_map(PKT * pkt, RUP * this_rup, LPB * link); |
211 | 211 | ||
212 | /* | 212 | /* |
213 | ** rupstat.c | 213 | ** rupstat.c |
214 | */ | 214 | */ |
215 | void rup_status( PKT *pkt, RUP *this_rup, LPB *link); | 215 | void rup_status(PKT * pkt, RUP * this_rup, LPB * link); |
216 | 216 | ||
217 | /* | 217 | /* |
218 | ** rupsync.c | 218 | ** rupsync.c |
219 | */ | 219 | */ |
220 | void rup_sync( PKT *pkt); | 220 | void rup_sync(PKT * pkt); |
221 | 221 | ||
222 | /* | 222 | /* |
223 | ** rxpkt.c | 223 | ** rxpkt.c |
224 | */ | 224 | */ |
225 | ERROR rx_pkt( PKT_ptr_ptr pkt_address, LPB *link); | 225 | ERROR rx_pkt(PKT_ptr_ptr pkt_address, LPB * link); |
226 | 226 | ||
227 | /* | 227 | /* |
228 | ** sendsts.c | 228 | ** sendsts.c |
229 | */ | 229 | */ |
230 | void send_status( PKT *requesting_pkt, RUP *this_rup); | 230 | void send_status(PKT * requesting_pkt, RUP * this_rup); |
231 | 231 | ||
232 | /* | 232 | /* |
233 | ** serial.c | 233 | ** serial.c |
234 | */ | 234 | */ |
235 | void assign_serial ( char *ser_in, char *ser_out); | 235 | void assign_serial(char *ser_in, char *ser_out); |
236 | int cmp_serial ( char *ser_1, char *ser_2); | 236 | int cmp_serial(char *ser_1, char *ser_2); |
237 | 237 | ||
238 | /* | 238 | /* |
239 | ** txpkt.c | 239 | ** txpkt.c |
240 | */ | 240 | */ |
241 | ERROR tx_pkt( PKT *pkt, LPB *link); | 241 | ERROR tx_pkt(PKT * pkt, LPB * link); |
242 | short send_sync( LPB *link); | 242 | short send_sync(LPB * link); |
243 | 243 | ||
244 | #endif /* _prototypes_h */ | 244 | #endif /* _prototypes_h */ |