1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /****************************************************************
5 ****************************************************************/
9 OperationRegion(DBG, SystemIO, 0x0402, 0x01)
10 Field(DBG, ByteAcc, NoLock, Preserve) {
14 /* Debug method - use this method to send output to the QEMU
15 * BIOS debug port. This method handles strings, integers,
16 * and buffers. For example: DBUG("abc") DBUG(0x123) */
18 ToHexString(Arg0, Local0)
19 ToBuffer(Local0, Local0)
20 Local1 = SizeOf(Local0) - 1
22 While (Local2 < Local1) {
23 DBGB = DerefOf( Local0 [Local2])