ADREAD
(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)
status = ADREAD(sc, AD1848_STATUS);
x = ADREAD(sc, AD1848_IDATA);
while (timeout > 0 && ADREAD(sc, AD1848_IADDR) == SP_IN_INIT)
if (ADREAD(sc, AD1848_IADDR) == SP_IN_INIT)
printf("ad1848 status=%02x", ADREAD(sc, AD1848_STATUS));
tmp = ADREAD(sc, AD1848_IADDR);
while(ADREAD(sc, AD1848_IADDR) & SP_IN_INIT)
while(ADREAD(sc, AD1848_IDATA) & AUTO_CAL_IN_PROG)
while (timeout > 0 && ADREAD(sc, AD1848_IADDR) & SP_IN_INIT)
ADREAD(sc, AD1848_IADDR) & SP_IN_INIT)