Changeset 155b47a in rtems


Ignore:
Timestamp:
Oct 25, 2010, 7:43:32 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
4cdce0e
Parents:
ae78019
Message:

2010-10-25 Sebastian Huber <sebastian.huber@…>

  • libchip/ide/ata.c: Do not violate chain API.
Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    rae78019 r155b47a  
     12010-10-25      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * libchip/ide/ata.c: Do not violate chain API.
     4
    152010-08-20      <yann.sionneau@telecom-sudparis.eu>
    26
  • c/src/libchip/ide/ata.c

    rae78019 r155b47a  
    432432    /* get first request in the controller's queue */
    433433    _ISR_Disable(level);
    434     areq = (ata_req_t *)(ata_ide_ctrls[ctrl_minor].reqs.first);
     434    areq = (ata_req_t *)rtems_chain_first(&ata_ide_ctrls[ctrl_minor].reqs);
    435435    _ISR_Enable(level);
    436436
     
    634634ata_interrupt_handler(rtems_vector_number vec)
    635635{
    636     rtems_chain_node *the_node = ((rtems_chain_control *)(&ata_int_vec[vec]))->first;
     636    rtems_chain_node *the_node = rtems_chain_first(&ata_int_vec[vec]);
    637637    ata_queue_msg_t  msg;
    638638    uint16_t         byte; /* emphasize that only 8 low bits is meaningful */
     
    659659  int ata_irq_chain_index = (int) handle;
    660660    rtems_chain_node *the_node =
    661       ata_irq_chain[ata_irq_chain_index].irq_chain.last;
     661      rtems_chain_last(&ata_irq_chain[ata_irq_chain_index].irq_chain);
    662662    ata_queue_msg_t  msg;
    663663    uint16_t       byte; /* emphasize that only 8 low bits is meaningful */
     
    871871        /* get current request to the controller */
    872872        _ISR_Disable(level);
    873         areq = (ata_req_t *)(ata_ide_ctrls[ctrl_minor].reqs.first);
     873        areq = (ata_req_t *)rtems_chain_first(&ata_ide_ctrls[ctrl_minor].reqs);
    874874        _ISR_Enable(level);
    875875
Note: See TracChangeset for help on using the changeset viewer.