/* hpsb_iso_n_ready - returns number of packets ready to send or receive  */
int hpsb_iso_n_ready(struct hpsb_iso *iso)
/* hpsb_iso_n_ready - returns number of packets ready to send or receive  */
int hpsb_iso_n_ready(struct hpsb_iso *iso)
{
	unsigned long flags;
	int val;
	spin_lock_irqsave(&iso->lock, flags);
	val = iso->n_ready_packets;
	spin_unlock_irqrestore(&iso->lock, flags);
	return val;
}