summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-08-10 23:09:49 +0000
committerderaadt <deraadt@openbsd.org>1999-08-10 23:09:49 +0000
commit1dfe2d86f3964a6387e2da1da78f5a767a15ee22 (patch)
tree2efd4f28a2e3b81b102098019359c83fbf3419a0 /sys/dev/isa
parentadd DIOCRLDINFO ioctl: causes driver to reload the disklabel (diff)
downloadwireguard-openbsd-1dfe2d86f3964a6387e2da1da78f5a767a15ee22.tar.xz
wireguard-openbsd-1dfe2d86f3964a6387e2da1da78f5a767a15ee22.zip
support DIOCRLDINFO
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/mcd.c6
-rw-r--r--sys/dev/isa/wd.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c
index fd4e85e6d4a..ca121d71aa7 100644
--- a/sys/dev/isa/mcd.c
+++ b/sys/dev/isa/mcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcd.c,v 1.27 1998/10/05 00:39:27 millert Exp $ */
+/* $OpenBSD: mcd.c,v 1.28 1999/08/10 23:09:49 deraadt Exp $ */
/* $NetBSD: mcd.c,v 1.60 1998/01/14 12:14:41 drochner Exp $ */
/*
@@ -608,6 +608,10 @@ mcdioctl(dev, cmd, addr, flag, p)
return EIO;
switch (cmd) {
+ case DIOCRLDINFO:
+ mcdgetdisklabel(dev, sc, sc->sc_dk.dk_label,
+ sc->sc_dk.dk_cpulabel, 0);
+ return 0;
case DIOCGDINFO:
case DIOCGPDINFO:
*(struct disklabel *)addr = *(sc->sc_dk.dk_label);
diff --git a/sys/dev/isa/wd.c b/sys/dev/isa/wd.c
index 56e6ebdbfdc..149a668a832 100644
--- a/sys/dev/isa/wd.c
+++ b/sys/dev/isa/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.40 1999/05/09 20:40:43 weingart Exp $ */
+/* $OpenBSD: wd.c,v 1.41 1999/08/10 23:09:49 deraadt Exp $ */
/* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */
/*
@@ -661,6 +661,10 @@ wdioctl(dev, xfer, addr, flag, p)
return 0;
#endif
+ case DIOCRLDINFO:
+ wdgetdisklabel(dev, wd, wd->sc_dk.dk_label,
+ wd->sc_dk.dk_cpulabel, 0);
+ return 0;
case DIOCGPDINFO: {
struct cpu_disklabel osdep;