summaryrefslogtreecommitdiff
path: root/rust/uapi
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2024-08-28 07:35:14 +0000
committerDavid S. Miller <davem@davemloft.net>2024-08-30 10:27:35 +0100
commitb2e47002b2350f57bfa8fe1c231e9fbb6baef78b (patch)
tree86484c1de635342d063f9fd162c073f7db207253 /rust/uapi
parent7909892a9fbb3e60623e60c3c3e95e10fc56f687 (diff)
rust: net::phy unified read/write API for C22 and C45 registers
Add the unified read/write API for C22 and C45 registers. The abstractions support access to only C22 registers now. Instead of adding read/write_c45 methods specifically for C45, a new reg module supports the unified API to access C22 and C45 registers with trait, by calling an appropriate phylib functions. Reviewed-by: Trevor Gross <tmgross@umich.edu> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'rust/uapi')
-rw-r--r--rust/uapi/uapi_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/uapi/uapi_helper.h b/rust/uapi/uapi_helper.h
index 08f5e9334c9e..76d3f103e764 100644
--- a/rust/uapi/uapi_helper.h
+++ b/rust/uapi/uapi_helper.h
@@ -7,5 +7,6 @@
*/
#include <uapi/asm-generic/ioctl.h>
+#include <uapi/linux/mdio.h>
#include <uapi/linux/mii.h>
#include <uapi/linux/ethtool.h>