add frame buffer
This commit is contained in:
12
nel_os_common/src/gop.rs
Normal file
12
nel_os_common/src/gop.rs
Normal file
@ -0,0 +1,12 @@
|
||||
pub enum PixelFormat {
|
||||
Rgb,
|
||||
Bgr,
|
||||
}
|
||||
|
||||
pub struct FrameBuffer {
|
||||
pub frame_buffer: *mut u8,
|
||||
pub width: usize,
|
||||
pub height: usize,
|
||||
pub stride: usize,
|
||||
pub pixl_format: PixelFormat,
|
||||
}
|
@ -1,3 +1,11 @@
|
||||
#![no_std]
|
||||
|
||||
use crate::{gop::FrameBuffer, memory::UsableMemory};
|
||||
|
||||
pub mod gop;
|
||||
pub mod memory;
|
||||
|
||||
pub struct BootInfo {
|
||||
pub usable_memory: UsableMemory,
|
||||
pub frame_buffer: FrameBuffer,
|
||||
}
|
||||
|
Reference in New Issue
Block a user