28 #include <l4/sys/ipc.h> 147 L4_ICU_CTL_UNMASK = 0,
363 l4_icu_control_u(
l4_cap_idx_t icu,
unsigned irqnum,
unsigned op,
404 info->features = m->
mr[0];
405 info->nr_irqs = m->
mr[1];
406 info->nr_msis = m->
mr[2];
429 __builtin_memcpy(msi_info, &m->
mr[0],
sizeof(*msi_info));
445 l4_icu_control_u(
l4_cap_idx_t icu,
unsigned irqnum,
unsigned op,
462 {
return l4_icu_control_u(icu, irqnum, L4_ICU_CTL_MASK, label, to, utcb); }
467 {
return l4_icu_control_u(icu, irqnum, L4_ICU_CTL_UNMASK, label, to, utcb); }
492 {
return l4_icu_control_u(icu, irqnum, L4_ICU_CTL_UNMASK, label, to,
l4_utcb()); }
497 {
return l4_icu_control_u(icu, irqnum, L4_ICU_CTL_MASK, label, to,
l4_utcb()); }
Encapsulation of the message-register block in the UTCB.
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.
unsigned features
Feature flags.
Do not use irq as wakeup source.
unsigned l4_utcb_mr64_idx(unsigned idx) L4_NOTHROW
Get index into 64bit message registers alias from native-sized index.
struct l4_icu_info_t l4_icu_info_t
Info structure for an ICU.
L4_icu_flags
Flags for IRQ numbers used for the ICU.
unsigned l4_msgtag_has_error(l4_msgtag_t t) L4_NOTHROW
Test for error indicator flag.
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.
Info to use for a specific MSI.
l4_umword_t mr[L4_UTCB_GENERIC_DATA_SIZE]
Message registers.
Read-write-execute flex page.
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_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_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.
Info structure for an ICU.
unsigned long l4_cap_idx_t
L4 Capability selector Type.
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
Acknowledge the given interrupt line.
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
#define L4_IPC_NEVER
never timeout
l4_uint64_t mr64[L4_UTCB_GENERIC_DATA_SIZE/(sizeof(l4_uint64_t)/sizeof(l4_umword_t))]
Message registers 64bit alias.
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_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.
#define L4_UNLIKELY(x)
Expression is unlikely to execute.
l4_msgtag_t l4_icu_info(l4_cap_idx_t icu, l4_icu_info_t *info) L4_NOTHROW
Get information about the capabilites of the ICU.
Flag to denote that the IRQ is actually an MSI.
l4_uint64_t msi_addr
Value to use as address when sending this MSI.
unsigned long l4_umword_t
Unsigned machine word.
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_set_mode_u(l4_cap_idx_t icu, unsigned irqnum, l4_umword_t mode, l4_utcb_t *utcb) L4_NOTHROW
Set interrupt mode.
unsigned l4_msgtag_words(l4_msgtag_t t) L4_NOTHROW
Get the number of untyped words.
l4_umword_t raw
Raw value.
l4_uint32_t msi_data
Value to use as data written to msi_addr, when sending this MSI.
L4_icu_opcode
Opcodes to the ICU interface.
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.
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
unsigned nr_irqs
The number of IRQ lines supported by the ICU,.
l4_msgtag_t l4_msgtag(long label, unsigned words, unsigned items, unsigned flags) L4_NOTHROW
Create a message tag from the specified values.
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_irq_mode
Interrupt attributes.
struct l4_icu_msi_info_t l4_icu_msi_info_t
Info to use for a specific MSI.
Kernel object system calls.
l4_msgtag_t l4_icu_set_mode(l4_cap_idx_t icu, unsigned irqnum, l4_umword_t mode) L4_NOTHROW
Set interrupt mode.
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 capabilities of the ICU.
unsigned nr_msis
The number of MSI vectors supported by the ICU,.
unsigned long long l4_uint64_t
Unsigned 64bit value.
Message tag data structure.
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_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_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_fpage_t l4_obj_fpage(l4_cap_idx_t obj, unsigned int order, unsigned char rights) L4_NOTHROW
Create a kernel-object flex page.
unsigned int l4_uint32_t
Unsigned 32bit value.
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.