agp.c (214603) | agp.c (219902) |
---|---|
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.c 214603 2010-10-31 18:27:05Z nwhitehorn $"); | 28__FBSDID("$FreeBSD: head/sys/dev/agp/agp.c 219902 2011-03-23 13:10:15Z jhb $"); |
29 30#include "opt_agp.h" 31#include "opt_bus.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/malloc.h> 36#include <sys/kernel.h> --- 56 unchanged lines hidden (view full) --- 93} 94 95u_int8_t 96agp_find_caps(device_t dev) 97{ 98 int capreg; 99 100 | 29 30#include "opt_agp.h" 31#include "opt_bus.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/malloc.h> 36#include <sys/kernel.h> --- 56 unchanged lines hidden (view full) --- 93} 94 95u_int8_t 96agp_find_caps(device_t dev) 97{ 98 int capreg; 99 100 |
101 if (pci_find_extcap(dev, PCIY_AGP, &capreg) != 0) | 101 if (pci_find_cap(dev, PCIY_AGP, &capreg) != 0) |
102 capreg = 0; 103 return (capreg); 104} 105 106/* 107 * Find an AGP display device (if any). 108 */ 109static device_t --- 879 unchanged lines hidden --- | 102 capreg = 0; 103 return (capreg); 104} 105 106/* 107 * Find an AGP display device (if any). 108 */ 109static device_t --- 879 unchanged lines hidden --- |