Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
pci-sysfs.c File Reference
#include <linux/sched.h>
#include <linux/stat.h>
#include <linux/slab.h>
#include <linux/pci.h>

Go to the source code of this file.

Functions

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

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  size 
)

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

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

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_type 
)

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.