if_hatm, bus_dma_tag_create
Vincent Jardin <[email protected]> Thu, 30 Oct 2003 23:59:59 +0100
| Newsgroups | gmane.os.freebsd.devel.atm |
|---|---|
| Message-ID | <[email protected]> |
Hi,
if_hatm sets lowaddr to BUS_SPACE_MAXADDR_32BIT when it calls
bus_dma_tag_create().
It means that bus_dmamap_create() returns mapp = NULL, doesn'it ?
Then, why is lowaddr so high ;-( ?
Regards,
Vincent
PS:
/*
* Allocate a handle for mapping from kva/uva/physical
* address space into bus device space.
*/
int
bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp)
{
int error;
error = 0;
if (dmat->segments == NULL) {
dmat->segments = (bus_dma_segment_t *)malloc(
sizeof(bus_dma_segment_t) * dmat->nsegments, M_DEVBUF,
M_NOWAIT);
if (dmat->segments == NULL)
return (ENOMEM);
}
if (dmat->lowaddr < ptoa((vm_paddr_t)Maxmem)) {
/* Must bounce */
int maxpages;
...
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-atm
To unsubscribe, send any mail to "[email protected]"