Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ops-lantiq.c File Reference
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/mm.h>
#include <asm/addrspace.h>
#include <linux/vmalloc.h>
#include <lantiq_soc.h>
#include "pci-lantiq.h"

Go to the source code of this file.

Macros

#define LTQ_PCI_CFG_BUSNUM_SHF   16
 
#define LTQ_PCI_CFG_DEVNUM_SHF   11
 
#define LTQ_PCI_CFG_FUNNUM_SHF   8
 
#define PCI_ACCESS_READ   0
 
#define PCI_ACCESS_WRITE   1
 

Functions

int ltq_pci_read_config_dword (struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
 
int ltq_pci_write_config_dword (struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
 

Macro Definition Documentation

#define LTQ_PCI_CFG_BUSNUM_SHF   16

Definition at line 22 of file ops-lantiq.c.

#define LTQ_PCI_CFG_DEVNUM_SHF   11

Definition at line 23 of file ops-lantiq.c.

#define LTQ_PCI_CFG_FUNNUM_SHF   8

Definition at line 24 of file ops-lantiq.c.

#define PCI_ACCESS_READ   0

Definition at line 26 of file ops-lantiq.c.

#define PCI_ACCESS_WRITE   1

Definition at line 27 of file ops-lantiq.c.

Function Documentation

int ltq_pci_read_config_dword ( struct pci_bus bus,
unsigned int  devfn,
int  where,
int  size,
u32 val 
)

Definition at line 74 of file ops-lantiq.c.

int ltq_pci_write_config_dword ( struct pci_bus bus,
unsigned int  devfn,
int  where,
int  size,
u32  val 
)

Definition at line 92 of file ops-lantiq.c.