summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-03-07 02:18:52 +0000
committerscottl <scottl@FreeBSD.org>2005-03-07 02:18:52 +0000
commitaf7da441d202b77327d0ba7b89ab575814c8d6fe (patch)
tree41bc1728e6ac9e2e260fa185d1d27cefa02c7d9f
parente685aa6ce97b7be5eb22c6df4d2362804686147d (diff)
downloadFreeBSD-src-af7da441d202b77327d0ba7b89ab575814c8d6fe.zip
FreeBSD-src-af7da441d202b77327d0ba7b89ab575814c8d6fe.tar.gz
Remove dead code.
-rw-r--r--sys/alpha/alpha/busdma_machdep.c17
-rw-r--r--sys/amd64/amd64/busdma_machdep.c17
-rw-r--r--sys/i386/i386/busdma_machdep.c17
-rw-r--r--sys/ia64/ia64/busdma_machdep.c17
4 files changed, 0 insertions, 68 deletions
diff --git a/sys/alpha/alpha/busdma_machdep.c b/sys/alpha/alpha/busdma_machdep.c
index a669d70..1ecc896 100644
--- a/sys/alpha/alpha/busdma_machdep.c
+++ b/sys/alpha/alpha/busdma_machdep.c
@@ -85,7 +85,6 @@ static int free_bpages;
static int reserved_bpages;
static int active_bpages;
static int total_bpages;
-static bus_addr_t bounce_lowaddr = BUS_SPACE_MAXADDR;
struct bus_dmamap {
struct bp_list bpages;
@@ -250,14 +249,6 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
if (newtag->lowaddr < ptoa(Maxmem) && (flags & BUS_DMA_ALLOCNOW) != 0) {
/* Must bounce */
- if (lowaddr > bounce_lowaddr) {
- /*
- * Go through the pool and kill any pages
- * that don't reside below lowaddr.
- */
- panic("bus_dma_tag_create: page reallocation "
- "not implemented");
- }
if (ptoa(total_bpages) < maxsize) {
int pages;
@@ -367,14 +358,6 @@ bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp)
&& total_bpages < maxpages)) {
int pages;
- if (dmat->lowaddr > bounce_lowaddr) {
- /*
- * Go through the pool and kill any pages
- * that don't reside below lowaddr.
- */
- panic("bus_dmamap_create: page reallocation "
- "not implemented");
- }
pages = atop(dmat->maxsize) + 1;
pages = MIN(maxpages - total_bpages, pages);
diff --git a/sys/amd64/amd64/busdma_machdep.c b/sys/amd64/amd64/busdma_machdep.c
index 9d631f2..34a3d08 100644
--- a/sys/amd64/amd64/busdma_machdep.c
+++ b/sys/amd64/amd64/busdma_machdep.c
@@ -105,7 +105,6 @@ static struct mtx bounce_lock;
static int total_bpages;
static int busdma_zonecount;
static STAILQ_HEAD(, bounce_zone) bounce_zone_list;
-static bus_addr_t bounce_lowaddr = BUS_SPACE_MAXADDR;
SYSCTL_NODE(_hw, OID_AUTO, busdma, CTLFLAG_RD, 0, "Busdma parameters");
SYSCTL_INT(_hw_busdma, OID_AUTO, total_bpages, CTLFLAG_RD, &total_bpages, 0,
@@ -290,14 +289,6 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
return (error);
bz = newtag->bounce_zone;
- if (lowaddr > bounce_lowaddr) {
- /*
- * Go through the pool and kill any pages
- * that don't reside below lowaddr.
- */
- panic("bus_dma_tag_create: page reallocation "
- "not implemented");
- }
if (ptoa(bz->total_bpages) < maxsize) {
int pages;
@@ -419,14 +410,6 @@ bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp)
|| (dmat->map_count > 0 && total_bpages < maxpages)) {
int pages;
- if (dmat->lowaddr > bounce_lowaddr) {
- /*
- * Go through the pool and kill any pages
- * that don't reside below lowaddr.
- */
- panic("bus_dmamap_create: page reallocation "
- "not implemented");
- }
pages = MAX(atop(dmat->maxsize), 1);
pages = MIN(maxpages - total_bpages, pages);
if (alloc_bounce_pages(dmat, pages) < pages)
diff --git a/sys/i386/i386/busdma_machdep.c b/sys/i386/i386/busdma_machdep.c
index 9d631f2..34a3d08 100644
--- a/sys/i386/i386/busdma_machdep.c
+++ b/sys/i386/i386/busdma_machdep.c
@@ -105,7 +105,6 @@ static struct mtx bounce_lock;
static int total_bpages;
static int busdma_zonecount;
static STAILQ_HEAD(, bounce_zone) bounce_zone_list;
-static bus_addr_t bounce_lowaddr = BUS_SPACE_MAXADDR;
SYSCTL_NODE(_hw, OID_AUTO, busdma, CTLFLAG_RD, 0, "Busdma parameters");
SYSCTL_INT(_hw_busdma, OID_AUTO, total_bpages, CTLFLAG_RD, &total_bpages, 0,
@@ -290,14 +289,6 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
return (error);
bz = newtag->bounce_zone;
- if (lowaddr > bounce_lowaddr) {
- /*
- * Go through the pool and kill any pages
- * that don't reside below lowaddr.
- */
- panic("bus_dma_tag_create: page reallocation "
- "not implemented");
- }
if (ptoa(bz->total_bpages) < maxsize) {
int pages;
@@ -419,14 +410,6 @@ bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp)
|| (dmat->map_count > 0 && total_bpages < maxpages)) {
int pages;
- if (dmat->lowaddr > bounce_lowaddr) {
- /*
- * Go through the pool and kill any pages
- * that don't reside below lowaddr.
- */
- panic("bus_dmamap_create: page reallocation "
- "not implemented");
- }
pages = MAX(atop(dmat->maxsize), 1);
pages = MIN(maxpages - total_bpages, pages);
if (alloc_bounce_pages(dmat, pages) < pages)
diff --git a/sys/ia64/ia64/busdma_machdep.c b/sys/ia64/ia64/busdma_machdep.c
index 6e4773e..911e9e7 100644
--- a/sys/ia64/ia64/busdma_machdep.c
+++ b/sys/ia64/ia64/busdma_machdep.c
@@ -87,7 +87,6 @@ static int active_bpages;
static int total_bpages;
static int total_bounced;
static int total_deferred;
-static bus_addr_t bounce_lowaddr = BUS_SPACE_MAXADDR;
SYSCTL_NODE(_hw, OID_AUTO, busdma, CTLFLAG_RD, 0, "Busdma parameters");
SYSCTL_INT(_hw_busdma, OID_AUTO, free_bpages, CTLFLAG_RD, &free_bpages, 0,
@@ -268,14 +267,6 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
if (newtag->lowaddr < ptoa(Maxmem) && (flags & BUS_DMA_ALLOCNOW) != 0) {
/* Must bounce */
- if (lowaddr > bounce_lowaddr) {
- /*
- * Go through the pool and kill any pages
- * that don't reside below lowaddr.
- */
- panic("bus_dma_tag_create: page reallocation "
- "not implemented");
- }
if (ptoa(total_bpages) < maxsize) {
int pages;
@@ -372,14 +363,6 @@ bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp)
|| (dmat->map_count > 0 && total_bpages < maxpages)) {
int pages;
- if (dmat->lowaddr > bounce_lowaddr) {
- /*
- * Go through the pool and kill any pages
- * that don't reside below lowaddr.
- */
- panic("bus_dmamap_create: page reallocation "
- "not implemented");
- }
pages = MAX(atop(dmat->maxsize), 1);
pages = MIN(maxpages - total_bpages, pages);
if (alloc_bounce_pages(dmat, pages) < pages)
OpenPOWER on IntegriCloud