Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
emi26.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/usb.h>
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/ihex.h>

Go to the source code of this file.

Macros

#define EMI26_VENDOR_ID   0x086a /* Emagic Soft-und Hardware GmBH */
 
#define EMI26_PRODUCT_ID   0x0100 /* EMI 2|6 without firmware */
 
#define EMI26B_PRODUCT_ID   0x0102 /* EMI 2|6 without firmware */
 
#define ANCHOR_LOAD_INTERNAL   0xA0 /* Vendor specific request code for Anchor Upload/Download (This one is implemented in the core) */
 
#define ANCHOR_LOAD_EXTERNAL   0xA3 /* This command is not implemented in the core. Requires firmware */
 
#define ANCHOR_LOAD_FPGA   0xA5 /* This command is not implemented in the core. Requires firmware. Emagic extension */
 
#define MAX_INTERNAL_ADDRESS   0x1B3F /* This is the highest internal RAM address for the AN2131Q */
 
#define CPUCS_REG   0x7F92 /* EZ-USB Control and Status Register. Bit 0 controls 8051 reset */
 
#define INTERNAL_RAM(address)   (address <= MAX_INTERNAL_ADDRESS)
 
#define FW_LOAD_SIZE   1023
 

Functions

 MODULE_DEVICE_TABLE (usb, id_table)
 
 module_usb_driver (emi26_driver)
 
 MODULE_AUTHOR ("Tapio Laxström")
 
 MODULE_DESCRIPTION ("Emagic EMI 2|6 firmware loader.")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("emi26/loader.fw")
 
 MODULE_FIRMWARE ("emi26/bitstream.fw")
 
 MODULE_FIRMWARE ("emi26/firmware.fw")
 

Macro Definition Documentation

#define ANCHOR_LOAD_EXTERNAL   0xA3 /* This command is not implemented in the core. Requires firmware */

Definition at line 27 of file emi26.c.

#define ANCHOR_LOAD_FPGA   0xA5 /* This command is not implemented in the core. Requires firmware. Emagic extension */

Definition at line 28 of file emi26.c.

#define ANCHOR_LOAD_INTERNAL   0xA0 /* Vendor specific request code for Anchor Upload/Download (This one is implemented in the core) */

Definition at line 26 of file emi26.c.

#define CPUCS_REG   0x7F92 /* EZ-USB Control and Status Register. Bit 0 controls 8051 reset */

Definition at line 30 of file emi26.c.

#define EMI26_PRODUCT_ID   0x0100 /* EMI 2|6 without firmware */

Definition at line 23 of file emi26.c.

#define EMI26_VENDOR_ID   0x086a /* Emagic Soft-und Hardware GmBH */

Definition at line 22 of file emi26.c.

#define EMI26B_PRODUCT_ID   0x0102 /* EMI 2|6 without firmware */

Definition at line 24 of file emi26.c.

#define FW_LOAD_SIZE   1023

Definition at line 73 of file emi26.c.

#define INTERNAL_RAM (   address)    (address <= MAX_INTERNAL_ADDRESS)

Definition at line 31 of file emi26.c.

#define MAX_INTERNAL_ADDRESS   0x1B3F /* This is the highest internal RAM address for the AN2131Q */

Definition at line 29 of file emi26.c.

Function Documentation

MODULE_AUTHOR ( "Tapio Laxström )
MODULE_DESCRIPTION ( "Emagic EMI 2|6 firmware loader."  )
MODULE_DEVICE_TABLE ( usb  ,
id_table   
)
MODULE_FIRMWARE ( "emi26/loader.fw )
MODULE_FIRMWARE ( "emi26/bitstream.fw )
MODULE_FIRMWARE ( "emi26/firmware.fw )
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( emi26_driver  )