Deleted Added
full compact
agp.c (63010) agp.c (66615)
1/*-
2 * Copyright (c) 2000 Doug Rabson
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 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2000 Doug Rabson
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 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/agp/agp.c 63010 2000-07-12 10:13:07Z dfr $
26 * $FreeBSD: head/sys/dev/agp/agp.c 66615 2000-10-04 01:29:17Z jasone $
27 */
28
29#include "opt_bus.h"
30#include "opt_pci.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/malloc.h>

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

266}
267
268int
269agp_generic_detach(device_t dev)
270{
271 struct agp_softc *sc = device_get_softc(dev);
272 bus_release_resource(dev, SYS_RES_MEMORY, AGP_APBASE, sc->as_aperture);
273 lockmgr(&sc->as_lock, LK_DRAIN, 0, curproc);
27 */
28
29#include "opt_bus.h"
30#include "opt_pci.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/malloc.h>

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

266}
267
268int
269agp_generic_detach(device_t dev)
270{
271 struct agp_softc *sc = device_get_softc(dev);
272 bus_release_resource(dev, SYS_RES_MEMORY, AGP_APBASE, sc->as_aperture);
273 lockmgr(&sc->as_lock, LK_DRAIN, 0, curproc);
274 lockdestroy(&sc->as_lock);
274 destroy_dev(sc->as_devnode);
275 agp_flush_cache();
276 return 0;
277}
278
279int
280agp_generic_enable(device_t dev, u_int32_t mode)
281{

--- 523 unchanged lines hidden ---
275 destroy_dev(sc->as_devnode);
276 agp_flush_cache();
277 return 0;
278}
279
280int
281agp_generic_enable(device_t dev, u_int32_t mode)
282{

--- 523 unchanged lines hidden ---