Changeset eeb643d in mainline for uspace/srv


Ignore:
Timestamp:
2010-01-24T17:40:43Z (15 years ago)
Author:
Pavel Rimsky <pavel@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86018c1
Parents:
99de22b
Message:

Implemented Niagara output userspace driver.

Location:
uspace/srv/hid
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/fb/Makefile.build

    r99de22b reeb643d  
    7272
    7373ifeq ($(UARCH),sparc64)
    74         SOURCES += sgcn.c \
    75                 serial_console.c
    76         CFLAGS += -DSGCN_ENABLED
     74        ifeq ($(PROCESSOR), sun4v)
     75                SOURCES += niagara.c \
     76                        serial_console.c
     77                CFLAGS += -DNIAGARA_ENABLED
     78        endif
     79
     80        ifeq ($(MACHINE), serengeti)
     81                SOURCES += sgcn.c \
     82                        serial_console.c
     83                CFLAGS += -DSGCN_ENABLED
     84        endif
    7785endif
    7886
  • uspace/srv/hid/fb/main.c

    r99de22b reeb643d  
    4141#include "ski.h"
    4242#include "sgcn.h"
     43#include "niagara.h"
    4344#include "main.h"
    4445
     
    8889        }
    8990#endif
     91#ifdef NIAGARA_ENABLED
     92        if ((!initialized) && (sysinfo_value("fb.kind") == 5)) {
     93                if (niagara_init() == 0)
     94                        initialized = true;
     95        }
     96#endif
    9097#ifdef SKI_ENABLED
    9198        if ((!initialized) && (sysinfo_value("fb") != true)) {
  • uspace/srv/hid/kbd/Makefile.build

    r99de22b reeb643d  
    130130
    131131ifeq ($(UARCH),sparc64)
    132         ifeq ($(MACHINE),serengeti)
    133                 SOURCES += \
    134                         port/sgcn.c \
    135                         ctl/stty.c
    136         else
    137                 SOURCES += \
     132        ifeq ($(PROCESSOR),sun4u)
     133                ifeq ($(MACHINE),serengeti)
     134                        SOURCES += \
     135                                port/sgcn.c \
     136                                ctl/stty.c
     137                endif
     138                ifeq ($(MACHINE),generic)
     139                        SOURCES += \
    138140                        port/sun.c \
    139141                        port/z8530.c \
    140142                        port/ns16550.c \
    141143                        ctl/sun.c
     144                endif
     145        endif
     146        ifeq ($(PROCESSOR),sun4v)
     147                SOURCES += \
     148                        port/niagara.c \
     149                        ctl/stty.c
    142150        endif
    143151endif
  • uspace/srv/hid/kbd/generic/kbd.c

    r99de22b reeb643d  
    219219                cir_service = SERVICE_OBIO;
    220220       
     221/*
    221222        if (cir_service) {
    222223                while (cir_phone < 0) {
     
    225226                }
    226227        }
     228*/
     229printf("KBD driver!!!\n");
    227230       
    228231        /* Initialize port driver. */
Note: See TracChangeset for help on using the changeset viewer.