blob: 07fd50ad3a363f42c1070158ff1fa2d3378452f2 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Rafal Jaworowski500856e2008-01-09 19:39:36 +01002/*
3 * (C) Copyright 2007 Semihalf
4 *
5 * Written by: Rafal Jaworowski <raj@semihalf.com>
Rafal Jaworowski500856e2008-01-09 19:39:36 +01006 */
7
8#ifndef _API_PRIVATE_H_
9#define _API_PRIVATE_H_
10
11void api_init(void);
12void 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 Ciocaltea036218a2019-01-12 02:03:15 +020025lbasize_t dev_write_stor(void *, void *, lbasize_t, lbastart_t);
Rafal Jaworowski500856e2008-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 Chioua2a57292011-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 Jaworowski500856e2008-01-09 19:39:36 +010035#endif /* _API_PRIVATE_H_ */