blob: 804a4b40c31af985ff7136dcc3136d32631b5fea [file] [log] [blame]
Yinghai Lu284f9332010-02-10 01:20:12 -08001#ifndef __BUS_NUMA_H
2#define __BUS_NUMA_H
Yinghai Lu99935a72009-10-04 21:54:24 -07003/*
4 * sub bus (transparent) will use entres from 3 to store extra from
Bjorn Helgaas2fe2abf2010-02-23 10:24:36 -07005 * root, so need to make sure we have enough slot there.
Yinghai Lu99935a72009-10-04 21:54:24 -07006 */
7#define RES_NUM 16
8struct pci_root_info {
9 char name[12];
10 unsigned int res_num;
11 struct resource res[RES_NUM];
12 int bus_min;
13 int bus_max;
14 int node;
15 int link;
16};
17
18/* 4 at this time, it may become to 32 */
19#define PCI_ROOT_NR 4
20extern int pci_root_num;
21extern struct pci_root_info pci_root_info[PCI_ROOT_NR];
Yinghai Lu99935a72009-10-04 21:54:24 -070022
Yinghai Lub74fd232010-02-10 01:20:08 -080023extern void update_res(struct pci_root_info *info, resource_size_t start,
24 resource_size_t end, unsigned long flags, int merge);
Yinghai Lu99935a72009-10-04 21:54:24 -070025#endif