Changeset b1bdc7a4 in mainline for uspace/srv/hid/kbd/port/niagara.c
- Timestamp:
- 2011-06-11T19:48:15Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56ad818
- Parents:
- 774fc85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/srv/hid/kbd/port/niagara.c ¶
r774fc85 rb1bdc7a4 46 46 #include <errno.h> 47 47 48 static int niagara_port_init(void); 49 static void niagara_port_yield(void); 50 static void niagara_port_reclaim(void); 51 static void niagara_port_write(uint8_t data); 52 53 kbd_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 48 60 #define POLL_INTERVAL 10000 49 61 … … 70 82 71 83 /* virtual address of the shared buffer */ 72 input_buffer_t input_buffer;84 static input_buffer_t input_buffer; 73 85 74 86 static volatile bool polling_disabled = false; … … 79 91 * Maps the shared buffer and creates the polling thread. 80 92 */ 81 int kbd_port_init(void)93 static int niagara_port_init(void) 82 94 { 83 95 sysarg_t paddr; … … 105 117 } 106 118 107 void kbd_port_yield(void)119 static void niagara_port_yield(void) 108 120 { 109 121 polling_disabled = true; 110 122 } 111 123 112 void kbd_port_reclaim(void)124 static void niagara_port_reclaim(void) 113 125 { 114 126 polling_disabled = false; 115 127 } 116 128 117 void kbd_port_write(uint8_t data)129 static void niagara_port_write(uint8_t data) 118 130 { 119 131 (void) data;
Note:
See TracChangeset
for help on using the changeset viewer.