| plan 9 kernel history: overview | file list | diff list |
1998/0910/pc/io.h (diff list | history)
| 1998/0320/sys/src/9/pc/io.h:10,43 – 1998/0910/sys/src/9/pc/io.h:10,57 (short | long | prev | next) | ||
|
Move LAPIC vectors higher. XXX why? Add generic SCSI definitions.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1997/0327 | VectorPF = 14, /* page fault */ VectorCERR = 16, /* coprocessor error */ | |
| 1998/0320 |
| |
| 1998/0910 | VectorPIC = 32, /* external i8259 interrupts */ IrqCLOCK = 0, IrqKBD = 1, IrqUART1 = 3, IrqUART0 = 4, IrqPCMCIA = 5, IrqFLOPPY = 6, IrqLPT = 7, IrqIRQ7 = 7, IrqAUX = 12, /* PS/2 port */ IrqIRQ13 = 13, /* coprocessor on 386 */ IrqATA0 = 14, MaxIrqPIC = 15, | |
| 1991/0910 | ||
| 1997/0327 |
| |
| 1998/0910 | VectorLAPIC = VectorPIC+16, /* local APIC interrupts */ IrqLINT0 = 16, /* LINT[01] must be offsets 0 and 1 */ IrqLINT1 = 17, IrqTIMER = 18, IrqERROR = 19, IrqPCINT = 20, IrqSPURIOUS = 31, /* must have bits [3-0] == 0x0F */ MaxIrqLAPIC = 31, | |
| 1997/0327 | VectorSYSCALL = 64, | |
| 1998/0910 | VectorAPIC = 65, /* external APIC interrupts */ MaxVectorAPIC = 255, | |
| 1994/0908 | }; | |
| 1998/0910 | typedef struct Vctl { Vctl* next; /* handlers on this vector */ int isintr; /* interrupt or fault/trap */ int irq; int tbdf; int (*isr)(int); /* get isr bit for this irq */ int (*eoi)(int); /* eoi */ void (*f)(Ureg*, void*); /* handler to call */ void* a; /* argument to call it with */ } Vctl; | |
| 1994/0908 | enum { | |
| 1997/0327 | BusCBUS = 0, /* Corollary CBUS */ BusCBUSII, /* Corollary CBUS II */ | |
| 1998/0320/sys/src/9/pc/io.h:163,165 – 1998/0910/sys/src/9/pc/io.h:177,204 | ||
| 1997/0327 | int attr; /* attribute memory */ int ref; }; | |
| 1998/0910 | /* * SCSI bus */ enum { MaxScsi = 8, NTarget = 8, /* should be 16... */ }; struct Target { int ctlrno; int target; uchar* inq; uchar* scratch; Rendez rendez; int ok; }; typedef int (*Scsiio)(Target*, int, uchar*, int, void*, int*); typedef struct SCSIdev { char* type; Scsiio (*reset)(int, ISAConf*); } SCSIdev; | |