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
7
typedef
struct
IRQHandler
{
8
int
irq
;
9
void (*
cb
)(
void
*);
10
void
*
arg
;
11
LIST_ENTRY
(
IRQHandler
) link;
12
}
IRQHandler
;
13
14
void
IRQ_Init
();
15
void
IRQ_Handler
(
int
irq
);
16
void
IRQ_Register
(
int
irq
,
struct
IRQHandler
*h);
17
void
IRQ_Unregister
(
int
irq
,
struct
IRQHandler
*h);
18
19
#endif
/* __IRQ_H__ */
20
IRQ_Register
void IRQ_Register(int irq, struct IRQHandler *h)
Definition:
irq.c:35
IRQ_Unregister
void IRQ_Unregister(int irq, struct IRQHandler *h)
Definition:
irq.c:45
IRQ_Handler
void IRQ_Handler(int irq)
Definition:
irq.c:25
IRQ_Init
void IRQ_Init()
Definition:
irq.c:14
irq
static uint8_t irq
Definition:
sercons.c:38
IRQHandler
Definition:
irq.h:7
IRQHandler::arg
void * arg
Definition:
irq.h:10
IRQHandler::LIST_ENTRY
LIST_ENTRY(IRQHandler) link
IRQHandler::irq
int irq
Definition:
irq.h:8
IRQHandler::cb
void(* cb)(void *)
Definition:
irq.h:9
sys
include
irq.h
Generated by
1.9.6