Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cvmx-helper-rgmii.c File Reference
#include <asm/octeon/octeon.h>
#include <asm/octeon/cvmx-config.h>
#include <asm/octeon/cvmx-mdio.h>
#include <asm/octeon/cvmx-pko.h>
#include <asm/octeon/cvmx-helper.h>
#include <asm/octeon/cvmx-helper-board.h>
#include <asm/octeon/cvmx-npi-defs.h>
#include <asm/octeon/cvmx-gmxx-defs.h>
#include <asm/octeon/cvmx-asxx-defs.h>
#include <asm/octeon/cvmx-dbg-defs.h>

Go to the source code of this file.

Functions

void __cvmx_interrupt_gmxx_enable (int interface)
 
void __cvmx_interrupt_asxx_enable (int block)
 
int __cvmx_helper_rgmii_probe (int interface)
 
void cvmx_helper_rgmii_internal_loopback (int port)
 
int __cvmx_helper_rgmii_enable (int interface)
 
cvmx_helper_link_info_t __cvmx_helper_rgmii_link_get (int ipd_port)
 
int __cvmx_helper_rgmii_link_set (int ipd_port, cvmx_helper_link_info_t link_info)
 
int __cvmx_helper_rgmii_configure_loopback (int ipd_port, int enable_internal, int enable_external)
 

Function Documentation

int __cvmx_helper_rgmii_configure_loopback ( int  ipd_port,
int  enable_internal,
int  enable_external 
)

Configure a port for internal and/or external loopback. Internal loopback causes packets sent by the port to be received by Octeon. External loopback causes packets received from the wire to sent out again.

: IPD/PKO port to loopback. : Non zero if you want internal loopback : Non zero if you want external loopback

Returns Zero on success, negative on failure.

Definition at line 473 of file cvmx-helper-rgmii.c.

int __cvmx_helper_rgmii_enable ( int  interface)

Definition at line 164 of file cvmx-helper-rgmii.c.

cvmx_helper_link_info_t __cvmx_helper_rgmii_link_get ( int  ipd_port)

Return the link state of an IPD/PKO port as returned by auto negotiation. The result of this function may not match Octeon's link config if auto negotiation has changed since the last call to cvmx_helper_link_set().

: IPD/PKO port to query

Returns Link state

Definition at line 270 of file cvmx-helper-rgmii.c.

int __cvmx_helper_rgmii_link_set ( int  ipd_port,
cvmx_helper_link_info_t  link_info 
)

Configure an IPD/PKO port for the specified link state. This function does not influence auto negotiation at the PHY level. The passed link state must always match the link state returned by cvmx_helper_link_get(). It is normally best to use cvmx_helper_link_autoconf() instead.

: IPD/PKO port to configure : The new link state

Returns Zero on success, negative on failure

Definition at line 301 of file cvmx-helper-rgmii.c.

int __cvmx_helper_rgmii_probe ( int  interface)

Definition at line 57 of file cvmx-helper-rgmii.c.

void __cvmx_interrupt_asxx_enable ( int  block)

Enable ASX error interrupts that exist on CN3XXX, CN50XX, and CN58XX.

: Interface to enable 0-1

Definition at line 50 of file cvmx-interrupt-rsl.c.

void __cvmx_interrupt_gmxx_enable ( int  interface)

Definition at line 76 of file cvmx-interrupt-rsl.c.

void cvmx_helper_rgmii_internal_loopback ( int  port)

Put an RGMII interface in loopback mode. Internal packets sent out will be received back again on the same port. Externally received packets will echo back out.

: IPD port number to loop.

Definition at line 103 of file cvmx-helper-rgmii.c.