Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
manager.c File Reference
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/pnp.h>
#include <linux/bitmap.h>
#include <linux/mutex.h>
#include "base.h"

Go to the source code of this file.

Functions

 DEFINE_MUTEX (pnp_res_mutex)
 
void pnp_init_resources (struct pnp_dev *dev)
 
int pnp_auto_config_dev (struct pnp_dev *dev)
 
int pnp_start_dev (struct pnp_dev *dev)
 
int pnp_stop_dev (struct pnp_dev *dev)
 
int pnp_activate_dev (struct pnp_dev *dev)
 
int pnp_disable_dev (struct pnp_dev *dev)
 
 EXPORT_SYMBOL (pnp_start_dev)
 
 EXPORT_SYMBOL (pnp_stop_dev)
 
 EXPORT_SYMBOL (pnp_activate_dev)
 
 EXPORT_SYMBOL (pnp_disable_dev)
 

Function Documentation

DEFINE_MUTEX ( pnp_res_mutex  )
EXPORT_SYMBOL ( pnp_start_dev  )
EXPORT_SYMBOL ( pnp_stop_dev  )
EXPORT_SYMBOL ( pnp_activate_dev  )
EXPORT_SYMBOL ( pnp_disable_dev  )
int pnp_activate_dev ( struct pnp_dev dev)

pnp_activate_dev - activates a PnP device for use : pointer to the desired device

does not validate or set resources so be careful.

Definition at line 361 of file manager.c.

int pnp_auto_config_dev ( struct pnp_dev dev)

pnp_auto_config_dev - automatically assigns resources to a device : pointer to the desired device

Definition at line 288 of file manager.c.

int pnp_disable_dev ( struct pnp_dev dev)

pnp_disable_dev - disables device : pointer to the desired device

inform the correct pnp protocol so that resources can be used by other devices

Definition at line 386 of file manager.c.

void pnp_init_resources ( struct pnp_dev dev)

Definition at line 216 of file manager.c.

int pnp_start_dev ( struct pnp_dev dev)

pnp_start_dev - low-level start of the PnP device : pointer to the desired device

assumes that resources have already been allocated

Definition at line 317 of file manager.c.

int pnp_stop_dev ( struct pnp_dev dev)

pnp_stop_dev - low-level disable of the PnP device : pointer to the desired device

does not free resources

Definition at line 340 of file manager.c.