Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
fsl_hypervisor.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/err.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/of.h>
#include <linux/reboot.h>
#include <linux/uaccess.h>
#include <linux/notifier.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <asm/fsl_hcalls.h>
#include <linux/fsl_hypervisor.h>

Go to the source code of this file.

Data Structures

struct  doorbell_queue
 
struct  doorbell_isr
 

Macros

#define QSIZE   16
 
#define nextp(x)   (((x) + 1) & (QSIZE - 1))
 

Functions

int fsl_hv_failover_register (struct notifier_block *nb)
 
 EXPORT_SYMBOL (fsl_hv_failover_register)
 
int fsl_hv_failover_unregister (struct notifier_block *nb)
 
 EXPORT_SYMBOL (fsl_hv_failover_unregister)
 
 module_init (fsl_hypervisor_init)
 
 module_exit (fsl_hypervisor_exit)
 
 MODULE_AUTHOR ("Timur Tabi <[email protected]>")
 
 MODULE_DESCRIPTION ("Freescale hypervisor management driver")
 
 MODULE_LICENSE ("GPL v2")
 

Variables

struct list_head isr_list
 

Macro Definition Documentation

#define nextp (   x)    (((x) + 1) & (QSIZE - 1))

Definition at line 464 of file fsl_hypervisor.c.

#define QSIZE   16

Definition at line 461 of file fsl_hypervisor.c.

Function Documentation

EXPORT_SYMBOL ( fsl_hv_failover_register  )
EXPORT_SYMBOL ( fsl_hv_failover_unregister  )
int fsl_hv_failover_register ( struct notifier_block nb)

fsl_hv_event_register() - register a callback for failover events : pointer to caller-supplied notifier_block structure

This function is called by device drivers to register their callback functions for fail-over events.

The caller should allocate a notifier_block object and initialize the 'priority' and 'notifier_call' fields.

Definition at line 768 of file fsl_hypervisor.c.

int fsl_hv_failover_unregister ( struct notifier_block nb)

fsl_hv_event_unregister() - unregister a callback for failover events : the same 'nb' used in previous fsl_hv_failover_register call

Definition at line 777 of file fsl_hypervisor.c.

MODULE_AUTHOR ( "Timur Tabi <[email protected]>"  )
MODULE_DESCRIPTION ( "Freescale hypervisor management driver )
module_exit ( fsl_hypervisor_exit  )
module_init ( fsl_hypervisor_init  )
MODULE_LICENSE ( "GPL v2 )

Variable Documentation

struct list_head isr_list

Definition at line 477 of file fsl_hypervisor.c.