Skip to content
Commit 2fc3a9df authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by Xulin Sun
Browse files

net: phy: add phy_interface_t bitmap support

commit 4c0ebd1b8918a6550205b77481def214b78fd83c from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git



commit 8e20f591 upstream.

Add support for a bitmap for phy interface modes, which includes:
- a macro to declare the interface bitmap
- an inline helper to zero the interface bitmap
- an inline helper to detect an empty interface bitmap
- inline helpers to do a bitwise AND and OR operations on two interface
  bitmaps

Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: default avatarXulin Sun <xulin.sun@windriver.com>
parent d6c11251
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment