public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.26 : drivers/scsi/BusLogic.c
@ 2002-07-18 15:45 Dale Amon
  2002-07-18 16:16 ` Zwane Mwaikambo
  0 siblings, 1 reply; 11+ messages in thread
From: Dale Amon @ 2002-07-18 15:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Frank Davis

>As noted below, Frank Davis suggests I fire this back into the
>list for discussion.
>
>On Thu, Jul 18, 2002 at 11:04:17AM -0400, Frank Davis wrote:
>
>>Dale,
>> Here's what I know....
>>not all architectures define an 'address' variable in the struct 
>>scatterlist, so some archs will compile with no problems, others won't. 
>>If you're using a i386, there isn't an address variable. Here's what I 
>>suggest....email linux-kernel with the problem report for 2.5.26, and 
>>explain what I have stated above. I could have a bunch of #ifdef for 
>>each arch, but thats plain crazy. I'd be interested in what some other 
>>developers suggest. Sorry, I couldn't provide you a patch.
>>
>>Regards,
>>Frank
>>

BusLogic.c:32: #error Please convert me to Documentation/DMA-mapping.txt
BusLogic.c: In function `BusLogic_DetectHostAdapter':
BusLogic.c:2841: warning: long unsigned int format, BusLogic_IO_Address_T arg (arg 2)
BusLogic.c: In function `BusLogic_QueueCommand':
BusLogic.c:3415: structure has no member named `address'
BusLogic.c: In function `BusLogic_BIOSDiskParameters':
BusLogic.c:4141: warning: implicit declaration of function `scsi_bios_ptable'
BusLogic.c:4141: warning: assignment makes pointer from integer without a cast
make[2]: *** [BusLogic.o] Error 1


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: 2.5.26 : drivers/scsi/BusLogic.c
@ 2002-07-18 17:00 James Bottomley
  2002-07-18 23:24 ` Doug Ledford
  0 siblings, 1 reply; 11+ messages in thread
From: James Bottomley @ 2002-07-18 17:00 UTC (permalink / raw)
  To: Dale Amon; +Cc: linux-kernel, James.Bottomley

> BusLogic.c:32: #error Please convert me to Documentation/
> DMA-mapping.txt BusLogic.c: In function `BusLogic_DetectHostAdapter':
> BusLogic.c:2841: warning: long unsigned int format,
> BusLogic_IO_Address_T arg (arg 2) BusLogic.c: In function
> `BusLogic_QueueCommand': BusLogic.c:3415: structure has no member
> named `address' BusLogic.c: In function `BusLogic_BIOSDiskParameters':
> BusLogic.c:4141: warning: implicit declaration of function
> `scsi_bios_ptable' BusLogic.c:4141: warning: assignment makes pointer
> from integer without a cast make[2]: *** [BusLogic.o] Error 1

I have a single MCA Buslogic card on my shelf.  Assuming it hasn't got bitrot, 
I may be able to look at this soon.

In the meantime, if you want to try, the trick looks to be to use 
pci_map_single in BusLogic_CreateInitialCCBs; but then set up a reverse 
mapping table for them in BusLogic_InitializeCCBs so that Bus_to_Virtual will 
still work (its only use is to convert bus physical CCB addresses into CPU 
virtual ones).

Next, in BusLogic_QueueCommand you need to use pci_map_single for non-sg 
transformations, and pci_map_sg for sg plus in the loop over segments, use the 
macros

sg_dma_address(&ScatterList[Segment]) in place of ScatterList[Segment].address
sg_dma_len(&ScatterList[Segment]) in place ofScatterList[Segment].length

Initially, don't worry about unmapping, but this should get the thing working.

There are probably other places in the driver I've missed (like sense 
buffers), but that should be the core of the necessary changes.

I'm off on holiday for 10 days, so I'll only be getting email sporadically, if 
at all.

James



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-07-25 14:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-18 15:45 2.5.26 : drivers/scsi/BusLogic.c Dale Amon
2002-07-18 16:16 ` Zwane Mwaikambo
2002-07-19  1:03   ` Doug Ledford
2002-07-19  1:19     ` Doug Ledford
2002-07-19  7:18       ` Michael G. Janicki
2002-07-19  8:41     ` Zwane Mwaikambo
  -- strict thread matches above, loose matches on Subject: below --
2002-07-18 17:00 James Bottomley
2002-07-18 23:24 ` Doug Ledford
2002-07-19 14:30   ` stoffel
2002-07-20 15:14   ` Dale Amon
2002-07-25 14:32   ` Dale Amon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox