/* Return the start index on success, -1 on failure.  */
int pcibr_ate_alloc(struct pcibus_info *pcibus_info, int count)
/* Return the start index on success, -1 on failure.  */
int pcibr_ate_alloc(struct pcibus_info *pcibus_info, int count)
{
	int status;
	unsigned long flags;
	spin_lock_irqsave(&pcibus_info->pbi_lock, flags);
	status = alloc_ate_resource(&pcibus_info->pbi_int_ate_resource, count);
	spin_unlock_irqrestore(&pcibus_info->pbi_lock, flags);
	return status;
}