Changeset 99775 in vbox for trunk/src/VBox/Devices
- Timestamp:
- May 12, 2023 12:21:58 PM (19 months ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTestServiceTcp.cpp
r98103 r99775 906 906 * @interface_method_impl{ATSTRANSPORT,pfnUsage} 907 907 */ 908 DECLCALLBACK(void) atsTcpUsage(PRTSTREAM pStream)908 static DECLCALLBACK(void) atsTcpUsage(PRTSTREAM pStream) 909 909 { 910 910 RTStrmPrintf(pStream, -
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r99750 r99775 1223 1223 * @callback_method_impl{FNDBGFHANDLERDEV, 'pirq'} 1224 1224 */ 1225 DECLCALLBACK(void) devpciR3InfoPIRQ(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)1225 static DECLCALLBACK(void) devpciR3InfoPIRQ(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 1226 1226 { 1227 1227 PDEVPCIROOT pGlobals = PDMINS_2_DATA(pDevIns, PDEVPCIROOT); -
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r99766 r99775 3817 3817 * @interface_method_impl{PDMDEVREGR0,pfnConstruct} 3818 3818 */ 3819 DECLCALLBACK(int) ich9pciRZConstruct(PPDMDEVINS pDevIns)3819 static DECLCALLBACK(int) ich9pciRZConstruct(PPDMDEVINS pDevIns) 3820 3820 { 3821 3821 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); … … 3857 3857 * @interface_method_impl{PDMDEVREGR0,pfnConstruct} 3858 3858 */ 3859 DECLCALLBACK(int) ich9pcibridgeRZConstruct(PPDMDEVINS pDevIns)3859 static DECLCALLBACK(int) ich9pcibridgeRZConstruct(PPDMDEVINS pDevIns) 3860 3860 { 3861 3861 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r99740 r99775 899 899 * @param pThisCC The VGA/VMSVGA state for ring-3. 900 900 */ 901 void vmsvgaR3VBVAResize(PVGASTATE pThis, PVGASTATECC pThisCC)901 static void vmsvgaR3VBVAResize(PVGASTATE pThis, PVGASTATECC pThisCC) 902 902 { 903 903 int rc; … … 4563 4563 * @param pThisCC The VGA/VMSVGA state for ring-3. 4564 4564 */ 4565 void vmsvgaR3FifoPendingActions(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)4565 static void vmsvgaR3FifoPendingActions(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC) 4566 4566 { 4567 4567 RT_NOREF(pDevIns); … … 5393 5393 * @callback_method_impl{FNDBGFHANDLERDEV, "vmsvga3dsfc"} 5394 5394 */ 5395 DECLCALLBACK(void) vmsvgaR3Info3dSurface(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)5395 static DECLCALLBACK(void) vmsvgaR3Info3dSurface(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 5396 5396 { 5397 5397 /* There might be a specific surface ID at the start of the … … 5438 5438 * @callback_method_impl{FNDBGFHANDLERDEV, "vmsvga3dsurf"} 5439 5439 */ 5440 DECLCALLBACK(void) vmsvgaR3Info3dSurfaceBmp(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)5440 static DECLCALLBACK(void) vmsvgaR3Info3dSurfaceBmp(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 5441 5441 { 5442 5442 /* pszArg = "sid[>dir]" … … 5463 5463 * @callback_method_impl{FNDBGFHANDLERDEV, "vmsvga3dctx"} 5464 5464 */ 5465 DECLCALLBACK(void) vmsvgaR3Info3dContext(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)5465 static DECLCALLBACK(void) vmsvgaR3Info3dContext(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 5466 5466 { 5467 5467 /* There might be a specific surface ID at the start of the -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r99688 r99775 3225 3225 * @param pvUser pointer to pState structure 3226 3226 */ 3227 DECLCALLBACK(int) vmsvga3dXEventThread(RTTHREAD hThreadSelf, void *pvUser)3227 static DECLCALLBACK(int) vmsvga3dXEventThread(RTTHREAD hThreadSelf, void *pvUser) 3228 3228 { 3229 3229 RT_NOREF(hThreadSelf); … … 5597 5597 } 5598 5598 5599 uint32_t vmsvga3dSVGA3dColor2RGBA(SVGA3dColor value) 5599 #if 0 /* unused */ 5600 static uint32_t vmsvga3dSVGA3dColor2RGBA(SVGA3dColor value) 5600 5601 { 5601 5602 /* flip the red and blue bytes */ … … 5604 5605 return (value & 0xff00ff00) | red | (blue << 16); 5605 5606 } 5607 #endif 5606 5608 5607 5609 static DECLCALLBACK(int) vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState) … … 6426 6428 6427 6429 /* Convert VMWare vertex declaration to its OpenGL equivalent. */ 6428 int vmsvga3dVertexDecl2OGL(SVGA3dVertexArrayIdentity &identity, GLint &size, GLenum &type, GLboolean &normalized, uint32_t &cbAttrib)6430 static int vmsvga3dVertexDecl2OGL(SVGA3dVertexArrayIdentity &identity, GLint &size, GLenum &type, GLboolean &normalized, uint32_t &cbAttrib) 6429 6431 { 6430 6432 normalized = GL_FALSE; … … 6691 6693 /* Convert VMWare primitive type to its OpenGL equivalent. */ 6692 6694 /* Calculate the vertex count based on the primitive type and nr of primitives. */ 6693 int vmsvga3dPrimitiveType2OGL(SVGA3dPrimitiveType PrimitiveType, GLenum *pMode, uint32_t cPrimitiveCount, uint32_t *pcVertices)6695 static int vmsvga3dPrimitiveType2OGL(SVGA3dPrimitiveType PrimitiveType, GLenum *pMode, uint32_t cPrimitiveCount, uint32_t *pcVertices) 6694 6696 { 6695 6697 switch (PrimitiveType) -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r99739 r99775 576 576 } 577 577 578 int vga_ioport_invalid(PVGASTATE pThis, uint32_t addr)578 static int vga_ioport_invalid(PVGASTATE pThis, uint32_t addr) 579 579 { 580 580 if (pThis->msr & MSR_COLOR_EMULATION) { -
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp
r98103 r99775 1667 1667 } 1668 1668 1669 int hgsmiCompleteGuestCommand(PHGSMIINSTANCE pIns, HGSMIOFFSET offBuffer, bool fDoIrq)1669 static int hgsmiCompleteGuestCommand(PHGSMIINSTANCE pIns, HGSMIOFFSET offBuffer, bool fDoIrq) 1670 1670 { 1671 1671 int rc = hgsmiGuestCommandComplete(pIns, offBuffer); -
trunk/src/VBox/Devices/Input/DevPS2M.cpp
r98103 r99775 423 423 424 424 /* Determine whether a reporting rate is one of the valid ones. */ 425 bool ps2mIsRateSupported(uint8_t rate)425 static bool ps2mIsRateSupported(uint8_t rate) 426 426 { 427 427 static uint8_t aValidRates[] = { 10, 20, 40, 60, 80, 100, 200 }; -
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r98121 r99775 1580 1580 * @param fOn New LED state. 1581 1581 */ 1582 void virtioNetR3SetReadLed(PVIRTIONETR3 pThisR3, bool fOn)1582 static void virtioNetR3SetReadLed(PVIRTIONETR3 pThisR3, bool fOn) 1583 1583 { 1584 1584 if (fOn) … … 1595 1595 * @param fOn New LED state. 1596 1596 */ 1597 void virtioNetR3SetWriteLed(PVIRTIONETR3 pThisR3, bool fOn)1597 static void virtioNetR3SetWriteLed(PVIRTIONETR3 pThisR3, bool fOn) 1598 1598 { 1599 1599 if (fOn) -
trunk/src/VBox/Devices/Network/DrvCloudTunnel.cpp
r98103 r99775 60 60 # define INVALID_SOCKET -1 61 61 # define SOCKET_ERROR -1 62 intWSAGetLastError() { return errno; }62 DECLINLINE(int) WSAGetLastError() { return errno; } 63 63 #endif 64 64 … … 1265 1265 1266 1266 1267 DECL_NOTHROW(void) drvCloudTunnelSshLogCallback(int priority, const char *function, const char *buffer, void *userdata)1267 static DECL_NOTHROW(void) drvCloudTunnelSshLogCallback(int priority, const char *function, const char *buffer, void *userdata) 1268 1268 { 1269 1269 PDRVCLOUDTUNNEL pThis = (PDRVCLOUDTUNNEL)userdata; -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r99739 r99775 972 972 973 973 974 #if 0 /* unused */ 974 975 /** 975 976 * Function called by slirp to check if it's possible to feed incoming data to the network port. … … 983 984 } 984 985 985 void slirp_push_recv_thread(void *pvUser)986 static void slirp_push_recv_thread(void *pvUser) 986 987 { 987 988 PDRVNAT pThis = (PDRVNAT)pvUser; … … 989 990 drvNATUrgRecvWakeup(pThis->pDrvIns, pThis->pUrgRecvThread); 990 991 } 992 #endif 991 993 992 994 void slirp_urg_output(void *pvUser, struct mbuf *m, const uint8_t *pu8Buf, int cb) -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r99739 r99775 3438 3438 * @todo Generate better SAS addresses. (Request a block from SUN probably) 3439 3439 */ 3440 voidlsilogicSASAddressGenerate(PSASADDRESS pSASAddress, unsigned iId)3440 DECLINLINE(void) lsilogicSASAddressGenerate(PSASADDRESS pSASAddress, unsigned iId) 3441 3441 { 3442 3442 pSASAddress->u8Address[0] = (0x5 << 5); -
trunk/src/VBox/Devices/Storage/DrvRamDisk.cpp
r99739 r99775 725 725 * @param rc Status code to check. 726 726 */ 727 bool drvramdiskMediaExIoReqIsRedoSetWarning(PDRVRAMDISK pThis, int rc)727 static bool drvramdiskMediaExIoReqIsRedoSetWarning(PDRVRAMDISK pThis, int rc) 728 728 { 729 729 if (rc == VERR_NO_MEMORY) -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r99739 r99775 2331 2331 * @param rc Status code to check. 2332 2332 */ 2333 bool drvvdMediaExIoReqIsRedoSetWarning(PVBOXDISK pThis, int rc)2333 static bool drvvdMediaExIoReqIsRedoSetWarning(PVBOXDISK pThis, int rc) 2334 2334 { 2335 2335 if (rc == VERR_DISK_FULL) -
trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp
r98661 r99775 356 356 #ifdef IN_RING3 357 357 358 void virtioCoreR3FeatureDump(VIRTIOCORE *pVirtio, PCDBGFINFOHLP pHlp, const VIRTIO_FEATURES_LIST *s_aFeatures, int cFeatures, int fBanner)358 static void virtioCoreR3FeatureDump(VIRTIOCORE *pVirtio, PCDBGFINFOHLP pHlp, const VIRTIO_FEATURES_LIST *s_aFeatures, int cFeatures, int fBanner) 359 359 { 360 360 #define MAXLINE 80
Note:
See TracChangeset
for help on using the changeset viewer.