28#include <l4/sys/ipc.h>
160 L4_ICU_CTL_UNMASK = 0,
394l4_icu_control_u(
l4_cap_idx_t icu,
unsigned irqnum,
unsigned op,
435 info->features = m->
mr[0];
436 info->nr_irqs = m->
mr[1];
437 info->nr_msis = m->
mr[2];
460 __builtin_memcpy(msi_info, &m->
mr[0],
sizeof(*msi_info));
476l4_icu_control_u(
l4_cap_idx_t icu,
unsigned irqnum,
unsigned op,
493{
return l4_icu_control_u(icu, irqnum, L4_ICU_CTL_MASK, label, to, utcb); }
498{
return l4_icu_control_u(icu, irqnum, L4_ICU_CTL_UNMASK, label, to, utcb); }
523{
return l4_icu_control_u(icu, irqnum, L4_ICU_CTL_UNMASK, label, to,
l4_utcb()); }
528{
return l4_icu_control_u(icu, irqnum, L4_ICU_CTL_MASK, label, to,
l4_utcb()); }
unsigned long l4_umword_t
Unsigned machine word.
unsigned int l4_uint32_t
Unsigned 32bit value.
unsigned long long l4_uint64_t
Unsigned 64bit value.
unsigned long l4_cap_idx_t
Capability selector type.
l4_fpage_t l4_obj_fpage(l4_cap_idx_t obj, unsigned int order, unsigned char rights) L4_NOTHROW
Create a kernel-object flex page.
@ L4_CAP_FPAGE_RWS
Read, interface specific 'W', and 'S' rights for capability flex-pages.
l4_msgtag_t l4_icu_info(l4_cap_idx_t icu, l4_icu_info_t *info) L4_NOTHROW
Get information about the ICU features.
l4_msgtag_t l4_icu_msi_info_u(l4_cap_idx_t icu, unsigned irqnum, l4_uint64_t source, l4_icu_msi_info_t *msi_info, l4_utcb_t *utcb) L4_NOTHROW
Get MSI info about IRQ.
l4_msgtag_t l4_icu_bind_u(l4_cap_idx_t icu, unsigned irqnum, l4_cap_idx_t irq, l4_utcb_t *utcb) L4_NOTHROW
Bind an interrupt line of an interrupt controller to an interrupt object.
l4_msgtag_t l4_icu_msi_info(l4_cap_idx_t icu, unsigned irqnum, l4_uint64_t source, l4_icu_msi_info_t *msi_info) L4_NOTHROW
Get MSI info about IRQ.
l4_msgtag_t l4_icu_mask(l4_cap_idx_t icu, unsigned irqnum, l4_umword_t *label, l4_timeout_t to) L4_NOTHROW
Mask an IRQ line.
l4_msgtag_t l4_icu_unbind(l4_cap_idx_t icu, unsigned irqnum, l4_cap_idx_t irq) L4_NOTHROW
Remove binding of an interrupt line from the interrupt controller object.
l4_msgtag_t l4_icu_info_u(l4_cap_idx_t icu, l4_icu_info_t *info, l4_utcb_t *utcb) L4_NOTHROW
Get information about the ICU features.
l4_msgtag_t l4_icu_bind(l4_cap_idx_t icu, unsigned irqnum, l4_cap_idx_t irq) L4_NOTHROW
Bind an interrupt line of an interrupt controller to an interrupt object.
l4_msgtag_t l4_icu_unmask_u(l4_cap_idx_t icu, unsigned irqnum, l4_umword_t *label, l4_timeout_t to, l4_utcb_t *utcb) L4_NOTHROW
Unmask the given interrupt line.
l4_msgtag_t l4_icu_unmask(l4_cap_idx_t icu, unsigned irqnum, l4_umword_t *label, l4_timeout_t to) L4_NOTHROW
Unmask an IRQ line.
l4_msgtag_t l4_icu_set_mode_u(l4_cap_idx_t icu, unsigned irqnum, l4_umword_t mode, l4_utcb_t *utcb) L4_NOTHROW
Set interrupt mode.
l4_msgtag_t l4_icu_mask_u(l4_cap_idx_t icu, unsigned irqnum, l4_umword_t *label, l4_timeout_t to, l4_utcb_t *utcb) L4_NOTHROW
Mask an IRQ line.
l4_msgtag_t l4_icu_set_mode(l4_cap_idx_t icu, unsigned irqnum, l4_umword_t mode) L4_NOTHROW
Set interrupt mode.
L4_icu_flags
Flags for IRQ numbers used for the ICU.
l4_msgtag_t l4_icu_unbind_u(l4_cap_idx_t icu, unsigned irqnum, l4_cap_idx_t irq, l4_utcb_t *utcb) L4_NOTHROW
Remove binding of an interrupt line from the interrupt controller object.
@ L4_ICU_FLAG_MSI
Flag to denote that the IRQ is actually an MSI.
l4_msgtag_t l4_ipc_send_and_wait(l4_cap_idx_t dest, l4_utcb_t *utcb, l4_msgtag_t tag, l4_umword_t *label, l4_timeout_t timeout) L4_NOTHROW
Send a message and do an open wait.
l4_msgtag_t l4_ipc_send(l4_cap_idx_t dest, l4_utcb_t *utcb, l4_msgtag_t tag, l4_timeout_t timeout) L4_NOTHROW
Send a message to an object (do not wait for a reply).
l4_msgtag_t l4_ipc_call(l4_cap_idx_t object, l4_utcb_t *utcb, l4_msgtag_t tag, l4_timeout_t timeout) L4_NOTHROW
Object call (usual invocation).
L4_irq_mode
Interrupt attributes.
@ L4_IRQ_F_LEVEL
Level triggered.
@ L4_IRQ_F_NEG_EDGE
Negative edge trigger.
@ L4_IRQ_F_BOTH
Both edges trigger.
@ L4_IRQ_F_CLEAR_WAKEUP
Do not use irq as wakeup source.
@ L4_IRQ_F_SET_WAKEUP
Wakeup source?
@ L4_IRQ_F_LEVEL_HIGH
Level high trigger.
@ L4_IRQ_F_BOTH_EDGE
Both edges trigger.
@ L4_IRQ_F_POS_EDGE
Positive edge trigger.
@ L4_IRQ_F_EDGE
Edge triggered.
@ L4_IRQ_F_NONE
Flow types.
@ L4_IRQ_F_POS
Positive trigger.
@ L4_IRQ_F_LEVEL_LOW
Level low trigger.
@ L4_IRQ_F_NEG
Negative trigger.
l4_umword_t l4_map_obj_control(l4_umword_t spot, unsigned grant) L4_NOTHROW
Create the first word for a map item for the object space.
unsigned l4_msgtag_has_error(l4_msgtag_t t) L4_NOTHROW
Test for error indicator flag.
l4_msgtag_t l4_msgtag(long label, unsigned words, unsigned items, unsigned flags) L4_NOTHROW
Create a message tag from the specified values.
unsigned l4_msgtag_words(l4_msgtag_t t) L4_NOTHROW
Get the number of untyped words.
@ L4_PROTO_IRQ
IRQ message.
L4_icu_opcode
Opcodes to the ICU interface.
@ L4_ICU_OP_MASK
Mask opcode.
@ L4_ICU_OP_SET_MODE
Set-mode opcode.
@ L4_ICU_OP_UNMASK
Unmask opcode.
@ L4_ICU_OP_INFO
Info opcode.
@ L4_ICU_OP_MSI_INFO
Msi-info opcode.
@ L4_ICU_OP_UNBIND
Unbind opcode.
@ L4_ICU_OP_BIND
Bind opcode.
unsigned l4_utcb_mr64_idx(unsigned idx) L4_NOTHROW
Get index into 64bit message registers alias from native-sized index.
#define L4_IPC_NEVER
never timeout
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
#define L4_UNLIKELY(x)
Expression is unlikely to execute.
#define L4_INLINE
L4 Inline function attribute.
Kernel object system calls.
Info structure for an ICU.
unsigned nr_msis
The number of MSI vectors supported by the ICU,.
unsigned nr_irqs
The number of IRQ lines supported by the ICU,.
unsigned features
Feature flags.
Info to use for a specific MSI.
l4_uint64_t msi_addr
Value to use as address when sending this MSI.
l4_uint32_t msi_data
Value to use as data written to msi_addr, when sending this MSI.
Message tag data structure.
l4_umword_t raw
Raw value.
Encapsulation of the message-register block in the UTCB.
l4_umword_t mr[L4_UTCB_GENERIC_DATA_SIZE]
Message registers.
l4_uint64_t mr64[L4_UTCB_GENERIC_DATA_SIZE/(sizeof(l4_uint64_t)/sizeof(l4_umword_t))]
Message registers 64bit alias.