1 #ifndef __ARCH_ARM_NUMA_H
2 #define __ARCH_ARM_NUMA_H
3 
4 typedef u8 nodeid_t;
5 
6 /* Fake one node for now. See also node_online_map. */
7 #define cpu_to_node(cpu) 0
8 #define node_to_cpumask(node)   (cpu_online_map)
9 
phys_to_nid(paddr_t addr)10 static inline __attribute__((pure)) nodeid_t phys_to_nid(paddr_t addr)
11 {
12     return 0;
13 }
14 
15 /*
16  * TODO: make first_valid_mfn static when NUMA is supported on Arm, this
17  * is required because the dummy helpers are using it.
18  */
19 extern unsigned long first_valid_mfn;
20 
21 /* XXX: implement NUMA support */
22 #define node_spanned_pages(nid) (max_page - first_valid_mfn)
23 #define node_start_pfn(nid) (first_valid_mfn)
24 #define __node_distance(a, b) (20)
25 
arch_get_dma_bitsize(void)26 static inline unsigned int arch_get_dma_bitsize(void)
27 {
28     return 32;
29 }
30 
31 #endif /* __ARCH_ARM_NUMA_H */
32 /*
33  * Local variables:
34  * mode: C
35  * c-file-style: "BSD"
36  * c-basic-offset: 4
37  * indent-tabs-mode: nil
38  * End:
39  */
40