![]() |
|
|||
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 published by 0011 * the Free Software Foundation. 0012 * 0013 * This file is distributed in the hope that it will be useful, 0014 * but AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty of 0015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or NONINFRINGEMENT. 0016 * See the GNU General Public License for more details. 0017 * 0018 * You should have received a copy of the GNU General Public License 0019 * along with this file; if not, write to the Free Software 0020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 0021 * or visit http://www.gnu.org/licenses/. 0022 * 0023 * This file may also be available under a different license from Cavium. 0024 * Contact Cavium Networks for more information 0025 ***********************license end**************************************/ 0026 0027 /** 0028 * @file 0029 * 0030 * Functions for LOOP initialization, configuration, 0031 * and monitoring. 0032 * 0033 */ 0034 #ifndef __CVMX_HELPER_LOOP_H__ 0035 #define __CVMX_HELPER_LOOP_H__ 0036 0037 /** 0038 * Probe a LOOP interface and determine the number of ports 0039 * connected to it. The LOOP interface should still be down after 0040 * this call. 0041 * 0042 * @interface: Interface to probe 0043 * 0044 * Returns Number of ports on the interface. Zero to disable. 0045 */ 0046 extern int __cvmx_helper_loop_probe(int interface); 0047 static inline int __cvmx_helper_loop_enumerate(int interface) {return 4; } 0048 0049 /** 0050 * Bringup and enable a LOOP interface. After this call packet 0051 * I/O should be fully functional. This is called with IPD 0052 * enabled but PKO disabled. 0053 * 0054 * @interface: Interface to bring up 0055 * 0056 * Returns Zero on success, negative on failure 0057 */ 0058 extern int __cvmx_helper_loop_enable(int interface); 0059 0060 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |