Changeset 59c0f478 in mainline for uspace/drv/block/isa-ide/isa-ide.h
- Timestamp:
- 2024-05-16T18:20:35Z (8 months ago)
- Branches:
- master
- Children:
- 646849b3
- Parents:
- 2791fbb7
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/isa-ide/isa-ide.h
r2791fbb7 r59c0f478 27 27 */ 28 28 29 /** @addtogroup ata_bd29 /** @addtogroup isa-ide 30 30 * @{ 31 31 */ 32 /** @file ATAdriver definitions.32 /** @file ISA IDE driver definitions. 33 33 */ 34 34 35 #ifndef __ATA_BD_H__36 #define __ATA_BD_H__35 #ifndef ISA_IDE_H 36 #define ISA_IDE_H 37 37 38 38 #include <ata/ata.h> … … 43 43 #include <stdint.h> 44 44 45 #define NAME " ata_bd"45 #define NAME "isa-ide" 46 46 47 /** ATAhardware resources */47 /** ISA IDE hardware resources */ 48 48 typedef struct { 49 49 uintptr_t cmd; /**< Command block base address. */ 50 50 uintptr_t ctl; /**< Control block base address. */ 51 51 int irq; /**< IRQ */ 52 } ata_hwres_t;52 } isa_ide_hwres_t; 53 53 54 /** ATAcontroller */55 typedef struct ata_ctrl {54 /** ISA IDE controller */ 55 typedef struct isa_ide_ctrl { 56 56 /** DDF device */ 57 57 ddf_dev_t *dev; … … 77 77 /** Libata ATA channel */ 78 78 ata_channel_t *channel; 79 struct ata_fun *fun[2];80 } ata_ctrl_t;79 struct isa_ide_fun *fun[2]; 80 } isa_ide_ctrl_t; 81 81 82 typedef struct ata_fun {82 typedef struct isa_ide_fun { 83 83 ddf_fun_t *fun; 84 84 void *charg; 85 } ata_fun_t;85 } isa_ide_fun_t; 86 86 87 extern errno_t ata_ctrl_init(ata_ctrl_t *, ata_hwres_t *);88 extern errno_t ata_ctrl_remove(ata_ctrl_t *);89 extern errno_t ata_ctrl_gone(ata_ctrl_t *);87 extern errno_t isa_ide_ctrl_init(isa_ide_ctrl_t *, isa_ide_hwres_t *); 88 extern errno_t isa_ide_ctrl_remove(isa_ide_ctrl_t *); 89 extern errno_t isa_ide_ctrl_gone(isa_ide_ctrl_t *); 90 90 91 91 #endif
Note:
See TracChangeset
for help on using the changeset viewer.