Changeset d2e0a8cb in mainline for kernel/generic/include/ipc/irq.h


Ignore:
Timestamp:
2007-11-25T10:04:38Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be815bc
Parents:
b3cd9eb
Message:

Support for 5 payload arguments for IPC irq notifications and the pseudo code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ipc/irq.h

    rb3cd9eb rd2e0a8cb  
    4747    unative_t method, irq_code_t *ucode);
    4848extern void ipc_irq_send_notif(irq_t *irq);
    49 extern void ipc_irq_send_msg(irq_t *irq, unative_t a1, unative_t a2,
    50     unative_t a3);
    5149extern void ipc_irq_unregister(answerbox_t *box, inr_t inr, devno_t devno);
    5250extern void ipc_irq_cleanup(answerbox_t *box);
     51
     52/*
     53 * User friendly wrappers for ipc_irq_send_msg(). They are in the form
     54 * ipc_irq_send_msg_m(), where m is the number of payload arguments.
     55 */
     56#define ipc_irq_send_msg_1(irq, a1) \
     57    ipc_irq_send_msg((irq), (a1), 0, 0, 0, 0)
     58#define ipc_irq_send_msg_2(irq, a1, a2) \
     59    ipc_irq_send_msg((irq), (a1), (a2), 0, 0, 0)
     60#define ipc_irq_send_msg_3(irq, a1, a2, a3) \
     61    ipc_irq_send_msg((irq), (a1), (a2), (a3), 0, 0)
     62#define ipc_irq_send_msg_4(irq, a1, a2, a3, a4) \
     63    ipc_irq_send_msg((irq), (a1), (a2), (a3), (a4), 0)
     64#define ipc_irq_send_msg_5(irq, a1, a2, a3, a4, a5) \
     65    ipc_irq_send_msg((irq), (a1), (a2), (a3), (a4), (a5))
     66
     67extern void ipc_irq_send_msg(irq_t *irq, unative_t a1, unative_t a2,
     68    unative_t a3, unative_t a4, unative_t a5);
    5369
    5470#endif
Note: See TracChangeset for help on using the changeset viewer.