diff options
author | chuck <chuck@cvs.openbsd.org> | 1996-01-12 23:09:11 +0000 |
---|---|---|
committer | chuck <chuck@cvs.openbsd.org> | 1996-01-12 23:09:11 +0000 |
commit | af4ee63dce18e1f1960cf551dc1399be6529d24d (patch) | |
tree | a6d84f16d839d79960f8f8886bdefc7a67255571 /sys/arch/sparc/dev/xy.c | |
parent | 1bbfbaa7be91000d7891f071e9b2dcfccd27b6d4 (diff) |
we no longer need to add in the offset to the mapped VA to get the correct
device address (bus_tmp, bus_map, and mapiodev now do this for us).
also, we handle all our mappings, so don't have obio.c do any for us
(i.e. don't set ra->ra_len in xycmatch).
nuke uneeded variable in match function.
Diffstat (limited to 'sys/arch/sparc/dev/xy.c')
-rw-r--r-- | sys/arch/sparc/dev/xy.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/arch/sparc/dev/xy.c b/sys/arch/sparc/dev/xy.c index eeda0e56703..2b19a664b31 100644 --- a/sys/arch/sparc/dev/xy.c +++ b/sys/arch/sparc/dev/xy.c @@ -36,7 +36,7 @@ * x y . c x y l o g i c s 4 5 0 / 4 5 1 s m d d r i v e r * * author: Chuck Cranor <chuck@ccrc.wustl.edu> - * id: $Id: xy.c,v 1.3 1996/01/12 20:20:53 deraadt Exp $ + * id: $Id: xy.c,v 1.4 1996/01/12 23:09:10 chuck Exp $ * started: 14-Sep-95 * references: [1] Xylogics Model 753 User's Manual * part number: 166-753-001, Revision B, May 21, 1988. @@ -296,21 +296,16 @@ int xycmatch(parent, match, aux) struct romaux *ra = &ca->ca_ra; struct xyc *xyc; int del = 0; - void *vaddr; if (strcmp(cf->cf_driver->cd_name, ra->ra_name)) return (0); if (cputyp == CPU_SUN4) { - vaddr = ra->ra_vaddr; - if ((u_long) ra->ra_paddr & PGOFSET) - (u_long) vaddr |= ((u_long) ra->ra_paddr & PGOFSET); - xyc = (struct xyc *) vaddr; + xyc = (struct xyc *) ra->ra_vaddr; if (probeget(&xyc->xyc_rsetup, 1) == -1) return (0); if (xyc_unbusy(xyc, XYC_RESETUSEC) == XY_ERR_FAIL) return(0); - ra->ra_len = NBPG; } return (1); } @@ -337,9 +332,6 @@ xycattach(parent, self, aux) ca->ca_ra.ra_vaddr = mapiodev(ca->ca_ra.ra_reg, 0, ca->ca_ra.ra_len, ca->ca_bustype); - if ((u_long) ca->ca_ra.ra_paddr & PGOFSET) - (u_long) ca->ca_ra.ra_vaddr |= - ((u_long) ca->ca_ra.ra_paddr & PGOFSET); xyc->xyc = (struct xyc *) ca->ca_ra.ra_vaddr; pri = ca->ca_ra.ra_intr[0].int_pri; |