Lines Matching +full:axi +full:- +full:bus
1 // SPDX-License-Identifier: GPL-2.0+
8 #include <axi.h>
10 #include <asm/axi.h>
13 * This driver implements a AXI bus for the sandbox architecture for testing
16 * The bus forwards every access to it to a special AXI emulation device (which
24 static int axi_sandbox_read(struct udevice *bus, ulong address, void *data, in axi_sandbox_read() argument
32 ret = axi_sandbox_get_emul(bus, address, size, &emul); in axi_sandbox_read()
34 return ret == -ENODEV ? 0 : ret; in axi_sandbox_read()
35 /* Forward all reads to the AXI emulator */ in axi_sandbox_read()
37 if (!ops || !ops->read) in axi_sandbox_read()
38 return -ENOSYS; in axi_sandbox_read()
40 return ops->read(emul, address, data, size); in axi_sandbox_read()
43 static int axi_sandbox_write(struct udevice *bus, ulong address, void *data, in axi_sandbox_write() argument
51 ret = axi_sandbox_get_emul(bus, address, size, &emul); in axi_sandbox_write()
53 return ret == -ENODEV ? 0 : ret; in axi_sandbox_write()
54 /* Forward all writes to the AXI emulator */ in axi_sandbox_write()
56 if (!ops || !ops->write) in axi_sandbox_write()
57 return -ENOSYS; in axi_sandbox_write()
59 return ops->write(emul, address, data, size); in axi_sandbox_write()
63 { .compatible = "sandbox,axi" },