pci_pci.c (154079) | pci_pci.c (157949) |
---|---|
1/*- 2 * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier 3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org> 4 * Copyright (c) 2000 BSDi 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier 3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org> 4 * Copyright (c) 2000 BSDi 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/pci/pci_pci.c 154079 2006-01-06 19:22:19Z jhb $"); | 32__FBSDID("$FreeBSD: head/sys/dev/pci/pci_pci.c 157949 2006-04-21 19:35:03Z jkim $"); |
33 34/* 35 * PCI:PCI bridge support. 36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> --- 141 unchanged lines hidden (view full) --- 182 sc->flags |= PCIB_SUBTRACTIVE; 183 break; 184 185 /* Compaq R3000 BIOS sets wrong subordinate bus number. */ 186 case 0x00dd10de: 187 { 188 char *cp; 189 | 33 34/* 35 * PCI:PCI bridge support. 36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> --- 141 unchanged lines hidden (view full) --- 182 sc->flags |= PCIB_SUBTRACTIVE; 183 break; 184 185 /* Compaq R3000 BIOS sets wrong subordinate bus number. */ 186 case 0x00dd10de: 187 { 188 char *cp; 189 |
190 cp = getenv("smbios.planar.maker"); 191 if (cp == NULL || strncmp(cp, "Compal", 6) != 0) | 190 if ((cp = getenv("smbios.planar.maker")) == NULL) |
192 break; | 191 break; |
193 cp = getenv("smbios.planar.product"); 194 if (cp == NULL || strncmp(cp, "08A0", 4) != 0) | 192 if (strncmp(cp, "Compal", 6) != 0) { 193 freeenv(cp); |
195 break; | 194 break; |
195 } 196 freeenv(cp); 197 if ((cp = getenv("smbios.planar.product")) == NULL) 198 break; 199 if (strncmp(cp, "08A0", 4) != 0) { 200 freeenv(cp); 201 break; 202 } 203 freeenv(cp); |
|
196 if (sc->subbus < 0xa) { 197 pci_write_config(dev, PCIR_SUBBUS_1, 0xa, 1); 198 sc->subbus = pci_read_config(dev, PCIR_SUBBUS_1, 1); 199 } 200 break; 201 } 202 } 203 --- 403 unchanged lines hidden --- | 204 if (sc->subbus < 0xa) { 205 pci_write_config(dev, PCIR_SUBBUS_1, 0xa, 1); 206 sc->subbus = pci_read_config(dev, PCIR_SUBBUS_1, 1); 207 } 208 break; 209 } 210 } 211 --- 403 unchanged lines hidden --- |