Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
ops-loongson2.c File Reference
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/export.h>
#include <loongson.h>

Go to the source code of this file.

Macros

#define PCI_ACCESS_READ   0
 
#define PCI_ACCESS_WRITE   1
 
#define CFG_SPACE_REG(offset)   (void *)CKSEG1ADDR(LOONGSON_PCICFG_BASE | (offset))
 
#define ID_SEL_BEGIN   11
 
#define MAX_DEV_NUM   (31 - ID_SEL_BEGIN)
 

Variables

struct pci_ops loongson_pci_ops
 

Macro Definition Documentation

#define CFG_SPACE_REG (   offset)    (void *)CKSEG1ADDR(LOONGSON_PCICFG_BASE | (offset))

Definition at line 30 of file ops-loongson2.c.

#define ID_SEL_BEGIN   11

Definition at line 32 of file ops-loongson2.c.

#define MAX_DEV_NUM   (31 - ID_SEL_BEGIN)

Definition at line 33 of file ops-loongson2.c.

#define PCI_ACCESS_READ   0

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

#define PCI_ACCESS_WRITE   1

Definition at line 28 of file ops-loongson2.c.

Variable Documentation

struct pci_ops loongson_pci_ops
Initial value:
= {
.read = loongson_pcibios_read,
.write = loongson_pcibios_write
}

Definition at line 178 of file ops-loongson2.c.