2 * Copyright (c) 2015 Google, Inc
3 * Written by Simon Glass <sjg@chromium.org>
5 * SPDX-License-Identifier: GPL-2.0+
18 * get_info() - Get basic memory info
20 * @dev: Device to check (UCLASS_RAM)
21 * @info: Place to put info
22 * @return 0 if OK, -ve on error
24 int (*get_info)(struct udevice *dev, struct ram_info *info);
27 #define ram_get_ops(dev) ((struct ram_ops *)(dev)->driver->ops)
30 * ram_get_info() - Get information about a RAM device
32 * @dev: Device to check (UCLASS_RAM)
33 * @info: Returns RAM info
34 * @return 0 if OK, -ve on error
36 int ram_get_info(struct udevice *dev, struct ram_info *info);