Changeset 73259 in vbox for trunk/src/VBox/Devices/Serial/UartCore.h
- Timestamp:
- Jul 20, 2018 10:14:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/UartCore.h
r73243 r73259 23 23 #include <VBox/vmm/pdmdev.h> 24 24 #include <VBox/vmm/pdmserialifs.h> 25 #include <VBox/vmm/ssm.h> 25 26 #include <iprt/assert.h> 26 27 … … 30 31 * Defined Constants And Macros * 31 32 *********************************************************************************************************************************/ 33 34 /** The current serial code saved state version. */ 35 #define UART_SAVED_STATE_VERSION 6 36 /** Saved state version of the legacy code which got replaced after 5.2. */ 37 #define UART_SAVED_STATE_VERSION_LEGACY_CODE 5 38 /** Includes some missing bits from the previous saved state. */ 39 #define UART_SAVED_STATE_VERSION_MISSING_BITS 4 40 /** Saved state version when only the 16450 variant was implemented. */ 41 #define UART_SAVED_STATE_VERSION_16450 3 32 42 33 43 /** Maximum size of a FIFO. */ … … 278 288 DECLHIDDEN(void) uartR3Relocate(PUARTCORE pThis, RTGCINTPTR offDelta); 279 289 290 /** 291 * Saves the UART state to the given SSM handle. 292 * 293 * @returns VBox status code. 294 * @param pThis The UART core instance. 295 * @param pSSM The SSM handle to save to. 296 */ 297 DECLHIDDEN(int) uartR3SaveExec(PUARTCORE pThis, PSSMHANDLE pSSM); 298 299 /** 300 * Loads the UART state from the given SSM handle. 301 * 302 * @returns VBox status code. 303 * @param pThis The UART core instance. 304 * @param pSSM The SSM handle to load from. 305 * @param uVersion Saved state version. 306 * @param uPass The SSM pass the call is done in. 307 * @param puIrq Where to store the IRQ value for legacy 308 * saved states - optional. 309 * @param pPortBase Where to store the I/O port base for legacy 310 * saved states - optional. 311 */ 312 DECLHIDDEN(int) uartR3LoadExec(PUARTCORE pThis, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass, 313 uint8_t *puIrq, RTIOPORT *pPortBase); 314 315 /** 316 * Called when loading the state completed, updates the parameters of any driver underneath. 317 * 318 * @returns VBox status code. 319 * @param pThis The UART core instance. 320 * @param pSSM The SSM handle. 321 */ 322 DECLHIDDEN(int) uartR3LoadDone(PUARTCORE pThis, PSSMHANDLE pSSM); 323 280 324 # endif 281 325
Note:
See TracChangeset
for help on using the changeset viewer.