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:
@@ -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 {
|
||||
@@ -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
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user