Changeset 9446f39 in mainline


Ignore:
Timestamp:
2009-02-21T19:22:54Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bffa876e
Parents:
00eace3
Message:

Unreak arm32 (as far as breakage introduced by 3947 goes) and
adapt the uspace GXemul kbd IRQ driver to use the new pseudo code.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/drivers/gxemul.c

    r00eace3 r9446f39  
    188188static void gxemul_irq_handler(irq_t *irq)
    189189{
    190         if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox)) {
    191                 ipc_irq_send_notif(irq);
    192         } else {
    193                 char ch = 0;
     190        char ch = 0;
    194191               
    195                 ch = *((char *) gxemul_hw_map.kbd);
    196                 if (ch == '\r') {
    197                         ch = '\n';
    198                 }
    199                 if (ch == 0x7f) {
    200                         ch = '\b';
    201                 }
    202                 chardev_push_character(&console, ch);
    203         }
     192        ch = *((char *) gxemul_hw_map.kbd);
     193        if (ch == '\r') {
     194                ch = '\n';
     195        }
     196        if (ch == 0x7f) {
     197                ch = '\b';
     198        }
     199        chardev_push_character(&console, ch);
    204200}
    205201
  • uspace/srv/kbd/port/gxemul.c

    r00eace3 r9446f39  
    4343static irq_cmd_t gxemul_cmds[] = {
    4444        {
    45                 CMD_MEM_READ_1,
    46                 (void *) 0,
    47                 0,
    48                 2
     45                .cmd = CMD_PIO_READ_8,
     46                .addr = (void *) 0,     /* will be patched in run-time */
     47                .dstarg = 2,
     48        },
     49        {
     50                .cmd = CMD_ACCEPT
    4951        }
    5052};
    5153
    5254static irq_code_t gxemul_kbd = {
    53         1,
     55        sizeof(gxemul_cmds) / sizeof(irq_cmd_t),
    5456        gxemul_cmds
    5557};
Note: See TracChangeset for help on using the changeset viewer.