Changeset 1402402 in mainline


Ignore:
Timestamp:
2012-02-14T23:58:33Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
21063c2
Parents:
27ed3edd
Message:

Define a PIO range for GXemul keyboard.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/mach/testarm/testarm.c

    r27ed3edd r1402402  
    128128        sysinfo_set_item_val("kbd", NULL, true);
    129129        sysinfo_set_item_val("kbd.inr", NULL, GXEMUL_KBD_IRQ);
    130         sysinfo_set_item_val("kbd.address.virtual", NULL, (sysarg_t) gxemul_kbd);
     130        sysinfo_set_item_val("kbd.address.physical", NULL,
     131            GXEMUL_KBD_ADDRESS);
    131132#endif
    132133}
  • uspace/srv/hid/input/port/gxemul.c

    r27ed3edd r1402402  
    5757static kbd_dev_t *kbd_dev;
    5858
     59static irq_pio_range_t gxemul_ranges[] = {
     60        {
     61                .base = 0,
     62                .size = 1
     63        }
     64};
     65
    5966static irq_cmd_t gxemul_cmds[] = {
    6067        {
     
    6976
    7077static irq_code_t gxemul_kbd = {
    71         0,      // FIXME
    72         NULL,   // FIXME
     78        sizeof(gxemul_ranges) / sizeof(irq_pio_range_t),
     79        gxemul_ranges,
    7380        sizeof(gxemul_cmds) / sizeof(irq_cmd_t),
    7481        gxemul_cmds
     
    8390       
    8491        sysarg_t addr;
    85         if (sysinfo_get_value("kbd.address.virtual", &addr) != EOK)
     92        if (sysinfo_get_value("kbd.address.physical", &addr) != EOK)
    8693                return -1;
    8794       
     
    9198       
    9299        async_set_interrupt_received(gxemul_irq_handler);
     100        gxemul_ranges[0].base = addr;
    93101        gxemul_cmds[0].addr = (void *) addr;
    94102        irq_register(inr, device_assign_devno(), 0, &gxemul_kbd);
Note: See TracChangeset for help on using the changeset viewer.