Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
umc-bus.c File Reference
#include <linux/kernel.h>
#include <linux/sysfs.h>
#include <linux/workqueue.h>
#include <linux/module.h>
#include <linux/uwb/umc.h>
#include <linux/pci.h>

Go to the source code of this file.

Functions

int umc_controller_reset (struct umc_dev *umc)
 
 EXPORT_SYMBOL_GPL (umc_controller_reset)
 
int umc_match_pci_id (struct umc_driver *umc_drv, struct umc_dev *umc)
 
 EXPORT_SYMBOL_GPL (umc_match_pci_id)
 
 EXPORT_SYMBOL_GPL (umc_bus_type)
 
 module_init (umc_bus_init)
 
 module_exit (umc_bus_exit)
 
 MODULE_DESCRIPTION ("UWB Multi-interface Controller capability bus")
 
 MODULE_AUTHOR ("Cambridge Silicon Radio Ltd.")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct bus_type umc_bus_type
 

Function Documentation

EXPORT_SYMBOL_GPL ( umc_controller_reset  )
EXPORT_SYMBOL_GPL ( umc_match_pci_id  )
EXPORT_SYMBOL_GPL ( umc_bus_type  )
MODULE_AUTHOR ( "Cambridge Silicon Radio Ltd."  )
MODULE_DESCRIPTION ( "UWB Multi-interface Controller capability bus )
module_exit ( umc_bus_exit  )
module_init ( umc_bus_init  )
MODULE_LICENSE ( "GPL"  )
int umc_controller_reset ( struct umc_dev umc)

umc_controller_reset - reset the whole UMC controller : the UMC device for the radio controller.

Drivers or all capabilities of the controller will have their pre_reset methods called or be unbound from their device. Then all post_reset methods will be called or the drivers will be rebound.

Radio controllers must provide pre_reset and post_reset methods and reset the hardware in their start method.

If this is called while a probe() or remove() is in progress it will return -EAGAIN and not perform the reset.

Definition at line 61 of file umc-bus.c.

int umc_match_pci_id ( struct umc_driver umc_drv,
struct umc_dev umc 
)

umc_match_pci_id - match a UMC driver to a UMC device's parent PCI device. : umc driver with match_data pointing to a zero-terminated table of pci_device_id's. : umc device whose parent is to be matched.

Definition at line 83 of file umc-bus.c.

Variable Documentation

struct bus_type umc_bus_type
Initial value:
= {
.name = "umc",
.match = umc_bus_match,
.probe = umc_device_probe,
.remove = umc_device_remove,
.suspend = umc_device_suspend,
.resume = umc_device_resume,
.dev_attrs = umc_dev_attrs,
}

Definition at line 218 of file umc-bus.c.