xref: /openbmc/linux/include/acpi/acpi_numa.h (revision a0c2d9c1)
1762834e8SYasunori Goto #ifndef __ACPI_NUMA_H
2762834e8SYasunori Goto #define __ACPI_NUMA_H
3762834e8SYasunori Goto 
4762834e8SYasunori Goto #ifdef CONFIG_ACPI_NUMA
5762834e8SYasunori Goto #include <linux/kernel.h>
6a0c2d9c1SRoss Zwisler #include <linux/numa.h>
7762834e8SYasunori Goto 
8762834e8SYasunori Goto /* Proximity bitmap length */
9762834e8SYasunori Goto #if MAX_NUMNODES > 256
10762834e8SYasunori Goto #define MAX_PXM_DOMAINS MAX_NUMNODES
11762834e8SYasunori Goto #else
12762834e8SYasunori Goto #define MAX_PXM_DOMAINS (256)	/* Old pxm spec is defined 8 bit */
13762834e8SYasunori Goto #endif
14762834e8SYasunori Goto 
15f363d16fSAaron Durbin extern int pxm_to_node(int);
16f363d16fSAaron Durbin extern int node_to_pxm(int);
178ff6f48dSLuck, Tony extern int acpi_map_pxm_to_node(int);
188df0eb7cSKurt Garloff extern unsigned char acpi_srat_revision;
19e84025e2SDavid Daney extern int acpi_numa __initdata;
20e84025e2SDavid Daney 
21e84025e2SDavid Daney extern void bad_srat(void);
22e84025e2SDavid Daney extern int srat_disabled(void);
23762834e8SYasunori Goto 
24762834e8SYasunori Goto #endif				/* CONFIG_ACPI_NUMA */
25762834e8SYasunori Goto #endif				/* __ACP_NUMA_H */
26