summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/pci/apecs.c4
-rw-r--r--sys/arch/alpha/pci/cia.c5
-rw-r--r--sys/arch/alpha/pci/irongate.c6
-rw-r--r--sys/arch/alpha/pci/lca.c4
-rw-r--r--sys/arch/alpha/pci/mcpcia.c6
-rw-r--r--sys/arch/alpha/pci/tsc.c4
6 files changed, 14 insertions, 15 deletions
diff --git a/sys/arch/alpha/pci/apecs.c b/sys/arch/alpha/pci/apecs.c
index 5c596fb5201..43dc7578570 100644
--- a/sys/arch/alpha/pci/apecs.c
+++ b/sys/arch/alpha/pci/apecs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apecs.c,v 1.21 2008/06/26 05:42:08 ray Exp $ */
+/* $OpenBSD: apecs.c,v 1.22 2009/03/30 21:43:13 kettenis Exp $ */
/* $NetBSD: apecs.c,v 1.16 1996/12/05 01:39:34 cgd Exp $ */
/*-
@@ -230,6 +230,7 @@ apecsattach(parent, self, aux)
panic("apecsattach: shouldn't be here, really...");
}
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = &acp->ac_iot;
pba.pba_memt = &acp->ac_memt;
@@ -238,7 +239,6 @@ apecsattach(parent, self, aux)
pba.pba_pc = &acp->ac_pc;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = 0;
- pba.pba_bridgetag = NULL;
#ifdef notyet
pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED |
PCI_FLAGS_MRL_OKAY | PCI_FLAGS_MRM_OKAY | PCI_FLAGS_MWI_OKAY;
diff --git a/sys/arch/alpha/pci/cia.c b/sys/arch/alpha/pci/cia.c
index 939ff04e2bb..d3fc3c43d93 100644
--- a/sys/arch/alpha/pci/cia.c
+++ b/sys/arch/alpha/pci/cia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cia.c,v 1.24 2008/06/26 05:42:08 ray Exp $ */
+/* $OpenBSD: cia.c,v 1.25 2009/03/30 21:43:13 kettenis Exp $ */
/* $NetBSD: cia.c,v 1.56 2000/06/29 08:58:45 mrg Exp $ */
/*-
@@ -387,6 +387,7 @@ ciaattach(parent, self, aux)
panic("ciaattach: shouldn't be here, really...");
}
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = &ccp->cc_iot;
pba.pba_memt = &ccp->cc_memt;
@@ -395,8 +396,6 @@ ciaattach(parent, self, aux)
pba.pba_pc = &ccp->cc_pc;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = 0;
- pba.pba_bridgetag = NULL;
-
#ifdef notyet
pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;
if ((ccp->cc_flags & CCF_PYXISBUG) == 0)
diff --git a/sys/arch/alpha/pci/irongate.c b/sys/arch/alpha/pci/irongate.c
index 5b4980a4a42..4e32d716391 100644
--- a/sys/arch/alpha/pci/irongate.c
+++ b/sys/arch/alpha/pci/irongate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irongate.c,v 1.10 2008/06/26 05:42:08 ray Exp $ */
+/* $OpenBSD: irongate.c,v 1.11 2009/03/30 21:43:13 kettenis Exp $ */
/* $NetBSD: irongate.c,v 1.3 2000/11/29 06:29:10 thorpej Exp $ */
/*-
@@ -170,6 +170,7 @@ irongate_attach(struct device *parent, struct device *self, void *aux)
panic("irongate_attach: shouldn't be here, really...");
}
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = &icp->ic_iot;
pba.pba_memt = &icp->ic_memt;
@@ -178,12 +179,11 @@ irongate_attach(struct device *parent, struct device *self, void *aux)
pba.pba_pc = &icp->ic_pc;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = 0;
- pba.pba_bridgetag = NULL;
#ifdef notyet
pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED |
PCI_FLAGS_MRL_OKAY | PCI_FLAGS_MRM_OKAY | PCI_FLAGS_MWI_OKAY;
#endif
- (void) config_found(self, &pba, irongate_print);
+ config_found(self, &pba, irongate_print);
}
int
diff --git a/sys/arch/alpha/pci/lca.c b/sys/arch/alpha/pci/lca.c
index 34c92da7249..66029e2c3de 100644
--- a/sys/arch/alpha/pci/lca.c
+++ b/sys/arch/alpha/pci/lca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lca.c,v 1.20 2008/06/26 05:42:08 ray Exp $ */
+/* $OpenBSD: lca.c,v 1.21 2009/03/30 21:43:13 kettenis Exp $ */
/* $NetBSD: lca.c,v 1.14 1996/12/05 01:39:35 cgd Exp $ */
/*-
@@ -241,6 +241,7 @@ lcaattach(parent, self, aux)
panic("lcaattach: shouldn't be here, really...");
}
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = &lcp->lc_iot;
pba.pba_memt = &lcp->lc_memt;
@@ -249,7 +250,6 @@ lcaattach(parent, self, aux)
pba.pba_pc = &lcp->lc_pc;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = 0;
- pba.pba_bridgetag = NULL;
#ifdef notyet
pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED |
PCI_FLAGS_MRL_OKAY | PCI_FLAGS_MRM_OKAY | PCI_FLAGS_MWI_OKAY;
diff --git a/sys/arch/alpha/pci/mcpcia.c b/sys/arch/alpha/pci/mcpcia.c
index a3dea285173..9b2a1a94379 100644
--- a/sys/arch/alpha/pci/mcpcia.c
+++ b/sys/arch/alpha/pci/mcpcia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcpcia.c,v 1.3 2008/06/26 05:42:09 ray Exp $ */
+/* $OpenBSD: mcpcia.c,v 1.4 2009/03/30 21:43:13 kettenis Exp $ */
/* $NetBSD: mcpcia.c,v 1.20 2007/03/04 05:59:11 christos Exp $ */
/*-
@@ -200,6 +200,7 @@ mcpciaattach(parent, self, aux)
/*
* Attach PCI bus
*/
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = &ccp->cc_iot;
pba.pba_memt = &ccp->cc_memt;
@@ -208,9 +209,8 @@ mcpciaattach(parent, self, aux)
pba.pba_pc = &ccp->cc_pc;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = 0;
- pba.pba_bridgetag = NULL;
- (void) config_found(self, &pba, mcpciaprint);
+ config_found(self, &pba, mcpciaprint);
/*
* Clear any errors that may have occurred during the probe
diff --git a/sys/arch/alpha/pci/tsc.c b/sys/arch/alpha/pci/tsc.c
index 2ba899960d0..4c83ec0001a 100644
--- a/sys/arch/alpha/pci/tsc.c
+++ b/sys/arch/alpha/pci/tsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tsc.c,v 1.13 2006/12/14 17:36:12 kettenis Exp $ */
+/* $OpenBSD: tsc.c,v 1.14 2009/03/30 21:43:13 kettenis Exp $ */
/* $NetBSD: tsc.c,v 1.3 2000/06/25 19:17:40 thorpej Exp $ */
/*-
@@ -193,6 +193,7 @@ tspattach(parent, self, aux)
pci_6600_pickintr(pcp);
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = &pcp->pc_iot;
pba.pba_memt = &pcp->pc_memt;
@@ -201,7 +202,6 @@ tspattach(parent, self, aux)
pba.pba_pc = &pcp->pc_pc;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = 0;
- pba.pba_bridgetag = NULL;
#ifdef notyet
pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED |
PCI_FLAGS_MRL_OKAY | PCI_FLAGS_MRM_OKAY | PCI_FLAGS_MWI_OKAY;