Skip to contentSkip to conversation

gdth: use dma_addr_t properly

PATCH New Christoph Hellwig 1 participant 1 message Sep 13, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gdth: use dma_addr_t properly

bus address returned from pci_alloc_consistant or pci_map_* should be stored in dma_addr_t variables.

drivers/scsi/gdth.h +4 -4
Index: linux-2.6/drivers/scsi/gdth.h
===================================================================
@@ -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) */