aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bus.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-04-05 19:31:26 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-04-05 19:31:26 +0000
commit1d1a5c2b02674c66cc305c465e3ae86dc1e526a1 (patch)
tree332049fc4c7a06885b8da43b7e32fe4d4ff639aa /sys/sys/bus.h
parent7f755050f77499cf1e91ff1c04be199e229a2746 (diff)
downloadsrc-1d1a5c2b02674c66cc305c465e3ae86dc1e526a1.tar.gz
src-1d1a5c2b02674c66cc305c465e3ae86dc1e526a1.zip
Add DEV_RESET /dev/devctl2 ioctl.
It performs BUS_RESET_CHILD() on the parental bus and the specified device. Reviewed by: imp (previous version), jhb (previous version) Sponsored by: Mellanox Technologies MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D19646
Notes
Notes: svn path=/head/; revision=345965
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r--sys/sys/bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index a9fc2387eccf..9c2b92af2983 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -130,6 +130,7 @@ struct devreq {
#define DEV_DELETE _IOW('D', 10, struct devreq)
#define DEV_FREEZE _IOW('D', 11, struct devreq)
#define DEV_THAW _IOW('D', 12, struct devreq)
+#define DEV_RESET _IOW('D', 13, struct devreq)
/* Flags for DEV_DETACH and DEV_DISABLE. */
#define DEVF_FORCE_DETACH 0x0000001