blob: bb23821c2c0ff3a150bfd577977e37fc237c3b6e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Rafal Jaworowskia19be782008-01-09 19:39:36 +01002/*
3 * (C) Copyright 2007 Semihalf
4 *
5 * Written by: Rafal Jaworowski <raj@semihalf.com>
Rafal Jaworowskia19be782008-01-09 19:39:36 +01006 */
7
8#ifndef _API_PRIVATE_H_
9#define _API_PRIVATE_H_
10
Ovidiu Panait4119ea432020-11-28 10:43:16 +020011int api_init(void);
Rafal Jaworowskia19be782008-01-09 19:39:36 +010012void platform_set_mr(struct sys_info *, unsigned long, unsigned long, int);
13int platform_sys_info(struct sys_info *);
14
15void dev_enum_reset(void);
16int dev_enum_storage(struct device_info *);
17int dev_enum_net(struct device_info *);
18
19int dev_open_stor(void *);
20int dev_open_net(void *);
21int dev_close_stor(void *);
22int dev_close_net(void *);
23
24lbasize_t dev_read_stor(void *, void *, lbasize_t, lbastart_t);
Cristian Ciocaltea29f2ace2019-01-12 02:03:15 +020025lbasize_t dev_write_stor(void *, void *, lbasize_t, lbastart_t);
Rafal Jaworowskia19be782008-01-09 19:39:36 +010026int dev_read_net(void *, void *, int);
27int dev_write_net(void *, void *, int);
28
29void dev_stor_init(void);
30
Che-Liang Chiou0d460412011-10-20 23:04:22 +000031int display_get_info(int type, struct display_info *di);
32int display_draw_bitmap(ulong bitmap, int x, int y);
33void display_clear(void);
34
Rafal Jaworowskia19be782008-01-09 19:39:36 +010035#endif /* _API_PRIVATE_H_ */