summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2012-11-02 14:38:57 +0000
committermjacob <mjacob@FreeBSD.org>2012-11-02 14:38:57 +0000
commitb52d67ff651c0780fc0c02c519c8dfd0264132ab (patch)
tree48fc0b24652ff2449b412178303ed4f7a76df317
parent1e90b219abb5539017462c255b47d06acee58473 (diff)
downloadFreeBSD-src-b52d67ff651c0780fc0c02c519c8dfd0264132ab.zip
FreeBSD-src-b52d67ff651c0780fc0c02c519c8dfd0264132ab.tar.gz
Don't allow for more than one segment for the control space since
we're not set up to deal with that. X-MFC: 242479 MFC after: 1 week
-rw-r--r--sys/dev/isp/isp_sbus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/isp/isp_sbus.c b/sys/dev/isp/isp_sbus.c
index 71f5658..0b4f63f 100644
--- a/sys/dev/isp/isp_sbus.c
+++ b/sys/dev/isp/isp_sbus.c
@@ -460,7 +460,7 @@ isp_sbus_mbxdma(ispsoftc_t *isp)
{
caddr_t base;
uint32_t len;
- int i, error, ns;
+ int i, error;
struct imush im;
/*
@@ -511,10 +511,9 @@ isp_sbus_mbxdma(ispsoftc_t *isp)
len = ISP_QUEUE_SIZE(RQUEST_QUEUE_LEN(isp));
len += ISP_QUEUE_SIZE(RESULT_QUEUE_LEN(isp));
- ns = (len / PAGE_SIZE) + 1;
if (isp_dma_tag_create(isp->isp_osinfo.dmat, QENTRY_LEN,
BUS_SPACE_MAXADDR_24BIT+1, BUS_SPACE_MAXADDR_32BIT,
- BUS_SPACE_MAXADDR_32BIT, NULL, NULL, len, ns,
+ BUS_SPACE_MAXADDR_32BIT, NULL, NULL, len, 1,
BUS_SPACE_MAXADDR_24BIT, 0, &isp->isp_osinfo.cdmat)) {
isp_prt(isp, ISP_LOGERR,
"cannot create a dma tag for control spaces");
OpenPOWER on IntegriCloud