Changeset bf474880 in rtems for c/src/libchip/ide/ata.c


Ignore:
Timestamp:
Nov 20, 2004, 4:03:21 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 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/ata.c

    ra3f1b54 rbf474880  
    11601160            }
    11611161            else {
    1162               ATA_DEV_INFO(ctrl_minor, dev).modes_avaible =
     1162              ATA_DEV_INFO(ctrl_minor, dev).modes_available =
    11631163                ((CF_LE_W(buffer[64]) & 0x1) ? ATA_MODES_PIO3 : 0) |
    11641164                ((CF_LE_W(buffer[64]) & 0x2) ? ATA_MODES_PIO4 : 0) |
     
    11681168                ((CF_LE_W(buffer[63]) & 0x4) ?
    11691169                 ATA_MODES_DMA0 | ATA_MODES_DMA1 | ATA_MODES_DMA2 : 0);
    1170               if (ATA_DEV_INFO(ctrl_minor, dev).modes_avaible == 0)
     1170              if (ATA_DEV_INFO(ctrl_minor, dev).modes_available == 0)
    11711171                continue;
    11721172              /*
     
    11761176              status = ide_controller_config_io_speed(
    11771177                ctrl_minor,
    1178                 ATA_DEV_INFO(ctrl_minor, dev).modes_avaible);
     1178                ATA_DEV_INFO(ctrl_minor, dev).modes_available);
    11791179              if (status != RTEMS_SUCCESSFUL)
    11801180                continue;
Note: See TracChangeset for help on using the changeset viewer.