Deleted Added
sdiff udiff text old ( 124365 ) new ( 124641 )
full compact
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 124365 2004-01-11 06:52:31Z imp $");
33
34/*
35 * PCI:PCI bridge support.
36 */
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>

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

316 if (!ok) {
317 if (start < sc->iobase)
318 start = sc->iobase;
319 if (end > sc->iolimit)
320 end = sc->iolimit;
321 }
322 } else {
323 ok = 1;
324 if (start < sc->iobase && end > sc->iolimit) {
325 start = sc->iobase;
326 end = sc->iolimit;
327 }
328
329 }
330 if (end < start) {
331 device_printf(dev, "ioport: end (%lx) < start (%lx)\n", end, start);
332 start = 0;
333 end = 0;
334 ok = 0;
335 }
336 if (!ok) {

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

371 end = sc->memlimit;
372 } else {
373 ok = 0;
374 }
375 }
376 }
377 } else if (!ok) {
378 ok = 1; /* subtractive bridge: always ok */
379 if (pcib_is_nonprefetch_open(sc)) {
380 if (start < sc->membase && end > sc->memlimit) {
381 start = sc->membase;
382 end = sc->memlimit;
383 }
384 }
385 if (pcib_is_prefetch_open(sc)) {
386 if (start < sc->pmembase && end > sc->pmemlimit) {
387 start = sc->pmembase;
388 end = sc->pmemlimit;
389 }
390 }
391 }
392 if (end < start) {
393 device_printf(dev, "memory: end (%lx) < start (%lx)\n", end, start);
394 start = 0;
395 end = 0;
396 ok = 0;
397 }
398 if (!ok && bootverbose)

--- 162 unchanged lines hidden ---