pci.c File Reference

Go to the source code of this file.

Classes

struct  l4dde_pci_dev
 PCI device descriptor. More...

Typedefs

typedef struct l4dde_pci_dev l4dde_pci_dev_t
 PCI device descriptor.

Functions

 DECLARE_INITVAR (dde26_pci)
static LIST_HEAD (pcidev_mappings)
 List of Linux-DDEKit PCIDev mappings.
static int l4dde26_pci_read (struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
static int l4dde26_pci_write (struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
int pci_irq_enable (struct pci_dev *dev)
int __pci_enable_device (struct pci_dev *dev)
int pci_enable_device (struct pci_dev *dev)
 pci_enable_device - Initialize device before it's used by a driver.
void pci_disable_device (struct pci_dev *dev)
 pci_disable_device - Disable PCI device after use
void pci_fixup_device (enum pci_fixup_pass pass, struct pci_dev *dev)
void pci_set_master (struct pci_dev *dev)
int pci_create_sysfs_dev_files (struct pci_dev *pdev)
unsigned int pcibios_assign_all_busses (void)
void pcibios_align_resource (void *data, struct resource *res, resource_size_t size, resource_size_t align)
int pcibios_enable_device (struct pci_dev *dev, int mask)
void __init l4dde26_init_pci (void)
 Initialize DDELinux PCI subsystem.
 arch_initcall (l4dde26_init_pci)

Variables

static struct pci_buspci_bus = NULL
 PCI bus.
static struct pci_ops dde_pcibus_ops
 PCI operations for our virtual PCI bus.


Typedef Documentation

PCI device descriptor.


Function Documentation

int __pci_enable_device ( struct pci_dev *  dev  ) 

Definition at line 88 of file linux26/lib/src/arch/l4/pci.c.

arch_initcall ( l4dde26_init_pci   ) 

DECLARE_INITVAR ( dde26_pci   ) 

void __init l4dde26_init_pci ( void   ) 

Initialize DDELinux PCI subsystem.

Definition at line 177 of file linux26/lib/src/arch/l4/pci.c.

static int l4dde26_pci_read ( struct pci_bus bus,
unsigned int  devfn,
int  where,
int  size,
u32 *  val 
) [static]

Definition at line 43 of file linux26/lib/src/arch/l4/pci.c.

static int l4dde26_pci_write ( struct pci_bus bus,
unsigned int  devfn,
int  where,
int  size,
u32  val 
) [static]

Definition at line 48 of file linux26/lib/src/arch/l4/pci.c.

static LIST_HEAD ( pcidev_mappings   )  [static]

List of Linux-DDEKit PCIDev mappings.

int pci_create_sysfs_dev_files ( struct pci_dev *  pdev  ) 

Definition at line 141 of file linux26/lib/src/arch/l4/pci.c.

void pci_disable_device ( struct pci_dev *  dev  ) 

pci_disable_device - Disable PCI device after use

Signal to the system that the PCI device is not in use by the system anymore. This only involves disabling PCI bus-mastering, if active.

Parameters:
dev PCI device to be disabled

Definition at line 122 of file linux26/lib/src/arch/l4/pci.c.

int pci_enable_device ( struct pci_dev *  dev  ) 

pci_enable_device - Initialize device before it's used by a driver.

Initialize device before it's used by a driver. Ask low-level code to enable I/O and memory. Wake up the device if it was suspended. Beware, this function can fail.

Parameters:
dev PCI device to be initialized

Definition at line 106 of file linux26/lib/src/arch/l4/pci.c.

void pci_fixup_device ( enum pci_fixup_pass  pass,
struct pci_dev *  dev 
)

Definition at line 129 of file linux26/lib/src/arch/l4/pci.c.

int pci_irq_enable ( struct pci_dev *  dev  ) 

Definition at line 53 of file linux26/lib/src/arch/l4/pci.c.

void pci_set_master ( struct pci_dev *  dev  ) 

Definition at line 134 of file linux26/lib/src/arch/l4/pci.c.

void pcibios_align_resource ( void *  data,
struct resource *  res,
resource_size_t  size,
resource_size_t  align 
)

Definition at line 152 of file linux26/lib/src/arch/l4/pci.c.

unsigned int pcibios_assign_all_busses ( void   ) 

Definition at line 146 of file linux26/lib/src/arch/l4/pci.c.

int pcibios_enable_device ( struct pci_dev *  dev,
int  mask 
)

Definition at line 158 of file linux26/lib/src/arch/l4/pci.c.


Variable Documentation

struct pci_ops dde_pcibus_ops [static]

Initial value:

 {
        .read = l4dde26_pci_read,
        .write = l4dde26_pci_write,
}
PCI operations for our virtual PCI bus.

Definition at line 34 of file linux26/lib/src/arch/l4/pci.c.

struct pci_bus* pci_bus = NULL [static]

PCI bus.

Definition at line 28 of file linux26/lib/src/arch/l4/pci.c.


Generated on Wed Apr 11 06:39:16 2012 for DDE - The L4 Device Driver Environment by  doxygen 1.5.6