Changeset 2791fbb7 in mainline for uspace/lib/ata
- Timestamp:
- 2024-05-16T16:17:49Z (17 months ago)
- Branches:
- master
- Children:
- 59c0f478
- Parents:
- 64cf7a3
- Location:
- uspace/lib/ata
- Files:
-
- 3 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ata/include/ata/ata_hw.h
r64cf7a3 r2791fbb7 1 1 /* 2 * Copyright (c) 20 09Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup ata_bd29 /** @addtogroup libata 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __ATA_HW_H__ 36 #define __ATA_HW_H__ 37 35 #ifndef LIBATA_ATA_HW_H 36 #define LIBATA_ATA_HW_H 37 38 #include <stddef.h> 38 39 #include <stdint.h> 39 40 … … 48 49 49 50 enum { 50 MAX_D ISKS = 251 MAX_DEVICES = 2 51 52 }; 52 53 … … 96 97 }; 97 98 } ata_ctl_t; 99 100 #define REG_SECTOR_COUNT offsetof(ata_cmd_t, sector_count) 101 #define REG_SECTOR_NUMBER offsetof(ata_cmd_t, sector_number) 102 #define REG_CYLINDER_LOW offsetof(ata_cmd_t, cylinder_low) 103 #define REG_CYLINDER_HIGH offsetof(ata_cmd_t, cylinder_high) 104 #define REG_DRIVE_HEAD offsetof(ata_cmd_t, drive_head) 105 #define REG_STATUS offsetof(ata_cmd_t, status) 106 #define REG_COMMAND offsetof(ata_cmd_t, command) 98 107 99 108 enum devctl_bits {
Note:
See TracChangeset
for help on using the changeset viewer.