aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/si/si.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-01-23 22:51:49 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-01-23 22:51:49 +0000
commit5b249744bd2a2eba508ecbf031a1fee5778ce6c7 (patch)
tree5c284389b2777fb398e915de4aaa8783c8841ffd /sys/dev/si/si.h
parent0eb6f1f6c12bebb83f8a846215a813bf8f2fa99e (diff)
Notes
Diffstat (limited to 'sys/dev/si/si.h')
-rw-r--r--sys/dev/si/si.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/si/si.h b/sys/dev/si/si.h
index 29d709bb3284..4e53a354d657 100644
--- a/sys/dev/si/si.h
+++ b/sys/dev/si/si.h
@@ -80,7 +80,7 @@
#define IS_CONTROLDEV(m) (m & SI_CONTROLDEV_MASK)
#define IS_SPECIAL(m) (m & SI_SPECIAL_MASK)
-#define MINOR2SC(m) (&si_softc[SI_CARD(m)])
+#define MINOR2SC(m) ((struct si_softc *)devclass_get_softc(si_devclass, SI_CARD(m)))
#define MINOR2PP(m) (MINOR2SC((m))->sc_ports + SI_PORT((m)))
#define MINOR2TP(m) (MINOR2PP((m))->sp_tty)
#define TP2PP(tp) (MINOR2PP(SI_TTY(minor((tp)->t_dev))))