1// Copyright 2016 The Fuchsia Authors
2// Copyright (c) 2008-2012 Travis Geiselbrecht
3//
4// Use of this source code is governed by a MIT-style
5// license that can be found in the LICENSE file or at
6// https://opensource.org/licenses/MIT
7
8#pragma once
9
10#include <zircon/compiler.h>
11#include <stdbool.h>
12
13__BEGIN_CDECLS
14
15/* super early platform initialization, before almost everything */
16void target_early_init(void);
17
18/* later init, after the kernel has come up */
19void target_init(void);
20
21/* called during chain loading to make sure target specific bits are put into a stopped state */
22void target_quiesce(void);
23
24/* a target can optionally define a set of debug leds that can be used
25 * in various locations in the system.
26 */
27#if TARGET_HAS_DEBUG_LED
28void target_set_debug_led(unsigned int led, bool on);
29#else
30#define target_set_debug_led(led, on) ((void)(0))
31#endif
32
33__END_CDECLS
34