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

Function ps2_queue

tinyemu/ps2.c:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112};
113
114void ps2_queue(void *opaque, int b)
115{
116 PS2State *s = (PS2State *)opaque;
117 PS2Queue *q = &s->queue;
118
119 if (q->count >= PS2_QUEUE_SIZE)
120 return;
121 q->data[q->wptr] = b;
122 if (++q->wptr == PS2_QUEUE_SIZE)
123 q->wptr = 0;
124 q->count++;
125 s->update_irq(s->update_arg, 1);
126}
127
128#define INPUT_MAKE_KEY_MIN 96
129#define INPUT_MAKE_KEY_MAX 127

Callers 5

ps2_put_keycodeFunction · 0.85
ps2_write_keyboardFunction · 0.85
ps2_mouse_send_packetFunction · 0.85
ps2_write_mouseFunction · 0.85
kbd_queueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected