APC_READ
csr = APC_READ(sc, APC_CSR);
nextaddr = APC_READ(sc, APC_PNVA) + chan->cs_blksz;
nextaddr = APC_READ(sc, APC_CNVA) +
csr = APC_READ(sc, APC_CSR);
APC_READ(sc, APC_CSR) & ~(APC_CSR_PIE | APC_CSR_PPAUSE));
APC_WRITE(sc, APC_CSR, APC_READ(sc, APC_CSR) |
csr = APC_READ(sc, APC_CSR);
if (APC_READ(sc, APC_CSR) & APC_CSR_CD) {
nextaddr = APC_READ(sc, APC_CNVA) + chan->cs_blksz;
APC_WRITE(sc, APC_CSR, APC_READ(sc, APC_CSR) | APC_CSR_CODEC_RESET);
APC_WRITE(sc, APC_CSR, APC_READ(sc, APC_CSR) & (~APC_CSR_CODEC_RESET));
APC_WRITE(sc, APC_CSR, APC_READ(sc, APC_CSR) &