diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-04-30 03:53:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:45 -0400 |
commit | d6f6341a6475eb7f9c2b948a7d0fd56fd16ad675 (patch) | |
tree | d43fe194f1d6d7af9ee30c78f7a763eb49fedfb7 /drivers/char/rio/rioparam.c | |
parent | cd989b3a8c30148c872c7677c7a0415584f1658c (diff) |
Char: rio, fix cirrus defines
Rename defines to be in RIO* namespace to not to collide with other defines in
tree. This broke (as akpm correctly pointed out) some allmodconfig builds,
e.g. on ppc:
In file included from drivers/char/rio/rio_linux.c:81:
drivers/char/rio/cirrus.h:202:1: warning: "COMPLETE" redefined
In file included from include/net/netns/ipv4.h:8,
from include/net/net_namespace.h:13,
from include/linux/seq_file.h:7,
from include/asm/machdep.h:12,
from include/asm/pci.h:17,
from include/linux/pci.h:951,
from drivers/char/rio/rio_linux.c:50:
include/net/inet_frag.h:28:1: warning: this is the location of the previous definition
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/rio/rioparam.c')
-rw-r--r-- | drivers/char/rio/rioparam.c | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/drivers/char/rio/rioparam.c b/drivers/char/rio/rioparam.c index da276ed57b3f..4810b845cc21 100644 --- a/drivers/char/rio/rioparam.c +++ b/drivers/char/rio/rioparam.c | |||
@@ -177,7 +177,7 @@ int RIOParam(struct Port *PortP, int cmd, int Modem, int SleepFlag) | |||
177 | } | 177 | } |
178 | rio_spin_lock_irqsave(&PortP->portSem, flags); | 178 | rio_spin_lock_irqsave(&PortP->portSem, flags); |
179 | 179 | ||
180 | if (cmd == OPEN) { | 180 | if (cmd == RIOC_OPEN) { |
181 | /* | 181 | /* |
182 | ** If the port is set to store or lock the parameters, and it is | 182 | ** If the port is set to store or lock the parameters, and it is |
183 | ** paramed with OPEN, we want to restore the saved port termio, but | 183 | ** paramed with OPEN, we want to restore the saved port termio, but |
@@ -241,50 +241,50 @@ int RIOParam(struct Port *PortP, int cmd, int Modem, int SleepFlag) | |||
241 | case CS5: | 241 | case CS5: |
242 | { | 242 | { |
243 | rio_dprintk(RIO_DEBUG_PARAM, "5 bit data\n"); | 243 | rio_dprintk(RIO_DEBUG_PARAM, "5 bit data\n"); |
244 | Cor1 |= COR1_5BITS; | 244 | Cor1 |= RIOC_COR1_5BITS; |
245 | break; | 245 | break; |
246 | } | 246 | } |
247 | case CS6: | 247 | case CS6: |
248 | { | 248 | { |
249 | rio_dprintk(RIO_DEBUG_PARAM, "6 bit data\n"); | 249 | rio_dprintk(RIO_DEBUG_PARAM, "6 bit data\n"); |
250 | Cor1 |= COR1_6BITS; | 250 | Cor1 |= RIOC_COR1_6BITS; |
251 | break; | 251 | break; |
252 | } | 252 | } |
253 | case CS7: | 253 | case CS7: |
254 | { | 254 | { |
255 | rio_dprintk(RIO_DEBUG_PARAM, "7 bit data\n"); | 255 | rio_dprintk(RIO_DEBUG_PARAM, "7 bit data\n"); |
256 | Cor1 |= COR1_7BITS; | 256 | Cor1 |= RIOC_COR1_7BITS; |
257 | break; | 257 | break; |
258 | } | 258 | } |
259 | case CS8: | 259 | case CS8: |
260 | { | 260 | { |
261 | rio_dprintk(RIO_DEBUG_PARAM, "8 bit data\n"); | 261 | rio_dprintk(RIO_DEBUG_PARAM, "8 bit data\n"); |
262 | Cor1 |= COR1_8BITS; | 262 | Cor1 |= RIOC_COR1_8BITS; |
263 | break; | 263 | break; |
264 | } | 264 | } |
265 | } | 265 | } |
266 | 266 | ||
267 | if (TtyP->termios->c_cflag & CSTOPB) { | 267 | if (TtyP->termios->c_cflag & CSTOPB) { |
268 | rio_dprintk(RIO_DEBUG_PARAM, "2 stop bits\n"); | 268 | rio_dprintk(RIO_DEBUG_PARAM, "2 stop bits\n"); |
269 | Cor1 |= COR1_2STOP; | 269 | Cor1 |= RIOC_COR1_2STOP; |
270 | } else { | 270 | } else { |
271 | rio_dprintk(RIO_DEBUG_PARAM, "1 stop bit\n"); | 271 | rio_dprintk(RIO_DEBUG_PARAM, "1 stop bit\n"); |
272 | Cor1 |= COR1_1STOP; | 272 | Cor1 |= RIOC_COR1_1STOP; |
273 | } | 273 | } |
274 | 274 | ||
275 | if (TtyP->termios->c_cflag & PARENB) { | 275 | if (TtyP->termios->c_cflag & PARENB) { |
276 | rio_dprintk(RIO_DEBUG_PARAM, "Enable parity\n"); | 276 | rio_dprintk(RIO_DEBUG_PARAM, "Enable parity\n"); |
277 | Cor1 |= COR1_NORMAL; | 277 | Cor1 |= RIOC_COR1_NORMAL; |
278 | } else { | 278 | } else { |
279 | rio_dprintk(RIO_DEBUG_PARAM, "Disable parity\n"); | 279 | rio_dprintk(RIO_DEBUG_PARAM, "Disable parity\n"); |
280 | Cor1 |= COR1_NOP; | 280 | Cor1 |= RIOC_COR1_NOP; |
281 | } | 281 | } |
282 | if (TtyP->termios->c_cflag & PARODD) { | 282 | if (TtyP->termios->c_cflag & PARODD) { |
283 | rio_dprintk(RIO_DEBUG_PARAM, "Odd parity\n"); | 283 | rio_dprintk(RIO_DEBUG_PARAM, "Odd parity\n"); |
284 | Cor1 |= COR1_ODD; | 284 | Cor1 |= RIOC_COR1_ODD; |
285 | } else { | 285 | } else { |
286 | rio_dprintk(RIO_DEBUG_PARAM, "Even parity\n"); | 286 | rio_dprintk(RIO_DEBUG_PARAM, "Even parity\n"); |
287 | Cor1 |= COR1_EVEN; | 287 | Cor1 |= RIOC_COR1_EVEN; |
288 | } | 288 | } |
289 | 289 | ||
290 | /* | 290 | /* |
@@ -292,11 +292,11 @@ int RIOParam(struct Port *PortP, int cmd, int Modem, int SleepFlag) | |||
292 | */ | 292 | */ |
293 | if (TtyP->termios->c_iflag & IXON) { | 293 | if (TtyP->termios->c_iflag & IXON) { |
294 | rio_dprintk(RIO_DEBUG_PARAM, "Enable start/stop output control\n"); | 294 | rio_dprintk(RIO_DEBUG_PARAM, "Enable start/stop output control\n"); |
295 | Cor2 |= COR2_IXON; | 295 | Cor2 |= RIOC_COR2_IXON; |
296 | } else { | 296 | } else { |
297 | if (PortP->Config & RIO_IXON) { | 297 | if (PortP->Config & RIO_IXON) { |
298 | rio_dprintk(RIO_DEBUG_PARAM, "Force enable start/stop output control\n"); | 298 | rio_dprintk(RIO_DEBUG_PARAM, "Force enable start/stop output control\n"); |
299 | Cor2 |= COR2_IXON; | 299 | Cor2 |= RIOC_COR2_IXON; |
300 | } else | 300 | } else |
301 | rio_dprintk(RIO_DEBUG_PARAM, "IXON has been disabled.\n"); | 301 | rio_dprintk(RIO_DEBUG_PARAM, "IXON has been disabled.\n"); |
302 | } | 302 | } |
@@ -304,29 +304,29 @@ int RIOParam(struct Port *PortP, int cmd, int Modem, int SleepFlag) | |||
304 | if (TtyP->termios->c_iflag & IXANY) { | 304 | if (TtyP->termios->c_iflag & IXANY) { |
305 | if (PortP->Config & RIO_IXANY) { | 305 | if (PortP->Config & RIO_IXANY) { |
306 | rio_dprintk(RIO_DEBUG_PARAM, "Enable any key to restart output\n"); | 306 | rio_dprintk(RIO_DEBUG_PARAM, "Enable any key to restart output\n"); |
307 | Cor2 |= COR2_IXANY; | 307 | Cor2 |= RIOC_COR2_IXANY; |
308 | } else | 308 | } else |
309 | rio_dprintk(RIO_DEBUG_PARAM, "IXANY has been disabled due to sanity reasons.\n"); | 309 | rio_dprintk(RIO_DEBUG_PARAM, "IXANY has been disabled due to sanity reasons.\n"); |
310 | } | 310 | } |
311 | 311 | ||
312 | if (TtyP->termios->c_iflag & IXOFF) { | 312 | if (TtyP->termios->c_iflag & IXOFF) { |
313 | rio_dprintk(RIO_DEBUG_PARAM, "Enable start/stop input control 2\n"); | 313 | rio_dprintk(RIO_DEBUG_PARAM, "Enable start/stop input control 2\n"); |
314 | Cor2 |= COR2_IXOFF; | 314 | Cor2 |= RIOC_COR2_IXOFF; |
315 | } | 315 | } |
316 | 316 | ||
317 | if (TtyP->termios->c_cflag & HUPCL) { | 317 | if (TtyP->termios->c_cflag & HUPCL) { |
318 | rio_dprintk(RIO_DEBUG_PARAM, "Hangup on last close\n"); | 318 | rio_dprintk(RIO_DEBUG_PARAM, "Hangup on last close\n"); |
319 | Cor2 |= COR2_HUPCL; | 319 | Cor2 |= RIOC_COR2_HUPCL; |
320 | } | 320 | } |
321 | 321 | ||
322 | if (C_CRTSCTS(TtyP)) { | 322 | if (C_CRTSCTS(TtyP)) { |
323 | rio_dprintk(RIO_DEBUG_PARAM, "Rx hardware flow control enabled\n"); | 323 | rio_dprintk(RIO_DEBUG_PARAM, "Rx hardware flow control enabled\n"); |
324 | Cor2 |= COR2_CTSFLOW; | 324 | Cor2 |= RIOC_COR2_CTSFLOW; |
325 | Cor2 |= COR2_RTSFLOW; | 325 | Cor2 |= RIOC_COR2_RTSFLOW; |
326 | } else { | 326 | } else { |
327 | rio_dprintk(RIO_DEBUG_PARAM, "Rx hardware flow control disabled\n"); | 327 | rio_dprintk(RIO_DEBUG_PARAM, "Rx hardware flow control disabled\n"); |
328 | Cor2 &= ~COR2_CTSFLOW; | 328 | Cor2 &= ~RIOC_COR2_CTSFLOW; |
329 | Cor2 &= ~COR2_RTSFLOW; | 329 | Cor2 &= ~RIOC_COR2_RTSFLOW; |
330 | } | 330 | } |
331 | 331 | ||
332 | 332 | ||
@@ -341,36 +341,36 @@ int RIOParam(struct Port *PortP, int cmd, int Modem, int SleepFlag) | |||
341 | */ | 341 | */ |
342 | if (TtyP->termios->c_iflag & IGNBRK) { | 342 | if (TtyP->termios->c_iflag & IGNBRK) { |
343 | rio_dprintk(RIO_DEBUG_PARAM, "Ignore break condition\n"); | 343 | rio_dprintk(RIO_DEBUG_PARAM, "Ignore break condition\n"); |
344 | Cor4 |= COR4_IGNBRK; | 344 | Cor4 |= RIOC_COR4_IGNBRK; |
345 | } | 345 | } |
346 | if (!(TtyP->termios->c_iflag & BRKINT)) { | 346 | if (!(TtyP->termios->c_iflag & BRKINT)) { |
347 | rio_dprintk(RIO_DEBUG_PARAM, "Break generates NULL condition\n"); | 347 | rio_dprintk(RIO_DEBUG_PARAM, "Break generates NULL condition\n"); |
348 | Cor4 |= COR4_NBRKINT; | 348 | Cor4 |= RIOC_COR4_NBRKINT; |
349 | } else { | 349 | } else { |
350 | rio_dprintk(RIO_DEBUG_PARAM, "Interrupt on break condition\n"); | 350 | rio_dprintk(RIO_DEBUG_PARAM, "Interrupt on break condition\n"); |
351 | } | 351 | } |
352 | 352 | ||
353 | if (TtyP->termios->c_iflag & INLCR) { | 353 | if (TtyP->termios->c_iflag & INLCR) { |
354 | rio_dprintk(RIO_DEBUG_PARAM, "Map newline to carriage return on input\n"); | 354 | rio_dprintk(RIO_DEBUG_PARAM, "Map newline to carriage return on input\n"); |
355 | Cor4 |= COR4_INLCR; | 355 | Cor4 |= RIOC_COR4_INLCR; |
356 | } | 356 | } |
357 | 357 | ||
358 | if (TtyP->termios->c_iflag & IGNCR) { | 358 | if (TtyP->termios->c_iflag & IGNCR) { |
359 | rio_dprintk(RIO_DEBUG_PARAM, "Ignore carriage return on input\n"); | 359 | rio_dprintk(RIO_DEBUG_PARAM, "Ignore carriage return on input\n"); |
360 | Cor4 |= COR4_IGNCR; | 360 | Cor4 |= RIOC_COR4_IGNCR; |
361 | } | 361 | } |
362 | 362 | ||
363 | if (TtyP->termios->c_iflag & ICRNL) { | 363 | if (TtyP->termios->c_iflag & ICRNL) { |
364 | rio_dprintk(RIO_DEBUG_PARAM, "Map carriage return to newline on input\n"); | 364 | rio_dprintk(RIO_DEBUG_PARAM, "Map carriage return to newline on input\n"); |
365 | Cor4 |= COR4_ICRNL; | 365 | Cor4 |= RIOC_COR4_ICRNL; |
366 | } | 366 | } |
367 | if (TtyP->termios->c_iflag & IGNPAR) { | 367 | if (TtyP->termios->c_iflag & IGNPAR) { |
368 | rio_dprintk(RIO_DEBUG_PARAM, "Ignore characters with parity errors\n"); | 368 | rio_dprintk(RIO_DEBUG_PARAM, "Ignore characters with parity errors\n"); |
369 | Cor4 |= COR4_IGNPAR; | 369 | Cor4 |= RIOC_COR4_IGNPAR; |
370 | } | 370 | } |
371 | if (TtyP->termios->c_iflag & PARMRK) { | 371 | if (TtyP->termios->c_iflag & PARMRK) { |
372 | rio_dprintk(RIO_DEBUG_PARAM, "Mark parity errors\n"); | 372 | rio_dprintk(RIO_DEBUG_PARAM, "Mark parity errors\n"); |
373 | Cor4 |= COR4_PARMRK; | 373 | Cor4 |= RIOC_COR4_PARMRK; |
374 | } | 374 | } |
375 | 375 | ||
376 | /* | 376 | /* |
@@ -378,22 +378,22 @@ int RIOParam(struct Port *PortP, int cmd, int Modem, int SleepFlag) | |||
378 | ** on reception of a config packet. | 378 | ** on reception of a config packet. |
379 | ** The download code handles the zero baud condition. | 379 | ** The download code handles the zero baud condition. |
380 | */ | 380 | */ |
381 | Cor4 |= COR4_RAISEMOD; | 381 | Cor4 |= RIOC_COR4_RAISEMOD; |
382 | 382 | ||
383 | /* | 383 | /* |
384 | ** COR 5 | 384 | ** COR 5 |
385 | */ | 385 | */ |
386 | 386 | ||
387 | Cor5 = COR5_CMOE; | 387 | Cor5 = RIOC_COR5_CMOE; |
388 | 388 | ||
389 | /* | 389 | /* |
390 | ** Set to monitor tbusy/tstop (or not). | 390 | ** Set to monitor tbusy/tstop (or not). |
391 | */ | 391 | */ |
392 | 392 | ||
393 | if (PortP->MonitorTstate) | 393 | if (PortP->MonitorTstate) |
394 | Cor5 |= COR5_TSTATE_ON; | 394 | Cor5 |= RIOC_COR5_TSTATE_ON; |
395 | else | 395 | else |
396 | Cor5 |= COR5_TSTATE_OFF; | 396 | Cor5 |= RIOC_COR5_TSTATE_OFF; |
397 | 397 | ||
398 | /* | 398 | /* |
399 | ** Could set LNE here if you wanted LNext processing. SVR4 will use it. | 399 | ** Could set LNE here if you wanted LNext processing. SVR4 will use it. |
@@ -401,24 +401,24 @@ int RIOParam(struct Port *PortP, int cmd, int Modem, int SleepFlag) | |||
401 | if (TtyP->termios->c_iflag & ISTRIP) { | 401 | if (TtyP->termios->c_iflag & ISTRIP) { |
402 | rio_dprintk(RIO_DEBUG_PARAM, "Strip input characters\n"); | 402 | rio_dprintk(RIO_DEBUG_PARAM, "Strip input characters\n"); |
403 | if (!(PortP->State & RIO_TRIAD_MODE)) { | 403 | if (!(PortP->State & RIO_TRIAD_MODE)) { |
404 | Cor5 |= COR5_ISTRIP; | 404 | Cor5 |= RIOC_COR5_ISTRIP; |
405 | } | 405 | } |
406 | } | 406 | } |
407 | 407 | ||
408 | if (TtyP->termios->c_oflag & ONLCR) { | 408 | if (TtyP->termios->c_oflag & ONLCR) { |
409 | rio_dprintk(RIO_DEBUG_PARAM, "Map newline to carriage-return, newline on output\n"); | 409 | rio_dprintk(RIO_DEBUG_PARAM, "Map newline to carriage-return, newline on output\n"); |
410 | if (PortP->CookMode == COOK_MEDIUM) | 410 | if (PortP->CookMode == COOK_MEDIUM) |
411 | Cor5 |= COR5_ONLCR; | 411 | Cor5 |= RIOC_COR5_ONLCR; |
412 | } | 412 | } |
413 | if (TtyP->termios->c_oflag & OCRNL) { | 413 | if (TtyP->termios->c_oflag & OCRNL) { |
414 | rio_dprintk(RIO_DEBUG_PARAM, "Map carriage return to newline on output\n"); | 414 | rio_dprintk(RIO_DEBUG_PARAM, "Map carriage return to newline on output\n"); |
415 | if (PortP->CookMode == COOK_MEDIUM) | 415 | if (PortP->CookMode == COOK_MEDIUM) |
416 | Cor5 |= COR5_OCRNL; | 416 | Cor5 |= RIOC_COR5_OCRNL; |
417 | } | 417 | } |
418 | if ((TtyP->termios->c_oflag & TABDLY) == TAB3) { | 418 | if ((TtyP->termios->c_oflag & TABDLY) == TAB3) { |
419 | rio_dprintk(RIO_DEBUG_PARAM, "Tab delay 3 set\n"); | 419 | rio_dprintk(RIO_DEBUG_PARAM, "Tab delay 3 set\n"); |
420 | if (PortP->CookMode == COOK_MEDIUM) | 420 | if (PortP->CookMode == COOK_MEDIUM) |
421 | Cor5 |= COR5_TAB3; | 421 | Cor5 |= RIOC_COR5_TAB3; |
422 | } | 422 | } |
423 | 423 | ||
424 | /* | 424 | /* |