Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pcidev.h File Reference
#include <linux/pci.h>

Go to the source code of this file.

Data Structures

struct  sn_platform_data
 
struct  pcidev_info
 

Macros

#define SN_PLATFORM_DATA(busdev)   ((struct sn_platform_data *)(PCI_CONTROLLER(busdev)->platform_data))
 
#define SN_PCIDEV_INFO(dev)   sn_pcidev_info_get(dev)
 
#define SN_PCIBUS_BUSSOFT(pci_bus)   ((struct pcibus_bussoft *)(SN_PLATFORM_DATA(pci_bus)->provider_soft))
 
#define SN_PCIBUS_BUSSOFT_INFO(pci_bus)   ((struct pcibus_info *)(SN_PLATFORM_DATA(pci_bus)->provider_soft))
 
#define SN_PCIDEV_BUSSOFT(pci_dev)   (SN_PCIDEV_INFO(pci_dev)->pdi_host_pcidev_info->pdi_pcibus_info)
 
#define SN_PCIDEV_BUSPROVIDER(pci_dev)   (SN_PCIDEV_INFO(pci_dev)->pdi_provider)
 
#define PCIIO_BUS_NONE   255 /* bus 255 reserved */
 
#define PCIIO_SLOT_NONE   255
 
#define PCIIO_FUNC_NONE   255
 
#define PCIIO_VENDOR_ID_NONE   (-1)
 

Functions

void sn_irq_fixup (struct pci_dev *pci_dev, struct sn_irq_info *sn_irq_info)
 
void sn_irq_unfixup (struct pci_dev *pci_dev)
 
struct pcidev_infosn_pcidev_info_get (struct pci_dev *)
 
void sn_bus_fixup (struct pci_bus *)
 
void sn_acpi_bus_fixup (struct pci_bus *)
 
void sn_common_bus_fixup (struct pci_bus *, struct pcibus_bussoft *)
 
void sn_bus_store_sysdata (struct pci_dev *dev)
 
void sn_bus_free_sysdata (void)
 
void sn_generate_path (struct pci_bus *pci_bus, char *address)
 
void sn_io_slot_fixup (struct pci_dev *)
 
void sn_acpi_slot_fixup (struct pci_dev *)
 
void sn_pci_fixup_slot (struct pci_dev *dev, struct pcidev_info *, struct sn_irq_info *)
 
void sn_pci_unfixup_slot (struct pci_dev *dev)
 
void sn_irq_lh_init (void)
 

Macro Definition Documentation

#define PCIIO_BUS_NONE   255 /* bus 255 reserved */

Definition at line 50 of file pcidev.h.

#define PCIIO_FUNC_NONE   255

Definition at line 52 of file pcidev.h.

#define PCIIO_SLOT_NONE   255

Definition at line 51 of file pcidev.h.

#define PCIIO_VENDOR_ID_NONE   (-1)

Definition at line 53 of file pcidev.h.

#define SN_PCIBUS_BUSSOFT (   pci_bus)    ((struct pcibus_bussoft *)(SN_PLATFORM_DATA(pci_bus)->provider_soft))

Definition at line 33 of file pcidev.h.

#define SN_PCIBUS_BUSSOFT_INFO (   pci_bus)    ((struct pcibus_info *)(SN_PLATFORM_DATA(pci_bus)->provider_soft))

Definition at line 36 of file pcidev.h.

#define SN_PCIDEV_BUSPROVIDER (   pci_dev)    (SN_PCIDEV_INFO(pci_dev)->pdi_provider)

Definition at line 47 of file pcidev.h.

#define SN_PCIDEV_BUSSOFT (   pci_dev)    (SN_PCIDEV_INFO(pci_dev)->pdi_host_pcidev_info->pdi_pcibus_info)

Definition at line 44 of file pcidev.h.

#define SN_PCIDEV_INFO (   dev)    sn_pcidev_info_get(dev)

Definition at line 26 of file pcidev.h.

#define SN_PLATFORM_DATA (   busdev)    ((struct sn_platform_data *)(PCI_CONTROLLER(busdev)->platform_data))

Definition at line 23 of file pcidev.h.

Function Documentation

void sn_acpi_bus_fixup ( struct pci_bus )

Definition at line 466 of file io_acpi_init.c.

void sn_acpi_slot_fixup ( struct pci_dev )

Definition at line 427 of file io_acpi_init.c.

void sn_bus_fixup ( struct pci_bus )

Definition at line 345 of file io_init.c.

void sn_bus_free_sysdata ( void  )

Definition at line 364 of file io_common.c.

void sn_bus_store_sysdata ( struct pci_dev dev)

Definition at line 351 of file io_common.c.

void sn_common_bus_fixup ( struct pci_bus ,
struct pcibus_bussoft  
)

Definition at line 278 of file io_common.c.

void sn_generate_path ( struct pci_bus pci_bus,
char address 
)

Definition at line 411 of file io_common.c.

void sn_io_slot_fixup ( struct pci_dev )

Definition at line 200 of file io_init.c.

void sn_irq_fixup ( struct pci_dev pci_dev,
struct sn_irq_info sn_irq_info 
)

Definition at line 338 of file irq.c.

void sn_irq_lh_init ( void  )

Definition at line 473 of file irq.c.

void sn_irq_unfixup ( struct pci_dev pci_dev)

Definition at line 371 of file irq.c.

void sn_pci_fixup_slot ( struct pci_dev dev,
struct pcidev_info ,
struct sn_irq_info  
)

Definition at line 227 of file io_common.c.

void sn_pci_unfixup_slot ( struct pci_dev dev)

Definition at line 215 of file io_common.c.

struct pcidev_info* sn_pcidev_info_get ( struct pci_dev )
read

Definition at line 106 of file io_common.c.