remove dma_mask hacks
Subsystems (2)
PATCH 1/1 remove dma_mask hacks
pci_alloc_consistent is under 4G by default. Also simplify the definition of bus_dmamap_t.
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c +0 -2
@@ -211,13 +211,11 @@ && ahc_linux_get_memsize() > 0x80000000 && pci_set_dma_mask(pdev, mask_39bit) == 0) { ahc->flags |= AHC_39BIT_ADDRESSING; - ahc->platform_data->hw_dma_mask = mask_39bit; } else {if (pci_set_dma_mask (pdev,DMA_32BIT_MASK )) {printk (KERN_WARNING "aic7xxx: No suitable DMA available.\n" );return (-ENODEV ); } - ahc->platform_data->hw_dma_mask =DMA_32BIT_MASK ; } ahc->dev_softc = pci; error =ahc_pci_config (ahc, entry);
drivers/scsi/aic7xxx/aic7xxx_osm.c +5 -38
75 lines not on this page · raw message
drivers/scsi/aic7xxx/aic7xxx_osm.h +1 -6
@@ -178,11 +178,7 @@ };typedef struct ahc_linux_dma_tag *bus_dma_tag_t ; -struct ahc_linux_dmamap -{ -dma_addr_t bus_addr; -}; -typedef struct ahc_linux_dmamap *bus_dmamap_t ; +typedef dma_addr_t bus_dmamap_t ;typedef int bus_dma_filter_t (void *,dma_addr_t );typedef void bus_dmamap_callback_t (void *,bus_dma_segment_t *,int ,int );
@@ -483,7 +479,6 @@uint32_t irq;/* IRQ for this adapter */ uint32_t bios_address;uint32_t mem_busaddr;/* Mem Base Addr */ -uint64_t hw_dma_mask;ahc_linux_softc_flags flags; };