1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2015 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
19 * get_info() - Get basic memory info
21 * @dev: Device to check (UCLASS_RAM)
22 * @info: Place to put info
23 * @return 0 if OK, -ve on error
25 int (*get_info)(struct udevice *dev, struct ram_info *info);
28 #define ram_get_ops(dev) ((struct ram_ops *)(dev)->driver->ops)
31 * ram_get_info() - Get information about a RAM device
33 * @dev: Device to check (UCLASS_RAM)
34 * @info: Returns RAM info
35 * @return 0 if OK, -ve on error
37 int ram_get_info(struct udevice *dev, struct ram_info *info);