Lines Matching defs:pInt

18 #define REG pInt
22 static int int1A_handler(xf86Int10InfoPtr pInt);
25 static int int42_handler(xf86Int10InfoPtr pInt);
27 static int intE6_handler(xf86Int10InfoPtr pInt);
28 static struct pci_device *findPci(xf86Int10InfoPtr pInt, unsigned short bx);
32 int_handler(xf86Int10InfoPtr pInt)
34 int num = pInt->num;
42 if (getIntVect(pInt, num) == I_S_DEFAULT_INT_VECT)
43 ret = int42_handler(pInt);
47 ret = int1A_handler(pInt);
50 ret = intE6_handler(pInt);
57 ret = run_bios_int(num, pInt);
60 xf86DrvMsg(pInt->pScrn->scrnIndex, X_ERROR, "Halting on int 0x%2.2x!\n", num);
61 dump_registers(pInt);
62 stack_trace(pInt);
78 int42_handler(xf86Int10InfoPtr pInt)
105 switch (MEM_RB(pInt, 0x0410) & 0x30) {
125 int1d = MEM_RW(pInt, 0x1d << 2);
136 MEM_WB(pInt, 0x0449, mode);
139 tmp = MEM_RB(pInt, mode + int1d + 0x48);
140 MEM_WW(pInt, 0x044A, tmp);
143 tmp = MEM_RW(pInt, (mode & 0x06) + int1d + 0x40);
144 MEM_WW(pInt, 0x044C, tmp);
147 MEM_WW(pInt, 0x044E, 0);
151 MEM_WW(pInt, i, 0);
154 tmp = MEM_RB(pInt, regvals + 0x0B);
155 MEM_WB(pInt, 0x0460, tmp);
156 tmp = MEM_RB(pInt, regvals + 0x0A);
157 MEM_WB(pInt, 0x0461, tmp);
160 MEM_WB(pInt, 0x0462, 0);
163 MEM_WW(pInt, 0x0463, ioport);
166 cgamode = MEM_RB(pInt, mode + int1d + 0x50);
167 MEM_WB(pInt, 0x0465, cgamode);
170 MEM_WB(pInt, 0x0466, cgacolour);
173 MEM_WB(pInt, 0x0484, (25 - 1));
176 pci_io_write8(pInt->io, ioport + 4, cgamode & 0x37); /* Turn off screen */
178 tmp = MEM_RB(pInt, regvals + i);
179 pci_io_write8(pInt->io, ioport, i);
180 pci_io_write8(pInt->io, ioport + 1, tmp);
182 pci_io_write8(pInt->io, ioport + 5, cgacolour); /* Select colour mode */
183 pci_io_write8(pInt->io, ioport + 4, cgamode); /* Turn on screen */
194 unsigned int ioport = MEM_RW(pInt, 0x0463);
196 MEM_WB(pInt, 0x0460, X86_CL);
197 MEM_WB(pInt, 0x0461, X86_CH);
199 pci_io_write8(pInt->io, ioport, 0x0A);
200 pci_io_write8(pInt->io, ioport + 1, X86_CH);
201 pci_io_write8(pInt->io, ioport, 0x0B);
202 pci_io_write8(pInt->io, ioport + 1, X86_CL);
217 MEM_WB(pInt, (X86_BH << 1) + 0x0450, X86_DL);
218 MEM_WB(pInt, (X86_BH << 1) + 0x0451, X86_DH);
220 if (X86_BH != MEM_RB(pInt, 0x0462))
223 offset = (X86_DH * MEM_RW(pInt, 0x044A)) + X86_DL;
224 offset += MEM_RW(pInt, 0x044E) << 1;
226 ioport = MEM_RW(pInt, 0x0463);
227 pci_io_write8(pInt->io, ioport, 0x0E);
228 pci_io_write8(pInt->io, ioport + 1, offset >> 8);
229 pci_io_write8(pInt->io, ioport, 0x0F);
230 pci_io_write8(pInt->io, ioport + 1, offset & 0xFF);
243 X86_CL = MEM_RB(pInt, 0x0460);
244 X86_CH = MEM_RB(pInt, 0x0461);
245 X86_DL = MEM_RB(pInt, (X86_BH << 1) + 0x0450);
246 X86_DH = MEM_RB(pInt, (X86_BH << 1) + 0x0451);
260 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
262 pInt->num);
264 dump_registers(pInt);
265 stack_trace(pInt);
277 unsigned int ioport = MEM_RW(pInt, 0x0463);
282 MEM_WB(pInt, 0x0462, X86_AL);
283 start = X86_AL * MEM_RW(pInt, 0x044C);
284 MEM_WW(pInt, 0x044E, start);
288 pci_io_write8(pInt->io, ioport, 0x0C);
289 pci_io_write8(pInt->io, ioport + 1, start >> 8);
290 pci_io_write8(pInt->io, ioport, 0x0D);
291 pci_io_write8(pInt->io, ioport + 1, start & 0xFF);
294 y = MEM_RB(pInt, (X86_AL << 1) + 0x0450);
295 x = MEM_RB(pInt, (X86_AL << 1) + 0x0451);
296 start += (y * MEM_RW(pInt, 0x044A)) + x;
299 pci_io_write8(pInt->io, ioport, 0x0E);
300 pci_io_write8(pInt->io, ioport + 1, start >> 8);
301 pci_io_write8(pInt->io, ioport, 0x0F);
302 pci_io_write8(pInt->io, ioport + 1, start & 0xFF);
317 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
319 pInt->num);
320 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 3,
325 dump_registers(pInt);
326 stack_trace(pInt);
342 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
344 pInt->num);
345 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 3,
350 dump_registers(pInt);
351 stack_trace(pInt);
363 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
365 " Cursor\n", pInt->num);
366 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 3,
369 dump_registers(pInt);
370 stack_trace(pInt);
385 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
387 " Cursor\n", pInt->num);
388 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 3,
392 dump_registers(pInt);
393 stack_trace(pInt);
407 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
409 pInt->num);
410 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 3,
414 dump_registers(pInt);
415 stack_trace(pInt);
427 unsigned int ioport = MEM_RW(pInt, 0x0463) + 5;
428 CARD8 cgacolour = MEM_RB(pInt, 0x0466);
439 MEM_WB(pInt, 0x0466, cgacolour);
440 pci_io_write8(pInt->io, ioport, cgacolour);
453 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
455 pInt->num);
456 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 3,
460 dump_registers(pInt);
461 stack_trace(pInt);
474 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
476 pInt->num);
477 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 3,
481 dump_registers(pInt);
482 stack_trace(pInt);
501 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
503 pInt->num);
504 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 3,
508 dump_registers(pInt);
509 stack_trace(pInt);
522 X86_AH = MEM_RW(pInt, 0x044A);
523 X86_AL = MEM_RB(pInt, 0x0449);
524 X86_BH = MEM_RB(pInt, 0x0462);
567 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
569 pInt->num);
570 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 3,
575 dump_registers(pInt);
576 stack_trace(pInt);
687 int1A_handler(xf86Int10InfoPtr pInt)
689 struct pci_device *const pvp = xf86GetPciInfoForEntity(pInt->entityIndex);
759 if ((dev = findPci(pInt, X86_EBX)) != NULL) {
773 if ((dev = findPci(pInt, X86_EBX)) != NULL) {
787 if ((dev = findPci(pInt, X86_EBX)) != NULL) {
801 if ((dev = findPci(pInt, X86_EBX)) != NULL) {
815 if ((dev = findPci(pInt, X86_EBX)) != NULL) {
829 if ((dev = findPci(pInt, X86_EBX)) != NULL) {
843 xf86DrvMsgVerb(pInt->pScrn->scrnIndex, X_NOT_IMPLEMENTED, 2,
845 dump_registers(pInt);
847 stack_trace(pInt);
853 findPci(xf86Int10InfoPtr pInt, unsigned short bx)
859 return pci_device_find_by_slot(pInt->dev->domain, bus, dev, func);
872 intE6_handler(xf86Int10InfoPtr pInt)
876 if ((pvp = xf86GetPciInfoForEntity(pInt->entityIndex)))
878 pushw(pInt, X86_CS);
879 pushw(pInt, X86_IP);
880 X86_CS = pInt->BIOSseg;