From 42c54fb7215d930e3e5c9aa64c9d37b181c6833b Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Sun, 21 May 2006 04:03:07 +0000 Subject: Add first BIOCINQ primitive. --- sys/dev/ic/mfi.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 5cdb4f7a31f..ebde1d2b7cd 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.41 2006/05/18 17:42:00 marco Exp $ */ +/* $OpenBSD: mfi.c,v 1.42 2006/05/21 04:03:06 marco Exp $ */ /* * Copyright (c) 2006 Marco Peereboom * @@ -1155,7 +1155,12 @@ mfi_ioctl(struct device *dev, u_long cmd, caddr_t addr) int mfi_ioctl_inq(struct mfi_softc *sc, struct bioc_inq *bi) { - return (ENOTTY); /* XXX not yet */ + /* XXX this is static and needs to become dynamic */ + strlcpy(bi->bi_dev, DEVNAME(sc), sizeof(bi->bi_dev)); + bi->bi_novol = sc->sc_info.mci_lds_present; + bi->bi_nodisk = sc->sc_info.mci_pd_present; + + return (0); } int -- cgit v1.2.3