/* hpsb_iso_xmit_sync - wait until all queued packets have been transmitted  */
int hpsb_iso_xmit_sync(struct hpsb_iso *iso)
/* hpsb_iso_xmit_sync - wait until all queued packets have been transmitted  */
int hpsb_iso_xmit_sync(struct hpsb_iso *iso)
{
	if (iso->type != HPSB_ISO_XMIT)
		return -EINVAL;
	return wait_event_interruptible(iso->waitq,
					hpsb_iso_n_ready(iso) ==
					iso->buf_packets);
}