/* DAC960_WaitForCommand waits for a wake_up on Controller's Command Wait Queue.  */
static void DAC960_WaitForCommand(DAC960_Controller_T *Controller)
/* DAC960_WaitForCommand waits for a wake_up on Controller's Command Wait Queue.  */
static void DAC960_WaitForCommand(DAC960_Controller_T *Controller)
{
  spin_unlock_irq(&Controller->queue_lock);
  __wait_event(Controller->CommandWaitQueue, Controller->FreeCommands);
  spin_lock_irq(&Controller->queue_lock);
}