Deleted Added
full compact
dpt_eisa.c (49360) dpt_eisa.c (49860)
1/*
2 * Copyright (c) 1997 by Matthew N. Dodd <winter@jurai.net>
3 * All Rights Reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 19 unchanged lines hidden (view full) ---

28 */
29
30/*
31 * Credits: Based on and part of the DPT driver for FreeBSD written and
32 * maintained by Simon Shapiro <shimon@simon-shapiro.org>
33 */
34
35/*
1/*
2 * Copyright (c) 1997 by Matthew N. Dodd <winter@jurai.net>
3 * All Rights Reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 19 unchanged lines hidden (view full) ---

28 */
29
30/*
31 * Credits: Based on and part of the DPT driver for FreeBSD written and
32 * maintained by Simon Shapiro <shimon@simon-shapiro.org>
33 */
34
35/*
36 * $Id: dpt_eisa.c,v 1.6 1999/05/08 21:59:19 dfr Exp $
36 * $Id: dpt_eisa.c,v 1.7 1999/08/01 22:57:09 mdodd Exp $
37 */
38
39#include "eisa.h"
40#if NEISA > 0
41#include "opt_dpt.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>

--- 97 unchanged lines hidden (view full) ---

142
143 dpt = dpt_alloc(unit, rman_get_bustag(io),
144 rman_get_bushandle(io) + DPT_EISA_EATA_REG_OFFSET);
145 if (dpt == NULL)
146 goto bad;
147
148 /* Allocate a dmatag representing the capabilities of this attachment */
149 /* XXX Should be a child of the EISA bus dma tag */
37 */
38
39#include "eisa.h"
40#if NEISA > 0
41#include "opt_dpt.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>

--- 97 unchanged lines hidden (view full) ---

142
143 dpt = dpt_alloc(unit, rman_get_bustag(io),
144 rman_get_bushandle(io) + DPT_EISA_EATA_REG_OFFSET);
145 if (dpt == NULL)
146 goto bad;
147
148 /* Allocate a dmatag representing the capabilities of this attachment */
149 /* XXX Should be a child of the EISA bus dma tag */
150 if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/0, /*boundary*/0,
150 if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/1, /*boundary*/0,
151 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
152 /*highaddr*/BUS_SPACE_MAXADDR,
153 /*filter*/NULL, /*filterarg*/NULL,
154 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT,
155 /*nsegments*/BUS_SPACE_UNRESTRICTED,
156 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT,
157 /*flags*/0, &dpt->parent_dmat) != 0) {
158 dpt_free(dpt);

--- 103 unchanged lines hidden ---
151 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
152 /*highaddr*/BUS_SPACE_MAXADDR,
153 /*filter*/NULL, /*filterarg*/NULL,
154 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT,
155 /*nsegments*/BUS_SPACE_UNRESTRICTED,
156 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT,
157 /*flags*/0, &dpt->parent_dmat) != 0) {
158 dpt_free(dpt);

--- 103 unchanged lines hidden ---