162306a36Sopenharmony_ci/***********************license start*************** 262306a36Sopenharmony_ci * Author: Cavium Networks 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Contact: support@caviumnetworks.com 562306a36Sopenharmony_ci * This file is part of the OCTEON SDK 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Copyright (c) 2003-2008 Cavium Networks 862306a36Sopenharmony_ci * 962306a36Sopenharmony_ci * This file is free software; you can redistribute it and/or modify 1062306a36Sopenharmony_ci * it under the terms of the GNU General Public License, Version 2, as 1162306a36Sopenharmony_ci * published by the Free Software Foundation. 1262306a36Sopenharmony_ci * 1362306a36Sopenharmony_ci * This file is distributed in the hope that it will be useful, but 1462306a36Sopenharmony_ci * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 1562306a36Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or 1662306a36Sopenharmony_ci * NONINFRINGEMENT. See the GNU General Public License for more 1762306a36Sopenharmony_ci * details. 1862306a36Sopenharmony_ci * 1962306a36Sopenharmony_ci * You should have received a copy of the GNU General Public License 2062306a36Sopenharmony_ci * along with this file; if not, write to the Free Software 2162306a36Sopenharmony_ci * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 2262306a36Sopenharmony_ci * or visit http://www.gnu.org/licenses/. 2362306a36Sopenharmony_ci * 2462306a36Sopenharmony_ci * This file may also be available under a different license from Cavium. 2562306a36Sopenharmony_ci * Contact Cavium Networks for more information 2662306a36Sopenharmony_ci ***********************license end**************************************/ 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci/* 2962306a36Sopenharmony_ci * This module provides system/board/application information obtained 3062306a36Sopenharmony_ci * by the bootloader. 3162306a36Sopenharmony_ci */ 3262306a36Sopenharmony_ci#include <linux/export.h> 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci#include <asm/octeon/cvmx.h> 3562306a36Sopenharmony_ci#include <asm/octeon/cvmx-sysinfo.h> 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci/* 3862306a36Sopenharmony_ci * This structure defines the private state maintained by sysinfo module. 3962306a36Sopenharmony_ci */ 4062306a36Sopenharmony_cistatic struct cvmx_sysinfo sysinfo; /* system information */ 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ci/* 4362306a36Sopenharmony_ci * Returns the application information as obtained 4462306a36Sopenharmony_ci * by the bootloader. This provides the core mask of the cores 4562306a36Sopenharmony_ci * running the same application image, as well as the physical 4662306a36Sopenharmony_ci * memory regions available to the core. 4762306a36Sopenharmony_ci */ 4862306a36Sopenharmony_cistruct cvmx_sysinfo *cvmx_sysinfo_get(void) 4962306a36Sopenharmony_ci{ 5062306a36Sopenharmony_ci return &sysinfo; 5162306a36Sopenharmony_ci} 5262306a36Sopenharmony_ciEXPORT_SYMBOL(cvmx_sysinfo_get); 5362306a36Sopenharmony_ci 54