![]() |
|
|||
0001 /***********************license start*************** 0002 * Author: Cavium Networks 0003 * 0004 * Contact: support@caviumnetworks.com 0005 * This file is part of the OCTEON SDK 0006 * 0007 * Copyright (c) 2003-2008 Cavium Networks 0008 * 0009 * This file is free software; you can redistribute it and/or modify 0010 * it under the terms of the GNU General Public License, Version 2, as 0011 * published by the Free Software Foundation. 0012 * 0013 * This file is distributed in the hope that it will be useful, but 0014 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 0015 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or 0016 * NONINFRINGEMENT. See the GNU General Public License for more 0017 * details. 0018 * 0019 * You should have received a copy of the GNU General Public License 0020 * along with this file; if not, write to the Free Software 0021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 0022 * or visit http://www.gnu.org/licenses/. 0023 * 0024 * This file may also be available under a different license from Cavium. 0025 * Contact Cavium Networks for more information 0026 ***********************license end**************************************/ 0027 0028 /* 0029 * This module provides system/board/application information obtained 0030 * by the bootloader. 0031 */ 0032 #include <linux/export.h> 0033 0034 #include <asm/octeon/cvmx.h> 0035 #include <asm/octeon/cvmx-sysinfo.h> 0036 0037 /* 0038 * This structure defines the private state maintained by sysinfo module. 0039 */ 0040 static struct cvmx_sysinfo sysinfo; /* system information */ 0041 0042 /* 0043 * Returns the application information as obtained 0044 * by the bootloader. This provides the core mask of the cores 0045 * running the same application image, as well as the physical 0046 * memory regions available to the core. 0047 */ 0048 struct cvmx_sysinfo *cvmx_sysinfo_get(void) 0049 { 0050 return &sysinfo; 0051 } 0052 EXPORT_SYMBOL(cvmx_sysinfo_get); 0053
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |