diff options
author | mux <mux@FreeBSD.org> | 2004-08-22 23:01:13 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2004-08-22 23:01:13 +0000 |
commit | 4836740e24a9c2a7f2ffb3128912df4b0023c007 (patch) | |
tree | d3f4e7e1b5c434b96b1534709182e88711eab514 /sys | |
parent | 769c4fdece4e843388befb8a51f67cac1af8d570 (diff) | |
download | FreeBSD-src-4836740e24a9c2a7f2ffb3128912df4b0023c007.zip FreeBSD-src-4836740e24a9c2a7f2ffb3128912df4b0023c007.tar.gz |
Pass a correct lowaddr to bus_dma_tag_create(), lnc(4) cards can only
deal with 24-bit addresses. While the two other attachments, namely
isa and cbus, do it properly, the PCI attachment was passing
BUS_SPACE_MAXADDR instead of BUS_SPACE_MAXADDR_24BIT. This bug
became apparent with the new contigmalloc() code.
This fixes the problem reported with lnc(4) interfaces inside VMWare,
and should theoritically also fix any user of a PCI lnc(4) card. It
is a RELENG_5 MFC candidate.
Tested by: Florian Le Goff <madflo@beertech.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/lnc/if_lnc_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/lnc/if_lnc_pci.c b/sys/dev/lnc/if_lnc_pci.c index eee9277..688385a 100644 --- a/sys/dev/lnc/if_lnc_pci.c +++ b/sys/dev/lnc/if_lnc_pci.c @@ -154,7 +154,7 @@ lnc_pci_attach(device_t dev) err = bus_dma_tag_create(NULL, /* parent */ 1, /* alignement */ 0, /* boundary */ - BUS_SPACE_MAXADDR, /* lowaddr */ + BUS_SPACE_MAXADDR_24BIT, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ NULL, NULL, /* filter, filterarg */ lnc_mem_size, /* segsize */ |