Lines Matching full:mmd
33 /// dev.read(C45::new(Mmd::PMAPMD, 0));
85 /// MMD Register control.
87 /// MMD Register address data.
139 pub struct Mmd(u8); struct
141 impl Mmd { impl
143 pub const PMAPMD: Self = Mmd(uapi::MDIO_MMD_PMAPMD as u8);
145 pub const WIS: Self = Mmd(uapi::MDIO_MMD_WIS as u8);
147 pub const PCS: Self = Mmd(uapi::MDIO_MMD_PCS as u8);
149 pub const PHYXS: Self = Mmd(uapi::MDIO_MMD_PHYXS as u8);
151 pub const DTEXS: Self = Mmd(uapi::MDIO_MMD_DTEXS as u8);
153 pub const TC: Self = Mmd(uapi::MDIO_MMD_TC as u8);
155 pub const AN: Self = Mmd(uapi::MDIO_MMD_AN as u8);
157 pub const SEPARATED_PMA1: Self = Mmd(8);
159 pub const SEPARATED_PMA2: Self = Mmd(9);
161 pub const SEPARATED_PMA3: Self = Mmd(10);
163 pub const SEPARATED_PMA4: Self = Mmd(11);
165 pub const OFDM_PMAPMD: Self = Mmd(12);
167 pub const POWER_UNIT: Self = Mmd(13);
169 pub const C22_EXT: Self = Mmd(uapi::MDIO_MMD_C22EXT as u8);
171 pub const VEND1: Self = Mmd(uapi::MDIO_MMD_VEND1 as u8);
173 pub const VEND2: Self = Mmd(uapi::MDIO_MMD_VEND2 as u8);
178 /// Clause 45 uses a 5-bit device address to access a specific MMD within
180 /// that device. `C45` represents this by storing a [`Mmd`] and
183 devad: Mmd,
189 pub fn new(devad: Mmd, regnum: u16) -> Self { in new() argument