This is in preparation for initialising the keyboard/mouse serial ports before being used by the guest.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk --- arch/sparc32/openbios.c | 2 +- drivers/escc.c | 2 +- include/drivers/drivers.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/sparc32/openbios.c b/arch/sparc32/openbios.c index 9af4e18..344b744 100644 --- a/arch/sparc32/openbios.c +++ b/arch/sparc32/openbios.c @@ -1029,7 +1029,7 @@ int openbios(void) CONFIG_SERIAL_SPEED); #endif #ifdef CONFIG_DEBUG_CONSOLE_VIDEO - kbd_init(hwdef->ms_kb_base); + kbd_init(hwdef->ms_kb_base, CONFIG_SERIAL_SPEED); #endif #endif
diff --git a/drivers/escc.c b/drivers/escc.c index 0f0d43a..e2d94ae 100644 --- a/drivers/escc.c +++ b/drivers/escc.c @@ -245,7 +245,7 @@ NODE_METHODS(escc_port) = { #ifdef CONFIG_DRIVER_ESCC_SUN static volatile unsigned char *kbd_dev;
-void kbd_init(phys_addr_t base) +void kbd_init(phys_addr_t base, unsigned long speed) { kbd_dev = (unsigned char *)ofmem_map_io(base, 2 * 4); kbd_dev += 4; diff --git a/include/drivers/drivers.h b/include/drivers/drivers.h index 3d6fa12..bbac5f7 100644 --- a/include/drivers/drivers.h +++ b/include/drivers/drivers.h @@ -56,7 +56,7 @@ static inline int has_adb(void) int ob_sbus_init(uint64_t base, int machine_id);
/* arch/sparc32/console.c */ -void kbd_init(uint64_t base); +void kbd_init(uint64_t base, unsigned long speed); #endif #ifdef CONFIG_DRIVER_IDE /* drivers/ide.c */