mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
hw/r2d: add a USB keyboard
The R2D board does not have a PS/2 port, and only support a keyboard on the USB bus. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
98f22dc172
commit
9caa3ec1e9
1 changed files with 4 additions and 0 deletions
4
hw/r2d.c
4
hw/r2d.c
|
@ -34,6 +34,7 @@
|
||||||
#include "sh7750_regs.h"
|
#include "sh7750_regs.h"
|
||||||
#include "ide.h"
|
#include "ide.h"
|
||||||
#include "loader.h"
|
#include "loader.h"
|
||||||
|
#include "usb.h"
|
||||||
|
|
||||||
#define SDRAM_BASE 0x0c000000 /* Physical location of SDRAM: Area 3 */
|
#define SDRAM_BASE 0x0c000000 /* Physical location of SDRAM: Area 3 */
|
||||||
#define SDRAM_SIZE 0x04000000
|
#define SDRAM_SIZE 0x04000000
|
||||||
|
@ -240,6 +241,9 @@ static void r2d_init(ram_addr_t ram_size,
|
||||||
for (i = 0; i < nb_nics; i++)
|
for (i = 0; i < nb_nics; i++)
|
||||||
pci_nic_init_nofail(&nd_table[i], "rtl8139", i==0 ? "2" : NULL);
|
pci_nic_init_nofail(&nd_table[i], "rtl8139", i==0 ? "2" : NULL);
|
||||||
|
|
||||||
|
/* USB keyboard */
|
||||||
|
usbdevice_create("keyboard");
|
||||||
|
|
||||||
/* Todo: register on board registers */
|
/* Todo: register on board registers */
|
||||||
if (kernel_filename) {
|
if (kernel_filename) {
|
||||||
int kernel_size;
|
int kernel_size;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue