Ignore:
Timestamp:
Nov 20, 2004, 4:03:21 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
468c6f00
Parents:
a3f1b54
Message:

2004-11-20 Thomas Doerfler <Thomas.Doerfler@…>:

PR 703/filesystem

  • libchip/ide/ata_internal.h, libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h, libchip/ide/ata.c, libchip/ide/ide_controller.c: Move definitions for ATA modes into ide_ctrl_cfg.h, to make them available for BSPS/device drivers. Extend the "modes_available" and "mode_active" parameters to uint16_t for UDMA support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/ide/ide_ctrl_cfg.h

    ra3f1b54 rbf474880  
    22 * ide_ctrl_cfg.h
    33 *
    4  * LibChip library IDE controller header file - structuers used for
     4 * LibChip library IDE controller header file - structures used for
    55 * configuration and plugin interface definition.
    66 *
     
    3030    IDE_CUSTOM                /* BSP specific driver */
    3131} ide_ctrl_devs_t;
     32
     33/* ATA modes: bit masks used in ctrl_config_io_speed call */
     34#define ATA_MODES_PIO3    0x001
     35#define ATA_MODES_PIO4    0x002
     36
     37#define ATA_MODES_PIO     0x003
     38
     39#define ATA_MODES_DMA0    0x004
     40#define ATA_MODES_DMA1    0x008
     41#define ATA_MODES_DMA2    0x010
     42
     43#define ATA_MODES_UDMA0   0x020
     44#define ATA_MODES_UDMA1   0x040
     45#define ATA_MODES_UDMA2   0x080
     46#define ATA_MODES_UDMA3   0x100
     47#define ATA_MODES_UDMA4   0x200
     48#define ATA_MODES_UDMA5   0x400
     49
     50#define ATA_MODES_UDMA    0x7e0
     51#define ATA_MODES_DMA     0x7fc
     52
    3253
    3354/*
     
    6182
    6283    rtems_status_code (*ctrl_config_io_speed)(int minor,
    63                                               uint8_t  modes_available);
     84                                              uint16_t modes_available);
    6485} ide_ctrl_fns_t;
    6586
Note: See TracChangeset for help on using the changeset viewer.