Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ngene-core.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/poll.h>
#include <linux/io.h>
#include <asm/div64.h>
#include <linux/pci.h>
#include <linux/timer.h>
#include <linux/byteorder/generic.h>
#include <linux/firmware.h>
#include <linux/vmalloc.h>
#include "ngene.h"

Go to the source code of this file.

Macros

#define dprintk   if (debug) printk
 
#define ngwriteb(dat, adr)   writeb((dat), (char *)(dev->iomem + (adr)))
 
#define ngwritel(dat, adr)   writel((dat), (char *)(dev->iomem + (adr)))
 
#define ngwriteb(dat, adr)   writeb((dat), (char *)(dev->iomem + (adr)))
 
#define ngreadl(adr)   readl(dev->iomem + (adr))
 
#define ngreadb(adr)   readb(dev->iomem + (adr))
 
#define ngcpyto(adr, src, count)
 
#define ngcpyfrom(dst, adr, count)
 
#define FIRSTCHUNK   (1024)
 

Functions

 module_param (one_adapter, int, 0444)
 
 MODULE_PARM_DESC (one_adapter,"Use only one adapter.")
 
 module_param (shutdown_workaround, int, 0644)
 
 MODULE_PARM_DESC (shutdown_workaround,"Activate workaround for shutdown problem with some chipsets.")
 
 module_param (debug, int, 0444)
 
 MODULE_PARM_DESC (debug,"Print debugging information.")
 
 DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr)
 
int ngene_command (struct ngene *dev, struct ngene_command *com)
 
int ngene_command_gpio_set (struct ngene *dev, u8 select, u8 level)
 
void FillTSBuffer (void *Buffer, int Length, u32 Flags)
 
void set_transfer (struct ngene_channel *chan, int state)
 
void ngene_shutdown (struct pci_dev *pdev)
 
void __devexit ngene_remove (struct pci_dev *pdev)
 
int __devinit ngene_probe (struct pci_dev *pci_dev, const struct pci_device_id *id)
 

Macro Definition Documentation

#define dprintk   if (debug) printk

Definition at line 58 of file ngene-core.c.

#define FIRSTCHUNK   (1024)
#define ngcpyfrom (   dst,
  adr,
  count 
)
Value:
memcpy_fromio((dst), (char *) \
(dev->iomem + (adr)), (count))

Definition at line 67 of file ngene-core.c.

#define ngcpyto (   adr,
  src,
  count 
)
Value:
memcpy_toio((char *) \
(dev->iomem + (adr)), (src), (count))

Definition at line 65 of file ngene-core.c.

#define ngreadb (   adr)    readb(dev->iomem + (adr))

Definition at line 64 of file ngene-core.c.

#define ngreadl (   adr)    readl(dev->iomem + (adr))

Definition at line 63 of file ngene-core.c.

#define ngwriteb (   dat,
  adr 
)    writeb((dat), (char *)(dev->iomem + (adr)))

Definition at line 62 of file ngene-core.c.

#define ngwriteb (   dat,
  adr 
)    writeb((dat), (char *)(dev->iomem + (adr)))

Definition at line 62 of file ngene-core.c.

#define ngwritel (   dat,
  adr 
)    writel((dat), (char *)(dev->iomem + (adr)))

Definition at line 61 of file ngene-core.c.

Function Documentation

DVB_DEFINE_MOD_OPT_ADAPTER_NR ( adapter_nr  )
void FillTSBuffer ( void Buffer,
int  Length,
u32  Flags 
)

Definition at line 500 of file ngene-core.c.

module_param ( one_adapter  ,
int  ,
0444   
)
module_param ( shutdown_workaround  ,
int  ,
0644   
)
module_param ( debug  ,
int  ,
0444   
)
MODULE_PARM_DESC ( one_adapter  ,
"Use only one adapter."   
)
MODULE_PARM_DESC ( shutdown_workaround  ,
"Activate workaround for shutdown problem with some chipsets."   
)
MODULE_PARM_DESC ( debug  ,
"Print debugging information."   
)

Definition at line 341 of file ngene-core.c.

int ngene_command_gpio_set ( struct ngene dev,
u8  select,
u8  level 
)

Definition at line 417 of file ngene-core.c.

int __devinit ngene_probe ( struct pci_dev pci_dev,
const struct pci_device_id id 
)

Definition at line 1655 of file ngene-core.c.

void __devexit ngene_remove ( struct pci_dev pdev)

Definition at line 1639 of file ngene-core.c.

void ngene_shutdown ( struct pci_dev pdev)

Definition at line 1623 of file ngene-core.c.

void set_transfer ( struct ngene_channel chan,
int  state 
)

Definition at line 709 of file ngene-core.c.