Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ft1000_usb.h File Reference
#include "../ft1000.h"
#include "ft1000_ioctl.h"

Go to the source code of this file.

Data Structures

struct  app_info_block
 
struct  ft1000_device
 
struct  ft1000_debug_dirs
 
struct  ft1000_info
 
struct  dpram_blk
 

Macros

#define FT1000_DRV_VER   0x01010403
 
#define MAX_NUM_APP   6
 
#define MAX_MSG_LIMIT   200
 
#define NUM_OF_FREE_BUFFERS   1500
 
#define PSEUDOSZ   16
 
#define SUCCESS   0x00
 
#define DEBUG(args...)   printk(KERN_INFO args)
 
#define FALSE   0
 
#define TRUE   1
 
#define STATUS_SUCCESS   0
 
#define STATUS_FAILURE   0x1001
 
#define FT1000_STATUS_CLOSING   0x01
 
#define DSPBCMSGID   0x10
 
#define FT1000_DPRAM_RX_BASE   0x1800 /* RX AREA (SlowQ) */
 
#define FT1000_MAG_DSP_LED_INDX   0x1 /* dsp led status for PAD device */
 
#define FT1000_MAG_DSP_CON_STATE_INDX   0x0 /* DSP Connection Status Info */
 
#define MAX_ASIC_RESET_CNT   20
 
#define MAX_BUF_SIZE   4096
 

Functions

int ft1000_read_register (struct ft1000_device *ft1000dev, u16 *Data, u16 nRegIndx)
 
int ft1000_write_register (struct ft1000_device *ft1000dev, u16 value, u16 nRegIndx)
 
int ft1000_read_dpram32 (struct ft1000_device *ft1000dev, u16 indx, u8 *buffer, u16 cnt)
 
int ft1000_write_dpram32 (struct ft1000_device *ft1000dev, u16 indx, u8 *buffer, u16 cnt)
 
int ft1000_read_dpram16 (struct ft1000_device *ft1000dev, u16 indx, u8 *buffer, u8 highlow)
 
int ft1000_write_dpram16 (struct ft1000_device *ft1000dev, u16 indx, u16 value, u8 highlow)
 
int fix_ft1000_read_dpram32 (struct ft1000_device *ft1000dev, u16 indx, u8 *buffer)
 
int fix_ft1000_write_dpram32 (struct ft1000_device *ft1000dev, u16 indx, u8 *buffer)
 
int ft1000_close (struct net_device *dev)
 
u16 scram_dnldr (struct ft1000_device *ft1000dev, void *pFileStart, u32 FileLength)
 
int ft1000_create_dev (struct ft1000_device *dev)
 
void ft1000_destroy_dev (struct net_device *dev)
 
void card_send_command (struct ft1000_device *ft1000dev, void *ptempbuffer, int size)
 
struct dpram_blkft1000_get_buffer (struct list_head *bufflist)
 
void ft1000_free_buffer (struct dpram_blk *pdpram_blk, struct list_head *plist)
 
int dsp_reload (struct ft1000_device *ft1000dev)
 
int init_ft1000_netdev (struct ft1000_device *ft1000dev)
 
int reg_ft1000_netdev (struct ft1000_device *ft1000dev, struct usb_interface *intf)
 
int ft1000_poll (void *dev_id)
 
int ft1000_init_proc (struct net_device *dev)
 
void ft1000_cleanup_proc (struct ft1000_info *info)
 

Variables

struct app_info_block __packed
 
voidpFileStart
 
size_t FileLength
 
int numofmsgbuf
 
struct list_head freercvpool
 
spinlock_t free_buff_lock
 

Macro Definition Documentation

#define DEBUG (   args...)    printk(KERN_INFO args)

Definition at line 29 of file ft1000_usb.h.

#define DSPBCMSGID   0x10

Definition at line 39 of file ft1000_usb.h.

#define FALSE   0

Definition at line 31 of file ft1000_usb.h.

#define FT1000_DPRAM_RX_BASE   0x1800 /* RX AREA (SlowQ) */

Definition at line 44 of file ft1000_usb.h.

#define FT1000_DRV_VER   0x01010403

Definition at line 6 of file ft1000_usb.h.

#define FT1000_MAG_DSP_CON_STATE_INDX   0x0 /* DSP Connection Status Info */

Definition at line 51 of file ft1000_usb.h.

#define FT1000_MAG_DSP_LED_INDX   0x1 /* dsp led status for PAD device */

Definition at line 49 of file ft1000_usb.h.

#define FT1000_STATUS_CLOSING   0x01

Definition at line 37 of file ft1000_usb.h.

#define MAX_ASIC_RESET_CNT   20

Definition at line 54 of file ft1000_usb.h.

#define MAX_BUF_SIZE   4096

Definition at line 56 of file ft1000_usb.h.

#define MAX_MSG_LIMIT   200

Definition at line 9 of file ft1000_usb.h.

#define MAX_NUM_APP   6

Definition at line 8 of file ft1000_usb.h.

#define NUM_OF_FREE_BUFFERS   1500

Definition at line 10 of file ft1000_usb.h.

#define PSEUDOSZ   16

Definition at line 12 of file ft1000_usb.h.

#define STATUS_FAILURE   0x1001

Definition at line 35 of file ft1000_usb.h.

#define STATUS_SUCCESS   0

Definition at line 34 of file ft1000_usb.h.

#define SUCCESS   0x00

Definition at line 14 of file ft1000_usb.h.

#define TRUE   1

Definition at line 32 of file ft1000_usb.h.

Function Documentation

void card_send_command ( struct ft1000_device ft1000dev,
void ptempbuffer,
int  size 
)

Definition at line 480 of file ft1000_hw.c.

int dsp_reload ( struct ft1000_device ft1000dev)

Definition at line 527 of file ft1000_hw.c.

int fix_ft1000_read_dpram32 ( struct ft1000_device ft1000dev,
u16  indx,
u8 buffer 
)

Definition at line 318 of file ft1000_hw.c.

int fix_ft1000_write_dpram32 ( struct ft1000_device ft1000dev,
u16  indx,
u8 buffer 
)

Definition at line 362 of file ft1000_hw.c.

void ft1000_cleanup_proc ( struct ft1000_info info)

Definition at line 246 of file ft1000_proc.c.

int ft1000_close ( struct net_device dev)

Definition at line 1213 of file ft1000_hw.c.

int ft1000_create_dev ( struct ft1000_device dev)

Definition at line 140 of file ft1000_debug.c.

void ft1000_destroy_dev ( struct net_device dev)

Definition at line 228 of file ft1000_debug.c.

void ft1000_free_buffer ( struct dpram_blk pdpram_blk,
struct list_head plist 
)

Definition at line 116 of file ft1000_debug.c.

struct dpram_blk* ft1000_get_buffer ( struct list_head bufflist)
read

Definition at line 79 of file ft1000_debug.c.

int ft1000_init_proc ( struct net_device dev)

Definition at line 204 of file ft1000_proc.c.

int ft1000_poll ( void dev_id)

Definition at line 1754 of file ft1000_hw.c.

int ft1000_read_dpram16 ( struct ft1000_device ft1000dev,
u16  indx,
u8 buffer,
u8  highlow 
)

Definition at line 239 of file ft1000_hw.c.

int ft1000_read_dpram32 ( struct ft1000_device ft1000dev,
u16  indx,
u8 buffer,
u16  cnt 
)

Definition at line 168 of file ft1000_hw.c.

int ft1000_read_register ( struct ft1000_device ft1000dev,
u16 Data,
u16  nRegIndx 
)

Definition at line 100 of file ft1000_hw.c.

int ft1000_write_dpram16 ( struct ft1000_device ft1000dev,
u16  indx,
u16  value,
u8  highlow 
)

Definition at line 279 of file ft1000_hw.c.

int ft1000_write_dpram32 ( struct ft1000_device ft1000dev,
u16  indx,
u8 buffer,
u16  cnt 
)

Definition at line 202 of file ft1000_hw.c.

int ft1000_write_register ( struct ft1000_device ft1000dev,
u16  value,
u16  nRegIndx 
)

Definition at line 133 of file ft1000_hw.c.

int init_ft1000_netdev ( struct ft1000_device ft1000dev)

Definition at line 697 of file ft1000_hw.c.

int reg_ft1000_netdev ( struct ft1000_device ft1000dev,
struct usb_interface intf 
)

Definition at line 825 of file ft1000_hw.c.

u16 scram_dnldr ( struct ft1000_device ft1000dev,
void pFileStart,
u32  FileLength 
)

Definition at line 685 of file ft1000_download.c.

Variable Documentation

size_t FileLength

Definition at line 26 of file ft1000_usb.c.

spinlock_t free_buff_lock

Definition at line 51 of file ft1000_debug.c.

struct list_head freercvpool

Definition at line 48 of file ft1000_debug.c.

int numofmsgbuf

Definition at line 53 of file ft1000_debug.c.

void* pFileStart

Definition at line 25 of file ft1000_usb.c.