pub struct EhciController {
mmio_base: usize,
cap_regs: *const EhciCapRegisters,
op_regs: *mut EhciOpRegisters,
port_regs: *mut EhciPortRegisters,
max_ports: usize,
ports: Vec<EhciPort>,
periodic_list: *mut u32,
periodic_list_phys: u64,
async_list: *mut u32,
async_list_phys: u64,
}Fields§
§mmio_base: usize§cap_regs: *const EhciCapRegisters§op_regs: *mut EhciOpRegisters§port_regs: *mut EhciPortRegisters§max_ports: usize§ports: Vec<EhciPort>§periodic_list: *mut u32§periodic_list_phys: u64§async_list: *mut u32§async_list_phys: u64Implementations§
Source§impl EhciController
impl EhciController
Sourcepub unsafe fn new(pci_dev: PciDevice) -> Result<Arc<Self>, &'static str>
pub unsafe fn new(pci_dev: PciDevice) -> Result<Arc<Self>, &'static str>
Creates a new instance.
Sourceunsafe fn init_schedules(&mut self) -> Result<(), &'static str>
unsafe fn init_schedules(&mut self) -> Result<(), &'static str>
Initializes schedules.
Sourceunsafe fn read_portsc(&self, port: usize) -> u32
unsafe fn read_portsc(&self, port: usize) -> u32
Reads portsc.
Sourceunsafe fn write_portsc(&self, port: usize, val: u32)
unsafe fn write_portsc(&self, port: usize, val: u32)
Writes portsc.
Sourcepub fn port_count(&self) -> usize
pub fn port_count(&self) -> usize
Performs the port count operation.
Sourcepub fn is_port_connected(&self, port: usize) -> bool
pub fn is_port_connected(&self, port: usize) -> bool
Returns whether port connected.
Sourcepub fn get_port_speed(&self, port: usize) -> u8
pub fn get_port_speed(&self, port: usize) -> u8
Returns port speed.
Trait Implementations§
impl Send for EhciController
impl Sync for EhciController
Auto Trait Implementations§
impl Freeze for EhciController
impl RefUnwindSafe for EhciController
impl Unpin for EhciController
impl UnsafeUnpin for EhciController
impl UnwindSafe for EhciController
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more