summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/xhci/xhci.c
blob: e5c431acde60790fc94e6321466db8c8b928e8bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-or-later */

#include <amdblocks/xhci.h>
#include <cpu/x86/smm.h>
#include <device/device.h>
#include <soc/xhci.h>

void soc_xhci_store_resources(struct smm_pci_resource_info *slots, size_t count)
{
	const struct device *devices[] = SOC_XHCI_DEVICES;
	size_t devices_count;

	for (devices_count = 0; devices_count < ARRAY_SIZE(devices); devices_count++) {
		if (!devices[devices_count])
			break;
	}

	smm_pci_resource_store_fill_resources(slots, count, &devices[0], devices_count);
}