* [PATCH] gdth: use dma_addr_t properly
@ 2005-09-13 17:55 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2005-09-13 17:55 UTC (permalink / raw)
To: achim_leubner; +Cc: linux-scsi
bus address returned from pci_alloc_consistant or pci_map_* should
be stored in dma_addr_t variables.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: linux-2.6/drivers/scsi/gdth.h
===================================================================
--- linux-2.6.orig/drivers/scsi/gdth.h 2005-09-11 18:12:24.000000000 +0200
+++ linux-2.6/drivers/scsi/gdth.h 2005-09-11 18:14:51.000000000 +0200
@@ -872,17 +872,17 @@
ulong32 brd_phys; /* slot number/BIOS address */
gdt6c_plx_regs *plx; /* PLX regs (new PCI contr.) */
gdth_cmd_str *pccb; /* address command structure */
- ulong32 ccb_phys; /* phys. address */
+ dma_addr_t ccb_phys; /* phys. address */
#ifdef INT_COAL
gdth_coal_status *coal_stat; /* buffer for coalescing int.*/
- ulong64 coal_stat_phys; /* phys. address */
+ dma_addr_t coal_stat_phys; /* phys. address */
#endif
char *pscratch; /* scratch (DMA) buffer */
- ulong64 scratch_phys; /* phys. address */
+ dma_addr_t scratch_phys; /* phys. address */
unchar scratch_busy; /* in use? */
unchar dma64_support; /* 64-bit DMA supported? */
gdth_msg_str *pmsg; /* message buffer */
- ulong64 msg_phys; /* phys. address */
+ dma_addr_t msg_phys; /* phys. address */
unchar scan_mode; /* current scan mode */
unchar irq; /* IRQ */
unchar drq; /* DRQ (ISA controllers) */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-13 17:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-13 17:55 [PATCH] gdth: use dma_addr_t properly Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).