Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
zorro-driver.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/zorro.h>

Go to the source code of this file.

Functions

struct zorro_device_idzorro_match_device (const struct zorro_device_id *ids, const struct zorro_dev *z)
 
 EXPORT_SYMBOL (zorro_match_device)
 
int zorro_register_driver (struct zorro_driver *drv)
 
 EXPORT_SYMBOL (zorro_register_driver)
 
void zorro_unregister_driver (struct zorro_driver *drv)
 
 EXPORT_SYMBOL (zorro_unregister_driver)
 
 EXPORT_SYMBOL (zorro_bus_type)
 
 postcore_initcall (zorro_driver_init)
 

Variables

struct bus_type zorro_bus_type
 

Function Documentation

EXPORT_SYMBOL ( zorro_match_device  )
EXPORT_SYMBOL ( zorro_register_driver  )
EXPORT_SYMBOL ( zorro_unregister_driver  )
EXPORT_SYMBOL ( zorro_bus_type  )
postcore_initcall ( zorro_driver_init  )
struct zorro_device_id* zorro_match_device ( const struct zorro_device_id ids,
const struct zorro_dev *  z 
)
read

zorro_match_device - Tell if a Zorro device structure has a matching Zorro device id structure : array of Zorro device id structures to search in : the Zorro device structure to match against

Used by a driver to check whether a Zorro device present in the system is in its list of supported devices. Returns the matching zorro_device_id structure or NULL if there is no match.

Definition at line 30 of file zorro-driver.c.

int zorro_register_driver ( struct zorro_driver *  drv)

zorro_register_driver - register a new Zorro driver : the driver structure to register

Adds the driver structure to the list of registered drivers Returns zero or a negative error value.

Definition at line 86 of file zorro-driver.c.

void zorro_unregister_driver ( struct zorro_driver *  drv)

zorro_unregister_driver - unregister a zorro driver : the driver structure to unregister

Deletes the driver structure from the list of registered Zorro drivers, gives it a chance to clean up by calling its remove() function for each device it was responsible for, and marks those devices as driverless.

Definition at line 108 of file zorro-driver.c.

Variable Documentation

struct bus_type zorro_bus_type
Initial value:
= {
.name = "zorro",
.match = zorro_bus_match,
.uevent = zorro_uevent,
.probe = zorro_device_probe,
.remove = zorro_device_remove,
}

Definition at line 167 of file zorro-driver.c.