From: Douglas Gilbert <dougg@torque.net>
To: angus <angus@mcm.net>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: 2.5.14 error: ini9100u.c
Date: Mon, 06 May 2002 23:47:13 -0400 [thread overview]
Message-ID: <3CD74E41.D39C1F23@torque.net> (raw)
In-Reply-To: 1020675649.20692.6.camel@localhost.localdomain
angus wrote:
>
> Just a bug report of compilation which perdure since several 2.5 release
> concerning the driver of initio scsi card and which prevents me from
> testing any 2.5.x :(
Angus,
The following patch makes that driver compile ok. Can you
report back whether it works or not (as I don't have
that adapter to test).
Doug Gilbert
--- linux/drivers/scsi/ini9100u.h Thu Dec 20 17:38:10 2001
+++ linux/drivers/scsi/ini9100u.h2514hak Mon May 6 23:38:10 2002
@@ -82,8 +82,11 @@
extern int i91u_release(struct Scsi_Host *);
extern int i91u_command(Scsi_Cmnd *);
extern int i91u_queue(Scsi_Cmnd *, void (*done) (Scsi_Cmnd *));
+#if 0
extern int i91u_abort(Scsi_Cmnd *);
extern int i91u_reset(Scsi_Cmnd *, unsigned int);
+#endif
+static int i91u_eh_bus_reset(Scsi_Cmnd * SCpnt);
extern int i91u_biosparam(Scsi_Disk *, kdev_t, int *); /*for linux v2.0 */
#define i91u_REVID "Initio INI-9X00U/UW SCSI device driver; Revision: 1.03g"
@@ -102,10 +105,8 @@
eh_strategy_handler: NULL, \
eh_abort_handler: NULL, \
eh_device_reset_handler: NULL, \
- eh_bus_reset_handler: NULL, \
+ eh_bus_reset_handler: i91u_eh_bus_reset, \
eh_host_reset_handler: NULL, \
- abort: i91u_abort, \
- reset: i91u_reset, \
slave_attach: NULL, \
bios_param: i91u_biosparam, \
can_queue: 1, \
--- linux/drivers/scsi/ini9100u.c Sun Feb 10 23:51:42 2002
+++ linux/drivers/scsi/ini9100u.c2514hak Mon May 6 23:39:28 2002
@@ -108,7 +108,7 @@
#define CVT_LINUX_VERSION(V,P,S) (V * 65536 + P * 256 + S)
-#error Please convert me to Documentation/DMA-mapping.txt
+/* #error Please convert me to Documentation/DMA-mapping.txt */
#ifndef LINUX_VERSION_CODE
#include <linux/version.h>
@@ -491,7 +491,9 @@
if (SCpnt->use_sg) {
pSrbSG = (struct scatterlist *) SCpnt->request_buffer;
if (SCpnt->use_sg == 1) { /* If only one entry in the list *//* treat it as regular I/O */
- pSCB->SCB_BufPtr = (U32) VIRT_TO_BUS(pSrbSG->address);
+ pSCB->SCB_BufPtr = (U32) VIRT_TO_BUS(
+ (unsigned char *)page_address(pSrbSG->page) +
+ pSrbSG->offset);
TotalLen = pSrbSG->length;
pSCB->SCB_SGLen = 0;
} else { /* Assign SG physical address */
@@ -500,7 +502,9 @@
for (i = 0, TotalLen = 0, pSG = &pSCB->SCB_SGList[0]; /* 1.01g */
i < SCpnt->use_sg;
i++, pSG++, pSrbSG++) {
- pSG->SG_Ptr = (U32) VIRT_TO_BUS(pSrbSG->address);
+ pSG->SG_Ptr = (U32) VIRT_TO_BUS(
+ (unsigned char *)page_address(pSrbSG->page) +
+ pSrbSG->offset);
TotalLen += pSG->SG_Len = pSrbSG->length;
}
pSCB->SCB_SGLen = i;
@@ -552,6 +556,7 @@
return -1;
}
+#if 0
/*
* Abort a queued command
* (commands that are on the bus can't be aborted easily)
@@ -579,6 +584,16 @@
else
return tul_device_reset(pHCB, (ULONG) SCpnt, SCpnt->target, reset_flags);
}
+#endif
+
+static int i91u_eh_bus_reset(Scsi_Cmnd * SCpnt)
+{
+ HCS *pHCB;
+
+ pHCB = (HCS *) SCpnt->host->base;
+ tul_reset_scsi_bus(pHCB);
+ return SUCCESS;
+}
/*
* Return the "logical geometry"
next prev parent reply other threads:[~2002-05-07 3:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-06 9:00 2.5.14 error: ini9100u.c angus
2002-05-06 9:00 ` angus
2002-05-07 3:47 ` Douglas Gilbert [this message]
2002-05-08 10:43 ` angus
2002-05-08 10:43 ` angus
2002-07-11 23:21 ` Benjamin LaHaise
2002-07-11 23:21 ` Benjamin LaHaise
2002-07-12 12:52 ` Douglas Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3CD74E41.D39C1F23@torque.net \
--to=dougg@torque.net \
--cc=angus@mcm.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.