Skip to content

Commit

Permalink
Added more macros regarding #35
Browse files Browse the repository at this point in the history
  • Loading branch information
MirMohammadd committed Mar 21, 2024
1 parent 535116a commit 3b0b14a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions include/drivers/ata.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* furnished to do so, subject to the following conditions:
*
* @author Heisenberg
* @file ata.h
*/
#ifndef ATA_H
Expand Down Expand Up @@ -41,7 +42,29 @@

#define ATA_PRIMARY_LBA_HIGH 0x1F5

/**
* @note other ATA macros
*/

#define ATA_PRIMARY_DRIVE_SEL 0x1F6
#define ATA_PRIMARY_STATUS 0x1F7
#define ATA_PRIMARY_IRQ 14

/**
* @note other ATA macros (secondary)
*/

#define ATA_SECONDARY_DATA 0x170
#define ATA_SECONDARY_ERR 0x171
#define ATA_SECONDARY_SECTORS 0x172
#define ATA_SECONDARY_LBA_LOW 0x173
#define ATA_SECONDARY_LBA_MID 0x174
#define ATA_SECONDARY_LBA_HIGH 0x175
#define ATA_SECONDARY_DRIVE_SEL 0x176
#define ATA_SECONDARY_STATUS 0x177
#define ATA_SECONDARY_IRQ 15

#define ATA_IDENTIFY 0xEC


#endif // ATA_H

0 comments on commit 3b0b14a

Please sign in to comment.