Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
rt2x00pci.c File Reference
#include <linux/dma-mapping.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include "rt2x00.h"
#include "rt2x00pci.h"

Go to the source code of this file.


int rt2x00pci_regbusy_read (struct rt2x00_dev *rt2x00dev, const unsigned int offset, const struct rt2x00_field32 field, u32 *reg)
 EXPORT_SYMBOL_GPL (rt2x00pci_regbusy_read)
bool rt2x00pci_rxdone (struct rt2x00_dev *rt2x00dev)
 EXPORT_SYMBOL_GPL (rt2x00pci_rxdone)
void rt2x00pci_flush_queue (struct data_queue *queue, bool drop)
 EXPORT_SYMBOL_GPL (rt2x00pci_flush_queue)
int rt2x00pci_initialize (struct rt2x00_dev *rt2x00dev)
 EXPORT_SYMBOL_GPL (rt2x00pci_initialize)
void rt2x00pci_uninitialize (struct rt2x00_dev *rt2x00dev)
 EXPORT_SYMBOL_GPL (rt2x00pci_uninitialize)
int rt2x00pci_probe (struct pci_dev *pci_dev, const struct rt2x00_ops *ops)
 EXPORT_SYMBOL_GPL (rt2x00pci_probe)
void rt2x00pci_remove (struct pci_dev *pci_dev)
 EXPORT_SYMBOL_GPL (rt2x00pci_remove)
 MODULE_DESCRIPTION ("rt2x00 pci library")

Function Documentation

EXPORT_SYMBOL_GPL ( rt2x00pci_regbusy_read  )
EXPORT_SYMBOL_GPL ( rt2x00pci_rxdone  )
EXPORT_SYMBOL_GPL ( rt2x00pci_flush_queue  )
EXPORT_SYMBOL_GPL ( rt2x00pci_initialize  )
EXPORT_SYMBOL_GPL ( rt2x00pci_uninitialize  )
EXPORT_SYMBOL_GPL ( rt2x00pci_probe  )
EXPORT_SYMBOL_GPL ( rt2x00pci_remove  )
MODULE_DESCRIPTION ( "rt2x00 pci library"  )
void rt2x00pci_flush_queue ( struct data_queue queue,
bool  drop 

rt2x00pci_flush_queue - Flush data queue : Data queue to stop : True to drop all pending frames.

This will wait for a maximum of 100ms, waiting for the queues to become empty.

Definition at line 102 of file rt2x00pci.c.

int rt2x00pci_initialize ( struct rt2x00_dev rt2x00dev)

Definition at line 158 of file rt2x00pci.c.

int rt2x00pci_probe ( struct pci_dev pci_dev,
const struct rt2x00_ops ops 

Definition at line 254 of file rt2x00pci.c.

int rt2x00pci_regbusy_read ( struct rt2x00_dev rt2x00dev,
const unsigned int  offset,
const struct rt2x00_field32  field,
u32 reg 

rt2x00pci_regbusy_read - Read from register with busy check : Device pointer, see &struct rt2x00_dev. : Register offset : Field to check if register is busy : Pointer to where register contents should be stored

This function will read the given register, and checks if the register is busy. If it is, it will sleep for a couple of microseconds before reading the register again. If the register is not read after a certain timeout, this function will return FALSE.

Definition at line 38 of file rt2x00pci.c.

void rt2x00pci_remove ( struct pci_dev pci_dev)

Definition at line 341 of file rt2x00pci.c.

bool rt2x00pci_rxdone ( struct rt2x00_dev rt2x00dev)

rt2x00pci_rxdone - Handle RX done events : Device pointer, see &struct rt2x00_dev.

Returns true if there are still rx frames pending and false if all pending rx frames were processed.

Definition at line 63 of file rt2x00pci.c.

void rt2x00pci_uninitialize ( struct rt2x00_dev rt2x00dev)

Definition at line 194 of file rt2x00pci.c.