Changeset 107064 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Nov 20, 2024 8:21:23 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/acpi.cpp
r107063 r107064 750 750 751 751 752 RTDECL(int) RTAcpiTblNullNameAppend(RTACPITBL hAcpiTbl) 753 { 754 PRTACPITBLINT pThis = hAcpiTbl; 755 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 756 757 rtAcpiTblAppendByte(pThis, 0x00); 758 return pThis->rcErr; 759 } 760 761 762 RTDECL(int) RTAcpiTblNameStringAppend(RTACPITBL hAcpiTbl, const char *pszName) 763 { 764 PRTACPITBLINT pThis = hAcpiTbl; 765 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 766 767 rtAcpiTblAppendNameString(pThis, pszName); 768 return pThis->rcErr; 769 } 770 771 752 772 RTDECL(int) RTAcpiTblStringAppend(RTACPITBL hAcpiTbl, const char *psz) 753 773 { … … 849 869 case kAcpiStmt_Break: bOp = ACPI_AML_BYTE_CODE_OP_BREAK; break; 850 870 case kAcpiStmt_Continue: bOp = ACPI_AML_BYTE_CODE_OP_CONTINUE; break; 871 case kAcpiStmt_Add: bOp = ACPI_AML_BYTE_CODE_OP_ADD; break; 872 case kAcpiStmt_Subtract: bOp = ACPI_AML_BYTE_CODE_OP_SUBTRACT; break; 873 case kAcpiStmt_And: bOp = ACPI_AML_BYTE_CODE_OP_AND; break; 874 case kAcpiStmt_Nand: bOp = ACPI_AML_BYTE_CODE_OP_NAND; break; 875 case kAcpiStmt_Or: bOp = ACPI_AML_BYTE_CODE_OP_OR; break; 876 case kAcpiStmt_Xor: bOp = ACPI_AML_BYTE_CODE_OP_XOR; break; 877 case kAcpiStmt_Not: bOp = ACPI_AML_BYTE_CODE_OP_NOT; break; 878 case kAcpiStmt_Store: bOp = ACPI_AML_BYTE_CODE_OP_STORE; break; 879 case kAcpiStmt_Index: bOp = ACPI_AML_BYTE_CODE_OP_INDEX; break; 880 case kAcpiStmt_DerefOf: bOp = ACPI_AML_BYTE_CODE_OP_DEREF_OF; break; 851 881 default: 852 882 AssertFailedReturn(VERR_INVALID_PARAMETER); … … 977 1007 978 1008 979 RTDECL(int) RTAcpiTblOpRegionAppend(RTACPITBL hAcpiTbl, const char *pszName, RTACPIOPREGIONSPACE enmSpace, 980 uint64_t offRegion, uint64_t cbRegion) 1009 RTDECL(int) RTAcpiTblOpRegionAppendEx(RTACPITBL hAcpiTbl, const char *pszName, RTACPIOPREGIONSPACE enmSpace) 981 1010 { 982 1011 PRTACPITBLINT pThis = hAcpiTbl; … … 1006 1035 } 1007 1036 rtAcpiTblAppendByte(pThis, bRegionSpace); 1037 return pThis->rcErr; 1038 } 1039 1040 1041 RTDECL(int) RTAcpiTblOpRegionAppend(RTACPITBL hAcpiTbl, const char *pszName, RTACPIOPREGIONSPACE enmSpace, 1042 uint64_t offRegion, uint64_t cbRegion) 1043 { 1044 PRTACPITBLINT pThis = hAcpiTbl; 1045 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 1046 1047 int rc = RTAcpiTblOpRegionAppendEx(pThis, pszName, enmSpace); 1048 if (RT_FAILURE(rc)) 1049 return rc; 1050 1008 1051 RTAcpiTblIntegerAppend(pThis, offRegion); 1009 1052 RTAcpiTblIntegerAppend(pThis, cbRegion);
Note:
See TracChangeset
for help on using the changeset viewer.