Changeset 38 for trunk/src/os2ahci/ata.h
- Timestamp:
- Nov 5, 2010, 7:13:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ata.h
r13 r38 21 21 22 22 /* -------------------------- macros and constants ------------------------- */ 23 24 /****************************************************************************** 25 * Macros to access geometry values in the ATA ID buffer 26 */ 27 #define ATA_CYLS(id_buf) *((u32 *) (id_buf + ATA_ID_CYLS)) 28 #define ATA_HEADS(id_buf) *((u32 *) (id_buf + ATA_ID_HEADS)) 29 #define ATA_SECTORS(id_buf) *((u32 *) (id_buf + ATA_ID_SECTORS)) 30 #define ATA_CAPACITY(id_buf) *((u32 *) (id_buf + ATA_ID_LBA_CAPACITY)) 31 32 #define ATA_CAPACITY48_L(id_buf) *((u32 *) (id_buf + ATA_ID_LBA_CAPACITY_2)) 33 #define ATA_CAPACITY48_H(id_buf) *((u32 *) (id_buf + ATA_ID_LBA_CAPACITY_2 + 2)) 34 35 #define CUR_CYLS(id_buf) *((u32 *) (id_buf + ATA_ID_CUR_CYLS)) 36 #define CUR_HEADS(id_buf) *((u32 *) (id_buf + ATA_ID_CUR_HEADS)) 37 #define CUR_SECTORS(id_buf) *((u32 *) (id_buf + ATA_ID_CUR_SECTORS)) 38 #define CUR_CAPACITY(id_buf) *((u32 *) (id_buf + ATA_ID_CUR_CAPACITY)) 39 23 40 24 41 /****************************************************************************** … … 50 67 #define ATA_ID_CUR_HEADS 55 51 68 #define ATA_ID_CUR_SECTORS 56 69 #define ATA_ID_CUR_CAPACITY 57 52 70 #define ATA_ID_MULTSECT 59 53 71 #define ATA_ID_LBA_CAPACITY 60
Note:
See TracChangeset
for help on using the changeset viewer.