#define        DMA_TX  1               /* TX direction for DMA */
 #define        DMA_RX  2               /* RX direction for DMA */
 
-/* map/unmap shared (dma-able) memory */
-#define        DMA_MAP(osh, va, size, direction, p, dmah) \
-       osl_dma_map((osh), (va), (size), (direction))
-#define        DMA_UNMAP(osh, pa, size, direction, p, dmah) \
-       osl_dma_unmap((osh), (pa), (size), (direction))
-extern uint osl_dma_map(struct osl_info *osh, void *va, uint size,
-                       int direction);
-extern void osl_dma_unmap(struct osl_info *osh, uint pa, uint size,
-                         int direction);
-
 /* register access macros */
 #if defined(BCMSDIO)
 #ifdef BRCM_FULLMAC
 
        uint *msg_level;        /* message level pointer */
        char name[MAXNAMEL];    /* callers name for diag msgs */
 
-       void *osh;              /* os handle */
+       struct osl_info *osh;   /* os handle */
        si_t *sih;              /* sb handle */
 
        bool dma64;             /* this dma engine is operating in 64-bit mode */
                        memset(&di->rxp_dmah[rxout], 0,
                                sizeof(hnddma_seg_map_t));
 
-               pa = DMA_MAP(di->osh, p->data,
-                            di->rxbufsize, DMA_RX, p, &di->rxp_dmah[rxout]);
+               pa = pci_map_single(di->osh->pdev, p->data,
+                       di->rxbufsize, PCI_DMA_FROMDEVICE);
 
                ASSERT(IS_ALIGNED(PHYSADDRLO(pa), 4));
 
        if (len == 0)
                return 0;
 
-       pa = DMA_MAP(di->osh, buf, len, DMA_TX, NULL, &di->txp_dmah[txout]);
+       pa = pci_map_single(di->osh->pdev, buf, len, PCI_DMA_TODEVICE);
 
        flags = (D64_CTRL1_SOF | D64_CTRL1_IOC | D64_CTRL1_EOF);
 
                        memset(&di->txp_dmah[txout], 0,
                                sizeof(hnddma_seg_map_t));
 
-               pa = DMA_MAP(di->osh, data, len, DMA_TX, p,
-                            &di->txp_dmah[txout]);
+               pa = pci_map_single(di->osh->pdev, data, len, PCI_DMA_TODEVICE);
 
                if (DMASGLIST_ENAB) {
                        map = &di->txp_dmah[txout];
                                i = NEXTTXD(i);
                }
 
-               DMA_UNMAP(di->osh, pa, size, DMA_TX, txp, map);
+               pci_unmap_single(di->osh->pdev, pa, size, PCI_DMA_TODEVICE);
        }
 
        di->txin = i;
                       di->dataoffsethigh));
 
        /* clear this packet from the descriptor ring */
-       DMA_UNMAP(di->osh, pa, di->rxbufsize, DMA_RX, rxp, &di->rxp_dmah[i]);
+       pci_unmap_single(di->osh->pdev, pa, di->rxbufsize, PCI_DMA_FROMDEVICE);
 
        W_SM(&di->rxd64[i].addrlow, 0xdeadbeef);
        W_SM(&di->rxd64[i].addrhigh, 0xdeadbeef);
 
        pci_free_consistent(osh->pdev, size, va, (dma_addr_t) pa);
 }
 
-uint BCMFASTPATH osl_dma_map(struct osl_info *osh, void *va, uint size,
-                            int direction)
-{
-       int dir;
-
-       ASSERT((osh && (osh->magic == OS_HANDLE_MAGIC)));
-       dir = (direction == DMA_TX) ? PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE;
-       return pci_map_single(osh->pdev, va, size, dir);
-}
-
-void BCMFASTPATH osl_dma_unmap(struct osl_info *osh, uint pa, uint size,
-                              int direction)
-{
-       int dir;
-
-       ASSERT((osh && (osh->magic == OS_HANDLE_MAGIC)));
-       dir = (direction == DMA_TX) ? PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE;
-       pci_unmap_single(osh->pdev, (u32) pa, size, dir);
-}
-
 #if defined(BCMDBG_ASSERT)
 void osl_assert(char *exp, char *file, int line)
 {