Revision 5fafdf24 hw/pckbd.c
b/hw/pckbd.c | ||
---|---|---|
1 | 1 |
/* |
2 | 2 |
* QEMU PC keyboard emulation |
3 |
*
|
|
3 |
* |
|
4 | 4 |
* Copyright (c) 2003 Fabrice Bellard |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
7 | 7 |
* of this software and associated documentation files (the "Software"), to deal |
8 | 8 |
* in the Software without restriction, including without limitation the rights |
... | ... | |
148 | 148 |
if (s->mode & KBD_MODE_MOUSE_INT) |
149 | 149 |
irq_mouse_level = 1; |
150 | 150 |
} else { |
151 |
if ((s->mode & KBD_MODE_KBD_INT) &&
|
|
151 |
if ((s->mode & KBD_MODE_KBD_INT) && |
|
152 | 152 |
!(s->mode & KBD_MODE_DISABLE_KBD)) |
153 | 153 |
irq_kbd_level = 1; |
154 | 154 |
} |
... | ... | |
338 | 338 |
static void kbd_save(QEMUFile* f, void* opaque) |
339 | 339 |
{ |
340 | 340 |
KBDState *s = (KBDState*)opaque; |
341 |
|
|
341 |
|
|
342 | 342 |
qemu_put_8s(f, &s->write_cmd); |
343 | 343 |
qemu_put_8s(f, &s->status); |
344 | 344 |
qemu_put_8s(f, &s->mode); |
... | ... | |
348 | 348 |
static int kbd_load(QEMUFile* f, void* opaque, int version_id) |
349 | 349 |
{ |
350 | 350 |
KBDState *s = (KBDState*)opaque; |
351 |
|
|
351 |
|
|
352 | 352 |
if (version_id != 3) |
353 | 353 |
return -EINVAL; |
354 | 354 |
qemu_get_8s(f, &s->write_cmd); |
Also available in: Unified diff