/* Call after a packet has been transmitted to the bus (interrupt context is OK). @cycle is the  */
void hpsb_iso_packet_sent(struct hpsb_iso *iso, int cycle, int error)
/* Call after a packet has been transmitted to the bus (interrupt context is OK). @cycle is the  */
void hpsb_iso_packet_sent(struct hpsb_iso *iso, int cycle, int error)
{
	unsigned long flags;
	spin_lock_irqsave(&iso->lock, flags);
	cycle += iso->buf_packets - iso->n_ready_packets;
	cycle %= 8000;
	iso->xmit_cycle = cycle;
	iso->n_ready_packets++;
	iso->pkt_dma = (iso->pkt_dma + 1) % iso->buf_packets;
	if (iso->n_ready_packets == iso->buf_packets || error != 0) {
		atomic_inc(&iso->overflows);
	}
	spin_unlock_irqrestore(&iso->lock, flags);
}