summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-06-10 14:05:30 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-06-10 14:05:30 +0000
commita731141048724bb660b6be35f530ffc3f35a1a74 (patch)
tree3e10fc7d89b616149f53f7287f077f39eae71276 /sys/dev/ic
parenta2e9ff9112b4b452617f555a7d0dab7c5cf58092 (diff)
if we're not reading a page then we're writing a page. stupid braino from
me pointed out by marco.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/mpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 256c475965f..96e71b48d71 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.29 2006/06/10 13:45:48 marco Exp $ */
+/* $OpenBSD: mpi.c,v 1.30 2006/06/10 14:05:29 dlg Exp $ */
/*
* Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org>
@@ -1661,7 +1661,7 @@ mpi_cfg_page(struct mpi_softc *sc, u_int32_t address, struct mpi_cfg_hdr *hdr,
cq->msg_context = htole32(ccb->ccb_id);
cq->action = (read ? MPI_CONFIG_REQ_ACTION_PAGE_READ_CURRENT :
- MPI_CONFIG_REQ_ACTION_PAGE_READ_CURRENT);
+ MPI_CONFIG_REQ_ACTION_PAGE_WRITE_CURRENT);
cq->config_header = *hdr;
cq->config_header.page_type &= MPI_CONFIG_REQ_PAGE_TYPE_MASK;