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

Go to the source code of this file.

Data Structures

struct  ezusb_fx_type
 

Macros

#define WRITE_INT_RAM   0xA0
 
#define WRITE_EXT_RAM   0xA3
 

Functions

int ezusb_writememory (struct usb_device *dev, int address, unsigned char *data, int length, __u8 request)
 
 EXPORT_SYMBOL_GPL (ezusb_writememory)
 
int ezusb_set_reset (struct usb_device *dev, unsigned short cpucs_reg, unsigned char reset_bit)
 
int ezusb_fx1_set_reset (struct usb_device *dev, unsigned char reset_bit)
 
 EXPORT_SYMBOL_GPL (ezusb_fx1_set_reset)
 
int ezusb_fx2_set_reset (struct usb_device *dev, unsigned char reset_bit)
 
 EXPORT_SYMBOL_GPL (ezusb_fx2_set_reset)
 
int ezusb_fx1_ihex_firmware_download (struct usb_device *dev, const char *firmware_path)
 
 EXPORT_SYMBOL_GPL (ezusb_fx1_ihex_firmware_download)
 
int ezusb_fx2_ihex_firmware_download (struct usb_device *dev, const char *firmware_path)
 
 EXPORT_SYMBOL_GPL (ezusb_fx2_ihex_firmware_download)
 
 MODULE_LICENSE ("GPL")
 

Variables

struct ezusb_fx_type ezusb_fx1
 
struct ezusb_fx_type ezusb_fx2
 

Macro Definition Documentation

#define WRITE_EXT_RAM   0xA3

Definition at line 37 of file ezusb.c.

#define WRITE_INT_RAM   0xA0

Definition at line 36 of file ezusb.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ezusb_writememory  )
EXPORT_SYMBOL_GPL ( ezusb_fx1_set_reset  )
EXPORT_SYMBOL_GPL ( ezusb_fx2_set_reset  )
EXPORT_SYMBOL_GPL ( ezusb_fx1_ihex_firmware_download  )
EXPORT_SYMBOL_GPL ( ezusb_fx2_ihex_firmware_download  )
int ezusb_fx1_ihex_firmware_download ( struct usb_device *  dev,
const char firmware_path 
)

Definition at line 147 of file ezusb.c.

int ezusb_fx1_set_reset ( struct usb_device *  dev,
unsigned char  reset_bit 
)

Definition at line 73 of file ezusb.c.

int ezusb_fx2_ihex_firmware_download ( struct usb_device *  dev,
const char firmware_path 
)

Definition at line 154 of file ezusb.c.

int ezusb_fx2_set_reset ( struct usb_device *  dev,
unsigned char  reset_bit 
)

Definition at line 79 of file ezusb.c.

int ezusb_set_reset ( struct usb_device *  dev,
unsigned short  cpucs_reg,
unsigned char  reset_bit 
)

Definition at line 63 of file ezusb.c.

int ezusb_writememory ( struct usb_device *  dev,
int  address,
unsigned char data,
int  length,
__u8  request 
)

Definition at line 39 of file ezusb.c.

MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct ezusb_fx_type ezusb_fx1
Initial value:
= {
.cpucs_reg = 0x7F92,
.max_internal_adress = 0x1B3F,
}

Definition at line 25 of file ezusb.c.

struct ezusb_fx_type ezusb_fx2
Initial value:
= {
.cpucs_reg = 0xE600,
.max_internal_adress = 0x3FFF,
}

Definition at line 30 of file ezusb.c.