Changeset 732fd3c in mainline for arch/ppc32/src
- Timestamp:
- 2006-06-06T23:03:42Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ceaef4
- Parents:
- a175a67
- Location:
- arch/ppc32/src/drivers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.
