aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>1995-12-15 13:40:20 +0000
committerStefan Eßer <se@FreeBSD.org>1995-12-15 13:40:20 +0000
commit6549c8c929f49e4b8627fbef895d5e045104c852 (patch)
treee8ae72ff9d1530920c4d11242fcfd4c8c3cd4714 /sys/dev
parentc5a69148b9f2df7a4e754dd68b8a22832ae9f832 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index f9263b8bf01bb..3e893aa57ec20 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: pci.c,v 1.36 1995/12/07 12:47:42 davidg Exp $
+** $Id: pci.c,v 1.37 1995/12/14 09:54:08 phk Exp $
**
** General subroutines for the PCI bus.
** pci_configure ()
@@ -156,8 +156,8 @@ static struct pcicb pcibus0 = {
0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, /* real allocation */
0, 0xFFFF, /* iobase/limit */
- 0x4000000, 0xFFFFFFFFu, /* nonprefetch membase/limit */
- 0x4000000, 0xFFFFFFFFu /* prefetch membase/limit */
+ 0x2000000, 0xFFFFFFFFu, /* nonprefetch membase/limit */
+ 0x2000000, 0xFFFFFFFFu /* prefetch membase/limit */
};
static struct pcicb *pcicb;
@@ -923,7 +923,7 @@ int pci_map_port (pcici_t tag, u_long reg, u_short* pa)
};
iosize = -(data & PCI_MAP_IO_ADDRESS_MASK);
if (ioaddr < pcicb->pcicb_iobase
- || ioaddr + iosize > pcicb->pcicb_iolimit) {
+ || ioaddr + iosize -1 > pcicb->pcicb_iolimit) {
printf ("pci_map_port failed: device's iorange 0x%x-0x%x "
"is incompatible with its bridge's range 0x%x-0x%x\n",
(unsigned) ioaddr, (unsigned) ioaddr + iosize - 1,