Changeset 11219 in vbox for trunk/include
- Timestamp:
- Aug 7, 2008 6:05:58 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34273
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmdev.h
r11169 r11219 941 941 * @param pDevIns Device instance of the APIC. 942 942 */ 943 DECLR3CALLBACKMEMBER(int, pfnGetInterrupt HC,(PPDMDEVINS pDevIns));943 DECLR3CALLBACKMEMBER(int, pfnGetInterruptR3,(PPDMDEVINS pDevIns)); 944 944 945 945 /** … … 949 949 * @param pDevIns Device instance of the APIC. 950 950 */ 951 DECLR3CALLBACKMEMBER(bool, pfnHasPendingIrq HC,(PPDMDEVINS pDevIns));951 DECLR3CALLBACKMEMBER(bool, pfnHasPendingIrqR3,(PPDMDEVINS pDevIns)); 952 952 953 953 /** … … 957 957 * @param u64Base The new base. 958 958 */ 959 DECLR3CALLBACKMEMBER(void, pfnSetBase HC,(PPDMDEVINS pDevIns, uint64_t u64Base));959 DECLR3CALLBACKMEMBER(void, pfnSetBaseR3,(PPDMDEVINS pDevIns, uint64_t u64Base)); 960 960 961 961 /** … … 965 965 * @param pDevIns Device instance of the APIC. 966 966 */ 967 DECLR3CALLBACKMEMBER(uint64_t, pfnGetBase HC,(PPDMDEVINS pDevIns));967 DECLR3CALLBACKMEMBER(uint64_t, pfnGetBaseR3,(PPDMDEVINS pDevIns)); 968 968 969 969 /** … … 973 973 * @param u8TPR The new TPR. 974 974 */ 975 DECLR3CALLBACKMEMBER(void, pfnSetTPR HC,(PPDMDEVINS pDevIns, uint8_t u8TPR));975 DECLR3CALLBACKMEMBER(void, pfnSetTPRR3,(PPDMDEVINS pDevIns, uint8_t u8TPR)); 976 976 977 977 /** … … 982 982 * @param pfPending Pending interrupt state (out). 983 983 */ 984 DECLR3CALLBACKMEMBER(uint8_t, pfnGetTPR HC,(PPDMDEVINS pDevIns));984 DECLR3CALLBACKMEMBER(uint8_t, pfnGetTPRR3,(PPDMDEVINS pDevIns)); 985 985 986 986 /** … … 1002 1002 * @param u8TriggerMode See APIC implementation. 1003 1003 */ 1004 DECLR3CALLBACKMEMBER(void, pfnBusDeliver HC,(PPDMDEVINS pDevIns, uint8_t u8Dest, uint8_t u8DestMode, uint8_t u8DeliveryMode,1004 DECLR3CALLBACKMEMBER(void, pfnBusDeliverR3,(PPDMDEVINS pDevIns, uint8_t u8Dest, uint8_t u8DestMode, uint8_t u8DeliveryMode, 1005 1005 uint8_t iVector, uint8_t u8Polarity, uint8_t u8TriggerMode)); 1006 1006 1007 /** The name of the GC GetInterrupt entry point. */1008 const char *pszGetInterrupt GC;1009 /** The name of the GC HasPendingIrq entry point. */1010 const char *pszHasPendingIrq GC;1011 /** The name of the GC SetBase entry point. */1012 const char *pszSetBase GC;1013 /** The name of the GC GetBase entry point. */1014 const char *pszGetBase GC;1015 /** The name of the GC SetTPR entry point. */1016 const char *pszSetTPR GC;1017 /** The name of the GC GetTPR entry point. */1018 const char *pszGetTPR GC;1019 /** The name of the GC BusDeliver entry point. */1020 const char *pszBusDeliver GC;1007 /** The name of the RC GetInterrupt entry point. */ 1008 const char *pszGetInterruptRC; 1009 /** The name of the RC HasPendingIrq entry point. */ 1010 const char *pszHasPendingIrqRC; 1011 /** The name of the RC SetBase entry point. */ 1012 const char *pszSetBaseRC; 1013 /** The name of the RC GetBase entry point. */ 1014 const char *pszGetBaseRC; 1015 /** The name of the RC SetTPR entry point. */ 1016 const char *pszSetTPRRC; 1017 /** The name of the RC GetTPR entry point. */ 1018 const char *pszGetTPRRC; 1019 /** The name of the RC BusDeliver entry point. */ 1020 const char *pszBusDeliverRC; 1021 1021 1022 1022 /** The name of the R0 GetInterrupt entry point. */ … … 1044 1044 1045 1045 /** 1046 * APIC GC helpers.1047 */ 1048 typedef struct PDMAPICHLP GC1049 { 1050 /** Structure version. PDM_APICHLP GC_VERSION defines the current version. */1046 * APIC RC helpers. 1047 */ 1048 typedef struct PDMAPICHLPRC 1049 { 1050 /** Structure version. PDM_APICHLPRC_VERSION defines the current version. */ 1051 1051 uint32_t u32Version; 1052 1052 … … 1056 1056 * @param pDevIns Device instance of the APIC. 1057 1057 */ 1058 DECL GCCALLBACKMEMBER(void, pfnSetInterruptFF,(PPDMDEVINS pDevIns));1058 DECLRCCALLBACKMEMBER(void, pfnSetInterruptFF,(PPDMDEVINS pDevIns)); 1059 1059 1060 1060 /** … … 1063 1063 * @param pDevIns Device instance of the APIC. 1064 1064 */ 1065 DECL GCCALLBACKMEMBER(void, pfnClearInterruptFF,(PPDMDEVINS pDevIns));1065 DECLRCCALLBACKMEMBER(void, pfnClearInterruptFF,(PPDMDEVINS pDevIns)); 1066 1066 1067 1067 /** … … 1071 1071 * @param fEnabled If true the bit is set, else cleared. 1072 1072 */ 1073 DECL GCCALLBACKMEMBER(void, pfnChangeFeature,(PPDMDEVINS pDevIns, bool fEnabled));1073 DECLRCCALLBACKMEMBER(void, pfnChangeFeature,(PPDMDEVINS pDevIns, bool fEnabled)); 1074 1074 1075 1075 /** … … 1081 1081 * @param rc What to return if we fail to acquire the lock. 1082 1082 */ 1083 DECL GCCALLBACKMEMBER(int, pfnLock,(PPDMDEVINS pDevIns, int rc));1083 DECLRCCALLBACKMEMBER(int, pfnLock,(PPDMDEVINS pDevIns, int rc)); 1084 1084 1085 1085 /** … … 1088 1088 * @param pDevIns The APIC device instance. 1089 1089 */ 1090 DECL GCCALLBACKMEMBER(void, pfnUnlock,(PPDMDEVINS pDevIns));1090 DECLRCCALLBACKMEMBER(void, pfnUnlock,(PPDMDEVINS pDevIns)); 1091 1091 1092 1092 /** Just a safety precaution. */ 1093 1093 uint32_t u32TheEnd; 1094 } PDMAPICHLP GC;1094 } PDMAPICHLPRC; 1095 1095 /** Pointer to APIC GC helpers. */ 1096 typedef RCPTRTYPE(PDMAPICHLP GC *) PPDMAPICHLPGC;1096 typedef RCPTRTYPE(PDMAPICHLPRC *) PPDMAPICHLPRC; 1097 1097 /** Pointer to const APIC helpers. */ 1098 typedef RCPTRTYPE(const PDMAPICHLP GC *) PCPDMAPICHLPGC;1099 1100 /** Current PDMAPICHLP GC version number. */1101 #define PDM_APICHLP GC_VERSION 0x600100001098 typedef RCPTRTYPE(const PDMAPICHLPRC *) PCPDMAPICHLPRC; 1099 1100 /** Current PDMAPICHLPRC version number. */ 1101 #define PDM_APICHLPRC_VERSION 0x60010000 1102 1102 1103 1103 … … 1161 1161 1162 1162 /** 1163 * APIC HChelpers.1163 * APIC R3 helpers. 1164 1164 */ 1165 1165 typedef struct PDMAPICHLPR3 … … 1208 1208 1209 1209 /** 1210 * Gets the address of the GC APIC helpers.1210 * Gets the address of the RC APIC helpers. 1211 1211 * 1212 1212 * This should be called at both construction and relocation time 1213 * to obtain the correct address of the GC helpers.1213 * to obtain the correct address of the RC helpers. 1214 1214 * 1215 1215 * @returns GC pointer to the APIC helpers. 1216 1216 * @param pDevIns Device instance of the APIC. 1217 1217 */ 1218 DECLR3CALLBACKMEMBER(PCPDMAPICHLP GC, pfnGetGCHelpers,(PPDMDEVINS pDevIns));1218 DECLR3CALLBACKMEMBER(PCPDMAPICHLPRC, pfnGetRCHelpers,(PPDMDEVINS pDevIns)); 1219 1219 1220 1220 /** … … 1256 1256 * @param iLevel IRQ level. See the PDM_IRQ_LEVEL_* \#defines. 1257 1257 */ 1258 DECLR3CALLBACKMEMBER(void, pfnSetIrq HC,(PPDMDEVINS pDevIns, int iIrq, int iLevel));1258 DECLR3CALLBACKMEMBER(void, pfnSetIrqR3,(PPDMDEVINS pDevIns, int iIrq, int iLevel)); 1259 1259 1260 1260 /** The name of the GC SetIrq entry point. */ 1261 const char *pszSetIrq GC;1261 const char *pszSetIrqRC; 1262 1262 1263 1263 /** The name of the R0 SetIrq entry point. */ … … 1272 1272 1273 1273 /** 1274 * IOAPIC GC helpers.1275 */ 1276 typedef struct PDMIOAPICHLP GC1277 { 1278 /** Structure version. PDM_IOAPICHLP GC_VERSION defines the current version. */1274 * IOAPIC RC helpers. 1275 */ 1276 typedef struct PDMIOAPICHLPRC 1277 { 1278 /** Structure version. PDM_IOAPICHLPRC_VERSION defines the current version. */ 1279 1279 uint32_t u32Version; 1280 1280 … … 1293 1293 * @param u8TriggerMode See APIC implementation. 1294 1294 */ 1295 DECL GCCALLBACKMEMBER(void, pfnApicBusDeliver,(PPDMDEVINS pDevIns, uint8_t u8Dest, uint8_t u8DestMode, uint8_t u8DeliveryMode,1295 DECLRCCALLBACKMEMBER(void, pfnApicBusDeliver,(PPDMDEVINS pDevIns, uint8_t u8Dest, uint8_t u8DestMode, uint8_t u8DeliveryMode, 1296 1296 uint8_t iVector, uint8_t u8Polarity, uint8_t u8TriggerMode)); 1297 1297 … … 1304 1304 * @param rc What to return if we fail to acquire the lock. 1305 1305 */ 1306 DECL GCCALLBACKMEMBER(int, pfnLock,(PPDMDEVINS pDevIns, int rc));1306 DECLRCCALLBACKMEMBER(int, pfnLock,(PPDMDEVINS pDevIns, int rc)); 1307 1307 1308 1308 /** … … 1311 1311 * @param pDevIns The IOAPIC device instance. 1312 1312 */ 1313 DECL GCCALLBACKMEMBER(void, pfnUnlock,(PPDMDEVINS pDevIns));1313 DECLRCCALLBACKMEMBER(void, pfnUnlock,(PPDMDEVINS pDevIns)); 1314 1314 1315 1315 /** Just a safety precaution. */ 1316 1316 uint32_t u32TheEnd; 1317 } PDMIOAPICHLP GC;1318 /** Pointer to IOAPIC GC helpers. */1319 typedef RCPTRTYPE(PDM APICHLPGC *)PPDMIOAPICHLPGC;1317 } PDMIOAPICHLPRC; 1318 /** Pointer to IOAPIC RC helpers. */ 1319 typedef RCPTRTYPE(PDMIOAPICHLPRC *) PPDMIOAPICHLPRC; 1320 1320 /** Pointer to const IOAPIC helpers. */ 1321 typedef RCPTRTYPE(const PDMIOAPICHLP GC *) PCPDMIOAPICHLPGC;1322 1323 /** Current PDMIOAPICHLP GC version number. */1324 #define PDM_IOAPICHLP GC_VERSION 0xfe0100001321 typedef RCPTRTYPE(const PDMIOAPICHLPRC *) PCPDMIOAPICHLPRC; 1322 1323 /** Current PDMIOAPICHLPRC version number. */ 1324 #define PDM_IOAPICHLPRC_VERSION 0xfe010000 1325 1325 1326 1326 … … 1371 1371 } PDMIOAPICHLPR0; 1372 1372 /** Pointer to IOAPIC R0 helpers. */ 1373 typedef R0PTRTYPE(PDM APICHLPGC*) PPDMIOAPICHLPR0;1373 typedef R0PTRTYPE(PDMIOAPICHLPR0 *) PPDMIOAPICHLPR0; 1374 1374 /** Pointer to const IOAPIC helpers. */ 1375 1375 typedef R0PTRTYPE(const PDMIOAPICHLPR0 *) PCPDMIOAPICHLPR0; … … 1421 1421 1422 1422 /** 1423 * Gets the address of the GC IOAPIC helpers.1423 * Gets the address of the RC IOAPIC helpers. 1424 1424 * 1425 1425 * This should be called at both construction and relocation time 1426 * to obtain the correct address of the GC helpers.1427 * 1428 * @returns GC pointer to the IOAPIC helpers.1426 * to obtain the correct address of the RC helpers. 1427 * 1428 * @returns RC pointer to the IOAPIC helpers. 1429 1429 * @param pDevIns Device instance of the IOAPIC. 1430 1430 */ 1431 DECLR3CALLBACKMEMBER(PCPDMIOAPICHLP GC, pfnGetGCHelpers,(PPDMDEVINS pDevIns));1431 DECLR3CALLBACKMEMBER(PCPDMIOAPICHLPRC, pfnGetRCHelpers,(PPDMDEVINS pDevIns)); 1432 1432 1433 1433 /**
Note:
See TracChangeset
for help on using the changeset viewer.