aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2005-12-15 16:22:01 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2005-12-15 21:41:27 -0500
commit1abfd370134553f3b47e3e40a0526e05001409c2 (patch)
tree44653f5df309634cfdf347dcf1ec961667721101 /drivers
parent410ca5c7c6ed08bda165e8137bff26c3fbee5a1b (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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/53c700.c6
-rw-r--r--drivers/scsi/53c7xx.c7
-rw-r--r--drivers/scsi/NCR5380.c7
-rw-r--r--drivers/scsi/aha152x.c7
-rw-r--r--drivers/scsi/arm/acornscsi.c7
-rw-r--r--drivers/scsi/atari_NCR5380.c7
-rw-r--r--drivers/scsi/scsi_transport_spi.c8
-rw-r--r--drivers/scsi/sun3_NCR5380.c7
-rw-r--r--drivers/scsi/sym53c8xx_2/sym_hipd.c4
9 files changed, 33 insertions, 27 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");
2037 } 2038 }
diff --git a/drivers/scsi/arm/acornscsi.c b/drivers/scsi/arm/acornscsi.c
index b7b20c689c24..09ed05727bcb 100644
--- a/drivers/scsi/arm/acornscsi.c
+++ b/drivers/scsi/arm/acornscsi.c
@@ -152,6 +152,7 @@
152#include "../scsi.h" 152#include "../scsi.h"
153#include <scsi/scsi_dbg.h> 153#include <scsi/scsi_dbg.h>
154#include <scsi/scsi_host.h> 154#include <scsi/scsi_host.h>
155#include <scsi/scsi_transport_spi.h>
155#include "acornscsi.h" 156#include "acornscsi.h"
156#include "msgqueue.h" 157#include "msgqueue.h"
157#include "scsi.h" 158#include "scsi.h"
@@ -1370,7 +1371,7 @@ void acornscsi_sendmessage(AS_Host *host)
1370 1371
1371 host->scsi.last_message = msg->msg[0]; 1372 host->scsi.last_message = msg->msg[0];
1372#if (DEBUG & DEBUG_MESSAGES) 1373#if (DEBUG & DEBUG_MESSAGES)
1373 scsi_print_msg(msg->msg); 1374 spi_print_msg(msg->msg);
1374#endif 1375#endif
1375 break; 1376 break;
1376 1377
@@ -1392,7 +1393,7 @@ void acornscsi_sendmessage(AS_Host *host)
1392 while ((msg = msgqueue_getmsg(&host->scsi.msgs, msgnr++)) != NULL) { 1393 while ((msg = msgqueue_getmsg(&host->scsi.msgs, msgnr++)) != NULL) {
1393 unsigned int i; 1394 unsigned int i;
1394#if (DEBUG & DEBUG_MESSAGES) 1395#if (DEBUG & DEBUG_MESSAGES)
1395 scsi_print_msg(msg); 1396 spi_print_msg(msg);
1396#endif 1397#endif
1397 i = 0; 1398 i = 0;
1398 if (acornscsi_write_pio(host, msg->msg, &i, msg->length, 1000000)) 1399 if (acornscsi_write_pio(host, msg->msg, &i, msg->length, 1000000))
@@ -1488,7 +1489,7 @@ void acornscsi_message(AS_Host *host)
1488#if (DEBUG & DEBUG_MESSAGES) 1489#if (DEBUG & DEBUG_MESSAGES)
1489 printk("scsi%d.%c: message in: ", 1490 printk("scsi%d.%c: message in: ",
1490 host->host->host_no, acornscsi_target(host)); 1491 host->host->host_no, acornscsi_target(host));
1491 scsi_print_msg(message); 1492 spi_print_msg(message);
1492 printk("\n"); 1493 printk("\n");
1493#endif 1494#endif
1494 1495
diff --git a/drivers/scsi/atari_NCR5380.c b/drivers/scsi/atari_NCR5380.c
index 2ae31ceb32a8..57295bcea3e7 100644
--- a/drivers/scsi/atari_NCR5380.c
+++ b/drivers/scsi/atari_NCR5380.c
@@ -74,6 +74,7 @@
74 * the high level code. 74 * the high level code.
75 */ 75 */
76#include <scsi/scsi_dbg.h> 76#include <scsi/scsi_dbg.h>
77#include <scsi/scsi_transport_spi.h>
77 78
78#if (NDEBUG & NDEBUG_LISTS) 79#if (NDEBUG & NDEBUG_LISTS)
79#define LIST(x,y) \ 80#define LIST(x,y) \
@@ -2355,7 +2356,7 @@ static void NCR5380_information_transfer (struct Scsi_Host *instance)
2355 * 3..length+1 arguments 2356 * 3..length+1 arguments
2356 * 2357 *
2357 * Start the extended message buffer with the EXTENDED_MESSAGE 2358 * Start the extended message buffer with the EXTENDED_MESSAGE
2358 * byte, since scsi_print_msg() wants the whole thing. 2359 * byte, since spi_print_msg() wants the whole thing.
2359 */ 2360 */
2360 extended_msg[0] = EXTENDED_MESSAGE; 2361 extended_msg[0] = EXTENDED_MESSAGE;
2361 /* Accept first byte by clearing ACK */ 2362 /* Accept first byte by clearing ACK */
@@ -2408,7 +2409,7 @@ static void NCR5380_information_transfer (struct Scsi_Host *instance)
2408 default: 2409 default:
2409 if (!tmp) { 2410 if (!tmp) {
2410 printk(KERN_DEBUG "scsi%d: rejecting message ", HOSTNO); 2411 printk(KERN_DEBUG "scsi%d: rejecting message ", HOSTNO);
2411 scsi_print_msg (extended_msg); 2412 spi_print_msg(extended_msg);
2412 printk("\n"); 2413 printk("\n");
2413 } else if (tmp != EXTENDED_MESSAGE) 2414 } else if (tmp != EXTENDED_MESSAGE)
2414 printk(KERN_DEBUG "scsi%d: rejecting unknown " 2415 printk(KERN_DEBUG "scsi%d: rejecting unknown "
@@ -2541,7 +2542,7 @@ static void NCR5380_reselect (struct Scsi_Host *instance)
2541 2542
2542 if (!(msg[0] & 0x80)) { 2543 if (!(msg[0] & 0x80)) {
2543 printk(KERN_DEBUG "scsi%d: expecting IDENTIFY message, got ", HOSTNO); 2544 printk(KERN_DEBUG "scsi%d: expecting IDENTIFY message, got ", HOSTNO);
2544 scsi_print_msg(msg); 2545 spi_print_msg(msg);
2545 do_abort(instance); 2546 do_abort(instance);
2546 return; 2547 return;
2547 } 2548 }
diff --git a/drivers/scsi/scsi_transport_spi.c b/drivers/scsi/scsi_transport_spi.c
index 00a73fc23fcc..59fb69ba790e 100644
--- a/drivers/scsi/scsi_transport_spi.c
+++ b/drivers/scsi/scsi_transport_spi.c
@@ -1072,7 +1072,7 @@ static const char * const extended_msgs[] = {
1072#define NO_EXTENDED_MSGS (sizeof(two_byte_msgs) / sizeof (const char *)) 1072#define NO_EXTENDED_MSGS (sizeof(two_byte_msgs) / sizeof (const char *))
1073 1073
1074 1074
1075int scsi_print_msg (const unsigned char *msg) 1075int spi_print_msg(const unsigned char *msg)
1076{ 1076{
1077 int len = 0, i; 1077 int len = 0, i;
1078 if (msg[0] == EXTENDED_MESSAGE) { 1078 if (msg[0] == EXTENDED_MESSAGE) {
@@ -1125,11 +1125,11 @@ int scsi_print_msg (const unsigned char *msg)
1125 printk("reserved"); 1125 printk("reserved");
1126 return len; 1126 return len;
1127} 1127}
1128EXPORT_SYMBOL(scsi_print_msg); 1128EXPORT_SYMBOL(spi_print_msg);
1129 1129
1130#else /* ifndef CONFIG_SCSI_CONSTANTS */ 1130#else /* ifndef CONFIG_SCSI_CONSTANTS */
1131 1131
1132int scsi_print_msg (const unsigned char *msg) 1132int spi_print_msg(const unsigned char *msg)
1133{ 1133{
1134 int len = 0, i; 1134 int len = 0, i;
1135 1135
@@ -1153,7 +1153,7 @@ int scsi_print_msg (const unsigned char *msg)
1153 printk("%02x ", msg[0]); 1153 printk("%02x ", msg[0]);
1154 return len; 1154 return len;
1155} 1155}
1156EXPORT_SYMBOL(scsi_print_msg); 1156EXPORT_SYMBOL(spi_print_msg);
1157#endif /* ! CONFIG_SCSI_CONSTANTS */ 1157#endif /* ! CONFIG_SCSI_CONSTANTS */
1158 1158
1159#define SETUP_ATTRIBUTE(field) \ 1159#define SETUP_ATTRIBUTE(field) \
diff --git a/drivers/scsi/sun3_NCR5380.c b/drivers/scsi/sun3_NCR5380.c
index c041bfd56e12..25cced91c8a6 100644
--- a/drivers/scsi/sun3_NCR5380.c
+++ b/drivers/scsi/sun3_NCR5380.c
@@ -70,6 +70,7 @@
70 * 70 *
71 */ 71 */
72#include <scsi/scsi_dbg.h> 72#include <scsi/scsi_dbg.h>
73#include <scsi/scsi_transport_spi.h>
73 74
74/* 75/*
75 * Further development / testing that should be done : 76 * Further development / testing that should be done :
@@ -2378,7 +2379,7 @@ static void NCR5380_information_transfer (struct Scsi_Host *instance)
2378 * 3..length+1 arguments 2379 * 3..length+1 arguments
2379 * 2380 *
2380 * Start the extended message buffer with the EXTENDED_MESSAGE 2381 * Start the extended message buffer with the EXTENDED_MESSAGE
2381 * byte, since scsi_print_msg() wants the whole thing. 2382 * byte, since spi_print_msg() wants the whole thing.
2382 */ 2383 */
2383 extended_msg[0] = EXTENDED_MESSAGE; 2384 extended_msg[0] = EXTENDED_MESSAGE;
2384 /* Accept first byte by clearing ACK */ 2385 /* Accept first byte by clearing ACK */
@@ -2431,7 +2432,7 @@ static void NCR5380_information_transfer (struct Scsi_Host *instance)
2431 default: 2432 default:
2432 if (!tmp) { 2433 if (!tmp) {
2433 printk(KERN_DEBUG "scsi%d: rejecting message ", HOSTNO); 2434 printk(KERN_DEBUG "scsi%d: rejecting message ", HOSTNO);
2434 scsi_print_msg (extended_msg); 2435 spi_print_msg(extended_msg);
2435 printk("\n"); 2436 printk("\n");
2436 } else if (tmp != EXTENDED_MESSAGE) 2437 } else if (tmp != EXTENDED_MESSAGE)
2437 printk(KERN_DEBUG "scsi%d: rejecting unknown " 2438 printk(KERN_DEBUG "scsi%d: rejecting unknown "
@@ -2566,7 +2567,7 @@ static void NCR5380_reselect (struct Scsi_Host *instance)
2566 2567
2567 if (!(msg[0] & 0x80)) { 2568 if (!(msg[0] & 0x80)) {
2568 printk(KERN_DEBUG "scsi%d: expecting IDENTIFY message, got ", HOSTNO); 2569 printk(KERN_DEBUG "scsi%d: expecting IDENTIFY message, got ", HOSTNO);
2569 scsi_print_msg(msg); 2570 spi_print_msg(msg);
2570 do_abort(instance); 2571 do_abort(instance);
2571 return; 2572 return;
2572 } 2573 }
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c
index 1010e716162e..8260f040d39c 100644
--- a/drivers/scsi/sym53c8xx_2/sym_hipd.c
+++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c
@@ -75,7 +75,7 @@ static void sym_print_msg(struct sym_ccb *cp, char *label, u_char *msg)
75{ 75{
76 sym_print_addr(cp->cmd, "%s: ", label); 76 sym_print_addr(cp->cmd, "%s: ", label);
77 77
78 scsi_print_msg(msg); 78 spi_print_msg(msg);
79 printf("\n"); 79 printf("\n");
80} 80}
81 81
@@ -84,7 +84,7 @@ static void sym_print_nego_msg(struct sym_hcb *np, int target, char *label, u_ch
84 struct sym_tcb *tp = &np->target[target]; 84 struct sym_tcb *tp = &np->target[target];
85 dev_info(&tp->starget->dev, "%s: ", label); 85 dev_info(&tp->starget->dev, "%s: ", label);
86 86
87 scsi_print_msg(msg); 87 spi_print_msg(msg);
88 printf("\n"); 88 printf("\n");
89} 89}
90 90