/* Return an SCB resource to the free list.  */
void ahc_free_scb(struct ahc_softc *ahc, struct scb *scb)
/* Return an SCB resource to the free list.  */
void ahc_free_scb(struct ahc_softc *ahc, struct scb *scb)
{
	struct hardware_scb *hscb;
	hscb = scb->hscb;
	ahc->scb_data->scbindex[hscb->tag] = NULL;
	scb->flags = SCB_FREE;
	hscb->control = 0;
	SLIST_INSERT_HEAD(&ahc->scb_data->free_scbs, scb, links.sle);
	ahc_platform_scb_free(ahc, scb);
}