Comment hulk.bootinfo a bit
This commit is contained in:
parent
d0acf5a718
commit
bd99e429a9
@ -1,25 +1,52 @@
|
|||||||
|
/**
|
||||||
|
* HULK boot information.
|
||||||
|
*/
|
||||||
module hulk.bootinfo;
|
module hulk.bootinfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HULK boot information structure.
|
||||||
|
*/
|
||||||
struct BootInfo
|
struct BootInfo
|
||||||
{
|
{
|
||||||
struct MemoryRegion
|
/**
|
||||||
{
|
* Framebuffer description structure.
|
||||||
ulong base;
|
*/
|
||||||
size_t size;
|
|
||||||
ubyte type;
|
|
||||||
}
|
|
||||||
struct Framebuffer
|
struct Framebuffer
|
||||||
{
|
{
|
||||||
|
/** Framebuffer base address. */
|
||||||
uint * buffer;
|
uint * buffer;
|
||||||
|
/** Horizontal resolution. */
|
||||||
uint width;
|
uint width;
|
||||||
|
/** Vertical resolution. */
|
||||||
uint height;
|
uint height;
|
||||||
|
/** Number of pixels per scan line. */
|
||||||
uint stride;
|
uint stride;
|
||||||
|
/** Pixel format. */
|
||||||
uint format;
|
uint format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Memory map entry description structure.
|
||||||
|
*/
|
||||||
|
struct MemoryRegion
|
||||||
|
{
|
||||||
|
/** Base address of the memory region. */
|
||||||
|
ulong base;
|
||||||
|
/** Size in bytes of the memory region. */
|
||||||
|
size_t size;
|
||||||
|
/** Type of the memory region. */
|
||||||
|
ubyte type;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Framebuffer parameters. */
|
||||||
Framebuffer fb;
|
Framebuffer fb;
|
||||||
|
|
||||||
|
/* Memory map. */
|
||||||
MemoryRegion[800] memory_map;
|
MemoryRegion[800] memory_map;
|
||||||
|
|
||||||
|
/* Number of memory map entries. */
|
||||||
size_t memory_map_count;
|
size_t memory_map_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** HULK base virtual address. */
|
||||||
enum ulong HULK_VIRTUAL_START = 0x0000_4000_0000_0000u;
|
enum ulong HULK_VIRTUAL_START = 0x0000_4000_0000_0000u;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user