Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#include <linux/amba/bus.h>
#include <linux/sizes.h>
#include <asm/irq.h>
Go to the source code of this file.
Data Structures | |
struct | find_data |
Macros | |
#define | to_amba_driver(d) container_of(d, struct amba_driver, drv) |
#define | amba_uevent NULL |
#define | amba_attr_func(name, fmt, arg...) |
#define | amba_attr(name, fmt, arg...) |
#define | amba_pm_suspend NULL |
#define | amba_pm_resume NULL |
#define | amba_pm_freeze NULL |
#define | amba_pm_thaw NULL |
#define | amba_pm_poweroff NULL |
#define | amba_pm_restore NULL |
#define | AMBA_PM NULL |
#define | SETFN(fn) if (drv->fn) drv->drv.fn = amba_##fn |
Variables | |
struct bus_type | amba_bustype |
#define to_amba_driver | ( | d | ) | container_of(d, struct amba_driver, drv) |
amba_attr | ( | irq0 | , |
"%u\n" | , | ||
dev-> | irq[0] | ||
) |
amba_attr | ( | irq1 | , |
"%u\n" | , | ||
dev-> | irq[1] | ||
) |
amba_attr_func | ( | resource | , |
"\t%016llx\t%016llx\t%016lx\n" | , | ||
(unsigned long long) dev->res. | start, | ||
(unsigned long long) dev->res. | end, | ||
dev->res. | flags | ||
) |
int amba_device_add | ( | struct amba_device * | dev, |
struct resource * | parent | ||
) |
|
read |
void amba_device_put | ( | struct amba_device * | dev | ) |
int amba_device_register | ( | struct amba_device * | dev, |
struct resource * | parent | ||
) |
void amba_device_unregister | ( | struct amba_device * | dev | ) |
amba_device_unregister - unregister an AMBA device : AMBA device to remove
Remove the specified AMBA device from the Linux device manager. All files associated with this object will be destroyed, and device drivers notified that the device has been removed. The AMBA device's resources including the amba_device structure will be freed once all references to it have been dropped.
int amba_driver_register | ( | struct amba_driver * | drv | ) |
void amba_driver_unregister | ( | struct amba_driver * | drv | ) |
|
read |
amba_find_device - locate an AMBA device given a bus id : bus id for device (or NULL) : parent device (or NULL) : peripheral ID (or 0) : peripheral ID mask (or 0)
Return the AMBA device corresponding to the supplied parameters. If no device matches, returns NULL.
NOTE: When a valid device is found, its refcount is incremented, and must be decremented before the returned reference.
void amba_release_regions | ( | struct amba_device * | dev | ) |
amba_release_regions - release mem regions associated with device : amba_device structure for device
Release regions claimed by a successful call to amba_request_regions.
int amba_request_regions | ( | struct amba_device * | dev, |
const char * | name | ||
) |
EXPORT_SYMBOL | ( | amba_driver_register | ) |
EXPORT_SYMBOL | ( | amba_driver_unregister | ) |
EXPORT_SYMBOL | ( | amba_device_register | ) |
EXPORT_SYMBOL | ( | amba_device_unregister | ) |
EXPORT_SYMBOL | ( | amba_find_device | ) |
EXPORT_SYMBOL | ( | amba_request_regions | ) |
EXPORT_SYMBOL | ( | amba_release_regions | ) |
EXPORT_SYMBOL_GPL | ( | amba_device_add | ) |
EXPORT_SYMBOL_GPL | ( | amba_apb_device_add | ) |
EXPORT_SYMBOL_GPL | ( | amba_ahb_device_add | ) |
EXPORT_SYMBOL_GPL | ( | amba_device_alloc | ) |
EXPORT_SYMBOL_GPL | ( | amba_device_put | ) |
postcore_initcall | ( | amba_init | ) |