32 lines
675 B
Rust
32 lines
675 B
Rust
#![no_std]
|
|
#![no_main]
|
|
|
|
extern crate alloc;
|
|
|
|
mod xhci;
|
|
|
|
use mammoth::{cap::Capability, debug, define_entry, zion::z_err_t};
|
|
use pci::PciDevice;
|
|
use xhci::driver::XHCIDriver;
|
|
|
|
define_entry!();
|
|
|
|
#[unsafe(no_mangle)]
|
|
extern "C" fn main() -> z_err_t {
|
|
#[cfg(feature = "debug")]
|
|
debug!("Voyageurs Starting.");
|
|
|
|
let yellowstone = yellowstone_yunq::from_init_endpoint();
|
|
|
|
let xhci_info = yellowstone
|
|
.get_xhci_info()
|
|
.expect("Failed to get XHCI info from yellowstone.");
|
|
|
|
let pci_device = PciDevice::from_cap(Capability::take(xhci_info.xhci_region)).unwrap();
|
|
|
|
let xhci_driver = XHCIDriver::from_pci_device(pci_device);
|
|
|
|
loop {}
|
|
|
|
0
|
|
}
|