Deleted Added
full compact
pci.c (58287) pci.c (59093)
1/*
2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org>
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

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

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org>
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

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

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/pci/pci.c 58287 2000-03-19 13:07:12Z peter $
26 * $FreeBSD: head/sys/dev/pci/pci.c 59093 2000-04-08 14:17:18Z dfr $
27 *
28 */
29
30#include "opt_bus.h"
31
32#include "opt_simos.h"
33#include "opt_compat_oldpci.h"
34

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

935 switch (type) {
936 case MOD_LOAD:
937 driver = malloc(sizeof(driver_t), M_DEVBUF, M_NOWAIT);
938 if (!driver)
939 return ENOMEM;
940 bzero(driver, sizeof(driver_t));
941 driver->name = dvp->pd_name;
942 driver->methods = pci_compat_methods;
27 *
28 */
29
30#include "opt_bus.h"
31
32#include "opt_simos.h"
33#include "opt_compat_oldpci.h"
34

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

935 switch (type) {
936 case MOD_LOAD:
937 driver = malloc(sizeof(driver_t), M_DEVBUF, M_NOWAIT);
938 if (!driver)
939 return ENOMEM;
940 bzero(driver, sizeof(driver_t));
941 driver->name = dvp->pd_name;
942 driver->methods = pci_compat_methods;
943 driver->softc = sizeof(struct pci_devinfo *);
943 driver->size = sizeof(struct pci_devinfo *);
944 driver->priv = dvp;
945 devclass_add_driver(pci_devclass, driver);
946 break;
947 case MOD_UNLOAD:
948 printf("%s: module unload not supported!\n", dvp->pd_name);
949 return EOPNOTSUPP;
950 default:
951 break;

--- 554 unchanged lines hidden ---
944 driver->priv = dvp;
945 devclass_add_driver(pci_devclass, driver);
946 break;
947 case MOD_UNLOAD:
948 printf("%s: module unload not supported!\n", dvp->pd_name);
949 return EOPNOTSUPP;
950 default:
951 break;

--- 554 unchanged lines hidden ---