* 2.5.14 error: ini9100u.c @ 2002-05-06 9:00 angus 2002-05-07 3:47 ` Douglas Gilbert 0 siblings, 1 reply; 5+ messages in thread From: angus @ 2002-05-06 9:00 UTC (permalink / raw) To: linux-kernel, linux-scsi 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 :( Please CC: back to me, as I'm not subscribed. Any help welcome, even bearers of bad news :) gcc -D__KERNEL__ -I/usr/src/linux-2.5.14/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.5.14/include/linux/modversions.h -DKBUILD_BASENAME=ini9100u -c -o ini9100u.o ini9100u.c ini9100u.c:111:2: #error Please convert me to Documentation/DMA-mapping.txt ini9100u.c: In function `i91uBuildSCB': ini9100u.c:494: structure has no member named `address' ini9100u.c:503: structure has no member named `address' make[2]: *** [ini9100u.o] Erreur 1 make[2]: Quitte le répertoire `/usr/src/linux-2.5.14/drivers/scsi' make[1]: *** [_modsubdir_scsi] Erreur 2 make[1]: Quitte le répertoire `/usr/src/linux-2.5.14/drivers' make: *** [_mod_drivers] Erreur 2 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 2.5.14 error: ini9100u.c 2002-05-06 9:00 2.5.14 error: ini9100u.c angus @ 2002-05-07 3:47 ` Douglas Gilbert 2002-05-08 10:43 ` angus 2002-07-11 23:21 ` Benjamin LaHaise 0 siblings, 2 replies; 5+ messages in thread From: Douglas Gilbert @ 2002-05-07 3:47 UTC (permalink / raw) To: angus; +Cc: linux-kernel, linux-scsi 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" ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 2.5.14 error: ini9100u.c 2002-05-07 3:47 ` Douglas Gilbert @ 2002-05-08 10:43 ` angus 2002-07-11 23:21 ` Benjamin LaHaise 1 sibling, 0 replies; 5+ messages in thread From: angus @ 2002-05-08 10:43 UTC (permalink / raw) To: Douglas Gilbert; +Cc: linux-kernel, linux-scsi Hello Douglas, Yes, it's worked! I hope that it could be integrate in the next 2.5 release. Thank you still. Le mar 07/05/2002 à 05:47, Douglas Gilbert a écrit : > 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 2.5.14 error: ini9100u.c 2002-05-07 3:47 ` Douglas Gilbert 2002-05-08 10:43 ` angus @ 2002-07-11 23:21 ` Benjamin LaHaise 2002-07-12 12:52 ` Douglas Gilbert 1 sibling, 1 reply; 5+ messages in thread From: Benjamin LaHaise @ 2002-07-11 23:21 UTC (permalink / raw) To: Douglas Gilbert; +Cc: angus, linux-kernel, linux-scsi On Mon, May 06, 2002 at 11:47:13PM -0400, Douglas Gilbert wrote: > -#error Please convert me to Documentation/DMA-mapping.txt > +/* #error Please convert me to Documentation/DMA-mapping.txt */ Please read the document the comment points to, *then* rewrite the patch. -ben ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 2.5.14 error: ini9100u.c 2002-07-11 23:21 ` Benjamin LaHaise @ 2002-07-12 12:52 ` Douglas Gilbert 0 siblings, 0 replies; 5+ messages in thread From: Douglas Gilbert @ 2002-07-12 12:52 UTC (permalink / raw) To: Benjamin LaHaise; +Cc: angus, linux-kernel, linux-scsi Benjamin LaHaise wrote: > > On Mon, May 06, 2002 at 11:47:13PM -0400, Douglas Gilbert wrote: > > -#error Please convert me to Documentation/DMA-mapping.txt > > +/* #error Please convert me to Documentation/DMA-mapping.txt */ > > Please read the document the comment points to, *then* rewrite the > patch. Ben, Be my guest. Doug Gilbert ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-07-12 12:49 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-05-06 9:00 2.5.14 error: ini9100u.c angus 2002-05-07 3:47 ` Douglas Gilbert 2002-05-08 10:43 ` angus 2002-07-11 23:21 ` Benjamin LaHaise 2002-07-12 12:52 ` Douglas Gilbert
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox