Ignore:
File:
1 edited

Legend:

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

    r15f3c3f r57d129e  
    4444#include <ipc/services.h>
    4545#include <ipc/irc.h>
    46 #include <ns.h>
     46#include <ipc/ns.h>
    4747#include <sysinfo.h>
    4848#include <as.h>
     
    5555#include <async.h>
    5656#include <stdio.h>
    57 #include <ipc/loc.h>
     57#include <ipc/devmap.h>
    5858
    5959#define NAME "obio"
     
    7676 * @param iid           Hash of the request that opened the connection.
    7777 * @param icall         Call data of the request that opened the connection.
    78  * @param arg           Local argument.
    7978 */
    80 static void obio_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
     79static void obio_connection(ipc_callid_t iid, ipc_call_t *icall)
    8180{
    8281        ipc_callid_t callid;
     
    119118       
    120119        if (sysinfo_get_value("obio.base.physical", &paddr) != EOK) {
    121                 printf("%s: No OBIO registers found\n", NAME);
     120                printf(NAME ": no OBIO registers found\n");
    122121                return false;
    123122        }
     
    131130       
    132131        if (retval < 0) {
    133                 printf("%s: Error mapping OBIO registers\n", NAME);
     132                printf(NAME ": Error mapping OBIO registers\n");
    134133                return false;
    135134        }
    136135       
    137         printf("%s: OBIO registers with base at %p\n", NAME, base_phys);
     136        printf(NAME ": OBIO registers with base at %p\n", base_phys);
    138137       
    139138        async_set_client_connection(obio_connection);
     
    145144int main(int argc, char **argv)
    146145{
    147         printf("%s: HelenOS OBIO driver\n", NAME);
     146        printf(NAME ": HelenOS OBIO driver\n");
    148147       
    149148        if (!obio_init())
    150149                return -1;
    151150       
    152         printf("%s: Accepting connections\n", NAME);
    153         task_retval(0);
     151        printf(NAME ": Accepting connections\n");
    154152        async_manager();
    155        
     153
    156154        /* Never reached */
    157155        return 0;
     
    160158/**
    161159 * @}
    162  */
     160 */ 
Note: See TracChangeset for help on using the changeset viewer.