diff options
author | gibbs <gibbs@FreeBSD.org> | 1999-08-16 01:52:21 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1999-08-16 01:52:21 +0000 |
commit | c1664fa91ae2fda93ee5cb64ad1c4d77afb6e717 (patch) | |
tree | aeb7275b83829ac29cbd76a255c27c321b19b1cb /sys/dev/amd | |
parent | eac569c095293fabb1bc2043fb4c4f3431f63029 (diff) | |
download | FreeBSD-src-c1664fa91ae2fda93ee5cb64ad1c4d77afb6e717.zip FreeBSD-src-c1664fa91ae2fda93ee5cb64ad1c4d77afb6e717.tar.gz |
Properly set the alignment argument to bus_dma_tag_create(). If we
don't care about the alignment, set it to 1, meaning single byte alignment.
Diffstat (limited to 'sys/dev/amd')
-rw-r--r-- | sys/dev/amd/amd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/amd/amd.c b/sys/dev/amd/amd.c index c8a5d3b..d1861df 100644 --- a/sys/dev/amd/amd.c +++ b/sys/dev/amd/amd.c @@ -1884,6 +1884,7 @@ SRBdone(struct amd_softc *amd, struct amd_srb *pSRB) status = pSRB->TargetStatus; pccb->ccb_h.status = CAM_REQ_CMP; + pccb->ccb_h.status = CAM_REQ_CMP; if (pSRB->SRBFlag & AUTO_REQSENSE) { pSRB->SRBFlag &= ~AUTO_REQSENSE; pSRB->AdaptStatus = 0; @@ -1991,6 +1992,7 @@ SRBdone(struct amd_softc *amd, struct amd_srb *pSRB) } else { /* No error */ pSRB->AdaptStatus = 0; pSRB->TargetStatus = 0; + pcsio->resid = 0; /* there is no error, (sense is invalid) */ } } @@ -2279,7 +2281,7 @@ amd_init(int unit, pcici_t config_id) amd->tag = I386_BUS_SPACE_IO; amd->bsh = pci_conf_read(config_id, PCI_MAP_REG_START) & 0xFFFE; /* DMA tag for mapping buffers into device visible space. */ - if (bus_dma_tag_create(/*parent_dmat*/NULL, /*alignment*/0, + if (bus_dma_tag_create(/*parent_dmat*/NULL, /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, /*highaddr*/BUS_SPACE_MAXADDR, |