Changeset cf2af94 in mainline for uspace/srv/hw/irc/fhc/fhc.c


Ignore:
Timestamp:
2011-02-09T11:46:47Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cb15135a
Parents:
a49c4002 (diff), 0b37882 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

Local modifications:

  • change pipefs and ext2 to build again (use async_* calls instead of ipc_*)
File:
1 moved

Legend:

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

    ra49c4002 rcf2af94  
    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>
    40 #include <ipc/bus.h>
     39#include <ipc/irc.h>
    4140#include <ipc/ns.h>
    4241#include <sysinfo.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) {
     
    8281       
    8382                callid = async_get_call(&call);
    84                 switch (IPC_GET_METHOD(call)) {
    85                 case BUS_CLEAR_INTERRUPT:
     83                switch (IPC_GET_IMETHOD(call)) {
     84                case IRC_ENABLE_INTERRUPT:
     85                        /* Noop */
     86                        async_answer_0(callid, EOK);
     87                        break;
     88                case IRC_CLEAR_INTERRUPT:
    8689                        inr = IPC_GET_ARG1(call);
    8790                        switch (inr) {
    8891                        case FHC_UART_INR:
    8992                                fhc_uart_virt[FHC_UART_ICLR] = 0;
    90                                 ipc_answer_0(callid, EOK);
     93                                async_answer_0(callid, EOK);
    9194                                break;
    9295                        default:
    93                                 ipc_answer_0(callid, ENOTSUP);
     96                                async_answer_0(callid, ENOTSUP);
    9497                                break;
    9598                        }
    9699                        break;
    97100                default:
    98                         ipc_answer_0(callid, EINVAL);
     101                        async_answer_0(callid, EINVAL);
    99102                        break;
    100103                }
     
    133136       
    134137        async_set_client_connection(fhc_connection);
    135         ipcarg_t phonead;
    136         ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, &phonead);
     138        service_register(SERVICE_FHC);
    137139       
    138140        return true;
Note: See TracChangeset for help on using the changeset viewer.