diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-06-10 14:05:30 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-06-10 14:05:30 +0000 |
commit | a731141048724bb660b6be35f530ffc3f35a1a74 (patch) | |
tree | 3e10fc7d89b616149f53f7287f077f39eae71276 /sys/dev/ic | |
parent | a2e9ff9112b4b452617f555a7d0dab7c5cf58092 (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.c | 4 |
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; |