summaryrefslogtreecommitdiff
path: root/sys/dev/ofw/ofw_misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ofw/ofw_misc.h')
-rw-r--r--sys/dev/ofw/ofw_misc.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofw_misc.h b/sys/dev/ofw/ofw_misc.h
index 8c7ff7e1d63..6d462b31cd4 100644
--- a/sys/dev/ofw/ofw_misc.h
+++ b/sys/dev/ofw/ofw_misc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_misc.h,v 1.13 2020/06/10 23:43:06 patrick Exp $ */
+/* $OpenBSD: ofw_misc.h,v 1.14 2020/06/25 12:35:21 patrick Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis
*
@@ -213,4 +213,18 @@ struct dai_device *dai_byphandle(uint32_t);
#define DAI_CLOCK_CFS (0 << 1)
#define DAI_CLOCK_CFM (1 << 1)
+/* MII support */
+
+struct mii_bus {
+ int md_node;
+ void *md_cookie;
+ int (*md_readreg)(struct device *, int, int);
+ void (*md_writereg)(struct device *, int, int, int);
+
+ LIST_ENTRY(mii_bus) md_list;
+};
+
+void mii_register(struct mii_bus *);
+struct mii_bus *mii_byphandle(uint32_t);
+
#endif /* _DEV_OFW_MISC_H_ */