Changeset c2417bc in mainline for uspace/srv/kbd/port/sun.c


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

change the way how input devices are wired together according to ticket #44
(also the proposal http://lists.modry.cz/cgi-bin/private/helenos-devel/2009-March/002507.html)

File:
1 edited

Legend:

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

    r44b7783 rc2417bc  
    4040#include <sysinfo.h>
    4141
    42 typedef enum {
    43         KBD_UNKNOWN,
    44         KBD_Z8530,
    45         KBD_NS16550,
    46         KBD_SGCN
    47 } kbd_type_t;
    48 
    4942/** Sun keyboard virtual port driver.
    5043 *
     
    5750int kbd_port_init(void)
    5851{
    59         if (sysinfo_value("kbd.type") == KBD_Z8530)
    60                 return z8530_port_init();
    61         else if (sysinfo_value("kbd.type") == KBD_NS16550)
    62                 return ns16550_port_init();
     52        if (sysinfo_value("kbd.type.z8530")) {
     53                if (z8530_port_init() == 0)
     54                        return 0;
     55        }
     56       
     57        if (sysinfo_value("kbd.type.ns16550")) {
     58                if (ns16550_port_init() == 0)
     59                        return 0;
     60        }
    6361       
    6462        return -1;
Note: See TracChangeset for help on using the changeset viewer.