rootcomplex
struct rootcomplex *rootcomplex;
TAILQ_FOREACH(rootcomplex, &rootcomplexes, link) {
if (rootcomplex->cfghandle == device->cfghandle)
if (rootcomplex == NULL)
md_add_prop_data(md, node, "virtual-dma", rootcomplex->vdma_ranges,
rootcomplex->num_vdma_ranges * 2 * sizeof(uint64_t));
struct rootcomplex *rootcomplex;
rootcomplex = xzalloc(sizeof(*rootcomplex));
&rootcomplex->num_msi_eqs);
&rootcomplex->num_msis);
&rootcomplex->msi_ranges, &len);
rootcomplex->num_msi_ranges =
&rootcomplex->vdma_ranges, &len);
rootcomplex->num_vdma_ranges =
rootcomplex->cfghandle = cfg_handle;
rootcomplex->path = path;
TAILQ_INSERT_TAIL(&rootcomplexes, rootcomplex, link);
TAILQ_HEAD(, rootcomplex) rootcomplexes;
TAILQ_ENTRY(rootcomplex) link;