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/ata_internal.h

    ra3f1b54 rbf474880  
    5252
    5353#define ATA_MAX_CMD_REG_OFFSET          8
    54 
    55 /* ATA modes */
    56 #define ATA_MODES_PIO3    0x001
    57 #define ATA_MODES_PIO4    0x002
    58 
    59 #define ATA_MODES_PIO     0x003
    60 
    61 #define ATA_MODES_DMA0    0x004
    62 #define ATA_MODES_DMA1    0x008
    63 #define ATA_MODES_DMA2    0x010
    64 
    65 #define ATA_MODES_UDMA0   0x020
    66 #define ATA_MODES_UDMA1   0x040
    67 #define ATA_MODES_UDMA2   0x080
    68 #define ATA_MODES_UDMA3   0x100
    69 #define ATA_MODES_UDMA4   0x200
    70 #define ATA_MODES_UDMA5   0x400
    71 
    72 #define ATA_MODES_UDMA    0x7e0
    73 #define ATA_MODES_DMA     0x7fc
    7454
    7555
     
    309289    uint8_t     current_multiple;
    310290
    311     uint8_t     modes_avaible; /* OR of values for this modes */
    312     uint8_t     mode_active;
     291    uint16_t  modes_available; /* OR of values for this modes */
     292    uint16_t  mode_active;
    313293} ata_dev_t;
    314294
Note: See TracChangeset for help on using the changeset viewer.