Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
cyclades.c File Reference
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/timer.h>
#include <linux/interrupt.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/serial.h>
#include <linux/major.h>
#include <linux/string.h>
#include <linux/fcntl.h>
#include <linux/ptrace.h>
#include <linux/cyclades.h>
#include <linux/mm.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/bitops.h>
#include <linux/firmware.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/stat.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>

Go to the source code of this file.

Data Structures

struct  zfile_header
 
struct  zfile_config
 
struct  zfile_block
 

Macros

#define Z_WAKE
 
#define CY_VERSION   "2.6"
 
#define NR_CARDS   4
 
#define NR_PORTS   256
 
#define ZO_V1   0
 
#define ZO_V2   1
 
#define ZE_V1   2
 
#define SERIAL_PARANOIA_CHECK
 
#define SERIAL_XMIT_SIZE   (min(PAGE_SIZE, 4096))
 
#define STD_COM_FLAGS   (0)
 
#define ZL_MAX_BLOCKS   16
 
#define DRIVER_VERSION   0x02010203
 
#define RAM_SIZE   0x80000
 

Enumerations

enum  zblock_type { ZBLOCK_PRG = 0, ZBLOCK_FPGA = 1 }
 

Functions

struct zfile_header __attribute__ ((packed))
 
 module_init (cy_init)
 
 module_exit (cy_cleanup_module)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (CY_VERSION)
 
 MODULE_ALIAS_CHARDEV_MAJOR (CYCLADES_MAJOR)
 
 MODULE_FIRMWARE ("cyzfirm.bin")
 

Variables

char name [64]
 
char date [32]
 
char aux [32]
 
u32 n_config
 
u32 config_offset
 
u32 n_blocks
 
u32 block_offset
 
u32 reserved [9]
 
u32 mailbox
 
u32 function
 
u32 block_list [ZL_MAX_BLOCKS]
 
u32 type
 
u32 file_offset
 
u32 ram_offset
 
u32 size
 

Macro Definition Documentation

#define CY_VERSION   "2.6"

Definition at line 22 of file cyclades.c.

#define DRIVER_VERSION   0x02010203

Definition at line 100 of file cyclades.c.

#define NR_CARDS   4

Definition at line 28 of file cyclades.c.

#define NR_PORTS   256

Definition at line 35 of file cyclades.c.

#define RAM_SIZE   0x80000

Definition at line 101 of file cyclades.c.

#define SERIAL_PARANOIA_CHECK

Definition at line 41 of file cyclades.c.

#define SERIAL_XMIT_SIZE   (min(PAGE_SIZE, 4096))

Definition at line 93 of file cyclades.c.

#define STD_COM_FLAGS   (0)

Definition at line 96 of file cyclades.c.

#define Z_WAKE

Definition at line 2 of file cyclades.c.

#define ZE_V1   2

Definition at line 39 of file cyclades.c.

#define ZL_MAX_BLOCKS   16

Definition at line 99 of file cyclades.c.

#define ZO_V1   0

Definition at line 37 of file cyclades.c.

#define ZO_V2   1

Definition at line 38 of file cyclades.c.

Enumeration Type Documentation

Enumerator:
ZBLOCK_PRG 
ZBLOCK_FPGA 

Definition at line 103 of file cyclades.c.

Function Documentation

struct zfile_header __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

MODULE_ALIAS_CHARDEV_MAJOR ( CYCLADES_MAJOR  )
module_exit ( cy_cleanup_module  )
MODULE_FIRMWARE ( "cyzfirm.bin"  )
module_init ( cy_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( CY_VERSION  )

Variable Documentation

char aux[32]

Definition at line 120 of file cyclades.c.

u32 block_list[ZL_MAX_BLOCKS]

Definition at line 130 of file cyclades.c.

u32 block_offset

Definition at line 124 of file cyclades.c.

u32 config_offset

Definition at line 122 of file cyclades.c.

char date[32]

Definition at line 119 of file cyclades.c.

u32 file_offset

Definition at line 134 of file cyclades.c.

u32 function

Definition at line 128 of file cyclades.c.

Definition at line 127 of file cyclades.c.

u32 n_blocks

Definition at line 123 of file cyclades.c.

u32 n_config

Definition at line 121 of file cyclades.c.

char name[64]

Definition at line 118 of file cyclades.c.

u32 ram_offset

Definition at line 135 of file cyclades.c.

u32 reserved[9]

Definition at line 125 of file cyclades.c.

u32 size

Definition at line 136 of file cyclades.c.

Definition at line 133 of file cyclades.c.