diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-03-26 20:23:09 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-03-26 20:23:09 +0000 |
commit | c38e044b0b0544f27656271624f58f2301c12e6d (patch) | |
tree | 179ec85e58b5d9571b6c5cf7996a86b1f56be486 /sys/arch | |
parent | ee2d921ca303adcd8f3ba8e406cf890bfeb83b50 (diff) |
Replace usage of alpha_pci_decompose_tag() with pci_decompose_tag() and
remove alpha_pci_decompose_tag().
From NetBSD
ok martin@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/pci/apecs_pci.c | 6 | ||||
-rw-r--r-- | sys/arch/alpha/pci/cia_pci.c | 6 | ||||
-rw-r--r-- | sys/arch/alpha/pci/lca_pci.c | 6 | ||||
-rw-r--r-- | sys/arch/alpha/pci/pci_1000.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/pci/pci_1000a.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/pci/pci_550.c | 6 | ||||
-rw-r--r-- | sys/arch/alpha/pci/pci_6600.c | 6 | ||||
-rw-r--r-- | sys/arch/alpha/pci/pci_eb164.c | 6 | ||||
-rw-r--r-- | sys/arch/alpha/pci/pci_eb64plus.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/pci/pci_machdep.h | 4 | ||||
-rw-r--r-- | sys/arch/alpha/pci/pci_up1000.c | 6 |
11 files changed, 28 insertions, 30 deletions
diff --git a/sys/arch/alpha/pci/apecs_pci.c b/sys/arch/alpha/pci/apecs_pci.c index f943d899692..9ef26cbf121 100644 --- a/sys/arch/alpha/pci/apecs_pci.c +++ b/sys/arch/alpha/pci/apecs_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apecs_pci.c,v 1.9 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: apecs_pci.c,v 1.10 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: apecs_pci.c,v 1.10 1996/11/13 21:13:25 cgd Exp $ */ /* @@ -121,7 +121,7 @@ apecs_conf_read(cpv, tag, offset) old_haxr2 = 0; /* XXX gcc -Wuninitialized */ /* secondary if bus # != 0 */ - alpha_pci_decompose_tag(&acp->ac_pc, tag, &secondary, 0, 0); + pci_decompose_tag(&acp->ac_pc, tag, &secondary, 0, 0); if (secondary) { s = splhigh(); old_haxr2 = REGVAL(EPIC_HAXR2); @@ -170,7 +170,7 @@ apecs_conf_write(cpv, tag, offset, data) old_haxr2 = 0; /* XXX gcc -Wuninitialized */ /* secondary if bus # != 0 */ - alpha_pci_decompose_tag(&acp->ac_pc, tag, &secondary, 0, 0); + pci_decompose_tag(&acp->ac_pc, tag, &secondary, 0, 0); if (secondary) { s = splhigh(); old_haxr2 = REGVAL(EPIC_HAXR2); diff --git a/sys/arch/alpha/pci/cia_pci.c b/sys/arch/alpha/pci/cia_pci.c index 56bf3e5e877..540d45ff0b0 100644 --- a/sys/arch/alpha/pci/cia_pci.c +++ b/sys/arch/alpha/pci/cia_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cia_pci.c,v 1.10 2003/10/18 20:14:42 jmc Exp $ */ +/* $OpenBSD: cia_pci.c,v 1.11 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: cia_pci.c,v 1.25 2000/06/29 08:58:46 mrg Exp $ */ /* @@ -136,7 +136,7 @@ cia_conf_read(cpv, tag, offset) alpha_pal_draina(); /* secondary if bus # != 0 */ - alpha_pci_decompose_tag(&ccp->cc_pc, tag, &secondary, 0, 0); + pci_decompose_tag(&ccp->cc_pc, tag, &secondary, 0, 0); if (secondary) { s = splhigh(); old_cfg = REGVAL(CIA_CSR_CFG); @@ -220,7 +220,7 @@ cia_conf_write(cpv, tag, offset, data) #endif /* secondary if bus # != 0 */ - alpha_pci_decompose_tag(&ccp->cc_pc, tag, &secondary, 0, 0); + pci_decompose_tag(&ccp->cc_pc, tag, &secondary, 0, 0); if (secondary) { s = splhigh(); old_cfg = REGVAL(CIA_CSR_CFG); diff --git a/sys/arch/alpha/pci/lca_pci.c b/sys/arch/alpha/pci/lca_pci.c index 697619e294f..0aef2d52572 100644 --- a/sys/arch/alpha/pci/lca_pci.c +++ b/sys/arch/alpha/pci/lca_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lca_pci.c,v 1.8 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: lca_pci.c,v 1.9 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: lca_pci.c,v 1.13 1997/09/02 13:19:35 thorpej Exp $ */ /* @@ -122,7 +122,7 @@ lca_conf_read(cpv, tag, offset) s = 0; /* XXX gcc -Wuninitialized */ /* secondary if bus # != 0 */ - alpha_pci_decompose_tag(&lcp->lc_pc, tag, &secondary, &device, 0); + pci_decompose_tag(&lcp->lc_pc, tag, &secondary, &device, 0); if (secondary) { s = splhigh(); alpha_mb(); @@ -176,7 +176,7 @@ lca_conf_write(cpv, tag, offset, data) s = 0; /* XXX gcc -Wuninitialized */ /* secondary if bus # != 0 */ - alpha_pci_decompose_tag(&lcp->lc_pc, tag, &secondary, &device, 0); + pci_decompose_tag(&lcp->lc_pc, tag, &secondary, &device, 0); if (secondary) { s = splhigh(); alpha_mb(); diff --git a/sys/arch/alpha/pci/pci_1000.c b/sys/arch/alpha/pci/pci_1000.c index 86521b635da..ce33786300e 100644 --- a/sys/arch/alpha/pci/pci_1000.c +++ b/sys/arch/alpha/pci/pci_1000.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_1000.c,v 1.3 2006/01/29 10:47:35 martin Exp $ */ +/* $OpenBSD: pci_1000.c,v 1.4 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: pci_1000.c,v 1.12 2001/07/27 00:25:20 thorpej Exp $ */ /* @@ -163,7 +163,7 @@ dec_1000_intr_map(ccv, bustag, buspin, line, ihp) if (!(1 <= buspin && buspin <= 4)) goto bad; - alpha_pci_decompose_tag(pc_tag, bustag, NULL, &device, NULL); + pci_decompose_tag(pc_tag, bustag, NULL, &device, NULL); switch(device) { case 6: diff --git a/sys/arch/alpha/pci/pci_1000a.c b/sys/arch/alpha/pci/pci_1000a.c index 3b5abeedf5c..41ee3118968 100644 --- a/sys/arch/alpha/pci/pci_1000a.c +++ b/sys/arch/alpha/pci/pci_1000a.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_1000a.c,v 1.3 2006/01/29 10:47:35 martin Exp $ */ +/* $OpenBSD: pci_1000a.c,v 1.4 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: pci_1000a.c,v 1.14 2001/07/27 00:25:20 thorpej Exp $ */ /* @@ -188,7 +188,7 @@ dec_1000a_intr_map(ccv, bustag, buspin, line, ihp) return 1; if (!(1 <= buspin && buspin <= 4)) goto bad; - alpha_pci_decompose_tag(pc_tag, bustag, NULL, &device, NULL); + pci_decompose_tag(pc_tag, bustag, NULL, &device, NULL); if (0 <= device && device < sizeof imrmap / sizeof imrmap[0]) { if (device == 0) printf("dec_1000a_intr_map: ?! UNEXPECTED DEV 0\n"); diff --git a/sys/arch/alpha/pci/pci_550.c b/sys/arch/alpha/pci/pci_550.c index a8a3c9260af..afecb9d760e 100644 --- a/sys/arch/alpha/pci/pci_550.c +++ b/sys/arch/alpha/pci/pci_550.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_550.c,v 1.14 2006/01/29 10:47:35 martin Exp $ */ +/* $OpenBSD: pci_550.c,v 1.15 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: pci_550.c,v 1.18 2000/06/29 08:58:48 mrg Exp $ */ /*- @@ -195,7 +195,7 @@ dec_550_intr_map(ccv, bustag, buspin, line, ihp) return 1; } - alpha_pci_decompose_tag(pc, bustag, &bus, &device, &function); + pci_decompose_tag(pc, bustag, &bus, &device, &function); /* * There are two main variants of Miata: Miata 1 (Intel SIO) @@ -372,7 +372,7 @@ dec_550_pciide_compat_intr_establish(v, dev, pa, chan, func, arg) void *cookie = NULL; int bus, irq; - alpha_pci_decompose_tag(pc, pa->pa_tag, &bus, NULL, NULL); + pci_decompose_tag(pc, pa->pa_tag, &bus, NULL, NULL); /* * If this isn't PCI bus #0, all bets are off. diff --git a/sys/arch/alpha/pci/pci_6600.c b/sys/arch/alpha/pci/pci_6600.c index 2e41594a507..50d1366ad08 100644 --- a/sys/arch/alpha/pci/pci_6600.c +++ b/sys/arch/alpha/pci/pci_6600.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_6600.c,v 1.13 2006/01/29 10:47:35 martin Exp $ */ +/* $OpenBSD: pci_6600.c,v 1.14 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: pci_6600.c,v 1.5 2000/06/06 00:50:15 thorpej Exp $ */ /*- @@ -153,7 +153,7 @@ dec_6600_intr_map(acv, bustag, buspin, line, ihp) return 1; } - alpha_pci_decompose_tag(pc, bustag, &bus, &device, &function); + pci_decompose_tag(pc, bustag, &bus, &device, &function); /* * The console places the interrupt mapping in the "line" value. @@ -339,7 +339,7 @@ dec_6600_pciide_compat_intr_establish(v, dev, pa, chan, func, arg) void *cookie = NULL; int bus, irq; - alpha_pci_decompose_tag(pc, pa->pa_tag, &bus, NULL, NULL); + pci_decompose_tag(pc, pa->pa_tag, &bus, NULL, NULL); /* * If this isn't PCI bus #0 on the TSP that holds the PCI-ISA diff --git a/sys/arch/alpha/pci/pci_eb164.c b/sys/arch/alpha/pci/pci_eb164.c index 8a631544116..2920fcffb0b 100644 --- a/sys/arch/alpha/pci/pci_eb164.c +++ b/sys/arch/alpha/pci/pci_eb164.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_eb164.c,v 1.17 2006/01/29 10:47:35 martin Exp $ */ +/* $OpenBSD: pci_eb164.c,v 1.18 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: pci_eb164.c,v 1.27 2000/06/06 00:50:15 thorpej Exp $ */ /*- @@ -186,7 +186,7 @@ dec_eb164_intr_map(ccv, bustag, buspin, line, ihp) return 1; } - alpha_pci_decompose_tag(pc, bustag, &bus, &device, &function); + pci_decompose_tag(pc, bustag, &bus, &device, &function); variation = hwrpb->rpb_variation & SV_ST_MASK; @@ -325,7 +325,7 @@ dec_eb164_pciide_compat_intr_establish(v, dev, pa, chan, func, arg) void *cookie = NULL; int bus, irq; - alpha_pci_decompose_tag(pc, pa->pa_tag, &bus, NULL, NULL); + pci_decompose_tag(pc, pa->pa_tag, &bus, NULL, NULL); /* * If this isn't PCI bus #0, all bets are off. diff --git a/sys/arch/alpha/pci/pci_eb64plus.c b/sys/arch/alpha/pci/pci_eb64plus.c index 3f6a485afc1..32a080055f4 100644 --- a/sys/arch/alpha/pci/pci_eb64plus.c +++ b/sys/arch/alpha/pci/pci_eb64plus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_eb64plus.c,v 1.7 2006/01/29 10:47:35 martin Exp $ */ +/* $OpenBSD: pci_eb64plus.c,v 1.8 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: pci_eb64plus.c,v 1.10 2001/07/27 00:25:20 thorpej Exp $ */ /*- @@ -166,7 +166,7 @@ dec_eb64plus_intr_map(acv, bustag, buspin, line, ihp) return 1; } - alpha_pci_decompose_tag(pc, bustag, &bus, &device, &function); + pci_decompose_tag(pc, bustag, &bus, &device, &function); /* * The console places the interrupt mapping in the "line" value. diff --git a/sys/arch/alpha/pci/pci_machdep.h b/sys/arch/alpha/pci/pci_machdep.h index 807dc3829cf..281334934e3 100644 --- a/sys/arch/alpha/pci/pci_machdep.h +++ b/sys/arch/alpha/pci/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.19 2002/03/14 03:15:50 millert Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.20 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: pci_machdep.h,v 1.6 1996/11/19 04:49:21 cgd Exp $ */ /* @@ -118,8 +118,6 @@ int alpha_sysctl_chipset(int *, u_int, char *, size_t *); */ void pci_display_console(bus_space_tag_t, bus_space_tag_t, pci_chipset_tag_t, int, int, int); -#define alpha_pci_decompose_tag(c, t, bp, dp, fp) \ - (*(c)->pc_decompose_tag)((c)->pc_conf_v, (t), (bp), (dp), (fp)) #define alpha_pciide_compat_intr_establish(c, d, p, ch, f, a) \ ((c)->pc_pciide_compat_intr_establish == NULL ? NULL : \ (*(c)->pc_pciide_compat_intr_establish)((c)->pc_conf_v, (d), (p), \ diff --git a/sys/arch/alpha/pci/pci_up1000.c b/sys/arch/alpha/pci/pci_up1000.c index 2b911813f9d..3173cd91672 100644 --- a/sys/arch/alpha/pci/pci_up1000.c +++ b/sys/arch/alpha/pci/pci_up1000.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_up1000.c,v 1.9 2004/07/18 02:18:26 deraadt Exp $ */ +/* $OpenBSD: pci_up1000.c,v 1.10 2006/03/26 20:23:08 brad Exp $ */ /* $NetBSD: pci_up1000.c,v 1.6 2000/12/28 22:59:07 sommerfeld Exp $ */ /*- @@ -119,7 +119,7 @@ api_up1000_intr_map(void *icv, pcitag_t bustag, int buspin, int line, pci_intr_h return 1; } - alpha_pci_decompose_tag(pc, bustag, &bus, &device, &function); + pci_decompose_tag(pc, bustag, &bus, &device, &function); /* * The console places the interrupt mapping in the "line" value. @@ -196,7 +196,7 @@ api_up1000_pciide_compat_intr_establish(void *icv, struct device *dev, void *cookie = NULL; int bus, irq; - alpha_pci_decompose_tag(pc, pa->pa_tag, &bus, NULL, NULL); + pci_decompose_tag(pc, pa->pa_tag, &bus, NULL, NULL); /* * If this isn't PCI bus #0, all bets are off. |