Changeset c2417bc in mainline for kernel/arch/ppc32/src/drivers


Ignore:
Timestamp:
2009-04-21T12:46:26Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f2d2c7ba
Parents:
44b7783
Message:

change the way how input devices are wired together according to ticket #44
(also the proposal http://lists.modry.cz/cgi-bin/private/helenos-devel/2009-March/002507.html)

Location:
kernel/arch/ppc32/src/drivers
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/drivers/pic.c

    r44b7783 rc2417bc  
    2727 */
    2828
    29 /** @addtogroup ppc32   
     29/** @addtogroup ppc32
    3030 * @{
    3131 */
     
    4141static volatile uint32_t *pic = NULL;
    4242
    43 void pic_init(uintptr_t base, size_t size)
     43void pic_init(uintptr_t base, size_t size, cir_t *cir, void **cir_arg)
    4444{
    4545        pic = (uint32_t *) hw_map(base, size);
     46        *cir = pic_ack_interrupt;
     47        *cir_arg = NULL;
    4648}
    4749
    48 void pic_enable_interrupt(int intnum)
     50void pic_enable_interrupt(inr_t intnum)
    4951{
    5052        if (pic) {
     
    5759}
    5860
    59 void pic_disable_interrupt(int intnum)
     61void pic_disable_interrupt(inr_t intnum)
    6062{
    6163        if (pic) {
     
    6769}
    6870
    69 void pic_ack_interrupt(int intnum)
     71void pic_ack_interrupt(void *arg, inr_t intnum)
    7072{
    7173        if (pic) {
Note: See TracChangeset for help on using the changeset viewer.