![]() |
|
|||
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 * @file 0030 * 0031 * Functions for NPI initialization, configuration, 0032 * and monitoring. 0033 * 0034 */ 0035 #ifndef __CVMX_HELPER_NPI_H__ 0036 #define __CVMX_HELPER_NPI_H__ 0037 0038 /** 0039 * Probe a NPI interface and determine the number of ports 0040 * connected to it. The NPI interface should still be down after 0041 * this call. 0042 * 0043 * @interface: Interface to probe 0044 * 0045 * Returns Number of ports on the interface. Zero to disable. 0046 */ 0047 extern int __cvmx_helper_npi_probe(int interface); 0048 #define __cvmx_helper_npi_enumerate __cvmx_helper_npi_probe 0049 0050 /** 0051 * Bringup and enable a NPI interface. After this call packet 0052 * I/O should be fully functional. This is called with IPD 0053 * enabled but PKO disabled. 0054 * 0055 * @interface: Interface to bring up 0056 * 0057 * Returns Zero on success, negative on failure 0058 */ 0059 extern int __cvmx_helper_npi_enable(int interface); 0060 0061 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |