Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
macio_asic.c File Reference
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/pci_ids.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <asm/machdep.h>
#include <asm/macio.h>
#include <asm/pmac_feature.h>
#include <asm/prom.h>
#include <asm/pci-bridge.h>

Go to the source code of this file.

Data Structures

struct  macio_devres
 

Macros

#define MAX_NODE_NAME_SIZE   (20 - 12)
 

Functions

struct macio_dev * macio_dev_get (struct macio_dev *dev)
 
void macio_dev_put (struct macio_dev *dev)
 
 postcore_initcall (macio_bus_driver_init)
 
int macio_register_driver (struct macio_driver *drv)
 
void macio_unregister_driver (struct macio_driver *drv)
 
int macio_enable_devres (struct macio_dev *dev)
 
. Do not access

any address inside the memory regions unless this call returns successfully.

Returns 0 on success, or EBUSY on error. A warning message is also printed on failure.

int macio_request_resource (struct macio_dev *dev, int resource_no, const char *name)
 
void macio_release_resource (struct macio_dev *dev, int resource_no)
 
. Do not access any address inside

the memory regions unless this call returns successfully.

Returns 0 on success, or EBUSY on error. A warning message is also printed on failure.

int macio_request_resources (struct macio_dev *dev, const char *name)
 
void macio_release_resources (struct macio_dev *dev)
 
 module_init (macio_module_init)
 
 EXPORT_SYMBOL (macio_register_driver)
 
 EXPORT_SYMBOL (macio_unregister_driver)
 
 EXPORT_SYMBOL (macio_dev_get)
 
 EXPORT_SYMBOL (macio_dev_put)
 
 EXPORT_SYMBOL (macio_request_resource)
 
 EXPORT_SYMBOL (macio_release_resource)
 
 EXPORT_SYMBOL (macio_request_resources)
 
 EXPORT_SYMBOL (macio_release_resources)
 
 EXPORT_SYMBOL (macio_enable_devres)
 

Variables

struct device_attribute macio_dev_attrs []
 
struct bus_type macio_bus_type
 

Macro Definition Documentation

#define MAX_NODE_NAME_SIZE   (20 - 12)

Definition at line 36 of file macio_asic.c.

Function Documentation

EXPORT_SYMBOL ( macio_register_driver  )
EXPORT_SYMBOL ( macio_unregister_driver  )
EXPORT_SYMBOL ( macio_dev_get  )
EXPORT_SYMBOL ( macio_dev_put  )
EXPORT_SYMBOL ( macio_request_resource  )
EXPORT_SYMBOL ( macio_release_resource  )
EXPORT_SYMBOL ( macio_request_resources  )
EXPORT_SYMBOL ( macio_release_resources  )
EXPORT_SYMBOL ( macio_enable_devres  )
struct macio_dev* macio_dev_get ( struct macio_dev *  dev)
read

Definition at line 50 of file macio_asic.c.

void macio_dev_put ( struct macio_dev *  dev)

Definition at line 63 of file macio_asic.c.

int macio_enable_devres ( struct macio_dev *  dev)

Definition at line 561 of file macio_asic.c.

int macio_register_driver ( struct macio_driver *  drv)

macio_register_driver - Registers a new MacIO device driver : pointer to the driver definition structure

Definition at line 525 of file macio_asic.c.

void macio_release_resource ( struct macio_dev *  dev,
int  resource_no 
)

macio_release_resource - Release an MMIO resource : pointer to the device holding the resource : resource number to release

Definition at line 626 of file macio_asic.c.

void macio_release_resources ( struct macio_dev *  dev)

macio_release_resources - Release reserved memory resources : MacIO device whose resources were previously reserved

Definition at line 671 of file macio_asic.c.

int macio_request_resource ( struct macio_dev *  dev,
int  resource_no,
const char name 
)

Definition at line 593 of file macio_asic.c.

int macio_request_resources ( struct macio_dev *  dev,
const char name 
)

Definition at line 650 of file macio_asic.c.

void macio_unregister_driver ( struct macio_driver *  drv)

macio_unregister_driver - Unregisters a new MacIO device driver : pointer to the driver definition structure

Definition at line 538 of file macio_asic.c.

module_init ( macio_module_init  )
postcore_initcall ( macio_bus_driver_init  )

Variable Documentation

struct bus_type macio_bus_type
Initial value:
= {
.name = "macio",
.match = macio_bus_match,
.probe = macio_device_probe,
.remove = macio_device_remove,
.shutdown = macio_device_shutdown,
.suspend = macio_device_suspend,
.resume = macio_device_resume,
.dev_attrs = macio_dev_attrs,
}

Definition at line 137 of file macio_asic.c.

struct device_attribute macio_dev_attrs[]

Definition at line 64 of file macio_sysfs.c.