feat: implemented errno, strtol. Started ustar. Reformatted headers and
code. Added some self-tests. Started prepwork for vfs.
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <myke/drivers/ide.h>
|
||||
#include <myke/drivers/pci/ide.h>
|
||||
#include <myke/debug/debug.h>
|
||||
#include <myke/drivers/ports.h>
|
||||
#include <myke/libk/kprint.h>
|
||||
#include <myke/drivers/pci.h>
|
||||
#include <myke/drivers/pci/pci.h>
|
||||
#include <myke/libk/libk.h>
|
||||
#include <myke/cpu/timer.h>
|
||||
#include <myke/fs/blockdev.h>
|
||||
@@ -377,7 +377,7 @@ bool ide_pci_init_channels(pci_device *device) {
|
||||
}
|
||||
|
||||
uint8_t
|
||||
ide_block_dev_access(const block_device *device, uint8_t direction, uint32_t lba, uint8_t sectors, void *target) {
|
||||
ide_block_dev_access(const block_device_t *device, uint8_t direction, uint32_t lba, uint8_t sectors, void *target) {
|
||||
ide_block_device_info *info = device->device_info;
|
||||
uint8_t result = ide_access(direction, info->device_number, lba, sectors, target);
|
||||
if (result != 0) {
|
||||
@@ -399,7 +399,7 @@ void ide_register_block_devices() {
|
||||
info->device_number = i;
|
||||
info->print_error = 1;
|
||||
|
||||
block_device device = {
|
||||
block_device_t device = {
|
||||
.flags.present = 1,
|
||||
.flags.root_device = 1,
|
||||
.device_info = info,
|
||||
@@ -6,13 +6,13 @@
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <myke/drivers/pci.h>
|
||||
#include <myke/drivers/pci/pci.h>
|
||||
#include <myke/drivers/ports.h>
|
||||
#include <myke/libk/libk.h>
|
||||
|
||||
#ifdef ENABLE_PCIPP
|
||||
|
||||
#include <myke/drivers/pci_devices.h>
|
||||
#include <myke/drivers/pci/pci_devices.h>
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user