Home | History | Annotate | Download | only in pic

Lines Matching refs:isu

60 setup_distributed_openpic(void *addr, int nrofisus, void **isu, int *maps)
73 panic("Can't handle a distributed openpic with internal ISU");
76 opicops->isu = kmem_alloc(sizeof(volatile u_char *) * nrofisus,
81 opicops->isu[i] = (void *)isu[i];
155 distopic_read(struct openpic_ops *opic, int isu, int offset)
157 volatile unsigned char *addr = opic->isu[isu] + offset;
163 distopic_write(struct openpic_ops *opic, int isu, int offset, u_int val)
165 volatile unsigned char *addr = opic->isu[isu] + offset;
174 int isu, realirq = -1, realpri = uimax(1, uimin(15, pri));
177 isu = opic_isu_from_irq(opic, irq, &realirq);
178 KASSERT(isu != -1);
183 if ((realirq == 0 && isu == 0) ||
195 distopic_write(opic, isu, OPENPIC_DSRC_VECTOR_OFFSET(realirq), x);
205 int isu, realirq = -1;
208 isu = opic_isu_from_irq(opic, irq, &realirq);
209 KASSERT(isu != -1);
210 x = distopic_read(opic, isu, OPENPIC_DSRC_VECTOR_OFFSET(realirq));
212 distopic_write(opic, isu, OPENPIC_DSRC_VECTOR_OFFSET(realirq), x);
219 int isu, realirq = -1;
222 isu = opic_isu_from_irq(opic, irq, &realirq);
223 KASSERT(isu != -1);
224 x = distopic_read(opic, isu, OPENPIC_DSRC_VECTOR_OFFSET(realirq));
226 distopic_write(opic, isu, OPENPIC_DSRC_VECTOR_OFFSET(realirq), x);