Changeset 9be360ee in mainline for uspace/srv/hid/kbd/port/sun.c


Ignore:
Timestamp:
2011-06-11T22:06:47Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4f3f9659
Parents:
56ad818
Message:

Allow keyboard server to handle more than one driver at the same time.

File:
1 edited

Legend:

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

    r56ad818 r9be360ee  
    11/*
    22 * Copyright (c) 2009 Martin Decky
     3 * Copyright (c) 2011 Jiri Svoboda
    34 * All rights reserved.
    45 *
     
    4243#include <bool.h>
    4344
    44 static int sun_port_init(void);
     45static int sun_port_init(kbd_dev_t *);
    4546static void sun_port_yield(void);
    4647static void sun_port_reclaim(void);
     
    6364 *
    6465 */
    65 static int sun_port_init(void)
     66static int sun_port_init(kbd_dev_t *kdev)
    6667{
    6768        sysarg_t z8530;
     
    7475       
    7576        if (z8530) {
    76                 if (z8530_port_init() == 0)
     77                if (z8530_port_init(kdev) == 0)
    7778                        return 0;
    7879        }
    7980       
    8081        if (ns16550) {
    81                 if (ns16550_port_init() == 0)
     82                if (ns16550_port_init(kdev) == 0)
    8283                        return 0;
    8384        }
Note: See TracChangeset for help on using the changeset viewer.