]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: add phy_interface_t bitmap support
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 26 Oct 2021 10:06:01 +0000 (11:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Oct 2021 14:10:36 +0000 (15:10 +0100)
commit299a7bb9527fb717f636c2e205d1fde9d22779c4
treed382fae16a6876a4470837d5139eb529d48e8e6c
parent0f3618e7632dd59add3717aff5c1fa4c0a45fc6f
net: phy: add phy_interface_t bitmap support

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>
include/linux/phy.h