begin ahci driver

This commit is contained in:
Michael Shaw 2023-05-04 21:47:48 -04:00
commit 87146087ca
7 changed files with 529 additions and 2 deletions

View file

@ -24,5 +24,6 @@
void yield();
typedef uintptr_t paddr_t;
typedef uint32_t paddr32_t;
#endif /* _COMMON_H_ */

11
include/kernel/irq.h Normal file
View file

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _IRQ_H_
#define _IRQ_H_
#include <kernel/common.h>
int irq_map(uint8_t irq, uint8_t ist, void *func);
void irq_unmap(uint8_t irq);
int irq_highest_free();
#endif /* _IRQ_H_ */