Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ft1000_hw.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/usb.h>
#include "ft1000_usb.h"
#include <linux/types.h>

Go to the source code of this file.

Macros

#define HARLEY_READ_REGISTER   0x0
 
#define HARLEY_WRITE_REGISTER   0x01
 
#define HARLEY_READ_DPRAM_32   0x02
 
#define HARLEY_READ_DPRAM_LOW   0x03
 
#define HARLEY_READ_DPRAM_HIGH   0x04
 
#define HARLEY_WRITE_DPRAM_32   0x05
 
#define HARLEY_WRITE_DPRAM_LOW   0x06
 
#define HARLEY_WRITE_DPRAM_HIGH   0x07
 
#define HARLEY_READ_OPERATION   0xc1
 
#define HARLEY_WRITE_OPERATION   0x41
 
#define MAX_RCV_LOOP   100
 

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)
 
void card_send_command (struct ft1000_device *ft1000dev, void *ptempbuffer, int size)
 
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_close (struct net_device *net)
 
int ft1000_poll (void *dev_id)
 

Macro Definition Documentation

#define HARLEY_READ_DPRAM_32   0x02

Definition at line 20 of file ft1000_hw.c.

#define HARLEY_READ_DPRAM_HIGH   0x04

Definition at line 22 of file ft1000_hw.c.

#define HARLEY_READ_DPRAM_LOW   0x03

Definition at line 21 of file ft1000_hw.c.

#define HARLEY_READ_OPERATION   0xc1

Definition at line 27 of file ft1000_hw.c.

#define HARLEY_READ_REGISTER   0x0

Definition at line 18 of file ft1000_hw.c.

#define HARLEY_WRITE_DPRAM_32   0x05

Definition at line 23 of file ft1000_hw.c.

#define HARLEY_WRITE_DPRAM_HIGH   0x07

Definition at line 25 of file ft1000_hw.c.

#define HARLEY_WRITE_DPRAM_LOW   0x06

Definition at line 24 of file ft1000_hw.c.

#define HARLEY_WRITE_OPERATION   0x41

Definition at line 28 of file ft1000_hw.c.

#define HARLEY_WRITE_REGISTER   0x01

Definition at line 19 of file ft1000_hw.c.

#define MAX_RCV_LOOP   100

Definition at line 41 of file ft1000_hw.c.

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.

int ft1000_close ( struct net_device net)

Definition at line 1213 of file ft1000_hw.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.