1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2022 Xilinx, Inc. 4 */ 5 #ifndef _XILINX_MB_MANAGER_H 6 #define _XILINX_MB_MANAGER_H 7 8 #include <linux/of_address.h> 9 10 /* 11 * When the break vector gets asserted because of error injection, the break 12 * signal must be blocked before exiting from the break handler, Below api 13 * updates the manager address and control register and error counter callback 14 * arguments, which will be used by the break handler to block the break and 15 * call the callback function. 16 */ 17 void xmb_manager_register(uintptr_t phys_baseaddr, u32 cr_val, 18 void (*callback)(void *data), 19 void *priv, void (*reset_callback)(void *data)); 20 21 #endif /* _XILINX_MB_MANAGER_H */ 22