ADREAD
status = ADREAD(&sc->sc_ad1848, AD1848_STATUS);
x = ADREAD(sc, AD1848_IDATA);
x = ADREAD(sc, AD1848_IDATA);
while (timeout > 0 && ADREAD(sc, AD1848_IADDR) == SP_IN_INIT) {
(ADREAD(sc, AD1848_IADDR)&SP_IADDR_MASK) != SP_TEST_AND_INIT) {
printf("ad1848 status=%02x", ADREAD(sc, AD1848_STATUS));
while (timeout > 0 && ADREAD(sc, AD1848_IADDR) & SP_IN_INIT)
ADREAD(sc, AD1848_IADDR) & SP_IN_INIT)
timeout < 1000 && ADREAD(sc, AD1848_IADDR) & SP_IN_INIT; timeout++)
(void)ADREAD(sc, AD1848_IDATA);
(void)ADREAD(sc, AD1848_IDATA);
while (timeout > 0 && ADREAD(sc, AD1848_IADDR) == SP_IN_INIT)
(void)ADREAD(sc, AD1848_IDATA);
(void)ADREAD(sc, AD1848_IDATA);
while (timeout > 0 && ADREAD(sc, AD1848_IADDR) == SP_IN_INIT) {
if (ADREAD(sc, AD1848_IADDR) == SP_IN_INIT)
tmp = ADREAD(sc, AD1848_IADDR);
for (t = 0; t < 100000 && ADREAD(sc, AD1848_IADDR) & SP_IN_INIT; t++)
while (ADREAD(sc, AD1848_IADDR) & SP_IN_INIT)
while (ADREAD(sc, AD1848_IDATA) & AUTO_CAL_IN_PROG)
status = ADREAD(sc, AD1848_STATUS);
t < 100000 && ADREAD(ac, AD1848_IADDR) & SP_IN_INIT; t++)
status = ADREAD(&sc->sc_ad1848, AD1848_STATUS);