1/* $OpenBSD: dma_sbus.c,v 1.12 2005/03/03 01:41:45 miod Exp $ */
2/* $NetBSD: dma_sbus.c,v 1.5 2000/07/09 20:57:42 pk Exp $ */
3
4/*-
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
--- 49 unchanged lines hidden (view full) ---
58 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
59 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
60 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
61 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
62 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
63 */
64
65#include <sys/cdefs.h>
66__FBSDID("$FreeBSD: head/sys/sparc64/sbus/dma_sbus.c 182062 2008-08-23 15:20:33Z marius $");
67
68#include <sys/param.h>
69#include <sys/systm.h>
70#include <sys/bus.h>
71#include <sys/kernel.h>
72#include <sys/module.h>
73#include <sys/resource.h>
74#include <sys/rman.h>
--- 70 unchanged lines hidden (view full) ---
145
146static driver_t dma_driver = {
147 "dma",
148 dma_methods,
149 sizeof(struct dma_softc),
150};
151
152DRIVER_MODULE(dma, sbus, dma_driver, dma_devclass, 0, 0);
153MODULE_DEPEND(dma, sbus, 1, 1, 1);
154MODULE_VERSION(dma, 1);
155
156static int
157dma_probe(device_t dev)
158{
159 const char *name;
160
161 name = ofw_bus_get_name(dev);
162 if (strcmp(name, "espdma") == 0 || strcmp(name, "dma") == 0 ||
--- 262 unchanged lines hidden ---
2/* $NetBSD: dma_sbus.c,v 1.5 2000/07/09 20:57:42 pk Exp $ */
3
4/*-
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
--- 49 unchanged lines hidden (view full) ---
58 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
59 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
60 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
61 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
62 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
63 */
64
65#include <sys/cdefs.h>
66__FBSDID("$FreeBSD: head/sys/sparc64/sbus/dma_sbus.c 182062 2008-08-23 15:20:33Z marius $");
67
68#include <sys/param.h>
69#include <sys/systm.h>
70#include <sys/bus.h>
71#include <sys/kernel.h>
72#include <sys/module.h>
73#include <sys/resource.h>
74#include <sys/rman.h>
--- 70 unchanged lines hidden (view full) ---
145
146static driver_t dma_driver = {
147 "dma",
148 dma_methods,
149 sizeof(struct dma_softc),
150};
151
152DRIVER_MODULE(dma, sbus, dma_driver, dma_devclass, 0, 0);
153MODULE_DEPEND(dma, sbus, 1, 1, 1);
154MODULE_VERSION(dma, 1);
155
156static int
157dma_probe(device_t dev)
158{
159 const char *name;
160
161 name = ofw_bus_get_name(dev);
162 if (strcmp(name, "espdma") == 0 || strcmp(name, "dma") == 0 ||
--- 262 unchanged lines hidden ---