xref: /openbmc/u-boot/include/cavium/atf.h (revision 2c0d6971)
1 /**
2  * (C) Copyright 2014, Cavium Inc.
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5 **/
6 #ifndef __ATF_H__
7 #define __ATF_H__
8 #include <cavium/atf_part.h>
9 
10 ssize_t atf_read_mmc(uintptr_t offset, void *buffer, size_t size);
11 ssize_t atf_read_nor(uintptr_t offset, void *buffer, size_t size);
12 ssize_t atf_get_pcount(void);
13 ssize_t atf_get_part(struct storage_partition *part, unsigned int index);
14 ssize_t atf_erase_nor(uintptr_t offset, size_t size);
15 ssize_t atf_write_nor(uintptr_t offset, const void *buffer, size_t size);
16 ssize_t atf_write_mmc(uintptr_t offset, const void *buffer, size_t size);
17 ssize_t atf_dram_size(unsigned int node);
18 ssize_t atf_node_count(void);
19 ssize_t atf_env_count(void);
20 ssize_t atf_env_string(size_t index, char *str);
21 
22 #endif
23