*/
} else {
uint32_t data_cnt;
- uint64_t data_addr;
uint32_t sglen;
/* Pull in the rest of the sgptr */
*/
data_cnt &= ~AHD_SG_LEN_MASK;
}
- data_addr = ahd_inq(ahd, SHADDR);
data_cnt += 1;
- data_addr -= 1;
sgptr &= SG_PTR_MASK;
if ((ahd->flags & AHD_64BIT_ADDRESSING) != 0) {
struct ahd_dma64_seg *sg;
* bits while setting the count to 1.
*/
data_cnt = 1|(sglen&(~AHD_SG_LEN_MASK));
- data_addr = aic_le64toh(sg->addr)
- + (sglen & AHD_SG_LEN_MASK)
- - 1;
/*
* Increment sg so it points to the
* bits while setting the count to 1.
*/
data_cnt = 1|(sglen&(~AHD_SG_LEN_MASK));
- data_addr = aic_le32toh(sg->addr)
- + (sglen & AHD_SG_LEN_MASK)
- - 1;
/*
* Increment sg so it points to the
} else {
struct ahc_dma_seg *sg;
uint32_t data_cnt;
- uint32_t data_addr;
uint32_t sglen;
/* Pull in all of the sgptr */
data_cnt &= ~AHC_SG_LEN_MASK;
}
- data_addr = ahc_inl(ahc, SHADDR);
-
data_cnt += 1;
- data_addr -= 1;
sgptr &= SG_PTR_MASK;
sg = ahc_sg_bus_to_virt(scb, sgptr);
* while setting the count to 1.
*/
data_cnt = 1 | (sglen & (~AHC_SG_LEN_MASK));
- data_addr = aic_le32toh(sg->addr)
- + (sglen & AHC_SG_LEN_MASK) - 1;
/*
* Increment sg so it points to the