diff --git a/src/Common/CxbxCommon.cpp b/src/Common/CxbxCommon.cpp index 81f345042..f65b2553c 100644 --- a/src/Common/CxbxCommon.cpp +++ b/src/Common/CxbxCommon.cpp @@ -34,6 +34,9 @@ // * // ****************************************************************** +// Acknowledgment: some the functions present are from XQEMU (GPLv2) +// https://xqemu.com/ + // The intent of this file is to add general functions which are not kernel specific (for those CxbxKrnl.h should be used instead) #include "CxbxCommon.h" @@ -43,10 +46,6 @@ #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #endif - -// Acknowledgment: some the functions present are from XQEMU (GPLv2) -// https://xqemu.com/ - // Disable a compiler warning relative to uint64_t -> uint32_t conversions in Muldiv64. This function is taken from // XQEMU so it should be safe regardless diff --git a/src/devices/usb/Hub.cpp b/src/devices/usb/Hub.cpp index c8014d9ca..c3beb4c22 100644 --- a/src/devices/usb/Hub.cpp +++ b/src/devices/usb/Hub.cpp @@ -34,6 +34,9 @@ // * // ****************************************************************** +// Acknowledgment: XQEMU (GPLv2) +// https://xqemu.com/ + #define _XBOXKRNL_DEFEXTRN_ #define LOG_PREFIX CXBXR_MODULE::HUB @@ -87,10 +90,6 @@ namespace xboxkrnl #define PORT_C_RESET 20 -// Acknowledgment: XQEMU (GPLv2) -// https://xqemu.com/ - - // To avoid including Xbox.h extern USBDevice* g_USB0; diff --git a/src/devices/usb/OHCI.cpp b/src/devices/usb/OHCI.cpp index 6984cea5f..a88169bff 100644 --- a/src/devices/usb/OHCI.cpp +++ b/src/devices/usb/OHCI.cpp @@ -34,6 +34,9 @@ // * // ****************************************************************** +// Acknowledgment: XQEMU (GPLv2) +// https://xqemu.com/ + #define _XBOXKRNL_DEFEXTRN_ #define LOG_PREFIX CXBXR_MODULE::OHCI @@ -202,10 +205,6 @@ namespace xboxkrnl #define OHCI_OFFSET_MASK 0xFFF -// Acknowledgment: XQEMU (GPLv2) -// https://xqemu.com/ - - OHCI::OHCI(USBDevice* UsbObj) { int offset = 0; diff --git a/src/devices/usb/USBDevice.cpp b/src/devices/usb/USBDevice.cpp index 3754ce3c5..b251c56ca 100644 --- a/src/devices/usb/USBDevice.cpp +++ b/src/devices/usb/USBDevice.cpp @@ -34,6 +34,9 @@ // * // ****************************************************************** +// Acknowledgment: XQEMU (GPLv2) +// https://xqemu.com/ + #define _XBOXKRNL_DEFEXTRN_ #define LOG_PREFIX CXBXR_MODULE::USB @@ -57,10 +60,6 @@ namespace xboxkrnl #define SETUP_STATE_PARAM 4 -// Acknowledgment: XQEMU (GPLv2) -// https://xqemu.com/ - - void USBDevice::Init() { PCIBarRegister r; diff --git a/src/devices/usb/UsbCommon.h b/src/devices/usb/UsbCommon.h index 4055ce924..9d96d42d9 100644 --- a/src/devices/usb/UsbCommon.h +++ b/src/devices/usb/UsbCommon.h @@ -34,6 +34,9 @@ // * // ****************************************************************** +// Acknowledgment: some the functions present are from XQEMU (GPLv2) +// https://xqemu.com/ + #ifndef USBCOMMON_H_ #define USBCOMMON_H_ diff --git a/src/devices/usb/XidGamepad.cpp b/src/devices/usb/XidGamepad.cpp index 9301237ac..71761d0e7 100644 --- a/src/devices/usb/XidGamepad.cpp +++ b/src/devices/usb/XidGamepad.cpp @@ -34,6 +34,9 @@ // * // ****************************************************************** +// Acknowledgment: XQEMU (GPLv2) +// https://xqemu.com/ + #define _XBOXKRNL_DEFEXTRN_ #define LOG_PREFIX CXBXR_MODULE::XIDCTRL @@ -60,10 +63,6 @@ namespace xboxkrnl #define XID_GET_CAPABILITIES 0x01 -// Acknowledgment: XQEMU (GPLv2) -// https://xqemu.com/ - - // To avoid including Xbox.h extern USBDevice* g_USB0;