blob: 3cf05c43d72e1ba23868a298a48ebbf6345e6171 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Sergey Temerkhanov900f88f2015-10-14 09:55:51 -07002/**
3 * (C) Copyright 2014, Cavium Inc.
Sergey Temerkhanov900f88f2015-10-14 09:55:51 -07004**/
5#ifndef __ATF_H__
6#define __ATF_H__
7#include <cavium/atf_part.h>
8
9ssize_t atf_read_mmc(uintptr_t offset, void *buffer, size_t size);
10ssize_t atf_read_nor(uintptr_t offset, void *buffer, size_t size);
11ssize_t atf_get_pcount(void);
12ssize_t atf_get_part(struct storage_partition *part, unsigned int index);
13ssize_t atf_erase_nor(uintptr_t offset, size_t size);
14ssize_t atf_write_nor(uintptr_t offset, const void *buffer, size_t size);
15ssize_t atf_write_mmc(uintptr_t offset, const void *buffer, size_t size);
16ssize_t atf_dram_size(unsigned int node);
17ssize_t atf_node_count(void);
18ssize_t atf_env_count(void);
19ssize_t atf_env_string(size_t index, char *str);
20
21#endif