void pxa27x_register_keypad(struct pxa2xx_keypad_s *kp, struct keymap *map,

        int size)

{

    kp->map = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * size);



    if(!map || size < 0x80) {

        fprintf(stderr, "%s - No PXA keypad map defined\n", __FUNCTION__);

        exit(-1);

    }



    kp->map = map;

    qemu_add_kbd_event_handler((QEMUPutKBDEvent *) pxa27x_keyboard_event, kp);

}

void pxa27x_register_keypad(struct pxa2xx_keypad_s *kp, struct keymap *map,

        int size)

{

    kp->map = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * size);



    if(!map || size < 0x80) {

        fprintf(stderr, "%s - No PXA keypad map defined\n", __FUNCTION__);

        exit(-1);

    }



    kp->map = map;

    qemu_add_kbd_event_handler((QEMUPutKBDEvent *) pxa27x_keyboard_event, kp);

}

    kp->map = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * size);
void FUNC_0(struct pxa2xx_keypad_s *VAR_0, struct keymap *VAR_1,

        int VAR_2)

{

    VAR_0->VAR_1 = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * VAR_2);



    if(!VAR_1 || VAR_2 < 0x80) {

        fprintf(stderr, "%s - No PXA keypad VAR_1 defined\n", __FUNCTION__);

        exit(-1);

    }



    VAR_0->VAR_1 = VAR_1;

    qemu_add_kbd_event_handler((QEMUPutKBDEvent *) pxa27x_keyboard_event, VAR_0);

}

void FUNC_0(struct pxa2xx_keypad_s *VAR_0, struct keymap *VAR_1,
int VAR_2)
{ VAR_0->VAR_1 = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * VAR_2); if(!VAR_1 || VAR_2 < 0x80) { fprintf(stderr, "%s - No PXA keypad VAR_1 defined\n", __FUNCTION__); exit(-1); } VAR_0->VAR_1 = VAR_1; qemu_add_kbd_event_handler((QEMUPutKBDEvent *) pxa27x_keyboard_event, VAR_0); }