Path: blob/master/arch/mips/cavium-octeon/executive/cvmx-sysinfo.c
26481 views
/***********************license start***************1* Author: Cavium Networks2*3* Contact: [email protected]4* This file is part of the OCTEON SDK5*6* Copyright (c) 2003-2008 Cavium Networks7*8* This file is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License, Version 2, as10* published by the Free Software Foundation.11*12* This file is distributed in the hope that it will be useful, but13* AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty14* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or15* NONINFRINGEMENT. See the GNU General Public License for more16* details.17*18* You should have received a copy of the GNU General Public License19* along with this file; if not, write to the Free Software20* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA21* or visit http://www.gnu.org/licenses/.22*23* This file may also be available under a different license from Cavium.24* Contact Cavium Networks for more information25***********************license end**************************************/2627/*28* This module provides system/board/application information obtained29* by the bootloader.30*/31#include <linux/export.h>3233#include <asm/octeon/cvmx.h>34#include <asm/octeon/cvmx-sysinfo.h>3536/*37* This structure defines the private state maintained by sysinfo module.38*/39static struct cvmx_sysinfo sysinfo; /* system information */4041/*42* Returns the application information as obtained43* by the bootloader. This provides the core mask of the cores44* running the same application image, as well as the physical45* memory regions available to the core.46*/47struct cvmx_sysinfo *cvmx_sysinfo_get(void)48{49return &sysinfo;50}51EXPORT_SYMBOL(cvmx_sysinfo_get);52535455