/* Note: the tidaw-list is assumed to be contiguous with no ttics. The last-tidaw flag for the last tidaw in the list will be set by itcw_finalize.  */
struct tidaw* itcw_add_tidaw(struct itcw *itcw, u8 flags, void *addr, u32 count)
/* Note: the tidaw-list is assumed to be contiguous with no ttics. The last-tidaw flag for the last tidaw in the list will be set by itcw_finalize.  */
struct tidaw* itcw_add_tidaw(struct itcw *itcw, u8 flags, void *addr, u32 count)
{
	if (itcw->num_tidaws >= itcw->max_tidaws)
		return ERR_PTR(-ENOSPC);
	return tcw_add_tidaw(itcw->tcw, itcw->num_tidaws++, flags, addr, count);
}