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

    r774fc85 rb1bdc7a4  
    4242#include <bool.h>
    4343
     44static int sun_port_init(void);
     45static void sun_port_yield(void);
     46static void sun_port_reclaim(void);
     47static void sun_port_write(uint8_t data);
     48
     49kbd_port_ops_t sun_port = {
     50        .init = sun_port_init,
     51        .yield = sun_port_yield,
     52        .reclaim = sun_port_reclaim,
     53        .write = sun_port_write
     54};
     55
     56
    4457/** Sun keyboard virtual port driver.
    4558 *
     
    5063 *
    5164 */
    52 int kbd_port_init(void)
     65static int sun_port_init(void)
    5366{
    5467        sysarg_t z8530;
     
    7386}
    7487
    75 void kbd_port_yield(void)
     88static void sun_port_yield(void)
    7689{
    7790}
    7891
    79 void kbd_port_reclaim(void)
     92static void sun_port_reclaim(void)
    8093{
    8194}
    8295
    83 void kbd_port_write(uint8_t data)
     96static void sun_port_write(uint8_t data)
    8497{
    8598        (void) data;
Note: See TracChangeset for help on using the changeset viewer.