17 lines
320 B
C
17 lines
320 B
C
#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
|