start adding disk things

This commit is contained in:
2025-03-15 16:03:16 +03:00
parent fe1264d55d
commit a7a7121812
6 changed files with 181 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef DISK_H
#define DISK_H
#include <stdint.h>
typedef struct {
unsigned short cylinders;
unsigned char heads;
unsigned char sectors;
} disk_info;
void get_hdd_geometry(uint32_t* cylinders, uint16_t* heads, uint32_t* sectors);
void get_disk_info(disk_info *info);
int ide_check_disk_present();
#endif