summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mfi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/mfi.c')
-rw-r--r--sys/dev/ic/mfi.c9
1 files 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 <marco@peereboom.us>
*
@@ -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