blob: 6e3ef5ba4f74adca5d4fd1ed78440579166b4b64 [file] [log] [blame]
Vineet Guptac121c502013-01-18 15:12:20 +05301/*
2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
Vineet Guptac121c502013-01-18 15:12:20 +05308#ifndef __ASMARC_SETUP_H
9#define __ASMARC_SETUP_H
10
Vineet Gupta8c2f4a82013-02-11 19:55:33 +053011
Vineet Guptac121c502013-01-18 15:12:20 +053012#include <linux/types.h>
Vineet Gupta8c2f4a82013-02-11 19:55:33 +053013#include <uapi/asm/setup.h>
Vineet Guptac121c502013-01-18 15:12:20 +053014
15#define COMMAND_LINE_SIZE 256
16
Vineet Guptaaf617422013-01-18 15:12:24 +053017/*
18 * Data structure to map a ID to string
19 * Used a lot for bootup reporting of hardware diversity
20 */
21struct id_to_str {
22 int id;
23 const char *str;
24};
25
26struct cpuinfo_data {
27 struct id_to_str info;
28 int up_range;
29};
30
Vineet Guptac121c502013-01-18 15:12:20 +053031extern int root_mountflags, end_mem;
Vineet Guptac121c502013-01-18 15:12:20 +053032
Chen Gangef3a6612013-10-23 10:12:05 +080033void setup_processor(void);
Vineet Guptac121c502013-01-18 15:12:20 +053034void __init setup_arch_memory(void);
35
36#endif /* __ASMARC_SETUP_H */