Fix errors when compiling for M68030 only. (Witek Wnuk)
This commit is contained in:
parent
9f60f89a46
commit
199165fe0d
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: bus.c,v 1.3 1998/05/11 07:46:15 leo Exp $ */
|
/* $NetBSD: bus.c,v 1.4 1998/05/18 12:06:46 leo Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
|
@ -336,13 +336,10 @@ bus_dmamap_sync(t, map, off, len, ops)
|
||||||
bus_size_t len;
|
bus_size_t len;
|
||||||
int ops;
|
int ops;
|
||||||
{
|
{
|
||||||
|
#if defined(M68040) || defined(M68060)
|
||||||
int i, pa_off, inc, seglen;
|
int i, pa_off, inc, seglen;
|
||||||
u_long pa, end_pa;
|
u_long pa, end_pa;
|
||||||
|
|
||||||
#if !defined(M68040) && !defined(M68060)
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (t == BUS_PCI_DMA_TAG)
|
if (t == BUS_PCI_DMA_TAG)
|
||||||
pa_off = 0x80000000; /* XXX */
|
pa_off = 0x80000000; /* XXX */
|
||||||
else pa_off = 0;
|
else pa_off = 0;
|
||||||
|
@ -377,6 +374,7 @@ bus_dmamap_sync(t, map, off, len, ops)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue