Deleted Added
full compact
agp_i810.c (241856) agp_i810.c (241885)
1/*-
2 * Copyright (c) 2000 Doug Rabson
3 * Copyright (c) 2000 Ruslan Ermilov
4 * Copyright (c) 2011 The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Konstantin Belousov
8 * under sponsorship from the FreeBSD Foundation.

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

33 * Fixes for 830/845G support: David Dawes <dawes@xfree86.org>
34 * 852GM/855GM/865G support added by David Dawes <dawes@xfree86.org>
35 *
36 * This is generic Intel GTT handling code, morphed from the AGP
37 * bridge code.
38 */
39
40#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000 Doug Rabson
3 * Copyright (c) 2000 Ruslan Ermilov
4 * Copyright (c) 2011 The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Konstantin Belousov
8 * under sponsorship from the FreeBSD Foundation.

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

33 * Fixes for 830/845G support: David Dawes <dawes@xfree86.org>
34 * 852GM/855GM/865G support added by David Dawes <dawes@xfree86.org>
35 *
36 * This is generic Intel GTT handling code, morphed from the AGP
37 * bridge code.
38 */
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/sys/dev/agp/agp_i810.c 241856 2012-10-22 03:41:14Z eadler $");
41__FBSDID("$FreeBSD: head/sys/dev/agp/agp_i810.c 241885 2012-10-22 13:06:09Z eadler $");
42
43#include "opt_bus.h"
44
45#if 0
46#define KTR_AGP_I810 KTR_DEV
47#else
48#define KTR_AGP_I810 0
49#endif

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

855
856static int
857agp_i810_probe(device_t dev)
858{
859 device_t bdev;
860 const struct agp_i810_match *match;
861 int err;
862
42
43#include "opt_bus.h"
44
45#if 0
46#define KTR_AGP_I810 KTR_DEV
47#else
48#define KTR_AGP_I810 0
49#endif

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

855
856static int
857agp_i810_probe(device_t dev)
858{
859 device_t bdev;
860 const struct agp_i810_match *match;
861 int err;
862
863 if (resource_disabled("agp", device_get_unit(dev)))
864 return (ENXIO);
863 match = agp_i810_match(dev);
864 if (match == NULL)
865 return (ENXIO);
866
867 bdev = agp_i810_find_bridge(dev);
868 if (bdev == NULL) {
869 if (bootverbose)
870 printf("I810: can't find bridge device\n");

--- 1694 unchanged lines hidden ---
865 match = agp_i810_match(dev);
866 if (match == NULL)
867 return (ENXIO);
868
869 bdev = agp_i810_find_bridge(dev);
870 if (bdev == NULL) {
871 if (bootverbose)
872 printf("I810: can't find bridge device\n");

--- 1694 unchanged lines hidden ---