summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-26 20:46:19 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-26 20:46:19 +0000
commit8c58f9fa25b6159cec363288cb3f4de5d9547be7 (patch)
tree1dc6842eb13028154093736112b839e94acfa84d
parent52c02128bdce6d319bec79c59fcd570c1d841f08 (diff)
Provide chipset configuration to sysctls.
-rw-r--r--sys/arch/alpha/pci/apecs.c6
-rw-r--r--sys/arch/alpha/pci/cia.c6
-rw-r--r--sys/arch/alpha/pci/irongate.c7
-rw-r--r--sys/arch/alpha/pci/lca.c6
-rw-r--r--sys/arch/alpha/pci/tsc.c6
5 files changed, 24 insertions, 7 deletions
diff --git a/sys/arch/alpha/pci/apecs.c b/sys/arch/alpha/pci/apecs.c
index 1b384f8d19b..1a6d1d561ef 100644
--- a/sys/arch/alpha/pci/apecs.c
+++ b/sys/arch/alpha/pci/apecs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apecs.c,v 1.11 2001/02/16 08:23:38 jason Exp $ */
+/* $OpenBSD: apecs.c,v 1.12 2001/06/26 20:46:18 art Exp $ */
/* $NetBSD: apecs.c,v 1.16 1996/12/05 01:39:34 cgd Exp $ */
/*-
@@ -164,6 +164,10 @@ apecs_init(acp, mallocsafe)
acp->ac_mallocsafe = mallocsafe;
apecs_pci_init(&acp->ac_pc, acp);
+ alpha_pci_chipset = &acp->ac_pc;
+ alpha_pci_chipset->pc_name = "apecs";
+ alpha_pci_chipset->pc_mem = APECS_PCI_SPARSE;
+ alpha_pci_chipset->pc_bwx = 0;
acp->ac_initted = 1;
}
diff --git a/sys/arch/alpha/pci/cia.c b/sys/arch/alpha/pci/cia.c
index 7d7aa3acfe9..10dadb1a97f 100644
--- a/sys/arch/alpha/pci/cia.c
+++ b/sys/arch/alpha/pci/cia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cia.c,v 1.12 2001/02/06 19:28:59 art Exp $ */
+/* $OpenBSD: cia.c,v 1.13 2001/06/26 20:46:18 art Exp $ */
/* $NetBSD: cia.c,v 1.56 2000/06/29 08:58:45 mrg Exp $ */
/*-
@@ -246,6 +246,10 @@ cia_init(ccp, mallocsafe)
ccp->cc_mallocsafe = mallocsafe;
cia_pci_init(&ccp->cc_pc, ccp);
+ alpha_pci_chipset = &ccp->cc_pc;
+ alpha_pci_chipset->pc_name = "cia";
+ alpha_pci_chipset->pc_mem = CIA_EV56_BWMEM;
+ alpha_pci_chipset->pc_bwx = pci_use_bwx;
ccp->cc_initted = 1;
}
diff --git a/sys/arch/alpha/pci/irongate.c b/sys/arch/alpha/pci/irongate.c
index 1429b9268ea..0438ff5107a 100644
--- a/sys/arch/alpha/pci/irongate.c
+++ b/sys/arch/alpha/pci/irongate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irongate.c,v 1.2 2001/04/17 14:53:33 art Exp $ */
+/* $OpenBSD: irongate.c,v 1.3 2001/06/26 20:46:18 art Exp $ */
/* $NetBSD: irongate.c,v 1.3 2000/11/29 06:29:10 thorpej Exp $ */
/*-
@@ -95,9 +95,10 @@ irongate_init(struct irongate_config *icp, int mallocsafe)
* revision info through configuration space.
*/
irongate_pci_init(&icp->ic_pc, icp);
-#if 0
alpha_pci_chipset = &icp->ic_pc;
-#endif
+ alpha_pci_chipset->pc_name = "irongate";
+ alpha_pci_chipset->pc_mem = IRONGATE_MEM_BASE;
+ alpha_pci_chipset->pc_bwx = 1;
tag = pci_make_tag(&icp->ic_pc, 0, IRONGATE_PCIHOST_DEV, 0);
diff --git a/sys/arch/alpha/pci/lca.c b/sys/arch/alpha/pci/lca.c
index cc483a56559..5564c3ccf0a 100644
--- a/sys/arch/alpha/pci/lca.c
+++ b/sys/arch/alpha/pci/lca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lca.c,v 1.10 2001/02/16 16:02:52 jason Exp $ */
+/* $OpenBSD: lca.c,v 1.11 2001/06/26 20:46:18 art Exp $ */
/* $NetBSD: lca.c,v 1.14 1996/12/05 01:39:35 cgd Exp $ */
/*-
@@ -166,6 +166,10 @@ lca_init(lcp, mallocsafe)
lcp->lc_mallocsafe = mallocsafe;
lca_pci_init(&lcp->lc_pc, lcp);
+ alpha_pci_chipset = &lcp->lc_pc;
+ alpha_pci_chipset->pc_name = "lca";
+ alpha_pci_chipset->pc_mem = LCA_PCI_SPARSE;
+ alpha_pci_chipset->pc_bwx = 0;
/*
* Refer to ``DECchip 21066 and DECchip 21068 Alpha AXP Microprocessors
diff --git a/sys/arch/alpha/pci/tsc.c b/sys/arch/alpha/pci/tsc.c
index 73cdcafffb4..ae4a444af13 100644
--- a/sys/arch/alpha/pci/tsc.c
+++ b/sys/arch/alpha/pci/tsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tsc.c,v 1.2 2001/04/14 22:19:11 mjacob Exp $ */
+/* $OpenBSD: tsc.c,v 1.3 2001/06/26 20:46:18 art Exp $ */
/* $NetBSD: tsc.c,v 1.3 2000/06/25 19:17:40 thorpej Exp $ */
/*-
@@ -231,6 +231,10 @@ tsp_init(mallocsafe, n)
}
pcp->pc_mallocsafe = mallocsafe;
tsp_pci_init(&pcp->pc_pc, pcp);
+ alpha_pci_chipset = &pcp->pc_pc;
+ alpha_pci_chipset->pc_name = "tsunami";
+ alpha_pci_chipset->pc_mem = TS_P0(0);
+ alpha_pci_chipset->pc_bwx = 1;
pcp->pc_initted = 1;
return pcp;
}