Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dscr.c File Reference
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <asm/soc.h>
#include <asm/dscr.h>

Go to the source code of this file.

Data Structures

struct  rmii_reset_reg
 
struct  locked_reg
 
struct  devstate_ctl_reg
 
struct  devstate_stat_reg
 
struct  devstate_info
 
struct  dscr_ops
 
struct  dscr_regs
 

Macros

#define MAX_DEVSTATE_IDS   32
 
#define MAX_DEVCTL_REGS   8
 
#define MAX_DEVSTAT_REGS   8
 
#define MAX_LOCKED_REGS   4
 
#define MAX_SOC_EMACS   2
 

Functions

void dscr_set_devstate (int id, enum dscr_devstate_t state)
 
 EXPORT_SYMBOL (dscr_set_devstate)
 
void dscr_rmii_reset (int id, int assert)
 
 EXPORT_SYMBOL (dscr_rmii_reset)
 
void __init dscr_probe (void)
 

Macro Definition Documentation

#define MAX_DEVCTL_REGS   8

Definition at line 39 of file dscr.c.

#define MAX_DEVSTAT_REGS   8

Definition at line 40 of file dscr.c.

#define MAX_DEVSTATE_IDS   32

Definition at line 38 of file dscr.c.

#define MAX_LOCKED_REGS   4

Definition at line 41 of file dscr.c.

#define MAX_SOC_EMACS   2

Definition at line 42 of file dscr.c.

Function Documentation

void __init dscr_probe ( void  )

Definition at line 570 of file dscr.c.

void dscr_rmii_reset ( int  id,
int  assert 
)

Definition at line 259 of file dscr.c.

void dscr_set_devstate ( int  id,
enum dscr_devstate_t  state 
)

Definition at line 190 of file dscr.c.

EXPORT_SYMBOL ( dscr_set_devstate  )
EXPORT_SYMBOL ( dscr_rmii_reset  )