Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rt2x00pci.h File Reference
#include <linux/io.h>
#include <linux/pci.h>

Go to the source code of this file.

Data Structures

struct  queue_entry_priv_pci
 

Macros

#define PCI_DEVICE_DATA(__ops)   .driver_data = (kernel_ulong_t)(__ops)
 
#define rt2x00pci_suspend   NULL
 
#define rt2x00pci_resume   NULL
 

Functions

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

Macro Definition Documentation

#define PCI_DEVICE_DATA (   __ops)    .driver_data = (kernel_ulong_t)(__ops)

Definition at line 36 of file rt2x00pci.h.

#define rt2x00pci_resume   NULL

Definition at line 136 of file rt2x00pci.h.

#define rt2x00pci_suspend   NULL

Definition at line 135 of file rt2x00pci.h.

Function Documentation

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.