[init] Move PCIe probing to srv.init

This was kept in the kernel as a way to keep exercising the code, but it
doesn't belong there. This moves it to init, which doesn't do anything
but probe for devices currently - but at least it's executing the code
in userspace now.
This commit is contained in:
Justin C. Miller
2023-02-20 11:23:49 -08:00
parent 15e2f8abf3
commit 3a7a18011c
16 changed files with 294 additions and 235 deletions

View File

@@ -3,6 +3,7 @@
bp = module("bootproto",
kind = "lib",
public_headers = [
"bootproto/acpi.h",
"bootproto/bootconfig.h",
"bootproto/devices/framebuffer.h",
"bootproto/init.h",

View File

@@ -0,0 +1,15 @@
#pragma once
/// \file bootproto/acpi.h
/// Data structures for passing ACPI tables to the init server
#include <util/counted.h>
namespace bootproto {
struct acpi
{
util::const_buffer region;
void const *root;
};
} // namespace bootproto

View File

@@ -10,7 +10,7 @@
namespace bootproto {
enum class module_type : uint8_t { none, initrd, device, };
enum class module_type : uint8_t { none, initrd, device, acpi };
struct module
{