#define MAX_DMA_CHANNELS 8
+/* 16MB ISA DMA zone */
+#define MAX_DMA_PFN ((16 * 1024 * 1024) >> PAGE_SHIFT)
+
#ifdef CONFIG_X86_32
/* The maximum address that we can perform a DMA transfer to on this platform */
#else
-/* 16MB ISA DMA zone */
-#define MAX_DMA_PFN ((16 * 1024 * 1024) >> PAGE_SHIFT)
-
/* 4GB broken PCI/AGP hardware bus master zone */
#define MAX_DMA32_PFN ((4UL * 1024 * 1024 * 1024) >> PAGE_SHIFT)
int __initdata numa_off;
nodemask_t numa_nodes_parsed __initdata;
-#ifdef CONFIG_X86_64
struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
EXPORT_SYMBOL(node_data);
static int numa_distance_cnt;
static u8 *numa_distance;
-#endif
static __init int numa_setup(char *opt)
{
pr_debug("Node to cpumask map for %d nodes\n", nr_node_ids);
}
-#ifdef CONFIG_X86_64
static int __init numa_add_memblk_to(int nid, u64 start, u64 end,
struct numa_meminfo *mi)
{
(mi->nr_blks - idx) * sizeof(mi->blk[0]));
}
+#ifdef CONFIG_X86_64
/**
* numa_add_memblk - Add one numa_memblk to numa_meminfo
* @nid: NUMA node ID of the new memblk
{
return numa_add_memblk_to(nid, start, end, &numa_meminfo);
}
+#endif
/* Initialize bootmem allocator for a node */
static void __init
return 0;
}
+#ifdef CONFIG_X86_64
/**
* numa_set_distance - Set NUMA distance from one NUMA to another
* @from: the 'from' node to set distance
numa_distance[from * numa_distance_cnt + to] = distance;
}
+#endif
int __node_distance(int from, int to)
{
return 0;
}
-#endif
/*
* There are unfortunately some poorly designed mainboards around that
}
}
-#ifdef CONFIG_X86_64
static int __init numa_init(int (*init_func)(void))
{
int i;
numa_init(dummy_numa_init);
}
-#endif
static __init int find_near_online_node(int node)
{
#include <asm/bios_ebda.h>
#include <asm/proto.h>
-struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
-EXPORT_SYMBOL(node_data);
-
/*
* numa interface - we expect the numa architecture specific code to have
* populated the following initialisation.