Changeset 3e5a814 in mainline for uspace/srv/kbd/port/z8530.c


Ignore:
Timestamp:
2009-02-25T21:32:18Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b1de7a
Parents:
f542825
Message:

Add simple userspace FHC driver.
Modify the z8530 userspace driver
to send BUS_CLEAR_INTERRUPT
notification to the FHC driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/port/z8530.c

    rf542825 r3e5a814  
    3636
    3737#include <ipc/ipc.h>
     38#include <ipc/bus.h>
    3839#include <async.h>
    3940#include <sysinfo.h>
     
    8990            CHAN_A_DATA;
    9091        ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"),
    91             0, &z8530_kbd);
     92            sysinfo_value("kbd.inr"), &z8530_kbd);
    9293        return 0;
    9394}
     
    9798        int scan_code = IPC_GET_ARG2(*call);
    9899        kbd_push_scancode(scan_code);
     100       
     101        if (cir_service)
     102                async_msg_1(cir_phone, BUS_CLEAR_INTERRUPT,
     103                    IPC_GET_METHOD(*call));
    99104}
    100105
Note: See TracChangeset for help on using the changeset viewer.