blob: 0a53c2f1de58f682aa0b1dde2672bd1660adb817 [file] [log] [blame]
Sergey Temerkhanov900f88f2015-10-14 09:55:51 -07001/**
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
10ssize_t atf_read_mmc(uintptr_t offset, void *buffer, size_t size);
11ssize_t atf_read_nor(uintptr_t offset, void *buffer, size_t size);
12ssize_t atf_get_pcount(void);
13ssize_t atf_get_part(struct storage_partition *part, unsigned int index);
14ssize_t atf_erase_nor(uintptr_t offset, size_t size);
15ssize_t atf_write_nor(uintptr_t offset, const void *buffer, size_t size);
16ssize_t atf_write_mmc(uintptr_t offset, const void *buffer, size_t size);
17ssize_t atf_dram_size(unsigned int node);
18ssize_t atf_node_count(void);
19ssize_t atf_env_count(void);
20ssize_t atf_env_string(size_t index, char *str);
21
22#endif