Hi Mark,
Actualy I'm not getting any error from bus_dmamem_alloc, that's the strange
thing.
Yet printing the dma_map pointer shows 0 unless I use bus_dmamap_create
after bus_dmamem_alloc.
bus_mamap_load doesn't fail in both cases.
I'm working on an Ethernet driver for FreeBSD, pinging messages
Actualy I'm not getting any error from bus_dmamem_alloc, that's the strange
thing.
Yet printing the dma_map pointer shows 0 unless I use bus_dmamap_create
after bus_dmamem_alloc.
bus_mamap_load doesn't fail in both cases.
I'm working on an Ethernet driver for FreeBSD, pinging messages
I'm trying to use bus_dmamem_alloc. The function man says:
/*
* Allocate a piece of memory that can be efficiently mapped into
* bus device space based on the constraints listed in the dma tag.
* A dmamap to for use with dmamap_load is also allocated.
*/
so I'm running
so I'm running:
err =
bus_dmamem_alloc(ring-dma_tag, ring-buf,
BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW, ring-dma_map);
but after calling bus_dmamem_allloc the dma_map variable is still NULL. is
this OK?
Sure, you are allocating with BUS_DMA_NOWAIT. err is probably equal to ENOMEM
Il Monday 07 January 2008 03:18:21 Benjamin Close ha scritto:
vittorio wrote:
Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4
When loading if_wpi I get the following line saying that
bus_dmamem_alloc failed to align memory properly
SNIP
wpi0: Intel(R) PRO/Wireless 3945ABG mem
vittorio wrote:
Il Monday 07 January 2008 03:18:21 Benjamin Close ha scritto:
vittorio wrote:
Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4
When loading if_wpi I get the following line saying that
bus_dmamem_alloc failed to align memory properly
SNIP
wpi0: Intel(R) PRO
Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4
When loading if_wpi I get the following line saying that bus_dmamem_alloc
failed to align memory properly
SNIP
wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xd800-0xd8000fff irq 16 at
device 0.0 on pci2
bus_dmamem_alloc failed to align
vittorio wrote:
Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4
When loading if_wpi I get the following line saying that bus_dmamem_alloc
failed to align memory properly
SNIP
wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xd800-0xd8000fff irq 16 at
device 0.0 on pci2