You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

289 lines
13 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libubootenv: uboot_flash_env Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">libubootenv
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structuboot__flash__env-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">uboot_flash_env Struct Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a749f886ed341a9bf014fe493d8603b66"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#a749f886ed341a9bf014fe493d8603b66">devname</a> [DEVNAME_MAX_LENGTH]</td></tr>
<tr class="separator:a749f886ed341a9bf014fe493d8603b66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2cb0819013221d5922995b5e2006f32"><td class="memItemLeft" align="right" valign="top">long long int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#ab2cb0819013221d5922995b5e2006f32">offset</a></td></tr>
<tr class="separator:ab2cb0819013221d5922995b5e2006f32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaca03c5b59b8780e0002816c1e0eb1b2"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#aaca03c5b59b8780e0002816c1e0eb1b2">envsize</a></td></tr>
<tr class="separator:aaca03c5b59b8780e0002816c1e0eb1b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc23ee5dacf3ba7995be0077fa9f974b"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#abc23ee5dacf3ba7995be0077fa9f974b">sectorsize</a></td></tr>
<tr class="separator:abc23ee5dacf3ba7995be0077fa9f974b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a323d2f4e21ac719df1c84455e8e07b66"><td class="memItemLeft" align="right" valign="top">long unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#a323d2f4e21ac719df1c84455e8e07b66">envsectors</a></td></tr>
<tr class="separator:a323d2f4e21ac719df1c84455e8e07b66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84ce3561bb962f909b1c908dfe4a4182"><td class="memItemLeft" align="right" valign="top">struct mtd_info_user&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#a84ce3561bb962f909b1c908dfe4a4182">mtdinfo</a></td></tr>
<tr class="separator:a84ce3561bb962f909b1c908dfe4a4182"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa251b7dce1ea33ce89a59a0135b4d9f8"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#aa251b7dce1ea33ce89a59a0135b4d9f8">crc</a></td></tr>
<tr class="separator:aa251b7dce1ea33ce89a59a0135b4d9f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d26894d6f299d35e95dbf727d1421c8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#a3d26894d6f299d35e95dbf727d1421c8">fd</a></td></tr>
<tr class="separator:a3d26894d6f299d35e95dbf727d1421c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a811489c2f4bb65e5c1b33b294a73599a"><td class="memItemLeft" align="right" valign="top">unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#a811489c2f4bb65e5c1b33b294a73599a">flags</a></td></tr>
<tr class="separator:a811489c2f4bb65e5c1b33b294a73599a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb72340f47804b39c8046eb7db375d22"><td class="memItemLeft" align="right" valign="top">enum flags_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#aeb72340f47804b39c8046eb7db375d22">flagstype</a></td></tr>
<tr class="separator:aeb72340f47804b39c8046eb7db375d22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36aaef5acf85377aca2ef71a13192db7"><td class="memItemLeft" align="right" valign="top">enum device_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#a36aaef5acf85377aca2ef71a13192db7">device_type</a></td></tr>
<tr class="separator:a36aaef5acf85377aca2ef71a13192db7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb4ed97e4cf5f761150b8c539cf2d8a8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structuboot__flash__env.html#aeb4ed97e4cf5f761150b8c539cf2d8a8">disable_mtd_lock</a></td></tr>
<tr class="separator:aeb4ed97e4cf5f761150b8c539cf2d8a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aa251b7dce1ea33ce89a59a0135b4d9f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa251b7dce1ea33ce89a59a0135b4d9f8">&#9670;&nbsp;</a></span>crc</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t uboot_flash_env::crc</td>
</tr>
</table>
</div><div class="memdoc">
<p>Computed CRC on the stored environment </p>
</div>
</div>
<a id="a36aaef5acf85377aca2ef71a13192db7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36aaef5acf85377aca2ef71a13192db7">&#9670;&nbsp;</a></span>device_type</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum device_type uboot_flash_env::device_type</td>
</tr>
</table>
</div><div class="memdoc">
<p>type of device (mtd, ubi, file, ....) </p>
</div>
</div>
<a id="a749f886ed341a9bf014fe493d8603b66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a749f886ed341a9bf014fe493d8603b66">&#9670;&nbsp;</a></span>devname</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char uboot_flash_env::devname[DEVNAME_MAX_LENGTH]</td>
</tr>
</table>
</div><div class="memdoc">
<p>path to device or file where env is stored </p>
</div>
</div>
<a id="aeb4ed97e4cf5f761150b8c539cf2d8a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb4ed97e4cf5f761150b8c539cf2d8a8">&#9670;&nbsp;</a></span>disable_mtd_lock</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int uboot_flash_env::disable_mtd_lock</td>
</tr>
</table>
</div><div class="memdoc">
<p>Disable lock mechanism (required by some flashes </p>
</div>
</div>
<a id="a323d2f4e21ac719df1c84455e8e07b66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a323d2f4e21ac719df1c84455e8e07b66">&#9670;&nbsp;</a></span>envsectors</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long unsigned int uboot_flash_env::envsectors</td>
</tr>
</table>
</div><div class="memdoc">
<p>Number of sectors for each environment </p>
</div>
</div>
<a id="aaca03c5b59b8780e0002816c1e0eb1b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaca03c5b59b8780e0002816c1e0eb1b2">&#9670;&nbsp;</a></span>envsize</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t uboot_flash_env::envsize</td>
</tr>
</table>
</div><div class="memdoc">
<p>size of environment </p>
</div>
</div>
<a id="a3d26894d6f299d35e95dbf727d1421c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d26894d6f299d35e95dbf727d1421c8">&#9670;&nbsp;</a></span>fd</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int uboot_flash_env::fd</td>
</tr>
</table>
</div><div class="memdoc">
<p>file descriptor used to access the device </p>
</div>
</div>
<a id="a811489c2f4bb65e5c1b33b294a73599a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a811489c2f4bb65e5c1b33b294a73599a">&#9670;&nbsp;</a></span>flags</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char uboot_flash_env::flags</td>
</tr>
</table>
</div><div class="memdoc">
<p>flags (see flags_type) are one byte in the stored environment </p>
</div>
</div>
<a id="aeb72340f47804b39c8046eb7db375d22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb72340f47804b39c8046eb7db375d22">&#9670;&nbsp;</a></span>flagstype</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum flags_type uboot_flash_env::flagstype</td>
</tr>
</table>
</div><div class="memdoc">
<p>flags according to device type </p>
</div>
</div>
<a id="a84ce3561bb962f909b1c908dfe4a4182"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84ce3561bb962f909b1c908dfe4a4182">&#9670;&nbsp;</a></span>mtdinfo</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct mtd_info_user uboot_flash_env::mtdinfo</td>
</tr>
</table>
</div><div class="memdoc">
<p>MTD structure as returned by ioctl() call </p>
</div>
</div>
<a id="ab2cb0819013221d5922995b5e2006f32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2cb0819013221d5922995b5e2006f32">&#9670;&nbsp;</a></span>offset</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long long int uboot_flash_env::offset</td>
</tr>
</table>
</div><div class="memdoc">
<p>Start offset inside device path </p>
</div>
</div>
<a id="abc23ee5dacf3ba7995be0077fa9f974b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc23ee5dacf3ba7995be0077fa9f974b">&#9670;&nbsp;</a></span>sectorsize</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t uboot_flash_env::sectorsize</td>
</tr>
</table>
</div><div class="memdoc">
<p>Size of sector (for MTD) </p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="uboot__private_8h_source.html">uboot_private.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>