summaryrefslogtreecommitdiffstats
path: root/sys/pci/pci.c
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1995-02-14 23:33:38 +0000
committerse <se@FreeBSD.org>1995-02-14 23:33:38 +0000
commit230cb92d92dc7967df65348bcacf846efff351af (patch)
treeb590e17e64b270c816d2b06d09727d38d9b72d8f /sys/pci/pci.c
parent5ec42e396325bb19eb4c1a6ceac495019348d3e0 (diff)
downloadFreeBSD-src-230cb92d92dc7967df65348bcacf846efff351af.zip
FreeBSD-src-230cb92d92dc7967df65348bcacf846efff351af.tar.gz
ncr.c:
New config option "NCR_IOMAPPED" makes the driver use port I/O. Put back in 53c815 defines, submitted by Mikael Hybsch <micke@dynas.se>. These had got lost between cvs rev. 1.14 and now ... pci.c: Really write config space register. Assign ports starting at 0xbc00. Submitted by: wolf Reviewed by: se
Diffstat (limited to 'sys/pci/pci.c')
-rw-r--r--sys/pci/pci.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index fa17f0b..fe27418 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: pci.c,v 1.12 1995/02/09 20:20:33 se Exp $
+** $Id: pci.c,v 1.9 1994/11/02 23:47:13 se Exp $
**
** General subroutines for the PCI bus on 80*86 systems.
** pci_configure ()
@@ -124,7 +124,7 @@ static vm_offset_t pci_paddr = PCI_PMEM_START;
*/
#ifndef PCI_PORT_START
-#define PCI_PORT_START 0x0400
+#define PCI_PORT_START 0xbc00
#endif
static u_short pci_ioaddr = PCI_PORT_START;
@@ -484,6 +484,12 @@ int pci_map_port (pcici_t tag, u_long reg, u_short* pa)
#endif
/*
+ ** set device address
+ */
+
+ pcibus.pb_write (tag, reg, (u_long) pci_ioaddr);
+
+ /*
** return them to the driver
*/
OpenPOWER on IntegriCloud