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

    r774fc85 rb1bdc7a4  
    4646#include <errno.h>
    4747
     48static int niagara_port_init(void);
     49static void niagara_port_yield(void);
     50static void niagara_port_reclaim(void);
     51static void niagara_port_write(uint8_t data);
     52
     53kbd_port_ops_t niagara_port = {
     54        .init = niagara_port_init,
     55        .yield = niagara_port_yield,
     56        .reclaim = niagara_port_reclaim,
     57        .write = niagara_port_write
     58};
     59
    4860#define POLL_INTERVAL  10000
    4961
     
    7082
    7183/* virtual address of the shared buffer */
    72 input_buffer_t input_buffer;
     84static input_buffer_t input_buffer;
    7385
    7486static volatile bool polling_disabled = false;
     
    7991 * Maps the shared buffer and creates the polling thread.
    8092 */
    81 int kbd_port_init(void)
     93static int niagara_port_init(void)
    8294{
    8395        sysarg_t paddr;
     
    105117}
    106118
    107 void kbd_port_yield(void)
     119static void niagara_port_yield(void)
    108120{
    109121        polling_disabled = true;
    110122}
    111123
    112 void kbd_port_reclaim(void)
     124static void niagara_port_reclaim(void)
    113125{
    114126        polling_disabled = false;
    115127}
    116128
    117 void kbd_port_write(uint8_t data)
     129static void niagara_port_write(uint8_t data)
    118130{
    119131        (void) data;
Note: See TracChangeset for help on using the changeset viewer.