Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
hcd-pci.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/usb.h>
#include <linux/usb/hcd.h>
#include <asm/io.h>
#include <asm/irq.h>
#include "usb.h"

Go to the source code of this file.

Functions

int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
 
 EXPORT_SYMBOL_GPL (usb_hcd_pci_probe)
 
void usb_hcd_pci_remove (struct pci_dev *dev)
 
 EXPORT_SYMBOL_GPL (usb_hcd_pci_remove)
 
void usb_hcd_pci_shutdown (struct pci_dev *dev)
 
 EXPORT_SYMBOL_GPL (usb_hcd_pci_shutdown)
 

Function Documentation

EXPORT_SYMBOL_GPL ( usb_hcd_pci_probe  )
EXPORT_SYMBOL_GPL ( usb_hcd_pci_remove  )
EXPORT_SYMBOL_GPL ( usb_hcd_pci_shutdown  )
int usb_hcd_pci_probe ( struct pci_dev dev,
const struct pci_device_id id 
)

usb_hcd_pci_probe - initialize PCI-based HCDs : USB Host Controller being probed : pci hotplug id connecting controller to HCD framework Context: !in_interrupt()

Allocates basic PCI resources for this USB host controller, and then invokes the start() method for the HCD associated with it through the hotplug entry's driver_data.

Store this function in the HCD's struct pci_driver as probe().

Definition at line 171 of file hcd-pci.c.

void usb_hcd_pci_remove ( struct pci_dev dev)

usb_hcd_pci_remove - shutdown processing for PCI-based HCDs : USB Host Controller being removed Context: !in_interrupt()

Reverses the effect of usb_hcd_pci_probe(), first invoking the HCD's stop() method. It is always called from a thread context, normally "rmmod", "apmd", or something similar.

Store this function in the HCD's struct pci_driver as remove().

Definition at line 289 of file hcd-pci.c.

void usb_hcd_pci_shutdown ( struct pci_dev dev)

usb_hcd_pci_shutdown - shutdown host controller : USB Host Controller being shutdown

Definition at line 325 of file hcd-pci.c.