Ignore:
Timestamp:
2011-09-04T11:30:58Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
03bc76a
Parents:
d2c67e7 (diff), deac215e (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c

    rd2c67e7 r8ff0bd2  
    3939#include <ddi.h>
    4040#include <libarch/ddi.h>
    41 #include <devmap.h>
     41#include <loc.h>
    4242#include <ipc/char.h>
    4343#include <async.h>
     
    5252
    5353// FIXME: remove this header
    54 #include <kernel/ipc/ipc_methods.h>
     54#include <abi/ipc/methods.h>
    5555
    5656#define NAME "s3c24ser"
     
    7171static s3c24xx_uart_t *uart;
    7272
    73 static void s3c24xx_uart_connection(ipc_callid_t iid, ipc_call_t *icall);
     73static void s3c24xx_uart_connection(ipc_callid_t iid, ipc_call_t *icall,
     74    void *arg);
    7475static void s3c24xx_uart_irq_handler(ipc_callid_t iid, ipc_call_t *call);
    7576static int s3c24xx_uart_init(s3c24xx_uart_t *uart);
     
    8283        printf(NAME ": S3C24xx on-chip UART driver\n");
    8384
    84         rc = devmap_driver_register(NAME, s3c24xx_uart_connection);
     85        rc = loc_server_register(NAME, s3c24xx_uart_connection);
    8586        if (rc < 0) {
    86                 printf(NAME ": Unable to register driver.\n");
     87                printf(NAME ": Unable to register server.\n");
    8788                return -1;
    8889        }
     
    9596                return -1;
    9697
    97         rc = devmap_device_register(NAMESPACE "/" NAME, &uart->devmap_handle);
     98        rc = loc_service_register(NAMESPACE "/" NAME, &uart->service_id);
    9899        if (rc != EOK) {
    99100                printf(NAME ": Unable to register device %s.\n",
     
    113114
    114115/** Character device connection handler. */
    115 static void s3c24xx_uart_connection(ipc_callid_t iid, ipc_call_t *icall)
     116static void s3c24xx_uart_connection(ipc_callid_t iid, ipc_call_t *icall,
     117    void *arg)
    116118{
    117119        ipc_callid_t callid;
Note: See TracChangeset for help on using the changeset viewer.