aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/phy.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/phy.h')
-rw-r--r--os/io/phy.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/os/io/phy.h b/os/io/phy.h
index 7bf09b8c3..ffafa4025 100644
--- a/os/io/phy.h
+++ b/os/io/phy.h
@@ -27,12 +27,28 @@
#ifndef _PHY_H_
#define _PHY_H_
+#include "mac_lld.h"
#include "phy_lld.h"
+/**
+ * @brief Type of a PHY register value.
+ */
+typedef uint16_t phyreg_t;
+
+/**
+ * @brief Type of a PHY register address.
+ */
+typedef uint8_t phyaddr_t;
+
#ifdef __cplusplus
extern "C" {
#endif
void phyInit(void);
+ void phyReset(MACDriver *macp);
+ void phyStart(MACDriver *macp);
+ void phyStop(MACDriver *macp);
+ phyreg_t phyGet(MACDriver *macp, phyaddr_t addr);
+ void phyPut(MACDriver *macp, phyaddr_t addr, phyreg_t value);
#ifdef __cplusplus
}
#endif