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

    r774fc85 rb1bdc7a4  
    6464
    6565static enum dec_state ds;
     66static kbd_port_ops_t *kbd_port;
    6667
    6768static int scanmap_simple[] = {
     
    197198};
    198199
    199 int kbd_ctl_init(void)
     200int kbd_ctl_init(kbd_port_ops_t *kbd_p)
    200201{
     202        kbd_port = kbd_p;
    201203        ds = ds_s;
    202204        return 0;
     
    265267                b = b | LI_SCROLL;
    266268
    267         kbd_port_write(KBD_CMD_SET_LEDS);
    268         kbd_port_write(b);
     269        (*kbd_port->write)(KBD_CMD_SET_LEDS);
     270        (*kbd_port->write)(b);
    269271}
    270272
Note: See TracChangeset for help on using the changeset viewer.