feat: reformatted code base to be more standard
This commit is contained in:
@@ -3,19 +3,20 @@
|
||||
//
|
||||
// https://wiki.osdev.org/PCI_IDE_Controller
|
||||
|
||||
#include <drivers/ide.h>
|
||||
#include <debug/debug.h>
|
||||
#include <drivers/ports.h>
|
||||
#include <types.h>
|
||||
#include <libk/kprint.h>
|
||||
#include <drivers/pci.h>
|
||||
#include <stdbool.h>
|
||||
#include <libk/libk.h>
|
||||
#include <cpu/timer.h>
|
||||
#include <libc/kprintf.h>
|
||||
#include <fs/blockdev.h>
|
||||
#include <mem/malloc.h>
|
||||
#include <tasks/locking.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <myke/drivers/ide.h>
|
||||
#include <myke/debug/debug.h>
|
||||
#include <myke/drivers/ports.h>
|
||||
#include <myke/libk/kprint.h>
|
||||
#include <myke/drivers/pci.h>
|
||||
#include <myke/libk/libk.h>
|
||||
#include <myke/cpu/timer.h>
|
||||
#include <myke/fs/blockdev.h>
|
||||
#include <myke/tasks/locking.h>
|
||||
|
||||
#define ATA_SR_BSY 0x80 // Busy
|
||||
#define ATA_SR_DRDY 0x40 // Drive ready
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
//
|
||||
// Created by rick on 23-03-20.
|
||||
//
|
||||
#include <drivers/keyboard.h>
|
||||
|
||||
#include <drivers/ports.h>
|
||||
#include <cpu/isr.h>
|
||||
#include <libc/ringqueue.h>
|
||||
#include <libk/libk.h>
|
||||
#include <mem/malloc.h>
|
||||
#include <libk/syscall.h>
|
||||
#include <stdlib.h>
|
||||
#include <myke/drivers/keyboard.h>
|
||||
#include <myke/drivers/ports.h>
|
||||
#include <myke/cpu/isr.h>
|
||||
#include <myke/libc/ringqueue.h>
|
||||
#include <myke/libk/libk.h>
|
||||
#include <myke/libk/syscall.h>
|
||||
|
||||
|
||||
const char scancode_map_lowercase[] = {
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
//
|
||||
// https://wiki.osdev.org/PCI
|
||||
|
||||
#include <drivers/pci.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <types.h>
|
||||
#include <drivers/ports.h>
|
||||
#include <libk/libk.h>
|
||||
#include <libc/kprintf.h>
|
||||
#include <myke/drivers/pci.h>
|
||||
#include <myke/drivers/ports.h>
|
||||
#include <myke/libk/libk.h>
|
||||
|
||||
#ifdef ENABLE_PCIPP
|
||||
|
||||
#include <drivers/pci_devices.h>
|
||||
#include <myke/drivers/pci_devices.h>
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <drivers/ports.h>
|
||||
#include <myke/drivers/ports.h>
|
||||
|
||||
/**
|
||||
* Read a byte from the specified port
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// Created by rick on 28-01-21.
|
||||
//
|
||||
|
||||
#include <drivers/serial.h>
|
||||
#include <types.h>
|
||||
#include <drivers/ports.h>
|
||||
#include <myke/drivers/serial.h>
|
||||
#include <sys/types.h>
|
||||
#include <myke/drivers/ports.h>
|
||||
|
||||
#define SERIAL_INTERRUPT_DATA_AVAILABLE (1 << 0)
|
||||
#define SERIAL_INTERRUPT_TRANSMITTER_EMPTY (1 << 1)
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// Created by rick on 8/18/19.
|
||||
//
|
||||
|
||||
#include <drivers/vgascreen.h>
|
||||
#include <string.h>
|
||||
#include <myke/drivers/vgascreen.h>
|
||||
|
||||
#include <libc/libc.h>
|
||||
#include <drivers/ports.h>
|
||||
#include <myke/drivers/ports.h>
|
||||
|
||||
char *_vga_character_memory = (char *) VGA_CHARACTER_MEMORY_LOCATION;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user