2021-07-26 12:55:13 +00:00
|
|
|
#ifndef ATAPI_H
|
|
|
|
#define ATAPI_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2021-07-28 23:44:40 +00:00
|
|
|
#include <stddef.h>
|
2021-07-26 12:55:13 +00:00
|
|
|
|
|
|
|
struct atapi_drive
|
|
|
|
{
|
2021-07-28 23:44:40 +00:00
|
|
|
uint16_t reg;
|
|
|
|
uint16_t drive;
|
2021-07-26 12:55:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void discover_atapi_drive(void);
|
2021-07-28 23:44:40 +00:00
|
|
|
void *read_block(size_t lba);
|
2021-07-26 12:55:13 +00:00
|
|
|
|
|
|
|
#endif /* !ATAPI_H */
|