Changeset 35986 in vbox
- Timestamp:
- Feb 15, 2011 5:50:34 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70057
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/rawpci.h
r35959 r35986 32 32 RT_C_DECLS_BEGIN 33 33 34 /** 35 * Handle for the raw PCI device. 36 */ 37 typedef RTR0PTR PCIRAWDEVHANDLE; 38 39 40 /** Parameters buffer for PCIRAWR0_DO_OPEN_DEVICE call */ 41 typedef struct 42 { 43 /* in */ 44 uint32_t PciAddress; 45 uint32_t fFlags; 46 /* out */ 47 PCIRAWDEVHANDLE Device; 48 } PCIRAWREQOPENDEVICE; 49 50 /** Parameters buffer for PCIRAWR0_DO_CLOSE_DEVICE call */ 51 typedef struct 52 { 53 /* in */ 54 uint32_t fFlags; 55 } PCIRAWREQCLOSEDEVICE; 56 57 34 58 /** Parameters buffer for PCIRAWR0_DO_GET_REGION_INFO call */ 35 59 typedef struct … … 130 154 } PCIRAWREQPCICFGREAD; 131 155 132 133 /**134 * Handle for the raw PCI device.135 */136 typedef RTR0PTR PCIRAWDEVHANDLE;137 138 156 /** 139 157 * Request buffer use for communication with the driver. … … 154 172 union 155 173 { 174 PCIRAWREQOPENDEVICE aOpenDevice; 175 PCIRAWREQCLOSEDEVICE aCloseDevice; 156 176 PCIRAWREQGETREGIONINFO aGetRegionInfo; 157 177 PCIRAWREQMAPREGION aMapRegion; … … 172 192 typedef enum PCIRAWR0OPERATION 173 193 { 194 /* Open device. */ 195 PCIRAWR0_DO_OPEN_DEVICE, 196 /* Close device. */ 197 PCIRAWR0_DO_CLOSE_DEVICE, 174 198 /* Get PCI region info. */ 175 199 PCIRAWR0_DO_GET_REGION_INFO, -
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c
r35959 r35986 39 39 40 40 41 #define DEVPORT_2_VBOXRAWPCIINS(pPort) \ 42 ( (PVBOXRAWPCIINS)((uint8_t *)pPort - RT_OFFSETOF(VBOXRAWPCIINS, DevPort)) ) 43 44 41 45 /** 42 46 * Implements the SUPDRV component factor interface query method. … … 74 78 * @copydoc RAWPCIDEVPORT:: pfnRetain 75 79 */ 76 DECLHIDDEN(void) vboxPciDevRetain(PRAWPCIDEVPORT p This)80 DECLHIDDEN(void) vboxPciDevRetain(PRAWPCIDEVPORT pPort) 77 81 { 78 82 } … … 81 85 * @copydoc RAWPCIDEVPORT:: pfnRelease 82 86 */ 83 DECLHIDDEN(void) vboxPciDevRelease(PRAWPCIDEVPORT pThis) 84 { 85 } 86 87 /** 88 * @copydoc RAWPCIDEVPORT:: pfnRelease 89 */ 90 DECLHIDDEN(int) vboxPciDevInit(PRAWPCIDEVPORT pThis, uint32_t fFlags) 91 { 92 return VINF_SUCCESS; 87 DECLHIDDEN(void) vboxPciDevRelease(PRAWPCIDEVPORT pPort) 88 { 89 } 90 91 /** 92 * @copydoc RAWPCIDEVPORT:: pfnInit 93 */ 94 DECLHIDDEN(int) vboxPciDevInit(PRAWPCIDEVPORT pPort, uint32_t fFlags) 95 { 96 PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort); 97 98 int rc = vboxPciOsDevInit(pThis, fFlags); 99 100 return rc; 93 101 } 94 102 … … 144 152 } 145 153 146 147 154 /** 148 155 * @copydoc RAWPCIFACTORY::pfnCreateAndConnect -
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h
r35946 r35986 88 88 DECLHIDDEN(void) vboxPciShutdown(PVBOXRAWPCIGLOBALS pGlobals); 89 89 90 DECLHIDDEN(int) vboxPciOsDevInit (PVBOXRAWPCIINS pIns, uint32_t fFlags); 91 DECLHIDDEN(int) vboxPciOsDevDeinit(PVBOXRAWPCIINS pIns, uint32_t fFlags); 92 90 93 RT_C_DECLS_END 91 94
Note:
See TracChangeset
for help on using the changeset viewer.