Changeset 9239333 in mainline for uspace/srv/kbd/port


Ignore:
Timestamp:
2009-04-15T15:44:51Z (17 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

Location:
uspace/srv/kbd/port
Files:
1 added
2 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
  • uspace/srv/kbd/port/z8530.c

    rf03afad r9239333  
    4141#include <kbd.h>
    4242#include <kbd_port.h>
     43#include <sun.h>
    4344#include <sys/types.h>
    4445#include <ddi.h>
     
    8384static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call);
    8485
    85 int kbd_port_init(void)
     86int z8530_port_init(void)
    8687{
    8788        async_set_interrupt_received(z8530_irq_handler);
Note: See TracChangeset for help on using the changeset viewer.