Lines Matching refs:pPciDev

79  * @param   pPciDev         Pointer to PCI device. Use pPciDev->pDevIns to get the device instance.
93 typedef DECLCALLBACK(int) FNPCIIOREGIONMAP(PPCIDEVICE pPciDev, /*unsigned*/ int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType);
472 * @param pPciDev Pointer to PCI device. Use pPciDev->pDevIns to get the device instance.
479 typedef DECLCALLBACK(uint32_t) FNPCICONFIGREAD(PPCIDEVICE pPciDev, uint32_t Address, unsigned cb);
488 * @param pPciDev Pointer to PCI device. Use pPciDev->pDevIns to get the device instance.
497 typedef DECLCALLBACK(void) FNPCICONFIGWRITE(PPCIDEVICE pPciDev, uint32_t Address, uint32_t u32Value, unsigned cb);
550 DECLINLINE(void) PCIDevSetByte(PPCIDEVICE pPciDev, uint32_t offReg, uint8_t u8Value)
552 pPciDev->config[offReg] = u8Value;
555 DECLINLINE(uint8_t) PCIDevGetByte(PPCIDEVICE pPciDev, uint32_t offReg)
557 return pPciDev->config[offReg];
560 DECLINLINE(void) PCIDevSetWord(PPCIDEVICE pPciDev, uint32_t offReg, uint16_t u16Value)
562 *(uint16_t*)&pPciDev->config[offReg] = RT_H2LE_U16(u16Value);
565 DECLINLINE(uint16_t) PCIDevGetWord(PPCIDEVICE pPciDev, uint32_t offReg)
567 uint16_t u16Value = *(uint16_t*)&pPciDev->config[offReg];
571 DECLINLINE(void) PCIDevSetDWord(PPCIDEVICE pPciDev, uint32_t offReg, uint32_t u32Value)
573 *(uint32_t*)&pPciDev->config[offReg] = RT_H2LE_U32(u32Value);
576 DECLINLINE(uint32_t) PCIDevGetDWord(PPCIDEVICE pPciDev, uint32_t offReg)
578 uint32_t u32Value = *(uint32_t*)&pPciDev->config[offReg];
582 DECLINLINE(void) PCIDevSetQWord(PPCIDEVICE pPciDev, uint32_t offReg, uint64_t u64Value)
584 *(uint64_t*)&pPciDev->config[offReg] = RT_H2LE_U64(u64Value);
587 DECLINLINE(uint64_t) PCIDevGetQWord(PPCIDEVICE pPciDev, uint32_t offReg)
589 uint64_t u64Value = *(uint64_t*)&pPciDev->config[offReg];
595 * @param pPciDev The PCI device.
598 DECLINLINE(void) PCIDevSetVendorId(PPCIDEVICE pPciDev, uint16_t u16VendorId)
600 PCIDevSetWord(pPciDev, VBOX_PCI_VENDOR_ID, u16VendorId);
606 * @param pPciDev The PCI device.
608 DECLINLINE(uint16_t) PCIDevGetVendorId(PPCIDEVICE pPciDev)
610 return PCIDevGetWord(pPciDev, VBOX_PCI_VENDOR_ID);
616 * @param pPciDev The PCI device.
619 DECLINLINE(void) PCIDevSetDeviceId(PPCIDEVICE pPciDev, uint16_t u16DeviceId)
621 PCIDevSetWord(pPciDev, VBOX_PCI_DEVICE_ID, u16DeviceId);
627 * @param pPciDev The PCI device.
629 DECLINLINE(uint16_t) PCIDevGetDeviceId(PPCIDEVICE pPciDev)
631 return PCIDevGetWord(pPciDev, VBOX_PCI_DEVICE_ID);
637 * @param pPciDev The PCI device.
640 DECLINLINE(void) PCIDevSetCommand(PPCIDEVICE pPciDev, uint16_t u16Command)
642 PCIDevSetWord(pPciDev, VBOX_PCI_COMMAND, u16Command);
649 * @param pPciDev The PCI device.
651 DECLINLINE(uint16_t) PCIDevGetCommand(PPCIDEVICE pPciDev)
653 return PCIDevGetWord(pPciDev, VBOX_PCI_COMMAND);
659 * @param pPciDev The PCI device.
661 DECLINLINE(bool) PCIDevIsBusmaster(PPCIDEVICE pPciDev)
663 return (PCIDevGetCommand(pPciDev) & VBOX_PCI_COMMAND_MASTER) != 0;
669 * @param pPciDev The PCI device.
671 DECLINLINE(bool) PCIDevIsIntxDisabled(PPCIDEVICE pPciDev)
673 return (PCIDevGetCommand(pPciDev) & VBOX_PCI_COMMAND_INTX_DISABLE) != 0;
680 * @param pPciDev The PCI device.
682 DECLINLINE(uint16_t) PCIDevGetStatus(PPCIDEVICE pPciDev)
684 return PCIDevGetWord(pPciDev, VBOX_PCI_STATUS);
690 * @param pPciDev The PCI device.
693 DECLINLINE(void) PCIDevSetStatus(PPCIDEVICE pPciDev, uint16_t u16Status)
695 PCIDevSetWord(pPciDev, VBOX_PCI_STATUS, u16Status);
702 * @param pPciDev The PCI device.
705 DECLINLINE(void) PCIDevSetRevisionId(PPCIDEVICE pPciDev, uint8_t u8RevisionId)
707 PCIDevSetByte(pPciDev, VBOX_PCI_REVISION_ID, u8RevisionId);
714 * @param pPciDev The PCI device.
717 DECLINLINE(void) PCIDevSetClassProg(PPCIDEVICE pPciDev, uint8_t u8ClassProg)
719 PCIDevSetByte(pPciDev, VBOX_PCI_CLASS_PROG, u8ClassProg);
726 * @param pPciDev The PCI device.
729 DECLINLINE(void) PCIDevSetClassSub(PPCIDEVICE pPciDev, uint8_t u8SubClass)
731 PCIDevSetByte(pPciDev, VBOX_PCI_CLASS_SUB, u8SubClass);
738 * @param pPciDev The PCI device.
741 DECLINLINE(void) PCIDevSetClassBase(PPCIDEVICE pPciDev, uint8_t u8BaseClass)
743 PCIDevSetByte(pPciDev, VBOX_PCI_CLASS_BASE, u8BaseClass);
749 * @param pPciDev The PCI device.
752 DECLINLINE(void) PCIDevSetHeaderType(PPCIDEVICE pPciDev, uint8_t u8HdrType)
754 PCIDevSetByte(pPciDev, VBOX_PCI_HEADER_TYPE, u8HdrType);
760 * @param pPciDev The PCI device.
763 DECLINLINE(uint8_t) PCIDevGetHeaderType(PPCIDEVICE pPciDev)
765 return PCIDevGetByte(pPciDev, VBOX_PCI_HEADER_TYPE);
771 * @param pPciDev The PCI device.
774 DECLINLINE(void) PCIDevSetBIST(PPCIDEVICE pPciDev, uint8_t u8Bist)
776 PCIDevSetByte(pPciDev, VBOX_PCI_BIST, u8Bist);
782 * @param pPciDev The PCI device.
785 DECLINLINE(uint8_t) PCIDevGetBIST(PPCIDEVICE pPciDev)
787 return PCIDevGetByte(pPciDev, VBOX_PCI_BIST);
794 * @param pPciDev The PCI device.
800 DECLINLINE(void) PCIDevSetBaseAddress(PPCIDEVICE pPciDev, uint8_t iReg, bool fIOSpace, bool fPrefetchable, bool f64Bit, uint32_t u32Addr)
826 PCIDevSetDWord(pPciDev, iReg, u32Addr);
842 * @param pPciDev The PCI device.
845 DECLINLINE(void) PCIDevSetSubSystemVendorId(PPCIDEVICE pPciDev, uint16_t u16SubSysVendorId)
847 PCIDevSetWord(pPciDev, VBOX_PCI_SUBSYSTEM_VENDOR_ID, u16SubSysVendorId);
853 * @param pPciDev The PCI device.
855 DECLINLINE(uint16_t) PCIDevGetSubSystemVendorId(PPCIDEVICE pPciDev)
857 return PCIDevGetWord(pPciDev, VBOX_PCI_SUBSYSTEM_VENDOR_ID);
864 * @param pPciDev The PCI device.
867 DECLINLINE(void) PCIDevSetSubSystemId(PPCIDEVICE pPciDev, uint16_t u16SubSystemId)
869 PCIDevSetWord(pPciDev, VBOX_PCI_SUBSYSTEM_ID, u16SubSystemId);
875 * @param pPciDev The PCI device.
877 DECLINLINE(uint16_t) PCIDevGetSubSystemId(PPCIDEVICE pPciDev)
879 return PCIDevGetWord(pPciDev, VBOX_PCI_SUBSYSTEM_ID);
885 * @param pPciDev The PCI device.
888 DECLINLINE(void) PCIDevSetCapabilityList(PPCIDEVICE pPciDev, uint8_t u8Offset)
890 PCIDevSetByte(pPciDev, VBOX_PCI_CAPABILITY_LIST, u8Offset);
897 * @param pPciDev The PCI device.
899 DECLINLINE(uint8_t) PCIDevGetCapabilityList(PPCIDEVICE pPciDev)
901 return PCIDevGetByte(pPciDev, VBOX_PCI_CAPABILITY_LIST);
907 * @param pPciDev The PCI device.
910 DECLINLINE(void) PCIDevSetInterruptLine(PPCIDEVICE pPciDev, uint8_t u8Line)
912 PCIDevSetByte(pPciDev, VBOX_PCI_INTERRUPT_LINE, u8Line);
919 * @param pPciDev The PCI device.
921 DECLINLINE(uint8_t) PCIDevGetInterruptLine(PPCIDEVICE pPciDev)
923 return PCIDevGetByte(pPciDev, VBOX_PCI_INTERRUPT_LINE);
929 * @param pPciDev The PCI device.
932 DECLINLINE(void) PCIDevSetInterruptPin(PPCIDEVICE pPciDev, uint8_t u8Pin)
934 PCIDevSetByte(pPciDev, VBOX_PCI_INTERRUPT_PIN, u8Pin);
941 * @param pPciDev The PCI device.
943 DECLINLINE(uint8_t) PCIDevGetInterruptPin(PPCIDEVICE pPciDev)
945 return PCIDevGetByte(pPciDev, VBOX_PCI_INTERRUPT_PIN);