RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
powerpc
include
bsp
ppcbug-nvram-set.h
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
3
/*
4
* Copyright (c) 2026 Chris Johns <chrisj@rtems.org>. All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions
8
* are met:
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
* 2. Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in the
13
* documentation and/or other materials provided with the distribution.
14
*
15
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
* SUCH DAMAGE.
26
*/
27
28
/*
29
* PPCBug GEV in NVRAM.
30
*/
31
32
#ifndef _POWERPC_NVRAM_SET_h
33
#define _POWERPC_NVRAM_SET_h
34
35
#include <stddef.h>
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
/* __cplusplus */
40
41
/*
42
* Set the NVRAM base. Setting the base will result in the NVRAM
43
* variables being scanned and the environment table being set with
44
* any value settings. The access can be direct or indirect.
45
*
46
* @param nvram_base Base address of the byte addressable NVRAM
47
* @param nvram_indorect The NVRAM access indirect
48
*/
49
void
ppcbug_nvram_set_nvbase(uintptr_t nvram_base,
bool
nvram_indirect);
50
51
/*
52
* Set the RTEMS network unit for environment variables. You can set
53
* up to 4 interfaces, 1 to 4. This call can be made in BSP start or
54
* BSP early start.
55
*
56
* @param unit Network interface unit number, ie `1` for `enet1`
57
*/
58
void
ppcbug_nvram_set_net_unit(
const
size_t
unit);
59
60
/*
61
* Set the RTEMS network unit label. You can set up to 4 interfaces, 1
62
* to 4. This call can be made in BSP start or BSP early start.
63
*
64
* @param unit Network interface unit number, ie `1` for `enet1`
65
* @param label Network interface unit label, ie `1` for `em0`
66
*/
67
void
ppcbug_nvram_set_net_label(
const
size_t
unit,
const
char
* label);
68
69
#ifdef __cplusplus
70
}
71
#endif
/* __cplusplus */
72
73
#endif
Generated by
1.18.0