Files | |
file | hal.h |
Adeos-based Real-Time Hardware Abstraction Layer for x86. | |
file | hal.c |
Adeos-based Real-Time Abstraction Layer for x86. | |
Functions | |
int | rthal_enable_irq (unsigned irq) |
Enable an IRQ source. | |
int | rthal_disable_irq (unsigned irq) |
Disable an IRQ source. | |
int | rthal_request_linux_irq (unsigned irq, irqreturn_t(*handler)(int irq, void *dev_id, struct pt_regs *regs), char *name, void *dev_id) |
Install a shared Linux interrupt handler. | |
int | rthal_release_srq (unsigned srq) |
Uninstall a system request handler. |
|
Uninstall a system request handler. rthal_release_srq uninstalls the specified system call srq, returned by installing the related handler with a previous call to rthal_request_srq().
|
|
Install a shared Linux interrupt handler. rthal_request_linux_irq installs function handler as a standard Linux interrupt service routine for IRQ level irq forcing Linux to share the IRQ with other interrupt handlers. The handler is appended to any already existing Linux handler for the same irq and is run by Linux irq as any of its handler. In this way a real time application can monitor Linux interrupts handling at its will. The handler appears in /proc/interrupts.
|