| plan 9 kernel history: overview | file list | diff list |
2000/0401/alphapc/i8259.c (diff list | history)
| 1999/0415/sys/src/9/alphapc/i8259.c:35,40 – 2000/0401/sys/src/9/alphapc/i8259.c:35,42 (short | long | prev) | ||
| 1999/0415 | { int /*elcr1, */ x; | |
| 2000/0401 | ioalloc(Int0ctl, 2, 0, "i8259.0"); ioalloc(Int1ctl, 2, 0, "i8259.1"); | |
| 1999/0415 | int0mask = 0xFF; int1mask = 0xFF; | |
| 1999/0415/sys/src/9/alphapc/i8259.c:121,133 – 2000/0401/sys/src/9/alphapc/i8259.c:123,134 | ||
| 1999/0415 | } int | |
| 2000/0401 | i8259enable(int v, int, Vctl* vctl) | |
| 1999/0415 | { | |
| 2000/0401 | if(v > MaxIrqPIC){ print("i8259enable: vector %d out of range\n", v); | |
| 1999/0415 | return -1; } | |
| 1999/0415/sys/src/9/alphapc/i8259.c:142,151 – 2000/0401/sys/src/9/alphapc/i8259.c:143,152 | ||
| 1999/0415 | } if(elcr & (1<<v)) | |
| 2000/0401 | vctl->eoi = i8259isr; | |
| 1999/0415 | else | |
| 2000/0401 | vctl->isr = i8259isr; vctl->isintr = 1; | |
| 1999/0415 | return v; } | |