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


Ignore:
Timestamp:
2011-06-11T19:48:15Z (13 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/sgcn.c

    r774fc85 rb1bdc7a4  
    4646#include <errno.h>
    4747
     48static int sgcn_port_init(void);
     49static void sgcn_port_yield(void);
     50static void sgcn_port_reclaim(void);
     51static void sgcn_port_write(uint8_t data);
     52
     53kbd_port_ops_t sgcn_port = {
     54        .init = sgcn_port_init,
     55        .yield = sgcn_port_yield,
     56        .reclaim = sgcn_port_reclaim,
     57        .write = sgcn_port_write
     58};
     59
    4860#define POLL_INTERVAL  10000
    4961
     
    101113 * Maps the physical memory (SRAM) and creates the polling thread.
    102114 */
    103 int kbd_port_init(void)
     115static int sgcn_port_init(void)
    104116{
    105117        sysarg_t sram_paddr;
     
    130142}
    131143
    132 void kbd_port_yield(void)
     144static void sgcn_port_yield(void)
    133145{
    134146        polling_disabled = true;
    135147}
    136148
    137 void kbd_port_reclaim(void)
     149static void sgcn_port_reclaim(void)
    138150{
    139151        polling_disabled = false;
    140152}
    141153
    142 void kbd_port_write(uint8_t data)
     154static void sgcn_port_write(uint8_t data)
    143155{
    144156        (void) data;
Note: See TracChangeset for help on using the changeset viewer.