Rev 1269 | Rev 1606 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1269 | Rev 1480 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #include <arch/drivers/cuda.h> |
29 | #include <arch/drivers/cuda.h> |
30 | #include <arch/asm.h> |
30 | #include <arch/asm.h> |
31 | #include <console/chardev.h> |
31 | #include <console/chardev.h> |
32 | #include <console/console.h> |
32 | #include <console/console.h> |
- | 33 | #include <arch/drivers/pic.h> |
|
- | 34 | #include <interrupt.h> |
|
33 | 35 | ||
34 | #define CUDA_PACKET 0x01 |
36 | #define CUDA_PACKET 0x01 |
35 | #define CUDA_POWERDOWN 0x0a |
37 | #define CUDA_POWERDOWN 0x0a |
36 | 38 | ||
37 | #define RS 0x200 |
39 | #define RS 0x200 |
Line 45... | Line 47... | ||
45 | #define TIP 0x20 |
47 | #define TIP 0x20 |
46 | 48 | ||
47 | 49 | ||
48 | static volatile __u8 *cuda = (__u8 *) 0xf2000000; |
50 | static volatile __u8 *cuda = (__u8 *) 0xf2000000; |
49 | 51 | ||
- | 52 | #include <print.h> |
|
- | 53 | static void cuda_irq(int n, istate_t *istate) |
|
- | 54 | { |
|
- | 55 | printf("Got cuda msg\n"); |
|
- | 56 | } |
|
50 | 57 | ||
51 | void cuda_init(void) |
58 | void cuda_init(void) |
52 | { |
59 | { |
- | 60 | int_register(CUDA_IRQ, "cuda", cuda_irq); |
|
- | 61 | pic_enable_interrupt(CUDA_IRQ); |
|
53 | } |
62 | } |
54 | 63 | ||
55 | 64 | ||
56 | void cuda_packet(const __u8 data) |
65 | void cuda_packet(const __u8 data) |
57 | { |
66 | { |