Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
altera.c File Reference
#include <asm/unaligned.h>
#include <linux/ctype.h>
#include <linux/string.h>
#include <linux/firmware.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <misc/altera.h>
#include "altera-exprt.h"
#include "altera-jtag.h"

Go to the source code of this file.

Data Structures

struct  altera_procinfo
 

Macros

#define dprintk(args...)
 
#define HEX_LINE_CHARS   72
 
#define HEX_LINE_BITS   (HEX_LINE_CHARS * 4)
 

Enumerations

enum  altera_fpga_opcode {
  OP_NOP = 0, OP_DUP, OP_SWP, OP_ADD,
  OP_SUB, OP_MULT, OP_DIV, OP_MOD,
  OP_SHL, OP_SHR, OP_NOT, OP_AND,
  OP_OR, OP_XOR, OP_INV, OP_GT,
  OP_LT, OP_RET, OP_CMPS, OP_PINT,
  OP_PRNT, OP_DSS, OP_DSSC, OP_ISS,
  OP_ISSC, OP_DPR = 0x1c, OP_DPRL, OP_DPO,
  OP_DPOL, OP_IPR, OP_IPRL, OP_IPO,
  OP_IPOL, OP_PCHR, OP_EXIT, OP_EQU,
  OP_POPT, OP_ABS = 0x2c, OP_BCH0, OP_PSH0 = 0x2f,
  OP_PSHL = 0x40, OP_PSHV, OP_JMP, OP_CALL,
  OP_NEXT, OP_PSTR, OP_SINT = 0x47, OP_ST,
  OP_ISTP, OP_DSTP, OP_SWPN, OP_DUPN,
  OP_POPV, OP_POPE, OP_POPA, OP_JMPZ,
  OP_DS, OP_IS, OP_DPRA, OP_DPOA,
  OP_IPRA, OP_IPOA, OP_EXPT, OP_PSHE,
  OP_PSHA, OP_DYNA, OP_EXPV = 0x5c, OP_COPY = 0x80,
  OP_REVA, OP_DSC, OP_ISC, OP_WAIT,
  OP_VS, OP_CMPA = 0xc0, OP_VSC
}
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"enable debugging information")
 
 MODULE_DESCRIPTION ("altera FPGA kernel module")
 
 MODULE_AUTHOR ("Igor M. Liplianin <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
int altera_init (struct altera_config *config, const struct firmware *fw)
 
 EXPORT_SYMBOL (altera_init)
 

Macro Definition Documentation

#define dprintk (   args...)
Value:
if (debug) { \
printk(KERN_DEBUG args); \
}

Definition at line 44 of file altera.c.

#define HEX_LINE_BITS   (HEX_LINE_CHARS * 4)

Definition at line 150 of file altera.c.

#define HEX_LINE_CHARS   72

Definition at line 149 of file altera.c.

Enumeration Type Documentation

Enumerator:
OP_NOP 
OP_DUP 
OP_SWP 
OP_ADD 
OP_SUB 
OP_MULT 
OP_DIV 
OP_MOD 
OP_SHL 
OP_SHR 
OP_NOT 
OP_AND 
OP_OR 
OP_XOR 
OP_INV 
OP_GT 
OP_LT 
OP_RET 
OP_CMPS 
OP_PINT 
OP_PRNT 
OP_DSS 
OP_DSSC 
OP_ISS 
OP_ISSC 
OP_DPR 
OP_DPRL 
OP_DPO 
OP_DPOL 
OP_IPR 
OP_IPRL 
OP_IPO 
OP_IPOL 
OP_PCHR 
OP_EXIT 
OP_EQU 
OP_POPT 
OP_ABS 
OP_BCH0 
OP_PSH0 
OP_PSHL 
OP_PSHV 
OP_JMP 
OP_CALL 
OP_NEXT 
OP_PSTR 
OP_SINT 
OP_ST 
OP_ISTP 
OP_DSTP 
OP_SWPN 
OP_DUPN 
OP_POPV 
OP_POPE 
OP_POPA 
OP_JMPZ 
OP_DS 
OP_IS 
OP_DPRA 
OP_DPOA 
OP_IPRA 
OP_IPOA 
OP_EXPT 
OP_PSHE 
OP_PSHA 
OP_DYNA 
OP_EXPV 
OP_COPY 
OP_REVA 
OP_DSC 
OP_ISC 
OP_WAIT 
OP_VS 
OP_CMPA 
OP_VSC 

Definition at line 49 of file altera.c.

Function Documentation

int altera_init ( struct altera_config config,
const struct firmware fw 
)

Definition at line 2417 of file altera.c.

EXPORT_SYMBOL ( altera_init  )
MODULE_AUTHOR ( "Igor M. Liplianin <[email protected]>"  )
MODULE_DESCRIPTION ( "altera FPGA kernel module )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"enable debugging information"   
)