Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
qe.c File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/bootmem.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/ioport.h>
#include <linux/crc32.h>
#include <linux/mod_devicetable.h>
#include <linux/of_platform.h>
#include <asm/irq.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/immap_qe.h>
#include <asm/qe.h>
#include <asm/prom.h>
#include <asm/rheap.h>

Go to the source code of this file.

Data Structures

struct  qe_snum
 

Macros

#define MAX_QE_RISC   4
 

Enumerations

enum  qe_snum_state { QE_SNUM_STATE_USED, QE_SNUM_STATE_FREE }
 

Functions

 DEFINE_SPINLOCK (cmxgcr_lock)
 
 EXPORT_SYMBOL (cmxgcr_lock)
 
 EXPORT_SYMBOL (qe_immr)
 
phys_addr_t get_qe_base (void)
 
 EXPORT_SYMBOL (get_qe_base)
 
void qe_reset (void)
 
int qe_issue_cmd (u32 cmd, u32 device, u8 mcn_protocol, u32 cmd_input)
 
 EXPORT_SYMBOL (qe_issue_cmd)
 
unsigned int qe_get_brg_clk (void)
 
 EXPORT_SYMBOL (qe_get_brg_clk)
 
int qe_setbrg (enum qe_clock brg, unsigned int rate, unsigned int multiplier)
 
 EXPORT_SYMBOL (qe_setbrg)
 
enum qe_clock qe_clock_source (const char *source)
 
 EXPORT_SYMBOL (qe_clock_source)
 
int qe_get_snum (void)
 
 EXPORT_SYMBOL (qe_get_snum)
 
void qe_put_snum (u8 snum)
 
 EXPORT_SYMBOL (qe_put_snum)
 
int qe_upload_firmware (const struct qe_firmware *firmware)
 
 EXPORT_SYMBOL (qe_upload_firmware)
 
struct qe_firmware_info * qe_get_firmware_info (void)
 
 EXPORT_SYMBOL (qe_get_firmware_info)
 
unsigned int qe_get_num_of_risc (void)
 
 EXPORT_SYMBOL (qe_get_num_of_risc)
 
unsigned int qe_get_num_of_snums (void)
 
 EXPORT_SYMBOL (qe_get_num_of_snums)
 

Variables

struct qe_immap __iomemqe_immr
 

Macro Definition Documentation

#define MAX_QE_RISC   4

Definition at line 361 of file qe.c.

Enumeration Type Documentation

Enumerator:
QE_SNUM_STATE_USED 
QE_SNUM_STATE_FREE 

Definition at line 48 of file qe.c.

Function Documentation

DEFINE_SPINLOCK ( cmxgcr_lock  )
EXPORT_SYMBOL ( cmxgcr_lock  )
EXPORT_SYMBOL ( qe_immr  )
EXPORT_SYMBOL ( get_qe_base  )
EXPORT_SYMBOL ( qe_issue_cmd  )
EXPORT_SYMBOL ( qe_get_brg_clk  )
EXPORT_SYMBOL ( qe_setbrg  )
EXPORT_SYMBOL ( qe_clock_source  )
EXPORT_SYMBOL ( qe_get_snum  )
EXPORT_SYMBOL ( qe_put_snum  )
EXPORT_SYMBOL ( qe_upload_firmware  )
EXPORT_SYMBOL ( qe_get_firmware_info  )
EXPORT_SYMBOL ( qe_get_num_of_risc  )
EXPORT_SYMBOL ( qe_get_num_of_snums  )
phys_addr_t get_qe_base ( void  )

Definition at line 70 of file qe.c.

enum qe_clock qe_clock_source ( const char source)

Definition at line 236 of file qe.c.

unsigned int qe_get_brg_clk ( void  )

Definition at line 167 of file qe.c.

struct qe_firmware_info* qe_get_firmware_info ( void  )
read

Definition at line 538 of file qe.c.

unsigned int qe_get_num_of_risc ( void  )

Definition at line 611 of file qe.c.

unsigned int qe_get_num_of_snums ( void  )

Definition at line 639 of file qe.c.

int qe_get_snum ( void  )

Definition at line 304 of file qe.c.

int qe_issue_cmd ( u32  cmd,
u32  device,
u8  mcn_protocol,
u32  cmd_input 
)

Definition at line 113 of file qe.c.

void qe_put_snum ( u8  snum)

Definition at line 324 of file qe.c.

void qe_reset ( void  )

Definition at line 96 of file qe.c.

int qe_setbrg ( enum qe_clock  brg,
unsigned int  rate,
unsigned int  multiplier 
)

Definition at line 201 of file qe.c.

int qe_upload_firmware ( const struct qe_firmware *  firmware)

Definition at line 420 of file qe.c.

Variable Documentation

struct qe_immap __iomem* qe_immr

Definition at line 62 of file qe.c.