Fix inclusion from assembly files
This commit is contained in:
parent
11e9556c8a
commit
4804e49981
@ -1,6 +1,5 @@
|
|||||||
// TODO: cbindgen doesn't work lmao
|
// TODO: cbindgen doesn't work lmao
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#define YB_CMDLINE_SIZE 256
|
#define YB_CMDLINE_SIZE 256
|
||||||
#define YB_KERNEL_MAGIC_V1 {0x07, 0xB0, 0x07, 0xB0, 0xA9, 0x97, 0xA1, 0x00}
|
#define YB_KERNEL_MAGIC_V1 {0x07, 0xB0, 0x07, 0xB0, 0xA9, 0x97, 0xA1, 0x00}
|
||||||
@ -10,18 +9,19 @@
|
|||||||
#define YB_FLAG_INITRD (1 << 1)
|
#define YB_FLAG_INITRD (1 << 1)
|
||||||
#define YB_FLAG_UPPER (1 << 2)
|
#define YB_FLAG_UPPER (1 << 2)
|
||||||
|
|
||||||
|
#define YB_LFB_BGR32 0
|
||||||
|
#define YB_LFB_RGB32 1
|
||||||
|
#define YB_LFB_ANY 2
|
||||||
|
#define YB_TEXT 3
|
||||||
|
|
||||||
|
#if !defined(__ASM__)
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
struct yb_header {
|
struct yb_header {
|
||||||
uint8_t kernel_magic[8];
|
uint8_t kernel_magic[8];
|
||||||
uint8_t loader_magic[8];
|
uint8_t loader_magic[8];
|
||||||
};
|
};
|
||||||
|
|
||||||
enum yb_pixel_format {
|
|
||||||
YB_LFB_BGR32 = 0,
|
|
||||||
YB_LFB_RGB32,
|
|
||||||
YB_LFB_ANY,
|
|
||||||
YB_TEXT
|
|
||||||
};
|
|
||||||
|
|
||||||
struct yb_video_info {
|
struct yb_video_info {
|
||||||
uint32_t width, height;
|
uint32_t width, height;
|
||||||
uint32_t format;
|
uint32_t format;
|
||||||
@ -52,3 +52,4 @@ struct yb_proto_v1 {
|
|||||||
|
|
||||||
char cmdline[YB_CMDLINE_SIZE];
|
char cmdline[YB_CMDLINE_SIZE];
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user