Changeset 16880 in vbox for trunk/src/VBox/HostDrivers/VBoxNetAdp/solaris
- Timestamp:
- Feb 18, 2009 9:34:10 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42992
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/solaris/VBoxNetAdp-solaris.c
r16870 r16880 64 64 #define VBOXNETADP_MTU 1500 65 65 66 static int VBoxNetAdpSolarisGetInfo(dev_info_t *pDip, ddi_info_cmd_t enmCmd, void *pArg, void **ppResult);67 66 static int VBoxNetAdpSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd); 68 67 static int VBoxNetAdpSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd); … … 441 440 442 441 443 /**444 * Info entry point, called by solaris kernel for obtaining driver info.445 *446 * @param pDip The module structure instance (do not use).447 * @param enmCmd Information request type.448 * @param pvArg Type specific argument.449 * @param ppvResult Where to store the requested info.450 *451 * @returns corresponding solaris error code.452 */453 static int VBoxNetAdpSolarisGetInfo(dev_info_t *pDip, ddi_info_cmd_t enmCmd, void *pvArg, void **ppResult)454 {455 LogFlow((DEVICE_NAME ":VBoxNetAdpSolarisGetInfo pDip=%p enmCmd=%d pArg=%p instance=%d\n", pDip, enmCmd,456 getminor((dev_t)pvArg)));457 458 switch (enmCmd)459 {460 case DDI_INFO_DEVT2DEVINFO:461 {462 *ppResult = g_pVBoxNetAdpSolarisDip;463 return DDI_SUCCESS;464 }465 466 case DDI_INFO_DEVT2INSTANCE:467 {468 int instance = getminor((dev_t)pvArg);469 *ppResult = (void *)(uintptr_t)instance;470 return DDI_SUCCESS;471 }472 }473 474 return DDI_FAILURE;475 }476 477 478 442 static int vboxNetAdpSolarisGenerateMac(PRTMAC pMac) 479 443 { … … 511 475 static int vboxNetAdpSolarisSend(gld_mac_info_t *pMacInfo, mblk_t *pMsg) 512 476 { 513 477 return GLD_SUCCESS; 514 478 } 515 479
Note:
See TracChangeset
for help on using the changeset viewer.