Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mrst.c File Reference
#include <linux/sched.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/dmi.h>
#include <asm/acpi.h>
#include <asm/segment.h>
#include <asm/io.h>
#include <asm/smp.h>
#include <asm/pci_x86.h>
#include <asm/hw_irq.h>
#include <asm/io_apic.h>

Go to the source code of this file.

Macros

#define PCIE_CAP_OFFSET   0x100
 
#define PCIE_VNDR_CAP_ID_FIXED_BAR   0x00 /* Fixed BAR (TBD) */
 
#define PCI_FIXED_BAR_0_SIZE   0x04
 
#define PCI_FIXED_BAR_1_SIZE   0x08
 
#define PCI_FIXED_BAR_2_SIZE   0x0c
 
#define PCI_FIXED_BAR_3_SIZE   0x10
 
#define PCI_FIXED_BAR_4_SIZE   0x14
 
#define PCI_FIXED_BAR_5_SIZE   0x1c
 

Functions

int __init pci_mrst_init (void)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, PCI_ANY_ID, pci_d3delay_fixup)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, 0x0801, mrst_power_off_unused_dev)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, 0x0809, mrst_power_off_unused_dev)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, 0x080C, mrst_power_off_unused_dev)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, 0x0812, mrst_power_off_unused_dev)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, 0x0815, mrst_power_off_unused_dev)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL, PCI_ANY_ID, pci_fixed_bar_fixup)
 

Variables

struct pci_ops pci_mrst_ops
 

Macro Definition Documentation

#define PCI_FIXED_BAR_0_SIZE   0x04

Definition at line 39 of file mrst.c.

#define PCI_FIXED_BAR_1_SIZE   0x08

Definition at line 40 of file mrst.c.

#define PCI_FIXED_BAR_2_SIZE   0x0c

Definition at line 41 of file mrst.c.

#define PCI_FIXED_BAR_3_SIZE   0x10

Definition at line 42 of file mrst.c.

#define PCI_FIXED_BAR_4_SIZE   0x14

Definition at line 43 of file mrst.c.

#define PCI_FIXED_BAR_5_SIZE   0x1c

Definition at line 44 of file mrst.c.

#define PCIE_CAP_OFFSET   0x100

Definition at line 35 of file mrst.c.

#define PCIE_VNDR_CAP_ID_FIXED_BAR   0x00 /* Fixed BAR (TBD) */

Definition at line 38 of file mrst.c.

Function Documentation

DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
PCI_ANY_ID  ,
pci_d3delay_fixup   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
0x0801  ,
mrst_power_off_unused_dev   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
0x0809  ,
mrst_power_off_unused_dev   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
0x080C  ,
mrst_power_off_unused_dev   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
0x0812  ,
mrst_power_off_unused_dev   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
0x0815  ,
mrst_power_off_unused_dev   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_INTEL  ,
PCI_ANY_ID  ,
pci_fixed_bar_fixup   
)
int __init pci_mrst_init ( void  )

pci_mrst_init - installs pci_mrst_ops

Moorestown has an interesting PCI implementation (see above). Called when the early platform detection installs it.

Definition at line 236 of file mrst.c.

Variable Documentation

struct pci_ops pci_mrst_ops
Initial value:
= {
.read = pci_read,
.write = pci_write,
}

Definition at line 225 of file mrst.c.