• Home
  • Raw
  • Download

Lines Matching refs:reg

150   LOCAL SWI_REGS        reg;  variable
156 static __dpmi_regs reg; variable
171 LOCAL struct DPMI_regs reg; variable
185 } reg; variable
312 _dx_real_int ((UINT)pktInfo.intr, &reg); in PktInterrupt()
313 okay = ((reg.flags & 1) == 0); /* OK if carry clear */ in PktInterrupt()
316 __dpmi_int ((int)pktInfo.intr, &reg); in PktInterrupt()
317 okay = ((reg.x.flags & 1) == 0); in PktInterrupt()
328 s.es = FP_SEG (&reg); in PktInterrupt()
329 r.x.edi = FP_OFF (&reg); in PktInterrupt()
330 reg.r_flags = 0; in PktInterrupt()
331 reg.r_ss = reg.r_sp = 0; /* DPMI host provides stack */ in PktInterrupt()
337 reg.r_flags = 0; in PktInterrupt()
338 intr (pktInfo.intr, (struct REGPACK*)&reg); in PktInterrupt()
339 okay = ((reg.r_flags & 1) == 0); in PktInterrupt()
344 else pktInfo.error = PktGetErrorStr (reg.r_dx >> 8); in PktInterrupt()
396 reg.r_ax = 0x0200 + pktInfo.class; in PktSetAccess()
397 reg.r_bx = 0xFFFF; in PktSetAccess()
398 reg.r_dx = 0; in PktSetAccess()
399 reg.r_cx = 0; in PktSetAccess()
402 reg.ds = 0; in PktSetAccess()
403 reg.esi = 0; in PktSetAccess()
404 reg.es = RP_SEG (realBase); in PktSetAccess()
405 reg.edi = (WORD) &PktReceiver; in PktSetAccess()
408 reg.x.ds = 0; in PktSetAccess()
409 reg.x.si = 0; in PktSetAccess()
410 reg.x.es = rm_mem.rm_segment; in PktSetAccess()
411 reg.x.di = PktReceiver; in PktSetAccess()
414 reg.r_ds = 0; in PktSetAccess()
415 reg.r_si = 0; in PktSetAccess()
416 reg.r_es = rm_base_seg; in PktSetAccess()
417 reg.r_di = PktReceiver; in PktSetAccess()
420 reg.r_ds = 0; in PktSetAccess()
421 reg.r_si = 0; in PktSetAccess()
422 reg.r_es = FP_SEG (&PktReceiver); in PktSetAccess()
423 reg.r_di = FP_OFF (&PktReceiver); in PktSetAccess()
429 pktInfo.handle = reg.r_ax; in PktSetAccess()
437 reg.r_ax = 0x0300; in PktReleaseHandle()
438 reg.r_bx = handle; in PktReleaseHandle()
449 reg.r_ax = 0x0400; /* Function 4, send pkt */ in PktTransmit()
450 reg.r_cx = len; /* total size of frame */ in PktTransmit()
454 reg.x.ds = rm_mem.rm_segment; /* DOS data segment and */ in PktTransmit()
455 reg.x.si = pktTxBuf; /* DOS offset to buffer */ in PktTransmit()
459 reg.r_ds = rm_base_seg; in PktTransmit()
460 reg.r_si = pktTxBuf; in PktTransmit()
464 reg.r_ds = FP_SEG (&pktTxBuf); in PktTransmit()
465 reg.r_si = FP_OFF (&pktTxBuf); in PktTransmit()
468 reg.r_ds = FP_SEG (eth); in PktTransmit()
469 reg.r_si = FP_OFF (eth); in PktTransmit()
526 reg.r_ax = 0x0500; in PktTerminHandle()
527 reg.r_bx = handle; in PktTerminHandle()
535 reg.r_ax = 0x0700; in PktResetInterface()
536 reg.r_bx = handle; in PktResetInterface()
547 reg.r_ax = 0x1400; in PktSetReceiverMode()
548 reg.r_bx = pktInfo.handle; in PktSetReceiverMode()
549 reg.r_cx = (WORD)mode; in PktSetReceiverMode()
562 reg.r_ax = 0x1500; in PktGetReceiverMode()
563 reg.r_bx = pktInfo.handle; in PktGetReceiverMode()
568 *mode = reg.r_ax; in PktGetReceiverMode()
579 reg.r_ax = 0x1800; in PktGetStatistics()
580 reg.r_bx = handle; in PktGetStatistics()
586 ReadRealMem (&pktStat, DOS_ADDR(reg.ds,reg.esi), sizeof(pktStat)); in PktGetStatistics()
589 dosmemget (DOS_ADDR(reg.x.ds,reg.x.si), sizeof(pktStat), &pktStat); in PktGetStatistics()
592 memcpy (&pktStat, (void*)DOS_ADDR(reg.r_ds,reg.r_si), sizeof(pktStat)); in PktGetStatistics()
595 _fmemcpy (&pktStat, MK_FP(reg.r_ds,reg.r_si), sizeof(pktStat)); in PktGetStatistics()
638 reg.r_ax = 0x0600; in PktGetAddress()
639 reg.r_bx = pktInfo.handle; in PktGetAddress()
640 reg.r_cx = sizeof (*addr); in PktGetAddress()
643 reg.x.es = rm_mem.rm_segment; in PktGetAddress()
644 reg.x.di = pktTemp; in PktGetAddress()
646 reg.r_es = rm_base_seg; in PktGetAddress()
647 reg.r_di = pktTemp; in PktGetAddress()
649 reg.r_es = FP_SEG (&pktTemp); in PktGetAddress()
650 reg.r_di = FP_OFF (&pktTemp); /* ES:DI = address for result */ in PktGetAddress()
691 reg.r_ax = 0x1900; in PktSetAddress()
692 reg.r_cx = sizeof (*addr); /* address length */ in PktSetAddress()
695 reg.x.es = rm_mem.rm_segment; /* DOS offset to param */ in PktSetAddress()
696 reg.x.di = pktTemp; /* DOS segment to param */ in PktSetAddress()
698 reg.r_es = rm_base_seg; in PktSetAddress()
699 reg.r_di = pktTemp; in PktSetAddress()
701 reg.r_es = FP_SEG (&pktTemp); in PktSetAddress()
702 reg.r_di = FP_OFF (&pktTemp); in PktSetAddress()
715 reg.r_ax = 0x01FF; in PktGetDriverInfo()
716 reg.r_bx = 0; in PktGetDriverInfo()
721 pktInfo.number = reg.r_cx & 0xFF; in PktGetDriverInfo()
722 pktInfo.class = reg.r_cx >> 8; in PktGetDriverInfo()
724 pktInfo.minVer = reg.r_bx % 10; in PktGetDriverInfo()
725 pktInfo.majVer = reg.r_bx / 10; in PktGetDriverInfo()
727 pktInfo.majVer = reg.r_bx; // !! in PktGetDriverInfo()
729 pktInfo.funcs = reg.r_ax & 0xFF; in PktGetDriverInfo()
730 pktInfo.type = reg.r_dx & 0xFF; in PktGetDriverInfo()
733 ReadRealMem (&pktInfo.name, DOS_ADDR(reg.ds,reg.esi), sizeof(pktInfo.name)); in PktGetDriverInfo()
736 dosmemget (DOS_ADDR(reg.x.ds,reg.x.si), sizeof(pktInfo.name), &pktInfo.name); in PktGetDriverInfo()
739 memcpy (&pktInfo.name, (void*)DOS_ADDR(reg.r_ds,reg.r_si), sizeof(pktInfo.name)); in PktGetDriverInfo()
742 _fmemcpy (&pktInfo.name, MK_FP(reg.r_ds,reg.r_si), sizeof(pktInfo.name)); in PktGetDriverInfo()
751 reg.r_ax = 0x0A00; in PktGetDriverParam()
757 ReadRealMem (&pktInfo.majVer, DOS_ADDR(reg.es,reg.edi), PKT_PARAM_SIZE); in PktGetDriverParam()
760 dosmemget (DOS_ADDR(reg.x.es,reg.x.di), PKT_PARAM_SIZE, &pktInfo.majVer); in PktGetDriverParam()
763 memcpy (&pktInfo.majVer, (void*)DOS_ADDR(reg.r_es,reg.r_di), PKT_PARAM_SIZE); in PktGetDriverParam()
766 _fmemcpy (&pktInfo.majVer, MK_FP(reg.r_es,reg.r_di), PKT_PARAM_SIZE); in PktGetDriverParam()