mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add some v2 graphics api adapters and opcodes
This commit is contained in:
parent
2b36849683
commit
2957cce789
1 changed files with 6 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ impl Gid {
|
|||
pub fn new(id: [u32; 4]) -> Self { Gid { gid: id } }
|
||||
|
||||
pub fn gid(&self) -> [u32; 4] { self.gid }
|
||||
|
||||
pub fn dummy() -> Self { Gid { gid: [0xdead, 0xbeef, 0xdead, 0xbeef] } }
|
||||
}
|
||||
impl Hash for Gid {
|
||||
fn hash<H>(&self, state: &mut H)
|
||||
|
|
@ -89,6 +91,10 @@ pub enum GfxOpcode {
|
|||
/// Handle Camera IRQs
|
||||
CamIrq,
|
||||
|
||||
/// V2 API for claiming ownership of screen for modal operation
|
||||
AcquireModal,
|
||||
ReleaseModal,
|
||||
|
||||
/// Gutter for invalid calls
|
||||
InvalidCall,
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue