dtb_object.hh (10880:61a56f76222b) dtb_object.hh (11392:5967db4cff04)
1/*
2 * Copyright (c) 2013 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 52 unchanged lines hidden (view full) ---

61 bool addBootCmdLine(const char* _args, size_t len);
62
63 /** Parse the DTB file enough to find the provided release
64 * address and return it.
65 * @return release address for SMP boot
66 */
67 Addr findReleaseAddr();
68
1/*
2 * Copyright (c) 2013 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 52 unchanged lines hidden (view full) ---

61 bool addBootCmdLine(const char* _args, size_t len);
62
63 /** Parse the DTB file enough to find the provided release
64 * address and return it.
65 * @return release address for SMP boot
66 */
67 Addr findReleaseAddr();
68
69 bool loadGlobalSymbols(SymbolTable *symtab,
70 Addr addrMask = std::numeric_limits<Addr>::max());
71 bool loadLocalSymbols(SymbolTable *symtab,
72 Addr addrMask = std::numeric_limits<Addr>::max());
69 bool loadAllSymbols(SymbolTable *symtab, Addr base = 0,
70 Addr offset = 0, Addr addrMask = maxAddr);
71 bool loadGlobalSymbols(SymbolTable *symtab, Addr base = 0,
72 Addr offset = 0, Addr addrMask = maxAddr);
73 bool loadLocalSymbols(SymbolTable *symtab, Addr base = 0,
74 Addr offset = 0, Addr addrMask = maxAddr);
73
74 /** Static function that tries to load file as a
75 * flattened device tree blob.
76 * @param fname path to file
77 * @param len length of file
78 * @param data mmap'ed data buffer containing file contents
79 * @return ObjectFile representing closest match of file type
80 */
81 static ObjectFile *tryFile(const std::string &fname,
82 size_t len, uint8_t *data);
83};
84
85#endif //__DTB_OBJECT_HH__
75
76 /** Static function that tries to load file as a
77 * flattened device tree blob.
78 * @param fname path to file
79 * @param len length of file
80 * @param data mmap'ed data buffer containing file contents
81 * @return ObjectFile representing closest match of file type
82 */
83 static ObjectFile *tryFile(const std::string &fname,
84 size_t len, uint8_t *data);
85};
86
87#endif //__DTB_OBJECT_HH__