Revision a2236d48
b/hw/ppc_newworld.c | ||
---|---|---|
65 | 65 |
#include "elf.h" |
66 | 66 |
#include "kvm.h" |
67 | 67 |
#include "kvm_ppc.h" |
68 |
#include "hw/usb.h" |
|
68 | 69 |
|
69 | 70 |
#define MAX_IDE_BUS 2 |
70 | 71 |
#define VGA_BIOS_SIZE 65536 |
... | ... | |
377 | 378 |
ide_mem_index[2] = pmac_ide_init(hd, pic[0x0e], dbdma, 0x1a, pic[0x02]); |
378 | 379 |
|
379 | 380 |
/* cuda also initialize ADB */ |
381 |
if (machine_arch == ARCH_MAC99_U3) { |
|
382 |
usb_enabled = 1; |
|
383 |
} |
|
380 | 384 |
cuda_init(&cuda_mem_index, pic[0x19]); |
381 | 385 |
|
382 | 386 |
adb_kbd_init(&adb_bus); |
383 | 387 |
adb_mouse_init(&adb_bus); |
384 | 388 |
|
385 |
|
|
386 | 389 |
macio_init(pci_bus, PCI_DEVICE_ID_APPLE_UNI_N_KEYL, 0, pic_mem_index, |
387 | 390 |
dbdma_mem_index, cuda_mem_index, NULL, 3, ide_mem_index, |
388 | 391 |
escc_mem_index); |
... | ... | |
391 | 394 |
usb_ohci_init_pci(pci_bus, -1); |
392 | 395 |
} |
393 | 396 |
|
397 |
/* U3 needs to use USB for input because Linux doesn't support via-cuda |
|
398 |
on PPC64 */ |
|
399 |
if (machine_arch == ARCH_MAC99_U3) { |
|
400 |
usbdevice_create("keyboard"); |
|
401 |
usbdevice_create("mouse"); |
|
402 |
} |
|
403 |
|
|
394 | 404 |
if (graphic_depth != 15 && graphic_depth != 32 && graphic_depth != 8) |
395 | 405 |
graphic_depth = 15; |
396 | 406 |
|
Also available in: Unified diff