diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-04-16 16:41:30 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-04-16 16:41:30 +0000 |
commit | 8d562aa46f5b0433757d6df9eb4c824ea84bf992 (patch) | |
tree | 9042e8cd2f11dc199b947194b14eff8c2c694a7b /sys/dev/ic/mfi.c | |
parent | 4178ec7446512122df25fcd8639e3a7fa9de3b3a (diff) |
Shuffle some #defines.
Fix comments.
Add human readable enable intrrupt #define.
Diffstat (limited to 'sys/dev/ic/mfi.c')
-rw-r--r-- | sys/dev/ic/mfi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index d6194583f4b..b5bb8859782 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.8 2006/04/16 16:34:35 marco Exp $ */ +/* $OpenBSD: mfi.c,v 1.9 2006/04/16 16:41:29 marco Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -232,7 +232,7 @@ mfi_attach(struct mfi_softc *sc) DNPRINTF(MFI_D_MISC, "%s: max commands: %u, max sgl: %u\n", DEVNAME(sc), sc->sc_max_cmds, sc->sc_max_sgl); - /* reply queue memory */ + /* consumer/producer and reply queue memory */ sc->sc_pcq = mfi_allocmem(sc, (sizeof(uint32_t) * sc->sc_max_cmds) + sizeof(struct mfi_prod_cons)); if (sc->sc_pcq == NULL) { @@ -242,7 +242,7 @@ mfi_attach(struct mfi_softc *sc) } /* enable interrupts */ - mfi_write(sc, MFI_OMSK, 0x01); + mfi_write(sc, MFI_OMSK, MFI_ENABLE_INTR); return (0); } |