summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/apecs_pci.c
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>1999-05-20 15:33:33 +0000
committergallatin <gallatin@FreeBSD.org>1999-05-20 15:33:33 +0000
commitf8d64a0d5d9f4e328ee3d40cc714ee5f4c11d6f4 (patch)
tree32247910857e9c75d853002a7468407f5cb8ecba /sys/alpha/pci/apecs_pci.c
parent2077acfca034178f39e3fa4e86cb8d371f44737c (diff)
downloadFreeBSD-src-f8d64a0d5d9f4e328ee3d40cc714ee5f4c11d6f4.zip
FreeBSD-src-f8d64a0d5d9f4e328ee3d40cc714ee5f4c11d6f4.tar.gz
Add support for multiple PCI "hoses" used on various alpha platforms.
The specific intent of this commit is to pave the way for importing Compaq XP1000 support. These changes should not affect the i386 port. Reviewed by: Doug Rabson <dfr@nlsystems.com> (actually, he walked me through most of it & deserves more than reviewd-by credit )
Diffstat (limited to 'sys/alpha/pci/apecs_pci.c')
-rw-r--r--sys/alpha/pci/apecs_pci.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/alpha/pci/apecs_pci.c b/sys/alpha/pci/apecs_pci.c
index cb05f8d..9181317 100644
--- a/sys/alpha/pci/apecs_pci.c
+++ b/sys/alpha/pci/apecs_pci.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: apecs_pci.c,v 1.1 1999/04/16 21:21:38 peter Exp $
+ * $Id: apecs_pci.c,v 1.2 1999/05/08 21:58:41 dfr Exp $
*/
#include <sys/param.h>
@@ -33,6 +33,7 @@
#include <sys/bus.h>
#include <machine/bus.h>
#include <sys/rman.h>
+#include <pci/pcivar.h>
static devclass_t pcib_devclass;
@@ -46,6 +47,16 @@ apecs_pcib_probe(device_t dev)
return 0;
}
+static int
+apecs_pcib_read_ivar(device_t dev, device_t child, int which, u_long *result)
+{
+ if (which == PCIB_IVAR_HOSE) {
+ *result = 0;
+ return 0;
+ }
+ return ENOENT;
+}
+
static device_method_t apecs_pcib_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, apecs_pcib_probe),
@@ -53,6 +64,7 @@ static device_method_t apecs_pcib_methods[] = {
/* Bus interface */
DEVMETHOD(bus_print_child, bus_generic_print_child),
+ DEVMETHOD(bus_read_ivar, apecs_pcib_read_ivar),
DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource),
DEVMETHOD(bus_release_resource, bus_generic_release_resource),
DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
OpenPOWER on IntegriCloud