LinuxKPI buildfix for 32-bit DMA architectures after r346645.
The <sys/pctrie.h> APIs expect a 64-bit DMA key. This is fine as long as the DMA is less than or equal to 64 bits, which is currently the case. Sponsored by: Mellanox Technologies
This commit is contained in:
parent
56a70105df
commit
d4fedb75ec
@ -406,9 +406,11 @@ linux_pci_unregister_driver(struct pci_driver *pdrv)
|
||||
mtx_unlock(&Giant);
|
||||
}
|
||||
|
||||
CTASSERT(sizeof(dma_addr_t) <= sizeof(uint64_t));
|
||||
|
||||
struct linux_dma_obj {
|
||||
void *vaddr;
|
||||
dma_addr_t dma_addr;
|
||||
uint64_t dma_addr;
|
||||
bus_dmamap_t dmamap;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user