summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-08-03 00:09:39 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-08-03 00:09:39 +0000
commit4504e28cd620be45ad303f06cb498c05ad886412 (patch)
tree5cb4bb6c4fc51a07f5dd46972de561d6d3512605
parent0082b2d7b3d8c1e5b0836f94f8a67a0d18dc4e43 (diff)
if fw provides no max sgl len -- suggest some of our own
-rw-r--r--sys/dev/ic/ciss.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c
index adb0ae21030..b64ff1cf740 100644
--- a/sys/dev/ic/ciss.c
+++ b/sys/dev/ic/ciss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ciss.c,v 1.4 2005/08/03 00:01:08 mickey Exp $ */
+/* $OpenBSD: ciss.c,v 1.5 2005/08/03 00:09:38 mickey Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -157,6 +157,8 @@ ciss_attach(struct ciss_softc *sc)
sc->cfg.int_count = 0;
strlcpy(sc->cfg.hostname, "HUMPPA", sizeof(sc->cfg.hostname));
sc->cfg.driverf |= CISS_DRV_PRF; /* enable prefetch */
+ if (!sc->cfg.maxsg)
+ sc->cfg.maxsg = MAXPHYS / PAGE_SIZE;
bus_space_write_region_4(sc->iot, sc->cfg_ioh, sc->cfgoff,
(u_int32_t *)&sc->cfg, sizeof(sc->cfg) / 4);