Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cvmx-helper-spi.c File Reference
#include <asm/octeon/octeon.h>
#include <asm/octeon/cvmx-config.h>
#include <asm/octeon/cvmx-spi.h>
#include <asm/octeon/cvmx-helper.h>
#include <asm/octeon/cvmx-pip-defs.h>
#include <asm/octeon/cvmx-pko-defs.h>

Go to the source code of this file.

Macros

#define CVMX_HELPER_SPI_TIMEOUT   10
 

Functions

void __cvmx_interrupt_gmxx_enable (int interface)
 
void __cvmx_interrupt_spxx_int_msk_enable (int index)
 
void __cvmx_interrupt_stxx_int_msk_enable (int index)
 
int __cvmx_helper_spi_enumerate (int interface)
 
int __cvmx_helper_spi_probe (int interface)
 
int __cvmx_helper_spi_enable (int interface)
 
cvmx_helper_link_info_t __cvmx_helper_spi_link_get (int ipd_port)
 
int __cvmx_helper_spi_link_set (int ipd_port, cvmx_helper_link_info_t link_info)
 

Macro Definition Documentation

#define CVMX_HELPER_SPI_TIMEOUT   10

Definition at line 51 of file cvmx-helper-spi.c.

Function Documentation

int __cvmx_helper_spi_enable ( int  interface)

Definition at line 106 of file cvmx-helper-spi.c.

int __cvmx_helper_spi_enumerate ( int  interface)

Definition at line 54 of file cvmx-helper-spi.c.

cvmx_helper_link_info_t __cvmx_helper_spi_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 145 of file cvmx-helper-spi.c.

int __cvmx_helper_spi_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 199 of file cvmx-helper-spi.c.

int __cvmx_helper_spi_probe ( int  interface)

Definition at line 73 of file cvmx-helper-spi.c.

void __cvmx_interrupt_gmxx_enable ( int  interface)

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

void __cvmx_interrupt_spxx_int_msk_enable ( int  index)

__cvmx_interrupt_spxx_int_msk_enable enables all interrupt bits in cvmx_spxx_int_msk_t

Definition at line 303 of file cvmx-interrupt-decodes.c.

void __cvmx_interrupt_stxx_int_msk_enable ( int  index)

__cvmx_interrupt_stxx_int_msk_enable enables all interrupt bits in cvmx_stxx_int_msk_t

Definition at line 342 of file cvmx-interrupt-decodes.c.