blob: dc5df7f1e39fdfbfb6413f4f8cf123aa36ed6c0e [file] [log] [blame]
Anton Vorontsovd94f9442010-03-25 17:12:41 +03001/*
2 * Copyright 2000 Deep Blue Solutions Ltd
3 * Copyright 2004 ARM Limited
4 * Copyright 2008 Cavium Networks
5 *
6 * This file 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
11#ifndef __CNS3XXX_CORE_H
12#define __CNS3XXX_CORE_H
13
Robin Holt7b6d8642013-07-08 16:01:40 -070014#include <linux/reboot.h>
15
Stephen Warren6bb27d72012-11-08 12:40:59 -070016extern void cns3xxx_timer_init(void);
Anton Vorontsovd94f9442010-03-25 17:12:41 +030017
Anton Vorontsov93e85d82011-07-06 16:45:09 +040018#ifdef CONFIG_CACHE_L2X0
19void __init cns3xxx_l2x0_init(void);
20#else
21static inline void cns3xxx_l2x0_init(void) {}
22#endif /* CONFIG_CACHE_L2X0 */
23
Xia Kaixu0a2e9122014-09-03 21:18:12 +080024#ifdef CONFIG_PCI
25extern void __init cns3xxx_pcie_init_late(void);
26#else
27static inline void __init cns3xxx_pcie_init_late(void) {}
28#endif
29
Anton Vorontsovd94f9442010-03-25 17:12:41 +030030void __init cns3xxx_map_io(void);
31void __init cns3xxx_init_irq(void);
32void cns3xxx_power_off(void);
Robin Holt7b6d8642013-07-08 16:01:40 -070033void cns3xxx_restart(enum reboot_mode, const char *);
Anton Vorontsovd94f9442010-03-25 17:12:41 +030034
35#endif /* __CNS3XXX_CORE_H */