bool com_ximeta_driver_NDASPhysicalUnitDevice::processSRBCommand(com_ximeta_driver_NDASCommand *command) { com_ximeta_driver_NDASDeviceController *deviceController; // Send Command. deviceController = OSDynamicCast(com_ximeta_driver_NDASDeviceController, getParentEntry(gIOServicePlane)); if (NULL == deviceController) { DbgIOLog(DEBUG_MASK_NDAS_ERROR, ("readSectorsOnce: Can't Find controller.\n")); return false; } // Set Target Number. command->scsiCommand()->targetNo = unitNumber(); command->scsiCommand()->device = this; deviceController->enqueueCommand(command); return true; }
TextureUnit::operator GLint() { return unitNumber(); }