Deleted Added
full compact
if_le_cbus.c (158829) if_le_cbus.c (166138)
1/*-
2 * Copyright (c) 1994-2000
3 * Paul Richards. All rights reserved.
4 *
5 * PC-98 port by Chiharu Shibata & FreeBSD(98) porting team.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * from: FreeBSD: src/sys/dev/lnc/if_lnc_cbus.c,v 1.12 2005/11/12 19:14:21
33 */
34
35#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1994-2000
3 * Paul Richards. All rights reserved.
4 *
5 * PC-98 port by Chiharu Shibata & FreeBSD(98) porting team.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * from: FreeBSD: src/sys/dev/lnc/if_lnc_cbus.c,v 1.12 2005/11/12 19:14:21
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/dev/le/if_le_cbus.c 158829 2006-05-22 13:43:36Z nyan $");
36__FBSDID("$FreeBSD: head/sys/dev/le/if_le_cbus.c 166138 2007-01-20 09:57:09Z marius $");
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/bus.h>
41#include <sys/endian.h>
42#include <sys/kernel.h>
43#include <sys/lock.h>
44#include <sys/module.h>

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

285 if ((lesc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ,
286 &lesc->sc_irid, RF_SHAREABLE | RF_ACTIVE)) == NULL) {
287 device_printf(dev, "cannot allocate interrupt\n");
288 error = ENXIO;
289 goto fail_rres;
290 }
291
292 error = bus_dma_tag_create(
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/bus.h>
41#include <sys/endian.h>
42#include <sys/kernel.h>
43#include <sys/lock.h>
44#include <sys/module.h>

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

285 if ((lesc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ,
286 &lesc->sc_irid, RF_SHAREABLE | RF_ACTIVE)) == NULL) {
287 device_printf(dev, "cannot allocate interrupt\n");
288 error = ENXIO;
289 goto fail_rres;
290 }
291
292 error = bus_dma_tag_create(
293 NULL, /* parent */
293 bus_get_dma_tag(dev), /* parent */
294 1, 0, /* alignment, boundary */
295 BUS_SPACE_MAXADDR_24BIT, /* lowaddr */
296 BUS_SPACE_MAXADDR, /* highaddr */
297 NULL, NULL, /* filter, filterarg */
298 BUS_SPACE_MAXSIZE_32BIT, /* maxsize */
299 0, /* nsegments */
300 BUS_SPACE_MAXSIZE_32BIT, /* maxsegsize */
301 BUS_DMA_WAITOK, /* flags */

--- 150 unchanged lines hidden ---
294 1, 0, /* alignment, boundary */
295 BUS_SPACE_MAXADDR_24BIT, /* lowaddr */
296 BUS_SPACE_MAXADDR, /* highaddr */
297 NULL, NULL, /* filter, filterarg */
298 BUS_SPACE_MAXSIZE_32BIT, /* maxsize */
299 0, /* nsegments */
300 BUS_SPACE_MAXSIZE_32BIT, /* maxsegsize */
301 BUS_DMA_WAITOK, /* flags */

--- 150 unchanged lines hidden ---