Changeset 105670 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c
- Timestamp:
- Aug 14, 2024 1:16:30 PM (4 months ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-159268 /vendor/edk2/current 103735-103757,103769-103776,129194-164365
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c
r99404 r105670 227 227 @param Mem The pointer to host memory. 228 228 @param Size The size of the memory region. 229 @param Alignment Alignment the size to USBHC_MEM_UNIT bytes. 229 230 230 231 @return The pci memory address … … 235 236 IN USBHC_MEM_POOL *Pool, 236 237 IN VOID *Mem, 237 IN UINTN Size 238 IN UINTN Size, 239 IN BOOLEAN Alignment 238 240 ) 239 241 { … … 244 246 UINTN Offset; 245 247 246 Head = Pool->Head; 247 AllocSize = USBHC_MEM_ROUND (Size); 248 Head = Pool->Head; 249 if (Alignment) { 250 AllocSize = USBHC_MEM_ROUND (Size); 251 } else { 252 AllocSize = Size; 253 } 248 254 249 255 if (Mem == NULL) { … … 276 282 @param Mem The pointer to pci memory. 277 283 @param Size The size of the memory region. 284 @param Alignment Alignment the size to USBHC_MEM_UNIT bytes. 278 285 279 286 @return The host memory address … … 284 291 IN USBHC_MEM_POOL *Pool, 285 292 IN VOID *Mem, 286 IN UINTN Size 293 IN UINTN Size, 294 IN BOOLEAN Alignment 287 295 ) 288 296 { … … 293 301 UINTN Offset; 294 302 295 Head = Pool->Head; 296 AllocSize = USBHC_MEM_ROUND (Size); 303 Head = Pool->Head; 304 if (Alignment) { 305 AllocSize = USBHC_MEM_ROUND (Size); 306 } else { 307 AllocSize = Size; 308 } 297 309 298 310 if (Mem == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.