Lines Matching defs:PortStart

533  * @param   PortStart           First port number in the range.
542 VMMR3_INT_DECL(int) IOMR3IOPortRegisterR3(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts, RTHCPTR pvUser,
546 LogFlow(("IOMR3IOPortRegisterR3: pDevIns=%p PortStart=%#x cPorts=%#x pvUser=%RHv pfnOutCallback=%#x pfnInCallback=%#x pfnOutStrCallback=%#x pfnInStrCallback=%#x pszDesc=%s\n",
547 pDevIns, PortStart, cPorts, pvUser, pfnOutCallback, pfnInCallback, pfnOutStrCallback, pfnInStrCallback, pszDesc));
552 if ( (RTUINT)PortStart + cPorts <= (RTUINT)PortStart
553 || (RTUINT)PortStart + cPorts > 0x10000)
555 AssertMsgFailed(("Invalid port range %#x-%#x (inclusive)! (%s)\n", PortStart, (RTUINT)PortStart + (cPorts - 1), pszDesc));
560 AssertMsgFailed(("no handlers specfied for %#x-%#x (inclusive)! (%s)\n", PortStart, (RTUINT)PortStart + (cPorts - 1), pszDesc));
582 pRange->Core.Key = PortStart;
583 pRange->Core.KeyLast = PortStart + (cPorts - 1);
584 pRange->Port = PortStart;
602 iomR3IOPortStatsCreate(pVM, PortStart + iPort, pszDesc);
611 AssertMsgFailed(("Port range %#x-%#x (%s) conflicts with existing range(s)!\n", PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
631 * @param PortStart First port number in the range.
640 VMMR3_INT_DECL(int) IOMR3IOPortRegisterRC(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts, RTRCPTR pvUser,
644 LogFlow(("IOMR3IOPortRegisterRC: pDevIns=%p PortStart=%#x cPorts=%#x pvUser=%RRv pfnOutCallback=%RRv pfnInCallback=%RRv pfnOutStrCallback=%RRv pfnInStrCallback=%RRv pszDesc=%s\n",
645 pDevIns, PortStart, cPorts, pvUser, pfnOutCallback, pfnInCallback, pfnOutStrCallback, pfnInStrCallback, pszDesc));
651 if ( (RTUINT)PortStart + cPorts <= (RTUINT)PortStart
652 || (RTUINT)PortStart + cPorts > 0x10000)
654 AssertMsgFailed(("Invalid port range %#x-%#x! (%s)\n", PortStart, (RTUINT)PortStart + (cPorts - 1), pszDesc));
657 RTIOPORT PortLast = PortStart + (cPorts - 1);
660 AssertMsgFailed(("Invalid port range %#x-%#x! No callbacks! (%s)\n", PortStart, PortLast, pszDesc));
669 RTIOPORT Port = PortStart;
670 while (Port <= PortLast && Port >= PortStart)
675 AssertMsgFailed(("No R3! Port=#x %#x-%#x! (%s)\n", Port, PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
686 AssertMsgFailed(("Not owner! Port=%#x %#x-%#x! (%s)\n", Port, PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
704 pRange->Core.Key = PortStart;
706 pRange->Port = PortStart;
726 AssertMsgFailed(("Port range %#x-%#x (%s) conflicts with existing range(s)!\n", PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
746 * @param PortStart First port number in the range.
755 VMMR3_INT_DECL(int) IOMR3IOPortRegisterR0(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts, RTR0PTR pvUser,
760 LogFlow(("IOMR3IOPortRegisterR0: pDevIns=%p PortStart=%#x cPorts=%#x pvUser=%RHv pfnOutCallback=%RHv pfnInCallback=%RHv pfnOutStrCallback=%RHv pfnInStrCallback=%RHv pszDesc=%s\n",
761 pDevIns, PortStart, cPorts, pvUser, pfnOutCallback, pfnInCallback, pfnOutStrCallback, pfnInStrCallback, pszDesc));
766 if ( (RTUINT)PortStart + cPorts <= (RTUINT)PortStart
767 || (RTUINT)PortStart + cPorts > 0x10000)
769 AssertMsgFailed(("Invalid port range %#x-%#x! (%s)\n", PortStart, (RTUINT)PortStart + (cPorts - 1), pszDesc));
772 RTIOPORT PortLast = PortStart + (cPorts - 1);
775 AssertMsgFailed(("Invalid port range %#x-%#x! No callbacks! (%s)\n", PortStart, PortLast, pszDesc));
784 RTIOPORT Port = PortStart;
785 while (Port <= PortLast && Port >= PortStart)
790 AssertMsgFailed(("No R3! Port=#x %#x-%#x! (%s)\n", Port, PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
801 AssertMsgFailed(("Not owner! Port=%#x %#x-%#x! (%s)\n", Port, PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
819 pRange->Core.Key = PortStart;
821 pRange->Port = PortStart;
841 AssertMsgFailed(("Port range %#x-%#x (%s) conflicts with existing range(s)!\n", PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
863 * @param PortStart First port number in the range.
864 * @param cPorts Number of ports to remove starting at PortStart.
869 VMMR3_INT_DECL(int) IOMR3IOPortDeregister(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts)
871 LogFlow(("IOMR3IOPortDeregister: pDevIns=%p PortStart=%#x cPorts=%#x\n", pDevIns, PortStart, cPorts));
876 if ( (RTUINT)PortStart + cPorts < (RTUINT)PortStart
877 || (RTUINT)PortStart + cPorts > 0x10000)
879 AssertMsgFailed(("Invalid port range %#x-%#x!\n", PortStart, (unsigned)PortStart + cPorts - 1));
891 RTIOPORT PortLast = PortStart + (cPorts - 1);
892 RTIOPORT Port = PortStart;
893 while (Port <= PortLast && Port >= PortStart)
903 PortStart, PortLast, pRange->Core.Key, pRange->Core.KeyLast, pRange->pszDesc));
917 Port = PortStart;
918 while (Port <= PortLast && Port >= PortStart)
1000 Port = PortStart;
1001 while (Port <= PortLast && Port >= PortStart)
1082 Port = PortStart;
1083 while (Port <= PortLast && Port >= PortStart)