1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2019 Intel Corporation <www.intel.com>
10 * Structure for the cache controller
13 phys_addr_t base; /* Base physical address of cache device. */
18 * get_info() - Get basic cache info
20 * @dev: Device to check (UCLASS_CACHE)
21 * @info: Place to put info
22 * @return 0 if OK, -ve on error
24 int (*get_info)(struct udevice *dev, struct cache_info *info);
27 #define cache_get_ops(dev) ((struct cache_ops *)(dev)->driver->ops)
30 * cache_get_info() - Get information about a cache controller
32 * @dev: Device to check (UCLASS_CACHE)
33 * @info: Returns cache info
34 * @return 0 if OK, -ve on error
36 int cache_get_info(struct udevice *dev, struct cache_info *info);