Linux Kernel
3.7.1
|
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_dev * | isa_bridge |
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.
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.
Definition at line 323 of file pci-sysfs.c.
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.
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.