mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-25 03:29:38 +00:00
Fix previous.
This commit is contained in:
commit
86b0174b13
@ -69,23 +69,13 @@ enum IDE_Error : int {
|
||||
BBK = 0x80
|
||||
};
|
||||
|
||||
<<<<<<< HEAD
|
||||
/** Bit definition for the device control register. */
|
||||
enum {
|
||||
ATA_CTRL_nIEN = 1 << 1,
|
||||
ATA_CTRL_SRST = 1 << 2,
|
||||
};
|
||||
|
||||
/** ATA commands. */
|
||||
=======
|
||||
/* ATA Signals */
|
||||
enum IDE_Signal : int {
|
||||
PDIAG = 0x22,
|
||||
DASP = 0x27
|
||||
};
|
||||
|
||||
/* ATA commands. */
|
||||
>>>>>>> 1e9ec5d... Start ATA command support
|
||||
enum IDE_Cmd : int {
|
||||
NOP = 0x00,
|
||||
RESET_ATAPI = 0x08,
|
||||
|
@ -45,14 +45,8 @@ public:
|
||||
return std::unique_ptr<IdeChannel>(new IdeChannel("IDE1"));
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
uint32_t read(const uint8_t reg_addr, const int size);
|
||||
void write(const uint8_t reg_addr, const uint32_t val, const int size);
|
||||
=======
|
||||
uint16_t read(const uint8_t reg_addr, const int size);
|
||||
void write(const uint8_t reg_addr, const uint16_t val, const int size);
|
||||
//void talk_to_channel(std::string name)
|
||||
>>>>>>> 1e9ec5d... Start ATA command support
|
||||
|
||||
private:
|
||||
int cur_dev = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user