diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-08-09 11:51:35 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-08-09 11:51:35 -0400 |
commit | c973b112c76c9d8fd042991128f218a738cc8d0a (patch) | |
tree | e813b0da5d0a0e19e06de6462d145a29ad683026 /drivers/cdrom | |
parent | c5fbc3966f48279dbebfde10248c977014aa9988 (diff) | |
parent | 00dd1e433967872f3997a45d5adf35056fdf2f56 (diff) |
Merge with /shiny/git/linux-2.6/.git
Diffstat (limited to 'drivers/cdrom')
-rw-r--r-- | drivers/cdrom/isp16.c | 2 | ||||
-rw-r--r-- | drivers/cdrom/mcdx.c | 8 | ||||
-rw-r--r-- | drivers/cdrom/optcd.c | 28 |
3 files changed, 19 insertions, 19 deletions
diff --git a/drivers/cdrom/isp16.c b/drivers/cdrom/isp16.c index 8e68d858ce64..db0fd9a240e3 100644 --- a/drivers/cdrom/isp16.c +++ b/drivers/cdrom/isp16.c | |||
@@ -18,7 +18,7 @@ | |||
18 | * | 18 | * |
19 | * 19 June 2004 -- check_region() converted to request_region() | 19 | * 19 June 2004 -- check_region() converted to request_region() |
20 | * and return statement cleanups. | 20 | * and return statement cleanups. |
21 | * Jesper Juhl <juhl-lkml@dif.dk> | 21 | * - Jesper Juhl |
22 | * | 22 | * |
23 | * Detect cdrom interface on ISP16 sound card. | 23 | * Detect cdrom interface on ISP16 sound card. |
24 | * Configure cdrom interface. | 24 | * Configure cdrom interface. |
diff --git a/drivers/cdrom/mcdx.c b/drivers/cdrom/mcdx.c index 07bbd24e3c18..b89420e6d704 100644 --- a/drivers/cdrom/mcdx.c +++ b/drivers/cdrom/mcdx.c | |||
@@ -51,7 +51,7 @@ | |||
51 | */ | 51 | */ |
52 | 52 | ||
53 | 53 | ||
54 | #if RCS | 54 | #ifdef RCS |
55 | static const char *mcdx_c_version | 55 | static const char *mcdx_c_version |
56 | = "$Id: mcdx.c,v 1.21 1997/01/26 07:12:59 davem Exp $"; | 56 | = "$Id: mcdx.c,v 1.21 1997/01/26 07:12:59 davem Exp $"; |
57 | #endif | 57 | #endif |
@@ -706,7 +706,7 @@ static int mcdx_open(struct cdrom_device_info *cdi, int purpose) | |||
706 | xtrace(OPENCLOSE, "open() init irq generation\n"); | 706 | xtrace(OPENCLOSE, "open() init irq generation\n"); |
707 | if (-1 == mcdx_config(stuffp, 1)) | 707 | if (-1 == mcdx_config(stuffp, 1)) |
708 | return -EIO; | 708 | return -EIO; |
709 | #if FALLBACK | 709 | #ifdef FALLBACK |
710 | /* Set the read speed */ | 710 | /* Set the read speed */ |
711 | xwarn("AAA %x AAA\n", stuffp->readcmd); | 711 | xwarn("AAA %x AAA\n", stuffp->readcmd); |
712 | if (stuffp->readerrs) | 712 | if (stuffp->readerrs) |
@@ -1216,7 +1216,7 @@ static int __init mcdx_init_drive(int drive) | |||
1216 | } | 1216 | } |
1217 | 1217 | ||
1218 | 1218 | ||
1219 | #if WE_KNOW_WHY | 1219 | #ifdef WE_KNOW_WHY |
1220 | /* irq 11 -> channel register */ | 1220 | /* irq 11 -> channel register */ |
1221 | outb(0x50, stuffp->wreg_chn); | 1221 | outb(0x50, stuffp->wreg_chn); |
1222 | #endif | 1222 | #endif |
@@ -1294,7 +1294,7 @@ static int mcdx_transfer(struct s_drive_stuff *stuffp, | |||
1294 | 1294 | ||
1295 | ans = mcdx_xfer(stuffp, p, sector, nr_sectors); | 1295 | ans = mcdx_xfer(stuffp, p, sector, nr_sectors); |
1296 | return ans; | 1296 | return ans; |
1297 | #if FALLBACK | 1297 | #ifdef FALLBACK |
1298 | if (-1 == ans) | 1298 | if (-1 == ans) |
1299 | stuffp->readerrs++; | 1299 | stuffp->readerrs++; |
1300 | else | 1300 | else |
diff --git a/drivers/cdrom/optcd.c b/drivers/cdrom/optcd.c index 7e69c54568bf..351a01dd503a 100644 --- a/drivers/cdrom/optcd.c +++ b/drivers/cdrom/optcd.c | |||
@@ -245,7 +245,7 @@ module_param(optcd_port, short, 0); | |||
245 | 245 | ||
246 | 246 | ||
247 | /* Busy wait until FLAG goes low. Return 0 on timeout. */ | 247 | /* Busy wait until FLAG goes low. Return 0 on timeout. */ |
248 | inline static int flag_low(int flag, unsigned long timeout) | 248 | static inline int flag_low(int flag, unsigned long timeout) |
249 | { | 249 | { |
250 | int flag_high; | 250 | int flag_high; |
251 | unsigned long count = 0; | 251 | unsigned long count = 0; |
@@ -381,7 +381,7 @@ static int send_seek_params(struct cdrom_msf *params) | |||
381 | 381 | ||
382 | /* Wait for command execution status. Choice between busy waiting | 382 | /* Wait for command execution status. Choice between busy waiting |
383 | and sleeping. Return value <0 indicates timeout. */ | 383 | and sleeping. Return value <0 indicates timeout. */ |
384 | inline static int get_exec_status(int busy_waiting) | 384 | static inline int get_exec_status(int busy_waiting) |
385 | { | 385 | { |
386 | unsigned char exec_status; | 386 | unsigned char exec_status; |
387 | 387 | ||
@@ -398,7 +398,7 @@ inline static int get_exec_status(int busy_waiting) | |||
398 | 398 | ||
399 | /* Wait busy for extra byte of data that a command returns. | 399 | /* Wait busy for extra byte of data that a command returns. |
400 | Return value <0 indicates timeout. */ | 400 | Return value <0 indicates timeout. */ |
401 | inline static int get_data(int short_timeout) | 401 | static inline int get_data(int short_timeout) |
402 | { | 402 | { |
403 | unsigned char data; | 403 | unsigned char data; |
404 | 404 | ||
@@ -441,14 +441,14 @@ static int reset_drive(void) | |||
441 | /* Facilities for asynchronous operation */ | 441 | /* Facilities for asynchronous operation */ |
442 | 442 | ||
443 | /* Read status/data availability flags FL_STEN and FL_DTEN */ | 443 | /* Read status/data availability flags FL_STEN and FL_DTEN */ |
444 | inline static int stdt_flags(void) | 444 | static inline int stdt_flags(void) |
445 | { | 445 | { |
446 | return inb(STATUS_PORT) & FL_STDT; | 446 | return inb(STATUS_PORT) & FL_STDT; |
447 | } | 447 | } |
448 | 448 | ||
449 | 449 | ||
450 | /* Fetch status that has previously been waited for. <0 means not available */ | 450 | /* Fetch status that has previously been waited for. <0 means not available */ |
451 | inline static int fetch_status(void) | 451 | static inline int fetch_status(void) |
452 | { | 452 | { |
453 | unsigned char status; | 453 | unsigned char status; |
454 | 454 | ||
@@ -462,7 +462,7 @@ inline static int fetch_status(void) | |||
462 | 462 | ||
463 | 463 | ||
464 | /* Fetch data that has previously been waited for. */ | 464 | /* Fetch data that has previously been waited for. */ |
465 | inline static void fetch_data(char *buf, int n) | 465 | static inline void fetch_data(char *buf, int n) |
466 | { | 466 | { |
467 | insb(DATA_PORT, buf, n); | 467 | insb(DATA_PORT, buf, n); |
468 | DEBUG((DEBUG_DRIVE_IF, "fetched 0x%x bytes", n)); | 468 | DEBUG((DEBUG_DRIVE_IF, "fetched 0x%x bytes", n)); |
@@ -470,7 +470,7 @@ inline static void fetch_data(char *buf, int n) | |||
470 | 470 | ||
471 | 471 | ||
472 | /* Flush status and data fifos */ | 472 | /* Flush status and data fifos */ |
473 | inline static void flush_data(void) | 473 | static inline void flush_data(void) |
474 | { | 474 | { |
475 | while ((inb(STATUS_PORT) & FL_STDT) != FL_STDT) | 475 | while ((inb(STATUS_PORT) & FL_STDT) != FL_STDT) |
476 | inb(DATA_PORT); | 476 | inb(DATA_PORT); |
@@ -482,7 +482,7 @@ inline static void flush_data(void) | |||
482 | 482 | ||
483 | /* Send a simple command and wait for response. Command codes < COMFETCH | 483 | /* Send a simple command and wait for response. Command codes < COMFETCH |
484 | are quick response commands */ | 484 | are quick response commands */ |
485 | inline static int exec_cmd(int cmd) | 485 | static inline int exec_cmd(int cmd) |
486 | { | 486 | { |
487 | int ack = send_cmd(cmd); | 487 | int ack = send_cmd(cmd); |
488 | if (ack < 0) | 488 | if (ack < 0) |
@@ -493,7 +493,7 @@ inline static int exec_cmd(int cmd) | |||
493 | 493 | ||
494 | /* Send a command with parameters. Don't wait for the response, | 494 | /* Send a command with parameters. Don't wait for the response, |
495 | * which consists of data blocks read from the CD. */ | 495 | * which consists of data blocks read from the CD. */ |
496 | inline static int exec_read_cmd(int cmd, struct cdrom_msf *params) | 496 | static inline int exec_read_cmd(int cmd, struct cdrom_msf *params) |
497 | { | 497 | { |
498 | int ack = send_cmd(cmd); | 498 | int ack = send_cmd(cmd); |
499 | if (ack < 0) | 499 | if (ack < 0) |
@@ -503,7 +503,7 @@ inline static int exec_read_cmd(int cmd, struct cdrom_msf *params) | |||
503 | 503 | ||
504 | 504 | ||
505 | /* Send a seek command with parameters and wait for response */ | 505 | /* Send a seek command with parameters and wait for response */ |
506 | inline static int exec_seek_cmd(int cmd, struct cdrom_msf *params) | 506 | static inline int exec_seek_cmd(int cmd, struct cdrom_msf *params) |
507 | { | 507 | { |
508 | int ack = send_cmd(cmd); | 508 | int ack = send_cmd(cmd); |
509 | if (ack < 0) | 509 | if (ack < 0) |
@@ -516,7 +516,7 @@ inline static int exec_seek_cmd(int cmd, struct cdrom_msf *params) | |||
516 | 516 | ||
517 | 517 | ||
518 | /* Send a command with parameters and wait for response */ | 518 | /* Send a command with parameters and wait for response */ |
519 | inline static int exec_long_cmd(int cmd, struct cdrom_msf *params) | 519 | static inline int exec_long_cmd(int cmd, struct cdrom_msf *params) |
520 | { | 520 | { |
521 | int ack = exec_read_cmd(cmd, params); | 521 | int ack = exec_read_cmd(cmd, params); |
522 | if (ack < 0) | 522 | if (ack < 0) |
@@ -528,7 +528,7 @@ inline static int exec_long_cmd(int cmd, struct cdrom_msf *params) | |||
528 | 528 | ||
529 | 529 | ||
530 | /* Binary to BCD (2 digits) */ | 530 | /* Binary to BCD (2 digits) */ |
531 | inline static void single_bin2bcd(u_char *p) | 531 | static inline void single_bin2bcd(u_char *p) |
532 | { | 532 | { |
533 | DEBUG((DEBUG_CONV, "bin2bcd %02d", *p)); | 533 | DEBUG((DEBUG_CONV, "bin2bcd %02d", *p)); |
534 | *p = (*p % 10) | ((*p / 10) << 4); | 534 | *p = (*p % 10) | ((*p / 10) << 4); |
@@ -565,7 +565,7 @@ static void lba2msf(int lba, struct cdrom_msf *msf) | |||
565 | 565 | ||
566 | 566 | ||
567 | /* Two BCD digits to binary */ | 567 | /* Two BCD digits to binary */ |
568 | inline static u_char bcd2bin(u_char bcd) | 568 | static inline u_char bcd2bin(u_char bcd) |
569 | { | 569 | { |
570 | DEBUG((DEBUG_CONV, "bcd2bin %x%02x", bcd)); | 570 | DEBUG((DEBUG_CONV, "bcd2bin %x%02x", bcd)); |
571 | return (bcd >> 4) * 10 + (bcd & 0x0f); | 571 | return (bcd >> 4) * 10 + (bcd & 0x0f); |
@@ -988,7 +988,7 @@ static char buf[CD_FRAMESIZE * N_BUFS]; | |||
988 | static volatile int buf_bn[N_BUFS], next_bn; | 988 | static volatile int buf_bn[N_BUFS], next_bn; |
989 | static volatile int buf_in = 0, buf_out = NOBUF; | 989 | static volatile int buf_in = 0, buf_out = NOBUF; |
990 | 990 | ||
991 | inline static void opt_invalidate_buffers(void) | 991 | static inline void opt_invalidate_buffers(void) |
992 | { | 992 | { |
993 | int i; | 993 | int i; |
994 | 994 | ||