BarinkOS/source/kernel/drivers/IO/atapi/atapiDevice.h

30 lines
575 B
C
Raw Normal View History

2021-11-30 23:00:45 +00:00
#pragma once
#include <stdint.h>
#include "../io.h"
#include "../../ide/ideCommands.h"
#include "../../ide/sampleIDE.definitions.h"
2021-11-30 23:00:45 +00:00
#include "../../../tty/kterm.h"
2021-11-30 23:00:45 +00:00
/*
* This first driver wil make use of IO ports.
* Doing so means reading or writing from disk is going
* to be very cpu intensive.
*
*/
enum DEVICE_DRIVE{
MASTER = 0xA0,
SLAVE = 0xB0
};
namespace ATAPI_DEVICE
{
bool isPacketDevice();
void Identify ( uint8_t, DEVICE_DRIVE );
void Read ( uint8_t, DEVICE_DRIVE );
void Write ( uint8_t, DEVICE_DRIVE );
};