pci.c (59368) | pci.c (59783) |
---|---|
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 59368 2000-04-18 15:15:39Z phk $ | 26 * $FreeBSD: head/sys/dev/pci/pci.c 59783 2000-04-30 10:01:56Z bde $ |
27 * 28 */ 29 30#include "opt_bus.h" 31 32#include "opt_simos.h" 33#include "opt_compat_oldpci.h" 34 --- 1227 unchanged lines hidden (view full) --- 1262 printf(" irq %d", cfg->intline); 1263 } 1264 printf("\n"); 1265 1266 return; 1267} 1268 1269static int | 27 * 28 */ 29 30#include "opt_bus.h" 31 32#include "opt_simos.h" 33#include "opt_compat_oldpci.h" 34 --- 1227 unchanged lines hidden (view full) --- 1262 printf(" irq %d", cfg->intline); 1263 } 1264 printf("\n"); 1265 1266 return; 1267} 1268 1269static int |
1270pci_read_ivar(device_t dev, device_t child, int which, u_long *result) | 1270pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) |
1271{ 1272 struct pci_devinfo *dinfo; 1273 pcicfgregs *cfg; 1274 1275 dinfo = device_get_ivars(child); 1276 cfg = &dinfo->cfg; 1277 1278 switch (which) { --- 226 unchanged lines hidden --- | 1271{ 1272 struct pci_devinfo *dinfo; 1273 pcicfgregs *cfg; 1274 1275 dinfo = device_get_ivars(child); 1276 cfg = &dinfo->cfg; 1277 1278 switch (which) { --- 226 unchanged lines hidden --- |