diff options
| author | Matthew Wilcox <matthew@wil.cx> | 2005-12-15 16:22:01 -0500 |
|---|---|---|
| committer | James Bottomley <jejb@mulgrave.(none)> | 2005-12-15 21:41:27 -0500 |
| commit | 1abfd370134553f3b47e3e40a0526e05001409c2 (patch) | |
| tree | 44653f5df309634cfdf347dcf1ec961667721101 | |
| parent | 410ca5c7c6ed08bda165e8137bff26c3fbee5a1b (diff) | |
[SCSI] Rename scsi_print_msg to spi_print_msg
Rename scsi_print_msg to spi_print_msg and move its prototype from
scsi_dbg.h to scsi_transport_spi.h
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
| -rw-r--r-- | drivers/scsi/53c700.c | 6 | ||||
| -rw-r--r-- | drivers/scsi/53c7xx.c | 7 | ||||
| -rw-r--r-- | drivers/scsi/NCR5380.c | 7 | ||||
| -rw-r--r-- | drivers/scsi/aha152x.c | 7 | ||||
| -rw-r--r-- | drivers/scsi/arm/acornscsi.c | 7 | ||||
| -rw-r--r-- | drivers/scsi/atari_NCR5380.c | 7 | ||||
| -rw-r--r-- | drivers/scsi/scsi_transport_spi.c | 8 | ||||
| -rw-r--r-- | drivers/scsi/sun3_NCR5380.c | 7 | ||||
| -rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.c | 4 | ||||
| -rw-r--r-- | include/scsi/scsi_dbg.h | 1 | ||||
| -rw-r--r-- | include/scsi/scsi_transport_spi.h | 1 |
11 files changed, 34 insertions, 28 deletions
diff --git a/drivers/scsi/53c700.c b/drivers/scsi/53c700.c index e7ad269041a4..4ce7438608ec 100644 --- a/drivers/scsi/53c700.c +++ b/drivers/scsi/53c700.c | |||
| @@ -857,7 +857,7 @@ process_extended_message(struct Scsi_Host *host, | |||
| 857 | printk(KERN_INFO "scsi%d (%d:%d): Unexpected message %s: ", | 857 | printk(KERN_INFO "scsi%d (%d:%d): Unexpected message %s: ", |
| 858 | host->host_no, pun, lun, | 858 | host->host_no, pun, lun, |
| 859 | NCR_700_phase[(dsps & 0xf00) >> 8]); | 859 | NCR_700_phase[(dsps & 0xf00) >> 8]); |
| 860 | scsi_print_msg(hostdata->msgin); | 860 | spi_print_msg(hostdata->msgin); |
| 861 | printk("\n"); | 861 | printk("\n"); |
| 862 | /* just reject it */ | 862 | /* just reject it */ |
| 863 | hostdata->msgout[0] = A_REJECT_MSG; | 863 | hostdata->msgout[0] = A_REJECT_MSG; |
| @@ -887,7 +887,7 @@ process_message(struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata | |||
| 887 | #ifdef NCR_700_DEBUG | 887 | #ifdef NCR_700_DEBUG |
| 888 | printk("scsi%d (%d:%d): message %s: ", host->host_no, pun, lun, | 888 | printk("scsi%d (%d:%d): message %s: ", host->host_no, pun, lun, |
| 889 | NCR_700_phase[(dsps & 0xf00) >> 8]); | 889 | NCR_700_phase[(dsps & 0xf00) >> 8]); |
| 890 | scsi_print_msg(hostdata->msgin); | 890 | spi_print_msg(hostdata->msgin); |
| 891 | printk("\n"); | 891 | printk("\n"); |
| 892 | #endif | 892 | #endif |
| 893 | 893 | ||
| @@ -939,7 +939,7 @@ process_message(struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata | |||
| 939 | host->host_no, pun, lun, | 939 | host->host_no, pun, lun, |
| 940 | NCR_700_phase[(dsps & 0xf00) >> 8]); | 940 | NCR_700_phase[(dsps & 0xf00) >> 8]); |
| 941 | 941 | ||
| 942 | scsi_print_msg(hostdata->msgin); | 942 | spi_print_msg(hostdata->msgin); |
| 943 | printk("\n"); | 943 | printk("\n"); |
| 944 | /* just reject it */ | 944 | /* just reject it */ |
| 945 | hostdata->msgout[0] = A_REJECT_MSG; | 945 | hostdata->msgout[0] = A_REJECT_MSG; |
diff --git a/drivers/scsi/53c7xx.c b/drivers/scsi/53c7xx.c index 9cb5dd48383f..7894b8ea84bd 100644 --- a/drivers/scsi/53c7xx.c +++ b/drivers/scsi/53c7xx.c | |||
| @@ -282,6 +282,7 @@ | |||
| 282 | #include "scsi.h" | 282 | #include "scsi.h" |
| 283 | #include <scsi/scsi_dbg.h> | 283 | #include <scsi/scsi_dbg.h> |
| 284 | #include <scsi/scsi_host.h> | 284 | #include <scsi/scsi_host.h> |
| 285 | #include <scsi/scsi_transport_spi.h> | ||
| 285 | #include "53c7xx.h" | 286 | #include "53c7xx.h" |
| 286 | #include <linux/stat.h> | 287 | #include <linux/stat.h> |
| 287 | #include <linux/stddef.h> | 288 | #include <linux/stddef.h> |
| @@ -1724,7 +1725,7 @@ NCR53c7xx_run_tests (struct Scsi_Host *host) { | |||
| 1724 | printk ("scsi%d : status ", host->host_no); | 1725 | printk ("scsi%d : status ", host->host_no); |
| 1725 | scsi_print_status (status); | 1726 | scsi_print_status (status); |
| 1726 | printk ("\nscsi%d : message ", host->host_no); | 1727 | printk ("\nscsi%d : message ", host->host_no); |
| 1727 | scsi_print_msg (&msg); | 1728 | spi_print_msg(&msg); |
| 1728 | printk ("\n"); | 1729 | printk ("\n"); |
| 1729 | } else if (hostdata->test_completed == 3) { | 1730 | } else if (hostdata->test_completed == 3) { |
| 1730 | printk("scsi%d : test 2 no connection with target %d\n", | 1731 | printk("scsi%d : test 2 no connection with target %d\n", |
| @@ -2313,7 +2314,7 @@ NCR53c7x0_dstat_sir_intr (struct Scsi_Host *host, struct | |||
| 2313 | printk ("scsi%d : received message", host->host_no); | 2314 | printk ("scsi%d : received message", host->host_no); |
| 2314 | if (c) | 2315 | if (c) |
| 2315 | printk (" from target %d lun %d ", c->device->id, c->device->lun); | 2316 | printk (" from target %d lun %d ", c->device->id, c->device->lun); |
| 2316 | scsi_print_msg ((unsigned char *) hostdata->msg_buf); | 2317 | spi_print_msg((unsigned char *) hostdata->msg_buf); |
| 2317 | printk("\n"); | 2318 | printk("\n"); |
| 2318 | } | 2319 | } |
| 2319 | 2320 | ||
| @@ -5540,7 +5541,7 @@ print_dsa (struct Scsi_Host *host, u32 *dsa, const char *prefix) { | |||
| 5540 | i > 0 && !check_address ((unsigned long) ptr, 1); | 5541 | i > 0 && !check_address ((unsigned long) ptr, 1); |
| 5541 | ptr += len, i -= len) { | 5542 | ptr += len, i -= len) { |
| 5542 | printk(" "); | 5543 | printk(" "); |
| 5543 | len = scsi_print_msg (ptr); | 5544 | len = spi_print_msg(ptr); |
| 5544 | printk("\n"); | 5545 | printk("\n"); |
| 5545 | if (!len) | 5546 | if (!len) |
| 5546 | break; | 5547 | break; |
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index cba9655d0f14..9f0ddbe6dc76 100644 --- a/drivers/scsi/NCR5380.c +++ b/drivers/scsi/NCR5380.c | |||
| @@ -87,6 +87,7 @@ | |||
| 87 | * the high level code. | 87 | * the high level code. |
| 88 | */ | 88 | */ |
| 89 | #include <scsi/scsi_dbg.h> | 89 | #include <scsi/scsi_dbg.h> |
| 90 | #include <scsi/scsi_transport_spi.h> | ||
| 90 | 91 | ||
| 91 | #ifndef NDEBUG | 92 | #ifndef NDEBUG |
| 92 | #define NDEBUG 0 | 93 | #define NDEBUG 0 |
| @@ -2377,7 +2378,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) { | |||
| 2377 | * 3..length+1 arguments | 2378 | * 3..length+1 arguments |
| 2378 | * | 2379 | * |
| 2379 | * Start the extended message buffer with the EXTENDED_MESSAGE | 2380 | * Start the extended message buffer with the EXTENDED_MESSAGE |
| 2380 | * byte, since scsi_print_msg() wants the whole thing. | 2381 | * byte, since spi_print_msg() wants the whole thing. |
| 2381 | */ | 2382 | */ |
| 2382 | extended_msg[0] = EXTENDED_MESSAGE; | 2383 | extended_msg[0] = EXTENDED_MESSAGE; |
| 2383 | /* Accept first byte by clearing ACK */ | 2384 | /* Accept first byte by clearing ACK */ |
| @@ -2424,7 +2425,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) { | |||
| 2424 | default: | 2425 | default: |
| 2425 | if (!tmp) { | 2426 | if (!tmp) { |
| 2426 | printk("scsi%d: rejecting message ", instance->host_no); | 2427 | printk("scsi%d: rejecting message ", instance->host_no); |
| 2427 | scsi_print_msg(extended_msg); | 2428 | spi_print_msg(extended_msg); |
| 2428 | printk("\n"); | 2429 | printk("\n"); |
| 2429 | } else if (tmp != EXTENDED_MESSAGE) | 2430 | } else if (tmp != EXTENDED_MESSAGE) |
| 2430 | scmd_printk(KERN_INFO, cmd, | 2431 | scmd_printk(KERN_INFO, cmd, |
| @@ -2560,7 +2561,7 @@ static void NCR5380_reselect(struct Scsi_Host *instance) { | |||
| 2560 | 2561 | ||
| 2561 | if (!(msg[0] & 0x80)) { | 2562 | if (!(msg[0] & 0x80)) { |
| 2562 | printk(KERN_ERR "scsi%d : expecting IDENTIFY message, got ", instance->host_no); | 2563 | printk(KERN_ERR "scsi%d : expecting IDENTIFY message, got ", instance->host_no); |
| 2563 | scsi_print_msg(msg); | 2564 | spi_print_msg(msg); |
| 2564 | abort = 1; | 2565 | abort = 1; |
| 2565 | } else { | 2566 | } else { |
| 2566 | /* Accept message by clearing ACK */ | 2567 | /* Accept message by clearing ACK */ |
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index 9df23b654cec..cb2ee25f213f 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c | |||
| @@ -259,6 +259,7 @@ | |||
| 259 | #include "scsi.h" | 259 | #include "scsi.h" |
| 260 | #include <scsi/scsi_dbg.h> | 260 | #include <scsi/scsi_dbg.h> |
| 261 | #include <scsi/scsi_host.h> | 261 | #include <scsi/scsi_host.h> |
| 262 | #include <scsi/scsi_transport_spi.h> | ||
| 262 | #include "aha152x.h" | 263 | #include "aha152x.h" |
| 263 | 264 | ||
| 264 | 265 | ||
| @@ -1845,7 +1846,7 @@ static void msgi_run(struct Scsi_Host *shpnt) | |||
| 1845 | #if defined(AHA152X_DEBUG) | 1846 | #if defined(AHA152X_DEBUG) |
| 1846 | if (HOSTDATA(shpnt)->debug & debug_msgi) { | 1847 | if (HOSTDATA(shpnt)->debug & debug_msgi) { |
| 1847 | printk(INFO_LEAD "inbound message %02x ", CMDINFO(CURRENT_SC), MSGI(0)); | 1848 | printk(INFO_LEAD "inbound message %02x ", CMDINFO(CURRENT_SC), MSGI(0)); |
| 1848 | scsi_print_msg(&MSGI(0)); | 1849 | spi_print_msg(&MSGI(0)); |
| 1849 | printk("\n"); | 1850 | printk("\n"); |
| 1850 | } | 1851 | } |
| 1851 | #endif | 1852 | #endif |
| @@ -1933,7 +1934,7 @@ static void msgi_run(struct Scsi_Host *shpnt) | |||
| 1933 | break; | 1934 | break; |
| 1934 | 1935 | ||
| 1935 | printk(INFO_LEAD, CMDINFO(CURRENT_SC)); | 1936 | printk(INFO_LEAD, CMDINFO(CURRENT_SC)); |
| 1936 | scsi_print_msg(&MSGI(0)); | 1937 | spi_print_msg(&MSGI(0)); |
| 1937 | printk("\n"); | 1938 | printk("\n"); |
| 1938 | 1939 | ||
| 1939 | ticks = (MSGI(3) * 4 + 49) / 50; | 1940 | ticks = (MSGI(3) * 4 + 49) / 50; |
| @@ -2031,7 +2032,7 @@ static void msgo_init(struct Scsi_Host *shpnt) | |||
| 2031 | int i; | 2032 | int i; |
| 2032 | 2033 | ||
| 2033 | printk(DEBUG_LEAD "messages( ", CMDINFO(CURRENT_SC)); | 2034 | printk(DEBUG_LEAD "messages( ", CMDINFO(CURRENT_SC)); |
| 2034 | for (i=0; i<MSGOLEN; i+=scsi_print_msg(&MSGO(i)), printk(" ")) | 2035 | for (i=0; i<MSGOLEN; i+=spi_print_msg(&MSGO(i)), printk(" ")) |
| 2035 | ; | 2036 | ; |
| 2036 | printk(")\n"); | 2037 | printk(")\n"); |
