Deleted Added
full compact
if_ce.c (243857) if_ce.c (246128)
1/*
2 * Cronyx-Tau32-PCI adapter driver for FreeBSD.
3 *
4 * Copyright (C) 2003-2005 Cronyx Engineering.
5 * Copyright (C) 2003-2005 Kurakin Roman, <rik@FreeBSD.org>
6 *
7 * This software is distributed with NO WARRANTIES, not even the implied
8 * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 *
10 * Authors grant any other persons or organisations a permission to use,
11 * modify and redistribute this software in source and binary forms,
12 * as long as this message is kept with the software, all derivative
13 * works or modified versions.
14 *
15 * $Cronyx: if_ce.c,v 1.9.2.8 2005/11/21 14:17:44 rik Exp $
16 */
17
18#include <sys/cdefs.h>
1/*
2 * Cronyx-Tau32-PCI adapter driver for FreeBSD.
3 *
4 * Copyright (C) 2003-2005 Cronyx Engineering.
5 * Copyright (C) 2003-2005 Kurakin Roman, <rik@FreeBSD.org>
6 *
7 * This software is distributed with NO WARRANTIES, not even the implied
8 * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 *
10 * Authors grant any other persons or organisations a permission to use,
11 * modify and redistribute this software in source and binary forms,
12 * as long as this message is kept with the software, all derivative
13 * works or modified versions.
14 *
15 * $Cronyx: if_ce.c,v 1.9.2.8 2005/11/21 14:17:44 rik Exp $
16 */
17
18#include <sys/cdefs.h>
19__FBSDID("$FreeBSD: head/sys/dev/ce/if_ce.c 243857 2012-12-04 09:32:43Z glebius $");
19__FBSDID("$FreeBSD: head/sys/dev/ce/if_ce.c 246128 2013-01-30 18:01:20Z sbz $");
20
21#include <sys/param.h>
22
23#if __FreeBSD_version >= 500000
24# define NPCI 1
25#else
26# include "pci.h"
27#endif

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

140static int ce_detach __P((device_t));
141
142static device_method_t ce_methods[] = {
143 /* Device interface */
144 DEVMETHOD(device_probe, ce_probe),
145 DEVMETHOD(device_attach, ce_attach),
146 DEVMETHOD(device_detach, ce_detach),
147
20
21#include <sys/param.h>
22
23#if __FreeBSD_version >= 500000
24# define NPCI 1
25#else
26# include "pci.h"
27#endif

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

140static int ce_detach __P((device_t));
141
142static device_method_t ce_methods[] = {
143 /* Device interface */
144 DEVMETHOD(device_probe, ce_probe),
145 DEVMETHOD(device_attach, ce_attach),
146 DEVMETHOD(device_detach, ce_detach),
147
148 {0, 0}
148 DEVMETHOD_END
149};
150
151typedef struct _ce_dma_mem_t {
152 unsigned long phys;
153 void *virt;
154 size_t size;
155#if __FreeBSD_version >= 500000
156 bus_dma_tag_t dmat;

--- 2514 unchanged lines hidden ---
149};
150
151typedef struct _ce_dma_mem_t {
152 unsigned long phys;
153 void *virt;
154 size_t size;
155#if __FreeBSD_version >= 500000
156 bus_dma_tag_t dmat;

--- 2514 unchanged lines hidden ---