Home
last modified time | relevance | path

Searched refs:MemoryBarType (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/pci/
Dpci.rs1117 pub enum MemoryBarType { enum
1126 impl From<MemoryBarType> for u8 {
1127 fn from(bar_type: MemoryBarType) -> Self { in from()
1129 MemoryBarType::Width32 => 0, in from()
1130 MemoryBarType::Below1MiB => 1, in from()
1131 MemoryBarType::Width64 => 2, in from()
1136 impl TryFrom<u8> for MemoryBarType { implementation
1155 address_type: MemoryBarType,
1313 let address_type = MemoryBarType::try_from(((bar_orig & 0x00000006) >> 1) as u8)?; in pci_bar_init()
1314 if address_type == MemoryBarType::Width64 { in pci_bar_init()