Changeset b1bdc7a4 in mainline for uspace/srv/hid/kbd/port/sgcn.c
- Timestamp:
- 2011-06-11T19:48:15Z (13 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
-
uspace/srv/hid/kbd/port/sgcn.c
r774fc85 rb1bdc7a4 46 46 #include <errno.h> 47 47 48 static int sgcn_port_init(void); 49 static void sgcn_port_yield(void); 50 static void sgcn_port_reclaim(void); 51 static void sgcn_port_write(uint8_t data); 52 53 kbd_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 48 60 #define POLL_INTERVAL 10000 49 61 … … 101 113 * Maps the physical memory (SRAM) and creates the polling thread. 102 114 */ 103 int kbd_port_init(void)115 static int sgcn_port_init(void) 104 116 { 105 117 sysarg_t sram_paddr; … … 130 142 } 131 143 132 void kbd_port_yield(void)144 static void sgcn_port_yield(void) 133 145 { 134 146 polling_disabled = true; 135 147 } 136 148 137 void kbd_port_reclaim(void)149 static void sgcn_port_reclaim(void) 138 150 { 139 151 polling_disabled = false; 140 152 } 141 153 142 void kbd_port_write(uint8_t data)154 static void sgcn_port_write(uint8_t data) 143 155 { 144 156 (void) data;
Note:
See TracChangeset
for help on using the changeset viewer.