Changeset 9239333 in mainline


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

Location:
uspace/srv/kbd
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/Makefile

    rf03afad r9239333  
    6060                ctl/pc.c
    6161endif
     62
    6263ifeq ($(UARCH), arm32)
    6364        GENARCH_SOURCES += \
    6465                port/gxemul.c
     66       
    6567        ifeq ($(CONFIG_FB), y)
    6668                GENARCH_SOURCES += \
     
    7173        endif
    7274endif
     75
    7376ifeq ($(UARCH), ia32)
    7477        GENARCH_SOURCES += \
     
    7679                ctl/pc.c
    7780endif
     81
    7882ifeq ($(MACHINE), i460GX)
    7983        GENARCH_SOURCES += \
     
    8185                ctl/pc.c
    8286endif
     87
    8388ifeq ($(MACHINE), ski)
    8489        GENARCH_SOURCES += \
     
    8691                ctl/stty.c
    8792endif
     93
    8894ifeq ($(MACHINE), msim)
    8995        GENARCH_SOURCES += \
     
    9197                ctl/stty.c
    9298endif
     99
    93100ifeq ($(MACHINE), lgxemul)
    94101        GENARCH_SOURCES += \
    95102                port/gxemul.c
     103       
    96104        ifeq ($(CONFIG_FB), y)
    97105                GENARCH_SOURCES += \
     
    102110        endif
    103111endif
     112
    104113ifeq ($(MACHINE), bgxemul)
    105114        GENARCH_SOURCES += \
     
    107116                ctl/stty.c
    108117endif
     118
    109119ifeq ($(UARCH), ppc32)
    110120        GENARCH_SOURCES += \
     
    112122                ctl/stty.c
    113123endif
     124
    114125ifeq ($(UARCH), sparc64)
    115     ifeq ($(MACHINE),serengeti)
    116         GENARCH_SOURCES += \
    117                 port/sgcn.c \
    118                 ctl/stty.c
    119     else
    120         GENARCH_SOURCES += \
    121                 port/z8530.c \
    122                 ctl/sun.c
    123     endif
     126        ifeq ($(MACHINE),serengeti)
     127                GENARCH_SOURCES += \
     128                        port/sgcn.c \
     129                        ctl/stty.c
     130        else
     131                GENARCH_SOURCES += \
     132                        port/sun.c \
     133                        port/z8530.c \
     134                        port/ns16550.c \
     135                        ctl/sun.c
     136        endif
    124137endif
    125138
  • 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.