Remove dead lib code
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
kernel_sources += files(
|
|
||||||
'memfiles.c',
|
|
||||||
)
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
subdir('common')
|
|
||||||
subdir('block')
|
subdir('block')
|
||||||
subdir('dt')
|
subdir('dt')
|
||||||
subdir('video')
|
subdir('video')
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
// SPDX-License-Identifier: ISC
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <zinnia/mman.h>
|
|
||||||
|
|
||||||
// TODO
|
|
||||||
|
|
||||||
enum bio_type : uint8_t {
|
|
||||||
BLOCK_READ,
|
|
||||||
BLOCK_WRITE,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct bio {
|
|
||||||
enum bio_type type;
|
|
||||||
uint32_t num_lbas;
|
|
||||||
uint64_t lba;
|
|
||||||
};
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
// SPDX-License-Identifier: ISC
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <zinnia/atomic.h>
|
|
||||||
#include <zinnia/list.h>
|
|
||||||
#include <zinnia/percpu.h>
|
|
||||||
|
|
||||||
struct dpc {
|
|
||||||
void (*callback)(struct dpc* dpc, void* data);
|
|
||||||
void* data;
|
|
||||||
atomic_bool inserted;
|
|
||||||
|
|
||||||
list_link(struct dpc*) link;
|
|
||||||
};
|
|
||||||
|
|
||||||
void dpc_dispatch();
|
|
||||||
|
|
||||||
struct dpc_percpu {};
|
|
||||||
extern struct dpc_percpu dpc_percpu_data;
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
// SPDX-License-Identifier: ISC
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <zinnia/atomic.h>
|
|
||||||
#include <zinnia/sched.h>
|
|
||||||
#include <zinnia/spin.h>
|
|
||||||
#include <zinnia/tailq.h>
|
|
||||||
|
|
||||||
// A queue of tasks waiting for an event.
|
|
||||||
struct waitq {
|
|
||||||
tailq_head(_Atomic(struct task)) waiters;
|
|
||||||
_Atomic(bool) woken;
|
|
||||||
};
|
|
||||||
|
|
||||||
void waitq_init(struct waitq* wq);
|
|
||||||
void waitq_wait(struct waitq* wq);
|
|
||||||
void waitq_wake_one(struct waitq* wq);
|
|
||||||
void waitq_wake_all(struct waitq* wq);
|
|
||||||
-17
@@ -1,17 +0,0 @@
|
|||||||
#include <zinnia/waitq.h>
|
|
||||||
|
|
||||||
void waitq_init(struct waitq* wq) {
|
|
||||||
tailq_init(&wq->waiters);
|
|
||||||
}
|
|
||||||
|
|
||||||
void waitq_wait(struct waitq* wq) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
void waitq_wake_one(struct waitq* wq) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
void waitq_wake_all(struct waitq* wq) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user