Deleted Added
full compact
pcifront.c (256281) pcifront.c (265999)
1/*
2 * Copyright (c) 2006, Cisco Systems, Inc.
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 *

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

24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2006, Cisco Systems, Inc.
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 *

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

24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: stable/10/sys/dev/xen/pcifront/pcifront.c 227843 2011-11-22 21:28:20Z marius $");
32__FBSDID("$FreeBSD: stable/10/sys/dev/xen/pcifront/pcifront.c 265999 2014-05-14 01:35:43Z ian $");
33
34#include <sys/param.h>
35#include <sys/module.h>
36#include <sys/systm.h>
37#include <sys/mbuf.h>
38#include <sys/malloc.h>
39#include <sys/kernel.h>
40#include <sys/socket.h>

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

436/* Newbus xpcife device driver probe */
437static int
438xpcife_probe(device_t dev)
439{
440#ifdef XEN_PCIDEV_FE_DEBUG
441 struct pcifront_device *pdev = (struct pcifront_device *)device_get_ivars(dev);
442 DPRINTF("xpcife probe (unit=%d)\n", pdev->unit);
443#endif
33
34#include <sys/param.h>
35#include <sys/module.h>
36#include <sys/systm.h>
37#include <sys/mbuf.h>
38#include <sys/malloc.h>
39#include <sys/kernel.h>
40#include <sys/socket.h>

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

436/* Newbus xpcife device driver probe */
437static int
438xpcife_probe(device_t dev)
439{
440#ifdef XEN_PCIDEV_FE_DEBUG
441 struct pcifront_device *pdev = (struct pcifront_device *)device_get_ivars(dev);
442 DPRINTF("xpcife probe (unit=%d)\n", pdev->unit);
443#endif
444 return 0;
444 return (BUS_PROBE_NOWILDCARD);
445}
446
447/* Newbus xpcife device driver attach */
448static int
449xpcife_attach(device_t dev)
450{
451 struct pcifront_device *pdev = (struct pcifront_device *)device_get_ivars(dev);
452 int i, num_roots, len, err;

--- 236 unchanged lines hidden ---
445}
446
447/* Newbus xpcife device driver attach */
448static int
449xpcife_attach(device_t dev)
450{
451 struct pcifront_device *pdev = (struct pcifront_device *)device_get_ivars(dev);
452 int i, num_roots, len, err;

--- 236 unchanged lines hidden ---