mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 00:42:16 +00:00
a626b46e17
* 'x86-bootmem-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (30 commits) early_res: Need to save the allocation name in drop_range_partial() sparsemem: Fix compilation on PowerPC early_res: Add free_early_partial() x86: Fix non-bootmem compilation on PowerPC core: Move early_res from arch/x86 to kernel/ x86: Add find_fw_memmap_area Move round_up/down to kernel.h x86: Make 32bit support NO_BOOTMEM early_res: Enhance check_and_double_early_res x86: Move back find_e820_area to e820.c x86: Add find_early_area_size x86: Separate early_res related code from e820.c x86: Move bios page reserve early to head32/64.c sparsemem: Put mem map for one node together. sparsemem: Put usemap for one node together x86: Make 64 bit use early_res instead of bootmem before slab x86: Only call dma32_reserve_bootmem 64bit !CONFIG_NUMA x86: Make early_node_mem get mem > 4 GB if possible x86: Dynamically increase early_res array size x86: Introduce max_early_res and early_res_count ...
26 lines
629 B
C
26 lines
629 B
C
#ifndef __BUS_NUMA_H
|
|
#define __BUS_NUMA_H
|
|
/*
|
|
* sub bus (transparent) will use entres from 3 to store extra from
|
|
* root, so need to make sure we have enough slot there.
|
|
*/
|
|
#define RES_NUM 16
|
|
struct pci_root_info {
|
|
char name[12];
|
|
unsigned int res_num;
|
|
struct resource res[RES_NUM];
|
|
int bus_min;
|
|
int bus_max;
|
|
int node;
|
|
int link;
|
|
};
|
|
|
|
/* 4 at this time, it may become to 32 */
|
|
#define PCI_ROOT_NR 4
|
|
extern int pci_root_num;
|
|
extern struct pci_root_info pci_root_info[PCI_ROOT_NR];
|
|
|
|
extern void update_res(struct pci_root_info *info, resource_size_t start,
|
|
resource_size_t end, unsigned long flags, int merge);
|
|
#endif
|