Changeset b1bdc7a4 in mainline for uspace/srv/hid/kbd/port/gxemul.c


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

Control keyboard port modules through ops structures. Allows compiling in
all modules at the same time.

File:
1 edited

Legend:

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

    r774fc85 rb1bdc7a4  
    4242#include <errno.h>
    4343
     44static int gxemul_port_init(void);
     45static void gxemul_port_yield(void);
     46static void gxemul_port_reclaim(void);
     47static void gxemul_port_write(uint8_t data);
     48
     49kbd_port_ops_t gxemul_port = {
     50        .init = gxemul_port_init,
     51        .yield = gxemul_port_yield,
     52        .reclaim = gxemul_port_reclaim,
     53        .write = gxemul_port_write
     54};
     55
    4456static irq_cmd_t gxemul_cmds[] = {
    4557        {
     
    6173
    6274/** Initializes keyboard handler. */
    63 int kbd_port_init(void)
     75static int gxemul_port_init(void)
    6476{
    6577        sysarg_t addr;
     
    7789}
    7890
    79 void kbd_port_yield(void)
     91static void gxemul_port_yield(void)
    8092{
    8193}
    8294
    83 void kbd_port_reclaim(void)
     95static void gxemul_port_reclaim(void)
    8496{
    8597}
    8698
    87 void kbd_port_write(uint8_t data)
     99static void gxemul_port_write(uint8_t data)
    88100{
    89101        (void) data;
Note: See TracChangeset for help on using the changeset viewer.