VirtualBox

Changeset 80531 in vbox for trunk/src/VBox/Devices/Parallel


Ignore:
Timestamp:
Sep 1, 2019 11:03:34 PM (5 years ago)
Author:
vboxsync
Message:

VMM,Devices: Some PDM device model refactoring. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Parallel/DevParallel.cpp

    r76553 r80531  
    807807}
    808808
     809#endif /* IN_RING3 */
     810
    809811/**
    810812 * The device registration structure.
     
    812814const PDMDEVREG g_DeviceParallelPort =
    813815{
    814     /* u32Version */
    815     PDM_DEVREG_VERSION,
    816     /* szName */
    817     "parallel",
    818     /* szRCMod */
    819     "VBoxDDRC.rc",
    820     /* szR0Mod */
    821     "VBoxDDR0.r0",
    822     /* pszDescription */
    823     "Parallel Communication Port",
    824     /* fFlags */
    825     PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0,
    826     /* fClass */
    827     PDM_DEVREG_CLASS_PARALLEL,
    828     /* cMaxInstances */
    829     2,
    830     /* cbInstance */
    831     sizeof(PARALLELPORT),
    832     /* pfnConstruct */
    833     parallelR3Construct,
    834     /* pfnDestruct */
    835     NULL,
    836     /* pfnRelocate */
    837     parallelR3Relocate,
    838     /* pfnMemSetup */
    839     NULL,
    840     /* pfnPowerOn */
    841     NULL,
    842     /* pfnReset */
    843     NULL,
    844     /* pfnSuspend */
    845     NULL,
    846     /* pfnResume */
    847     NULL,
    848     /* pfnAttach */
    849     NULL,
    850     /* pfnDetach */
    851     NULL,
    852     /* pfnQueryInterface. */
    853     NULL,
    854     /* pfnInitComplete */
    855     NULL,
    856     /* pfnPowerOff */
    857     NULL,
    858     /* pfnSoftReset */
    859     NULL,
    860     /* u32VersionEnd */
    861     PDM_DEVREG_VERSION
     816    /* .u32Version = */             PDM_DEVREG_VERSION,
     817    /* .uReserved0 = */             0,
     818    /* .szName = */                 "parallel",
     819    /* .fFlags = */                 PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0,
     820    /* .fClass = */                 PDM_DEVREG_CLASS_PARALLEL,
     821    /* .cMaxInstances = */          2,
     822    /* .uSharedVersion = */         42,
     823    /* .cbInstanceShared = */       sizeof(PARALLELPORT),
     824    /* .cbInstanceCC = */           0,
     825    /* .cbInstanceRC = */           0,
     826    /* .uReserved1 = */             0,
     827    /* .pszDescription = */         "Parallel Communication Port",
     828#if defined(IN_RING3)
     829    /* .pszRCMod = */               "VBoxDDRC.rc",
     830    /* .pszR0Mod = */               "VBoxDDR0.r0",
     831    /* .pfnConstruct = */           parallelR3Construct,
     832    /* .pfnDestruct = */            NULL,
     833    /* .pfnRelocate = */            parallelR3Relocate,
     834    /* .pfnMemSetup = */            NULL,
     835    /* .pfnPowerOn = */             NULL,
     836    /* .pfnReset = */               NULL,
     837    /* .pfnSuspend = */             NULL,
     838    /* .pfnResume = */              NULL,
     839    /* .pfnAttach = */              NULL,
     840    /* .pfnDetach = */              NULL,
     841    /* .pfnQueryInterface = */      NULL,
     842    /* .pfnInitComplete = */        NULL,
     843    /* .pfnPowerOff = */            NULL,
     844    /* .pfnSoftReset = */           NULL,
     845    /* .pfnReserved0 = */           NULL,
     846    /* .pfnReserved1 = */           NULL,
     847    /* .pfnReserved2 = */           NULL,
     848    /* .pfnReserved3 = */           NULL,
     849    /* .pfnReserved4 = */           NULL,
     850    /* .pfnReserved5 = */           NULL,
     851    /* .pfnReserved6 = */           NULL,
     852    /* .pfnReserved7 = */           NULL,
     853#elif defined(IN_RING0)
     854    /* .pfnEarlyConstruct = */      NULL,
     855    /* .pfnConstruct = */           NULL,
     856    /* .pfnDestruct = */            NULL,
     857    /* .pfnFinalDestruct = */       NULL,
     858    /* .pfnRequest = */             NULL,
     859    /* .pfnReserved0 = */           NULL,
     860    /* .pfnReserved1 = */           NULL,
     861    /* .pfnReserved2 = */           NULL,
     862    /* .pfnReserved3 = */           NULL,
     863    /* .pfnReserved4 = */           NULL,
     864    /* .pfnReserved5 = */           NULL,
     865    /* .pfnReserved6 = */           NULL,
     866    /* .pfnReserved7 = */           NULL,
     867#elif defined(IN_RC)
     868    /* .pfnConstruct = */           NULL,
     869    /* .pfnReserved0 = */           NULL,
     870    /* .pfnReserved1 = */           NULL,
     871    /* .pfnReserved2 = */           NULL,
     872    /* .pfnReserved3 = */           NULL,
     873    /* .pfnReserved4 = */           NULL,
     874    /* .pfnReserved5 = */           NULL,
     875    /* .pfnReserved6 = */           NULL,
     876    /* .pfnReserved7 = */           NULL,
     877#else
     878# error "Not in IN_RING3, IN_RING0 or IN_RC!"
     879#endif
     880    /* .u32VersionEnd = */          PDM_DEVREG_VERSION
    862881};
    863 #endif /* IN_RING3 */
     882
    864883#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
    865884
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette