Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci.h File Reference

Go to the source code of this file.

Macros

#define IOBASE_HOSE   0
 
#define IOBASE_SPARSE_MEM   1
 
#define IOBASE_DENSE_MEM   2
 
#define IOBASE_SPARSE_IO   3
 
#define IOBASE_DENSE_IO   4
 
#define IOBASE_ROOT_BUS   5
 
#define IOBASE_FROM_HOSE   0x10000
 
#define HAVE_PCI_LEGACY   1
 

Functions

int pci_legacy_read (struct pci_bus *bus, loff_t port, u32 *val, size_t count)
 
int pci_legacy_write (struct pci_bus *bus, loff_t port, u32 val, size_t count)
 
int pci_mmap_legacy_page_range (struct pci_bus *bus, struct vm_area_struct *vma, enum pci_mmap_state mmap_state)
 
void pci_adjust_legacy_attr (struct pci_bus *bus, enum pci_mmap_state mmap_type)
 
int pci_create_resource_files (struct pci_dev *dev)
 
void pci_remove_resource_files (struct pci_dev *dev)
 

Variables

struct pci_devisa_bridge
 

Macro Definition Documentation

#define HAVE_PCI_LEGACY   1

Definition at line 133 of file pci.h.

#define IOBASE_DENSE_IO   4

Definition at line 118 of file pci.h.

#define IOBASE_DENSE_MEM   2

Definition at line 116 of file pci.h.

#define IOBASE_FROM_HOSE   0x10000

Definition at line 120 of file pci.h.

#define IOBASE_HOSE   0

Definition at line 114 of file pci.h.

#define IOBASE_ROOT_BUS   5

Definition at line 119 of file pci.h.

#define IOBASE_SPARSE_IO   3

Definition at line 117 of file pci.h.

#define IOBASE_SPARSE_MEM   1

Definition at line 115 of file pci.h.

Function Documentation

void pci_adjust_legacy_attr ( struct pci_bus bus,
enum pci_mmap_state  mmap_type 
)

pci_adjust_legacy_attr - adjustment of legacy file attributes : bus to create files under : I/O port or memory

Adjust file name and size for sparse mappings.

Definition at line 305 of file pci-sysfs.c.

int pci_create_resource_files ( struct pci_dev pdev)

pci_create_resource_files - create resource files in sysfs for : dev in question

Walk the resources in creating files for each resource available.

Definition at line 230 of file pci-sysfs.c.

int pci_legacy_read ( struct pci_bus bus,
loff_t  port,
u32 val,
size_t  count 
)

Definition at line 323 of file pci-sysfs.c.

int pci_legacy_write ( struct pci_bus bus,
loff_t  port,
u32  val,
size_t  count 
)

Definition at line 347 of file pci-sysfs.c.

int pci_mmap_legacy_page_range ( struct pci_bus bus,
struct vm_area_struct vma,
enum pci_mmap_state  mmap_state 
)

pci_mmap_legacy_page_range - map legacy memory space to userland : bus whose legacy space we're mapping : vma passed in by mmap

Map legacy memory space for this device back to userspace using a machine vector to get the base address.

Definition at line 283 of file pci-sysfs.c.

void pci_remove_resource_files ( struct pci_dev pdev)

pci_remove_resource_files - cleanup resource files : dev to cleanup

If we created resource files for , remove them from sysfs and free their resources.

Definition at line 115 of file pci-sysfs.c.

Variable Documentation

struct pci_dev* isa_bridge

Definition at line 443 of file pci.c.