Move config from pcid to pcid_interface

This will allow serializing/deserializing to be shared across programs.
For pcid-spawner will need to parse the config files and if we want to
embed config files into the driver executables at some point it may also
be useful.
This commit is contained in:
bjorn3
2025-02-22 18:56:14 +01:00
parent 5b45f06cf3
commit cd5604a054
3 changed files with 3 additions and 4 deletions
@@ -3,7 +3,7 @@ use std::ops::Range;
use serde::Deserialize;
use pcid_interface::FullDeviceId;
use crate::driver_interface::FullDeviceId;
#[derive(Clone, Debug, Default, Deserialize)]
pub struct Config {
+1
View File
@@ -16,6 +16,7 @@ pub use pci_types::PciAddress;
mod bar;
pub mod cap;
pub mod config;
mod id;
pub mod irq_helpers;
pub mod msi;
+1 -3
View File
@@ -15,11 +15,9 @@ use pci_types::{
use structopt::StructOpt;
use crate::cfg_access::Pcie;
use crate::config::Config;
use pcid_interface::{FullDeviceId, LegacyInterruptLine, PciBar};
use pcid_interface::{config::Config, FullDeviceId, LegacyInterruptLine, PciBar};
mod cfg_access;
mod config;
mod driver_handler;
#[derive(StructOpt)]