VirtualBox

Changeset 100022 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 31, 2023 8:40:43 AM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157697
Message:

Runtime/RTFdt: Implement parsing Devicetree blobs (DTB) and output a DTS, bugref:10401

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r100009 r100022  
    28392839/** The DTB being parsed has an invalid strings block offset. */
    28402840#define VERR_FDT_DTB_STRINGS_BLOCK_NOT_TERMINATED               (-27009)
     2841/** The DTB structs block starts with an invalid token. */
     2842#define VERR_FDT_DTB_STRUCTS_BLOCK_TOKEN_INVALID                (-27010)
     2843/** The DTB structs block contains an invalid node name. */
     2844#define VERR_FDT_DTB_STRUCTS_BLOCK_NODE_NAME_INVALID            (-27011)
     2845/** The DTB structs block contains an unterminated string. */
     2846#define VERR_FDT_DTB_STRUCTS_BLOCK_STRING_NOT_TERMINATED        (-27012)
     2847/** The DTB structs block contains a malformed padding at the end. */
     2848#define VERR_FDT_DTB_STRUCTS_BLOCK_MALFORMED_PADDING            (-27013)
     2849/** The DTB structs block ended prematurely. */
     2850#define VERR_FDT_DTB_STRUCTS_BLOCK_PREMATURE_END                (-27014)
     2851/** The DTB property name offset points past the string block. */
     2852#define VERR_FDT_DTB_PROP_NAME_OFF_TOO_LARGE                    (-27015)
     2853/** The DTB property payload size does not match the expectations. */
     2854#define VERR_FDT_DTB_PROP_SIZE_MALFORMED                        (-27016)
     2855/** The DTB property payload string is not temrinated. */
     2856#define VERR_FDT_DTB_PROP_STRING_NOT_TERMINATED                 (-27017)
    28412857/** @} */
    28422858
  • trunk/include/iprt/fdt.h

    r100013 r100022  
    119119 * @param   fFlags          Flags controlling the output, MBZ.
    120120 * @param   hVfsIos         The VFS I/O stream handle to dump the DTS to.
     121 * @param   pErrInfo        Where to return additional error information.
    121122 */
    122 RTDECL(int) RTFdtDumpToVfsIoStrm(RTFDT hFdt, RTFDTTYPE enmOutType, uint32_t fFlags, RTVFSIOSTREAM hVfsIos);
     123RTDECL(int) RTFdtDumpToVfsIoStrm(RTFDT hFdt, RTFDTTYPE enmOutType, uint32_t fFlags, RTVFSIOSTREAM hVfsIos, PRTERRINFO pErrInfo);
    123124
    124125
     
    131132 * @param   fFlags          Flags controlling the output, MBZ.
    132133 * @param   pszFilename     The filename to dump to.
     134 * @param   pErrInfo        Where to return additional error information.
    133135 */
    134 RTDECL(int) RTFdtDumpToFile(RTFDT hFdt, RTFDTTYPE enmOutType, uint32_t fFlags, const char *pszFilename);
     136RTDECL(int) RTFdtDumpToFile(RTFDT hFdt, RTFDTTYPE enmOutType, uint32_t fFlags, const char *pszFilename, PRTERRINFO pErrInfo);
    135137
    136138#endif /* IN_RING3 */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette