add frame buffer

This commit is contained in:
mii443
2025-07-03 02:48:47 +09:00
parent 7a40a81ae5
commit 457c227456
5 changed files with 60 additions and 10 deletions

12
nel_os_common/src/gop.rs Normal file
View 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,
}

View File

@ -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,
}