Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ccwgroup.c File Reference
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/ctype.h>
#include <linux/dcache.h>
#include <asm/cio.h>
#include <asm/ccwdev.h>
#include <asm/ccwgroup.h>
#include "device.h"

Go to the source code of this file.

Macros

#define CCW_BUS_ID_SIZE   10
 

Functions

int ccwgroup_create_dev (struct device *parent, struct ccwgroup_driver *gdrv, int num_devices, const char *buf)
 
 EXPORT_SYMBOL (ccwgroup_create_dev)
 
 module_init (init_ccwgroup)
 
 module_exit (cleanup_ccwgroup)
 
int ccwgroup_driver_register (struct ccwgroup_driver *cdriver)
 
 EXPORT_SYMBOL (ccwgroup_driver_register)
 
void ccwgroup_driver_unregister (struct ccwgroup_driver *cdriver)
 
 EXPORT_SYMBOL (ccwgroup_driver_unregister)
 
int ccwgroup_probe_ccwdev (struct ccw_device *cdev)
 
 EXPORT_SYMBOL (ccwgroup_probe_ccwdev)
 
void ccwgroup_remove_ccwdev (struct ccw_device *cdev)
 
 EXPORT_SYMBOL (ccwgroup_remove_ccwdev)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CCW_BUS_ID_SIZE   10

Definition at line 24 of file ccwgroup.c.

Function Documentation

int ccwgroup_create_dev ( struct device parent,
struct ccwgroup_driver gdrv,
int  num_devices,
const char buf 
)

ccwgroup_create_dev() - create and register a ccw group device : parent device for the new device : driver for the new group device : number of slave devices : buffer containing comma separated bus ids of slave devices

Create and register a new ccw group device as a child of . Slave devices are obtained from the list of bus ids given in . Returns: %0 on success and an error code on failure. Context: non-atomic

Definition at line 293 of file ccwgroup.c.

int ccwgroup_driver_register ( struct ccwgroup_driver cdriver)

ccwgroup_driver_register() - register a ccw group driver : driver to be registered

This function is mainly a wrapper around driver_register().

Definition at line 532 of file ccwgroup.c.

void ccwgroup_driver_unregister ( struct ccwgroup_driver cdriver)

ccwgroup_driver_unregister() - deregister a ccw group driver : driver to be deregistered

This function is mainly a wrapper around driver_unregister().

Definition at line 552 of file ccwgroup.c.

int ccwgroup_probe_ccwdev ( struct ccw_device cdev)

ccwgroup_probe_ccwdev() - probe function for slave devices : ccw device to be probed

This is a dummy probe function for ccw devices that are slave devices in a ccw group device. Returns: always %0

Definition at line 581 of file ccwgroup.c.

void ccwgroup_remove_ccwdev ( struct ccw_device cdev)

ccwgroup_remove_ccwdev() - remove function for slave devices : ccw device to be removed

This is a remove function for ccw devices that are slave devices in a ccw group device. It sets the ccw device offline and also deregisters the embedding ccw group device.

Definition at line 595 of file ccwgroup.c.

EXPORT_SYMBOL ( ccwgroup_create_dev  )
EXPORT_SYMBOL ( ccwgroup_driver_register  )
EXPORT_SYMBOL ( ccwgroup_driver_unregister  )
EXPORT_SYMBOL ( ccwgroup_probe_ccwdev  )
EXPORT_SYMBOL ( ccwgroup_remove_ccwdev  )
module_exit ( cleanup_ccwgroup  )
module_init ( init_ccwgroup  )
MODULE_LICENSE ( "GPL"  )