Newer
Older
tree-os / src / include / hardDrive.h
#ifndef HARD_DRIVE_H
#define HARD_DRIVE_H

#include <stdint.h>

typedef struct {
    uint16_t base, control, busMaster, noInterrupt;
} IdeChannels;

typedef struct {
    IdeChannels *channels;
    char *model;
    uint8_t channel, drive;
    uint16_t capabilities, signature, type;
    uint32_t commandSets, size;
    uint16_t cylinders, heads, sectors;
} HardDrive;

extern void scanHardDrives();

#endif