summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-05-21 04:03:07 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-05-21 04:03:07 +0000
commit42c54fb7215d930e3e5c9aa64c9d37b181c6833b (patch)
tree7683b8fa18024e91853ec07303ed268d40921752 /sys/dev/ic
parent28ed57dc033de1863babae16fae1d25f63fce14a (diff)
Add first BIOCINQ primitive.
Diffstat (limited to 'sys/dev/ic')
-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