CS350 COS
COS
Loading...
Searching...
No Matches
irq.h
Go to the documentation of this file.
1
2#ifndef __IRQ_H__
3#define __IRQ_H__
4
5#include <sys/queue.h>
6
7typedef struct IRQHandler {
8 int irq;
9 void (*cb)(void*);
10 void *arg;
13
14void IRQ_Init();
15void IRQ_Handler(int irq);
16void IRQ_Register(int irq, struct IRQHandler *h);
17void IRQ_Unregister(int irq, struct IRQHandler *h);
18
19#endif /* __IRQ_H__ */
20
void IRQ_Register(int irq, struct IRQHandler *h)
Definition: irq.c:35
void IRQ_Unregister(int irq, struct IRQHandler *h)
Definition: irq.c:45
void IRQ_Handler(int irq)
Definition: irq.c:25
void IRQ_Init()
Definition: irq.c:14
static uint8_t irq
Definition: sercons.c:38
Definition: irq.h:7
void * arg
Definition: irq.h:10
LIST_ENTRY(IRQHandler) link
int irq
Definition: irq.h:8
void(* cb)(void *)
Definition: irq.h:9