Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
emi62.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/module.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 SPDIF   /* if you want SPDIF comment next line */
 
#define FIRMWARE_FW   "emi62/spdif.fw"
 
#define EMI62_VENDOR_ID   0x086a /* Emagic Soft-und Hardware GmBH */
 
#define EMI62_PRODUCT_ID   0x0110 /* EMI 6|2m 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 (emi62_driver)
 
 MODULE_AUTHOR ("Tapio Laxström")
 
 MODULE_DESCRIPTION ("Emagic EMI 6|2m firmware loader.")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("emi62/loader.fw")
 
 MODULE_FIRMWARE ("emi62/bitstream.fw")
 
 MODULE_FIRMWARE (FIRMWARE_FW)
 

Macro Definition Documentation

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

Definition at line 36 of file emi62.c.

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

Definition at line 37 of file emi62.c.

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

Definition at line 35 of file emi62.c.

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

Definition at line 39 of file emi62.c.

#define EMI62_PRODUCT_ID   0x0110 /* EMI 6|2m without firmware */

Definition at line 33 of file emi62.c.

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

Definition at line 32 of file emi62.c.

#define FIRMWARE_FW   "emi62/spdif.fw"

Definition at line 27 of file emi62.c.

#define FW_LOAD_SIZE   1023

Definition at line 81 of file emi62.c.

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

Definition at line 40 of file emi62.c.

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

Definition at line 38 of file emi62.c.

#define SPDIF   /* if you want SPDIF comment next line */

Definition at line 23 of file emi62.c.

Function Documentation

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