Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Russell King | 4baa992 | 2008-08-02 10:55:55 +0100 | [diff] [blame] | 2 | * arch/arm/include/asm/mmzone.h |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * |
| 4 | * 1999-12-29 Nicolas Pitre Created |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | #ifndef __ASM_MMZONE_H |
| 11 | #define __ASM_MMZONE_H |
| 12 | |
| 13 | /* |
| 14 | * Currently defined in arch/arm/mm/discontig.c |
| 15 | */ |
| 16 | extern pg_data_t discontig_node_data[]; |
| 17 | |
| 18 | /* |
| 19 | * Return a pointer to the node data for node n. |
| 20 | */ |
| 21 | #define NODE_DATA(nid) (&discontig_node_data[nid]) |
| 22 | |
| 23 | /* |
| 24 | * NODE_MEM_MAP gives the kaddr for the mem_map of the node. |
| 25 | */ |
| 26 | #define NODE_MEM_MAP(nid) (NODE_DATA(nid)->node_mem_map) |
| 27 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 28 | #include <mach/memory.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | |
| 30 | #endif |