]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/x86/pci/bus_numa.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / x86 / pci / bus_numa.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
284f933d
YL
2#ifndef __BUS_NUMA_H
3#define __BUS_NUMA_H
99935a7a
YL
4/*
5 * sub bus (transparent) will use entres from 3 to store extra from
2fe2abf8 6 * root, so need to make sure we have enough slot there.
99935a7a 7 */
d28e5ac2
YL
8struct pci_root_res {
9 struct list_head list;
10 struct resource res;
11};
12
99935a7a 13struct pci_root_info {
d28e5ac2 14 struct list_head list;
99935a7a 15 char name[12];
d28e5ac2 16 struct list_head resources;
a10bb128 17 struct resource busn;
99935a7a
YL
18 int node;
19 int link;
20};
21
d28e5ac2
YL
22extern struct list_head pci_root_infos;
23struct pci_root_info *alloc_pci_root_info(int bus_min, int bus_max,
24 int node, int link);
b74fd238
YL
25extern void update_res(struct pci_root_info *info, resource_size_t start,
26 resource_size_t end, unsigned long flags, int merge);
99935a7a 27#endif