feat: added cross compiler and moved headers to include dir
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <drivers/ports.h>
|
||||
#include <attributes.h>
|
||||
#include <libk/libk.h>
|
||||
#include "power.h"
|
||||
#include <util/power.h>
|
||||
|
||||
void noreturn power_shutdown() {
|
||||
port_word_out(PORT_ACPI, PORT_ACPI_SHUTDOWN);
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Created by rick on 03-03-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_POWER_H
|
||||
#define NEW_KERNEL_POWER_H
|
||||
#include <attributes.h>
|
||||
|
||||
void noreturn power_shutdown();
|
||||
|
||||
#endif //NEW_KERNEL_POWER_H
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <mem/malloc.h>
|
||||
#include <libc/libc.h>
|
||||
#include <tasks/locking.h>
|
||||
#include "stream.h"
|
||||
#include <util/stream.h>
|
||||
|
||||
struct stream {
|
||||
uint8_t *data;
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
//
|
||||
// Created by rick on 02-03-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_STREAM_H
|
||||
#define NEW_KERNEL_STREAM_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct stream stream_t;
|
||||
|
||||
stream_t *stream_create(uint32_t size);
|
||||
|
||||
void stream_free(stream_t *strm);
|
||||
|
||||
void stream_wait(stream_t *stream);
|
||||
|
||||
uint32_t stream_read(stream_t *strm, uint8_t *target, uint32_t count);
|
||||
|
||||
uint32_t stream_write(stream_t *strm, const uint8_t *source, uint32_t count);
|
||||
|
||||
uint32_t stream_get_write_available(stream_t *stream);
|
||||
|
||||
uint32_t stream_get_read_available(stream_t *stream);
|
||||
|
||||
#endif //NEW_KERNEL_STREAM_H
|
||||
Reference in New Issue
Block a user