Changeset 59c0f478 in mainline for uspace/drv/block/isa-ide/isa-ide.h


Ignore:
Timestamp:
2024-05-16T18:20:35Z (8 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
646849b3
Parents:
2791fbb7
Message:

Rename ata_bd → isa-ide

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/isa-ide/isa-ide.h

    r2791fbb7 r59c0f478  
    2727 */
    2828
    29 /** @addtogroup ata_bd
     29/** @addtogroup isa-ide
    3030 * @{
    3131 */
    32 /** @file ATA driver definitions.
     32/** @file ISA IDE driver definitions.
    3333 */
    3434
    35 #ifndef __ATA_BD_H__
    36 #define __ATA_BD_H__
     35#ifndef ISA_IDE_H
     36#define ISA_IDE_H
    3737
    3838#include <ata/ata.h>
     
    4343#include <stdint.h>
    4444
    45 #define NAME "ata_bd"
     45#define NAME "isa-ide"
    4646
    47 /** ATA hardware resources */
     47/** ISA IDE hardware resources */
    4848typedef struct {
    4949        uintptr_t cmd;  /**< Command block base address. */
    5050        uintptr_t ctl;  /**< Control block base address. */
    5151        int irq;        /**< IRQ */
    52 } ata_hwres_t;
     52} isa_ide_hwres_t;
    5353
    54 /** ATA controller */
    55 typedef struct ata_ctrl {
     54/** ISA IDE controller */
     55typedef struct isa_ide_ctrl {
    5656        /** DDF device */
    5757        ddf_dev_t *dev;
     
    7777        /** Libata ATA channel */
    7878        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;
    8181
    82 typedef struct ata_fun {
     82typedef struct isa_ide_fun {
    8383        ddf_fun_t *fun;
    8484        void *charg;
    85 } ata_fun_t;
     85} isa_ide_fun_t;
    8686
    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 *);
     87extern errno_t isa_ide_ctrl_init(isa_ide_ctrl_t *, isa_ide_hwres_t *);
     88extern errno_t isa_ide_ctrl_remove(isa_ide_ctrl_t *);
     89extern errno_t isa_ide_ctrl_gone(isa_ide_ctrl_t *);
    9090
    9191#endif
Note: See TracChangeset for help on using the changeset viewer.