WIP: Use the enhanced pcid IPC.

This commit is contained in:
4lDO2
2020-04-22 21:21:39 +02:00
parent 07d4ae0e60
commit 7b69d5b9b5
10 changed files with 125 additions and 116 deletions
+5
View File
@@ -55,6 +55,11 @@ pub struct PciFunction {
/// Device ID
pub devid: u16,
}
impl PciFunction {
pub fn name(&self) -> String {
format!("pci-{:>02X}.{:>02X}.{:>02X}", self.bus_num, self.dev_num, self.func_num)
}
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct SubdriverArguments {