16 lines
453 B
Rust
16 lines
453 B
Rust
use types::id::{EndpointId, IrqId, NotificationId, ProcessId, RegionId};
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
pub enum Resource {
|
|
Memory(RegionId),
|
|
Endpoint(EndpointId),
|
|
Notification(NotificationId),
|
|
Process(ProcessId),
|
|
Interrupt(IrqId),
|
|
ProcessCreate,
|
|
/// Machine-wide controls such as halting; given only to init at boot.
|
|
SystemControl,
|
|
/// The debug console (UART); held by the log server.
|
|
Console,
|
|
}
|