162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Cell Pervasive Monitor and Debug interface and HW structures
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * (C) Copyright IBM Corporation 2005
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Authors: Maximino Aguilar (maguilar@us.ibm.com)
862306a36Sopenharmony_ci *          David J. Erb (djerb@us.ibm.com)
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#ifndef PERVASIVE_H
1362306a36Sopenharmony_ci#define PERVASIVE_H
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciextern void cbe_pervasive_init(void);
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#ifdef CONFIG_PPC_IBM_CELL_RESETBUTTON
1862306a36Sopenharmony_ciextern int cbe_sysreset_hack(void);
1962306a36Sopenharmony_ci#else
2062306a36Sopenharmony_cistatic inline int cbe_sysreset_hack(void)
2162306a36Sopenharmony_ci{
2262306a36Sopenharmony_ci	return 1;
2362306a36Sopenharmony_ci}
2462306a36Sopenharmony_ci#endif /* CONFIG_PPC_IBM_CELL_RESETBUTTON */
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci#endif
27