Changeset ffa2c8ef in mainline for uspace/srv/hw/irc


Ignore:
Timestamp:
2011-01-29T11:36:08Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
46b881c
Parents:
64d2b10
Message:

do not intermix low-level IPC methods with async framework methods

Location:
uspace/srv/hw/irc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/irc/apic/apic.c

    r64d2b10 rffa2c8ef  
    3636 */
    3737
    38 #include <ipc/ipc.h>
    3938#include <ipc/services.h>
    4039#include <ipc/irc.h>
     
    7574         * Answer the first IPC_M_CONNECT_ME_TO call.
    7675         */
    77         ipc_answer_0(iid, EOK);
     76        async_answer_0(iid, EOK);
    7877       
    7978        while (true) {
     
    8281                switch (IPC_GET_IMETHOD(call)) {
    8382                case IRC_ENABLE_INTERRUPT:
    84                         ipc_answer_0(callid, apic_enable_irq(IPC_GET_ARG1(call)));
     83                        async_answer_0(callid, apic_enable_irq(IPC_GET_ARG1(call)));
    8584                        break;
    8685                case IRC_CLEAR_INTERRUPT:
    8786                        /* Noop */
    88                         ipc_answer_0(callid, EOK);
     87                        async_answer_0(callid, EOK);
    8988                        break;
    9089                default:
    91                         ipc_answer_0(callid, EINVAL);
     90                        async_answer_0(callid, EINVAL);
    9291                        break;
    9392                }
  • uspace/srv/hw/irc/fhc/fhc.c

    r64d2b10 rffa2c8ef  
    2929/** @addtogroup fhc
    3030 * @{
    31  */ 
     31 */
    3232
    3333/**
    34  * @file        fhc.c
    35  * @brief       FHC bus controller driver.
     34 * @file fhc.c
     35 * @brief FHC bus controller driver.
    3636 */
    3737
    38 #include <ipc/ipc.h>
    3938#include <ipc/services.h>
    4039#include <ipc/irc.h>
     
    7675         * Answer the first IPC_M_CONNECT_ME_TO call.
    7776         */
    78         ipc_answer_0(iid, EOK);
     77        async_answer_0(iid, EOK);
    7978
    8079        while (1) {
     
    8584                case IRC_ENABLE_INTERRUPT:
    8685                        /* Noop */
    87                         ipc_answer_0(callid, EOK);
     86                        async_answer_0(callid, EOK);
    8887                        break;
    8988                case IRC_CLEAR_INTERRUPT:
     
    9291                        case FHC_UART_INR:
    9392                                fhc_uart_virt[FHC_UART_ICLR] = 0;
    94                                 ipc_answer_0(callid, EOK);
     93                                async_answer_0(callid, EOK);
    9594                                break;
    9695                        default:
    97                                 ipc_answer_0(callid, ENOTSUP);
     96                                async_answer_0(callid, ENOTSUP);
    9897                                break;
    9998                        }
    10099                        break;
    101100                default:
    102                         ipc_answer_0(callid, EINVAL);
     101                        async_answer_0(callid, EINVAL);
    103102                        break;
    104103                }
  • uspace/srv/hw/irc/i8259/i8259.c

    r64d2b10 rffa2c8ef  
    3636 */
    3737
    38 #include <ipc/ipc.h>
    3938#include <ipc/services.h>
    4039#include <ipc/irc.h>
     
    109108         * Answer the first IPC_M_CONNECT_ME_TO call.
    110109         */
    111         ipc_answer_0(iid, EOK);
     110        async_answer_0(iid, EOK);
    112111       
    113112        while (true) {
     
    116115                switch (IPC_GET_IMETHOD(call)) {
    117116                case IRC_ENABLE_INTERRUPT:
    118                         ipc_answer_0(callid, pic_enable_irq(IPC_GET_ARG1(call)));
     117                        async_answer_0(callid, pic_enable_irq(IPC_GET_ARG1(call)));
    119118                        break;
    120119                case IRC_CLEAR_INTERRUPT:
    121120                        /* Noop */
    122                         ipc_answer_0(callid, EOK);
     121                        async_answer_0(callid, EOK);
    123122                        break;
    124123                default:
    125                         ipc_answer_0(callid, EINVAL);
     124                        async_answer_0(callid, EINVAL);
    126125                        break;
    127126                }
  • uspace/srv/hw/irc/obio/obio.c

    r64d2b10 rffa2c8ef  
    2727 */
    2828
    29 /** @addtogroup obio 
     29/** @addtogroup obio
    3030 * @{
    31  */ 
     31 */
    3232
    3333/**
    34  * @file        obio.c
    35  * @brief       OBIO driver.
     34 * @file obio.c
     35 * @brief OBIO driver.
    3636 *
    3737 * OBIO is a short for on-board I/O. On UltraSPARC IIi and systems with U2P,
     
    4242 */
    4343
    44 #include <ipc/ipc.h>
    4544#include <ipc/services.h>
    4645#include <ipc/irc.h>
     
    8685         * Answer the first IPC_M_CONNECT_ME_TO call.
    8786         */
    88         ipc_answer_0(iid, EOK);
     87        async_answer_0(iid, EOK);
    8988
    9089        while (1) {
     
    9594                case IRC_ENABLE_INTERRUPT:
    9695                        /* Noop */
    97                         ipc_answer_0(callid, EOK);
     96                        async_answer_0(callid, EOK);
    9897                        break;
    9998                case IRC_CLEAR_INTERRUPT:
    10099                        inr = IPC_GET_ARG1(call);
    101100                        base_virt[OBIO_CIR(inr & INO_MASK)] = 0;
    102                         ipc_answer_0(callid, EOK);
     101                        async_answer_0(callid, EOK);
    103102                        break;
    104103                default:
    105                         ipc_answer_0(callid, EINVAL);
     104                        async_answer_0(callid, EINVAL);
    106105                        break;
    107106                }
Note: See TracChangeset for help on using the changeset viewer.