summaryrefslogtreecommitdiffhomepage
path: root/lib/fd.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-03-28 09:09:27 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-03-28 09:09:27 +0100
commitf204ff88659e058d70213fc7224a2c95c6a48c9d (patch)
treeb4d62fa0dc6da921e25aa3fac400cab892a78e57 /lib/fd.h
parent08f96fce677d9cf4f8757cf064c07f80e30d378e (diff)
coreboot: rename from NeKernel firmware, refactor symbols to `cb_`, update docs
This patch completes a major renaming and cleanup of the firmware codebase: - Rename project from "NeKernel Firmware" to "CoreBoot" in README and comments. - Replace all `mp_`-prefixed symbols with `cb_` to reflect the new naming scheme. - Remove obsolete SPECIFICATION.TXT and replace with SPECIFICATION_FIRMWARE.md. - Update memory-mapped I/O helpers, TLB init, and platform-specific code to match `cb_*` naming. - Refactor low-level UART, panic, PCI-tree, partition map, and context setup to use unified `cb_` API. - Adjust linker scripts and boot vectors for ARM64, PPC64, and RV64 targets accordingly. - Add Doxygen documentation note to README. This change is part of an ongoing effort to rebrand and unify the firmware interface, improve naming clarity, and better align with platform-specific toolchains. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'lib/fd.h')
-rw-r--r--lib/fd.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/fd.h b/lib/fd.h
index f2e4655..f89bb61 100644
--- a/lib/fd.h
+++ b/lib/fd.h
@@ -8,25 +8,25 @@
#include <lib/boot.h>
-struct _mp_file_descriptor;
+struct _cb_file_descriptor;
/// @brief CoreBoot file/device descriptor.
/// @version 1
-typedef struct _mp_file_descriptor
+typedef struct _cb_file_descriptor
{
int32_t f_kind;
int32_t f_filesystem;
- size_t (*f_write)(void* ptr, size_t size, size_t nitems, struct _mp_file_descriptor* self);
- size_t (*f_read)(void* ptr, size_t size, size_t nitems, struct _mp_file_descriptor* self);
- int (*f_seek)(struct _mp_file_descriptor* self, size_t off, int whence);
- int (*f_tell)(struct _mp_file_descriptor* self);
- int (*f_rewind)(struct _mp_file_descriptor* self);
- int (*f_eof)(struct _mp_file_descriptor* self);
- int (*f_close)(struct _mp_file_descriptor* self);
-} mp_file_descriptor_t;
+ size_t (*f_write)(void* ptr, size_t size, size_t nitems, struct _cb_file_descriptor* self);
+ size_t (*f_read)(void* ptr, size_t size, size_t nitems, struct _cb_file_descriptor* self);
+ int (*f_seek)(struct _cb_file_descriptor* self, size_t off, int whence);
+ int (*f_tell)(struct _cb_file_descriptor* self);
+ int (*f_rewind)(struct _cb_file_descriptor* self);
+ int (*f_eof)(struct _cb_file_descriptor* self);
+ int (*f_close)(struct _cb_file_descriptor* self);
+} cb_file_descriptor_t;
/// @brief Grabs a new device reference.
/// @param path the device path.
/// @return
-mp_file_descriptor_t* mp_grab_fd(const char* path);
+cb_file_descriptor_t* cb_grab_fd(const char* path);