Home | History | Annotate | Download | only in mvme

Lines Matching refs:range

89 		/* This range is fixed to A16, DATA */
170 vmetwo_master_range(struct vmetwo_softc *sc, int range, struct mvmebus_range *vr)
176 * First, check if the range is actually enabled...
179 if ((reg & VME2_MASTER_ENABLE(range)) == 0) {
185 * Fetch and record the range's attributes
188 attr >>= VME2_MASTER_ATTR_AM_SHIFT(range);
191 * Fix up the datasizes available through this range
222 * Fetch the local-bus start and end addresses for the range
224 reg = vme2_lcsr_read(sc, VME2LCSR_MASTER_ADDRESS(range));
237 if (range == 3 && (reg = vme2_lcsr_read(sc, VME2LCSR_MAST4_TRANS))!=0) {
257 * Fixup the addresses this range corresponds to
264 vmetwo_slave_range(struct vmetwo_softc *sc, int range, vme_am_t am, struct mvmebus_range *vr)
269 * First, check if the range is actually enabled.
270 * Note that bit 1 of `range' is used to indicate if we're
271 * looking for an A24 range (set) or an A32 range (clear).
275 if (am == VME_AM_A32 && (reg & VME2_SLAVE_AMSEL_A32(range))) {
279 if (am == VME_AM_A24 && (reg & VME2_SLAVE_AMSEL_A24(range))) {
283 /* The range is not enabled */
288 if ((reg & VME2_SLAVE_AMSEL_DAT(range)) != 0)
291 if ((reg & VME2_SLAVE_AMSEL_PGM(range)) != 0)
294 if ((reg & VME2_SLAVE_AMSEL_USR(range)) != 0)
297 if ((reg & VME2_SLAVE_AMSEL_SUP(range)) != 0)
300 if ((reg & VME2_SLAVE_AMSEL_BLK(range)) != 0)
303 if ((reg & VME2_SLAVE_AMSEL_BLKD64(range)) != 0)
311 reg = vme2_lcsr_read(sc, VME2LCSR_SLAVE_ADDRESS(range));
324 if ((reg & VME2_SLAVE_CTRL_ADDER(range)) != 0) {
325 reg = vme2_lcsr_read(sc, VME2LCSR_SLAVE_TRANS(range));
332 reg = vme2_lcsr_read(sc, VME2LCSR_SLAVE_TRANS(range));