Lines Matching +full:device +full:- +full:width
1 /* SPDX-License-Identifier: GPL-2.0+ */
10 #define axi_emul_get_ops(dev) ((struct axi_emul_ops *)(dev)->driver->ops)
13 * axi_sandbox_get_emul() - Retrieve a pointer to a AXI emulation device
14 * @bus: The AXI bus from which to retrieve a emulation device
16 * device
17 * @length: The data width of a transfer that should be handled by a emulation
18 * device
19 * @emulp: Pointer to a buffer receiving the emulation device that handles
22 * To test the AXI uclass, we implement a simple AXI emulation device, which is
23 * a virtual device on a AXI bus that exposes a simple storage interface: When
24 * reading and writing from the device, the addresses are translated to offsets
25 * within the device's storage. For write accesses the data is written to the
33 * #address-cells = <0x1>;
34 * #size-cells = <0x1>;
42 * emulation device given the AXI bus device, and the data (address, data
43 * width) of a AXI transfer which should be handled by a emulation device.
45 * Return: 0 of OK, -ENODEV if no device capable of handling the specified
46 * transfer exists or the device could not be retrieved
51 * axi_get_store() - Get address of internal storage of a emulated AXI device
52 * @dev: Emulated AXI device to get the pointer of the internal storage
54 * @storep: Pointer to the internal storage of the emulated AXI device.
57 * device, this function returns the pointer to the storage. Changes to the
62 * Return: 0 if OK, -ve on error.