From aa3d1b4689e6dadd982fe1e5ca8af69ca39c617d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 15 Apr 2020 16:35:29 +0200 Subject: Added ext2 filesystem --- src/kernel/fs/ata_pio.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/kernel/fs/ata_pio.h (limited to 'src/kernel/fs/ata_pio.h') diff --git a/src/kernel/fs/ata_pio.h b/src/kernel/fs/ata_pio.h deleted file mode 100644 index 7fd45e2..0000000 --- a/src/kernel/fs/ata_pio.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef MELVIX_ATA_PIO_H -#define MELVIX_ATA_PIO_H - -#include - -#define BYTES_PER_SECTOR 512 - -struct ata_interface { - uint8_t master; - uint16_t data_port; - uint16_t error_port; - uint16_t sector_count_port; - uint16_t lba_low_port; - uint16_t lba_mid_port; - uint16_t lba_high_port; - uint16_t device_port; - uint16_t command_port; - uint16_t control_port; -}; - -struct ata_interface *new_ata(uint8_t master, uint16_t port_base); - -uint8_t ata_identify(struct ata_interface *interface, uint16_t *ret_data); - -uint8_t *ata_read28(struct ata_interface *interface, uint32_t sector); - -uint8_t ata_write28(struct ata_interface *interface, uint32_t sector, const uint8_t *contents); - -uint8_t ata_clear28(struct ata_interface *interface, uint32_t sector); - -#endif \ No newline at end of file -- cgit v1.2.3