Changeset 9239333 in mainline for uspace/srv/kbd/port/ns16550.c


Ignore:
Timestamp:
2009-04-15T15:44:51Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d15815e2
Parents:
f03afad
Message:

add NS16550 support for sparc64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/port/ns16550.c

    rf03afad r9239333  
    3636
    3737#include <ipc/ipc.h>
     38#include <ipc/bus.h>
    3839#include <async.h>
    3940#include <sysinfo.h>
    4041#include <kbd.h>
    4142#include <kbd_port.h>
     43#include <sun.h>
    4244#include <ddi.h>
    4345
     
    9092static uintptr_t ns16550_kernel;
    9193
    92 int kbd_port_init(void)
     94int ns16550_port_init(void)
    9395{
    9496        void *vaddr;
     
    101103        ns16550_kbd.cmds[3].addr = (void *) (ns16550_kernel + RBR_REG);
    102104        ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(),
    103             0, &ns16550_kbd);
     105            sysinfo_value("kbd.inr"), &ns16550_kbd);
    104106        return pio_enable((void *) ns16550_physical, 8, &vaddr);
    105107}
     
    109111        int scan_code = IPC_GET_ARG2(*call);
    110112        kbd_push_scancode(scan_code);
     113       
     114        if (cir_service)
     115                async_msg_1(cir_phone, BUS_CLEAR_INTERRUPT,
     116                    IPC_GET_METHOD(*call));
    111117}
    112118
Note: See TracChangeset for help on using the changeset viewer.