Lines 960-971
hdac_rirb_flush(struct hdac_softc *sc)
Link Here
|
960 |
bus_dmamap_sync(sc->rirb_dma.dma_tag, sc->rirb_dma.dma_map, |
960 |
bus_dmamap_sync(sc->rirb_dma.dma_tag, sc->rirb_dma.dma_map, |
961 |
BUS_DMASYNC_POSTREAD); |
961 |
BUS_DMASYNC_POSTREAD); |
962 |
|
962 |
|
|
|
963 |
device_printf(sc->dev, "rirb_base %p \n", rirb_base); |
964 |
device_printf(sc->dev, "rirb_size %d \n", sc->rirb_size); |
965 |
|
963 |
ret = 0; |
966 |
ret = 0; |
964 |
while (sc->rirb_rp != rirbwp) { |
967 |
while (sc->rirb_rp != rirbwp) { |
965 |
sc->rirb_rp++; |
968 |
sc->rirb_rp++; |
966 |
sc->rirb_rp %= sc->rirb_size; |
969 |
sc->rirb_rp %= sc->rirb_size; |
|
|
970 |
device_printf(sc->dev, "sc->rirb_rp %i \n", sc->rirb_rp); |
967 |
rirb = &rirb_base[sc->rirb_rp]; |
971 |
rirb = &rirb_base[sc->rirb_rp]; |
|
|
972 |
device_printf(sc->dev, "rirb address %p ", rirb); |
968 |
resp = le32toh(rirb->response); |
973 |
resp = le32toh(rirb->response); |
|
|
974 |
device_printf(sc->dev, " response %08x\n", resp); |
969 |
resp_ex = le32toh(rirb->response_ex); |
975 |
resp_ex = le32toh(rirb->response_ex); |
970 |
cad = HDAC_RIRB_RESPONSE_EX_SDATA_IN(resp_ex); |
976 |
cad = HDAC_RIRB_RESPONSE_EX_SDATA_IN(resp_ex); |
971 |
if (resp_ex & HDAC_RIRB_RESPONSE_EX_UNSOLICITED) { |
977 |
if (resp_ex & HDAC_RIRB_RESPONSE_EX_UNSOLICITED) { |