MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / kbd_read_data

Function kbd_read_data

tinyemu/pckbd.c:257–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257static uint32_t kbd_read_data(void *opaque, uint32_t addr, int size_log2)
258{
259 KBDState *s = opaque;
260 uint32_t val;
261 if (s->pending == KBD_PENDING_AUX)
262 val = ps2_read_data(s->mouse);
263 else
264 val = ps2_read_data(s->kbd);
265#ifdef DEBUG_KBD
266 printf("kbd: read data=0x%02x\n", val);
267#endif
268 return val;
269}
270
271static void kbd_write_data(void *opaque, uint32_t addr, uint32_t val, int size_log2)
272{

Callers

nothing calls this directly

Calls 1

ps2_read_dataFunction · 0.85

Tested by

no test coverage detected