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: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
Please register or sign in to comment