Changeset 3bdf3d3 in mainline for uspace/srv/hid/kbd/port/pl050.c


Ignore:
Timestamp:
2010-04-19T13:33:18Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
caad59a
Parents:
bd01a4e
Message:

fix complilation on integratorcp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/kbd/port/pl050.c

    rbd01a4e r3bdf3d3  
    4545#include <ddi.h>
    4646#include <stdio.h>
     47#include <errno.h>
    4748
    48 #define PL050_STAT_RXFULL (1 << 4)
     49#define PL050_STAT_RXFULL  (1 << 4)
     50
    4951static irq_cmd_t pl050_cmds[] = {
    5052        {
     
    6668        {
    6769                .cmd = CMD_PIO_READ_8,
    68                 .addr = NULL,   /* will be patched in run-time */
     70                .addr = NULL,  /* Will be patched in run-time */
    6971                .dstarg = 2
    7072        },
     
    8385int kbd_port_init(void)
    8486{
    85         if (sysinfo_get_value("kbd.address.status", &pl050_kbd.cmds[0].addr) != EOK)
     87        sysarg_t addr;
     88        if (sysinfo_get_value("kbd.address.status", &addr) != EOK)
    8689                return -1;
    8790       
    88         if (sysinfo_get_value("kbd.address.data", &pl050_kbd.cmds[3].addr) != EOK)
     91        pl050_kbd.cmds[0].addr = (void *) addr;
     92       
     93        if (sysinfo_get_value("kbd.address.data", &addr) != EOK)
    8994                return -1;
     95       
     96        pl050_kbd.cmds[3].addr = (void *) addr;
    9097       
    9198        sysarg_t inr;
Note: See TracChangeset for help on using the changeset viewer.