Deleted Added
full compact
agp_ali.c (134099) agp_ali.c (139431)
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

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

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
27#include <sys/cdefs.h>
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

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

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
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/agp/agp_ali.c 134099 2004-08-21 06:24:21Z anholt $");
28__FBSDID("$FreeBSD: head/sys/dev/agp/agp_ali.c 139431 2004-12-30 07:18:58Z anholt $");
29
30#include "opt_bus.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/malloc.h>
35#include <sys/kernel.h>
36#include <sys/module.h>

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

62 return NULL;
63
64 if (agp_find_caps(dev) == 0)
65 return NULL;
66
67 switch (pci_get_devid(dev)) {
68 case 0x154110b9:
69 return ("Ali M1541 host to AGP bridge");
29
30#include "opt_bus.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/malloc.h>
35#include <sys/kernel.h>
36#include <sys/module.h>

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

62 return NULL;
63
64 if (agp_find_caps(dev) == 0)
65 return NULL;
66
67 switch (pci_get_devid(dev)) {
68 case 0x154110b9:
69 return ("Ali M1541 host to AGP bridge");
70 case 0x162110b9:
71 return ("Ali M1621 host to AGP bridge");
70 };
71
72 };
73
72 if (pci_get_vendor(dev) == 0x10b9)
73 return ("Ali Generic host to PCI bridge");
74
75 return NULL;
76}
77
78static int
79agp_ali_probe(device_t dev)
80{
81 const char *desc;
82

--- 193 unchanged lines hidden ---
74 return NULL;
75}
76
77static int
78agp_ali_probe(device_t dev)
79{
80 const char *desc;
81

--- 193 unchanged lines hidden ---