18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright 2000 Deep Blue Solutions Ltd
48c2ecf20Sopenharmony_ci * Copyright 2004 ARM Limited
58c2ecf20Sopenharmony_ci * Copyright 2008 Cavium Networks
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef __CNS3XXX_CORE_H
98c2ecf20Sopenharmony_ci#define __CNS3XXX_CORE_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <linux/reboot.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciextern void cns3xxx_timer_init(void);
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#ifdef CONFIG_CACHE_L2X0
168c2ecf20Sopenharmony_civoid __init cns3xxx_l2x0_init(void);
178c2ecf20Sopenharmony_ci#else
188c2ecf20Sopenharmony_cistatic inline void cns3xxx_l2x0_init(void) {}
198c2ecf20Sopenharmony_ci#endif /* CONFIG_CACHE_L2X0 */
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#ifdef CONFIG_PCI
228c2ecf20Sopenharmony_ciextern void __init cns3xxx_pcie_init_late(void);
238c2ecf20Sopenharmony_ci#else
248c2ecf20Sopenharmony_cistatic inline void __init cns3xxx_pcie_init_late(void) {}
258c2ecf20Sopenharmony_ci#endif
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_civoid __init cns3xxx_map_io(void);
288c2ecf20Sopenharmony_civoid __init cns3xxx_init_irq(void);
298c2ecf20Sopenharmony_civoid cns3xxx_power_off(void);
308c2ecf20Sopenharmony_civoid cns3xxx_restart(enum reboot_mode, const char *);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#endif /* __CNS3XXX_CORE_H */
33