Lines Matching defs:chip
88 int cy_chip, chip;
104 for (cy_chip = 0, chip = 0; cy_chip < CY_MAX_CD1400s;
105 cy_chip++, chip += (CY_CD1400_MEMSPACING << bustype)) {
113 chip -= (CY32_ADDR_FIX << bustype);
116 printf("sy: probe chip %d offset 0x%x ... ", cy_chip, chip);
119 /* wait until the chip is ready for command */
121 if (bus_space_read_1(tag, bsh, chip +
129 bus_space_write_1(tag, bsh, chip +
133 * On Cyclom-16 references to non-existent chip 4
134 * actually access chip 0 (address line 9 not decoded).
135 * Here we check if the clearing of chip 4 GFRCR actually
136 * cleared chip 0 GFRCR. In that case we have a 16 port card.
139 bus_space_read_1(tag, bsh, /* off for chip 0 (0) + */
143 /* reset the chip */
144 bus_space_write_1(tag, bsh, chip +
148 /* wait for the chip to initialize itself */
151 firmware_ver = bus_space_read_1(tag, bsh, chip +
183 int port, cy_chip, num_chips, cdu, chip;
198 for (cy_chip = 0, chip = 0; cy_chip < num_chips; cy_chip++,
199 chip += (CY_CD1400_MEMSPACING << sc->sc_bustype)) {
202 chip -= (CY32_ADDR_FIX << sc->sc_bustype);
205 aprint_debug("attach CD1400 #%d offset 0x%x\n", cy_chip, chip);
207 sc->sc_cd1400_offs[cy_chip] = chip;
1068 * Check interrupt status of each CD1400 chip on this card