Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
rio-scan.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/init.h>
#include <linux/rio.h>
#include <linux/rio_drv.h>
#include <linux/rio_ids.h>
#include <linux/rio_regs.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/timer.h>
#include <linux/sched.h>
#include <linux/jiffies.h>
#include <linux/slab.h>
#include "rio.h"

Go to the source code of this file.

Functions

 LIST_HEAD (rio_devices)
 
 DEFINE_SPINLOCK (rio_global_list_lock)
 
int rio_enable_rx_tx_port (struct rio_mport *port, int local, u16 destid, u8 hopcount, u8 port_num)
 
int __devinit rio_enum_mport (struct rio_mport *mport)
 
int __devinit rio_disc_mport (struct rio_mport *mport)
 

Function Documentation

DEFINE_SPINLOCK ( rio_global_list_lock  )
LIST_HEAD ( rio_devices  )
int __devinit rio_disc_mport ( struct rio_mport mport)

rio_disc_mport- Start discovery through a master port : Master port to send transactions

Starts the discovery process. If we have an active link, then wait for the signal that enumeration is complete. When enumeration completion is signaled, start recursive peer discovery. Returns %0 if discovery succeeds or %-EBUSY on failure.

Definition at line 1372 of file rio-scan.c.

int rio_enable_rx_tx_port ( struct rio_mport port,
int  local,
u16  destid,
u8  hopcount,
u8  port_num 
)
inline

rio_enable_rx_tx_port - enable input receiver and output transmitter of given port : Master port associated with the RIO network : local=1 select local port otherwise a far device is reached : Destination ID of the device to check host bit : Number of hops to reach the target : Port (-number on switch) to enable on a far end device

Returns 0 or 1 from on General Control Command and Status Register (EXT_PTR+0x3C)

Definition at line 403 of file rio-scan.c.

int __devinit rio_enum_mport ( struct rio_mport mport)

rio_enum_mport- Start enumeration through a master port : Master port to send transactions

Starts the enumeration process. If somebody has enumerated our master port device, then give up. If not and we have an active link, then start recursive peer enumeration. Returns %0 if enumeration succeeds or %-EBUSY if enumeration fails.

Definition at line 1269 of file rio-scan.c.