xref: /openbmc/u-boot/include/fsl-mc/fsl_mc_sys.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
27b3bd9a7SJ. German Rivera /*
37b3bd9a7SJ. German Rivera  * Freescale Layerscape Management Complex (MC) Environment-specific code
47b3bd9a7SJ. German Rivera  *
57b3bd9a7SJ. German Rivera  * Copyright (C) 2014 Freescale Semiconductor, Inc.
67b3bd9a7SJ. German Rivera  */
77b3bd9a7SJ. German Rivera 
87b3bd9a7SJ. German Rivera #ifndef _FSL_MC_SYS_H
97b3bd9a7SJ. German Rivera #define _FSL_MC_SYS_H
107b3bd9a7SJ. German Rivera 
117b3bd9a7SJ. German Rivera #include <asm/io.h>
127b3bd9a7SJ. German Rivera 
137b3bd9a7SJ. German Rivera struct mc_command;
147b3bd9a7SJ. German Rivera 
157b3bd9a7SJ. German Rivera /*
167b3bd9a7SJ. German Rivera  * struct mc_portal_wrapper - MC command portal wrapper object
177b3bd9a7SJ. German Rivera  */
187b3bd9a7SJ. German Rivera struct fsl_mc_io {
197b3bd9a7SJ. German Rivera 	struct mc_command __iomem *mmio_regs;
207b3bd9a7SJ. German Rivera };
217b3bd9a7SJ. German Rivera 
227b3bd9a7SJ. German Rivera int mc_send_command(struct fsl_mc_io *mc_io,
237b3bd9a7SJ. German Rivera 		    struct mc_command *cmd);
247b3bd9a7SJ. German Rivera 
257b3bd9a7SJ. German Rivera #endif /* _FSL_MC_SYS_H */
26