mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
sandbox: test: Add a prototype for sandbox_set_enable_memio()
This function needs a prototype so that tests can use it. Add one. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
8417385dc9
commit
619025b8d6
1 changed files with 11 additions and 0 deletions
|
@ -213,4 +213,15 @@ int sandbox_get_pci_ep_irq_count(struct udevice *dev);
|
|||
*/
|
||||
uint sandbox_pci_read_bar(u32 barval, int type, uint size);
|
||||
|
||||
/**
|
||||
* sandbox_set_enable_memio() - Enable readl/writel() for sandbox
|
||||
*
|
||||
* Normally these I/O functions do nothing with sandbox. Certain tests need them
|
||||
* to work as for other architectures, so this function can be used to enable
|
||||
* them.
|
||||
*
|
||||
* @enable: true to enable, false to disable
|
||||
*/
|
||||
void sandbox_set_enable_memio(bool enable);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue