Changeset b1bdc7a4 in mainline for uspace/srv/hid/kbd/port/adb.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/adb.c

    r774fc85 rb1bdc7a4  
    4949static void adb_kbd_reg0_data(uint16_t data);
    5050
     51static int adb_port_init(void);
     52static void adb_port_yield(void);
     53static void adb_port_reclaim(void);
     54static void adb_port_write(uint8_t data);
     55
     56kbd_port_ops_t adb_port = {
     57        .init = adb_port_init,
     58        .yield = adb_port_yield,
     59        .reclaim = adb_port_reclaim,
     60        .write = adb_port_write
     61};
     62
    5163static int dev_phone;
    5264
    5365#define NAME "kbd"
    5466
    55 int kbd_port_init(void)
     67static int adb_port_init(void)
    5668{
    5769        const char *dev = "adb/kbd";
     
    7890}
    7991
    80 void kbd_port_yield(void)
     92static void adb_port_yield(void)
    8193{
    8294}
    8395
    84 void kbd_port_reclaim(void)
     96static void adb_port_reclaim(void)
    8597{
    8698}
    8799
    88 void kbd_port_write(uint8_t data)
     100static void adb_port_write(uint8_t data)
    89101{
    90102        /*async_msg_1(dev_phone, CHAR_WRITE_BYTE, data);*/
Note: See TracChangeset for help on using the changeset viewer.