Changeset 732fd3c in mainline
- Timestamp:
- 2006-06-06T23:03:42Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ceaef4
- Parents:
- a175a67
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/include/arch.h
ra175a67 r732fd3c 30 30 #define __ppc32_ARCH_H__ 31 31 32 #include <arch/drivers/cuda.h> 33 32 34 #endif -
arch/ppc32/include/drivers/cuda.h
ra175a67 r732fd3c 31 31 32 32 #include <arch/types.h> 33 #include <console/chardev.h> 33 34 #include <typedefs.h> 34 35 35 36 #define CUDA_IRQ 10 36 37 38 chardev_t kbrd; 39 37 40 extern void cuda_init(__address base, size_t size); 38 41 -
arch/ppc32/src/drivers/cuda.c
ra175a67 r732fd3c 29 29 #include <arch/drivers/cuda.h> 30 30 #include <arch/asm.h> 31 #include <console/chardev.h>32 31 #include <console/console.h> 33 32 #include <arch/drivers/pic.h> 33 #include <sysinfo/sysinfo.h> 34 34 #include <interrupt.h> 35 35 #include <stdarg.h> … … 130 130 131 131 132 staticchardev_t kbrd;132 chardev_t kbrd; 133 133 static chardev_operations_t ops = { 134 134 .suspend = cuda_suspend, … … 163 163 chardev_initialize("cuda_kbd", &kbrd, &ops); 164 164 stdin = &kbrd; 165 166 sysinfo_set_item_val("cuda", NULL, true); 167 sysinfo_set_item_val("cuda.irq", NULL, CUDA_IRQ); 165 168 } 166 169 -
arch/ppc32/src/drivers/pic.c
ra175a67 r732fd3c 47 47 pic[PIC_MASK_LOW] = pic[PIC_MASK_LOW] | (1 << intnum); 48 48 } else { 49 pic[PIC_MASK_HIGH] = pic[PIC_MASK_HIGH] | (1 << (intnum -32));49 pic[PIC_MASK_HIGH] = pic[PIC_MASK_HIGH] | (1 << (intnum - 32)); 50 50 } 51 51 … … 57 57 pic[PIC_MASK_LOW] = pic[PIC_MASK_LOW] & (~(1 << intnum)); 58 58 } else { 59 pic[PIC_MASK_HIGH] = pic[PIC_MASK_HIGH] & (~(1 << (intnum -32)));59 pic[PIC_MASK_HIGH] = pic[PIC_MASK_HIGH] & (~(1 << (intnum - 32))); 60 60 } 61 61 } … … 66 66 pic[PIC_ACK_LOW] = 1 << intnum; 67 67 else 68 pic[PIC_ACK_HIGH] = 1 << (intnum -32);68 pic[PIC_ACK_HIGH] = 1 << (intnum - 32); 69 69 } 70 70 -
generic/include/ipc/irq.h
ra175a67 r732fd3c 50 50 CMD_PORT_WRITE_1, 51 51 CMD_IA64_GETCHAR, 52 CMD_PPC32_GETCHAR, 52 53 CMD_LAST 53 54 } irq_cmd_type; -
generic/src/ipc/irq.c
ra175a67 r732fd3c 108 108 case CMD_IA64_GETCHAR: 109 109 IPC_SET_ARG2(call->data, _getc(&ski_uconsole)); 110 break; 111 #endif 112 #if defined(ppc32) 113 case CMD_PPC32_GETCHAR: 114 IPC_SET_ARG2(call->data, _getc(&kbrd)); 110 115 break; 111 116 #endif
Note:
See TracChangeset
for help on using the changeset viewer.