Added a bunch of new stuff no time to figure out what's what, No longer any compiler warnings

This commit is contained in:
2021-11-02 21:03:11 +01:00
parent b4b615ae97
commit c9b789ed7b
25 changed files with 427 additions and 55 deletions

17
src/kernel/disk.h Normal file
View File

@ -0,0 +1,17 @@
#pragma once
// Let's write an ATA PIO | ATA driver for now. Mostly to show that I can in theory interact with a
// storage device
// PRIMARY_ATA_BUS
// 0x1F0 through 0x1F7
// SECONDARY_ATA_BUS
// 0x170 through 0x177
#define DEVICE_CONTROL_REGISTER 0x3F6
#define DEVICE_CONTROL_ALTERNATE 0x376
// IRQ14 Primary bus interrupt
// IRQ15 Secondary bus interrupt