Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ioc4.c File Reference
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/ioc4.h>
#include <linux/ktime.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/time.h>
#include <asm/io.h>

Go to the source code of this file.

Macros

#define IOC4_CALIBRATE_COUNT   63 /* Calibration cycle period */
 
#define IOC4_CALIBRATE_CYCLES   256 /* Average over this many cycles */
 
#define IOC4_CALIBRATE_DISCARD   2 /* Discard first few cycles */
 
#define IOC4_CALIBRATE_LOW_MHZ   25 /* Lower bound on bus speed sanity */
 
#define IOC4_CALIBRATE_HIGH_MHZ   75 /* Upper bound on bus speed sanity */
 
#define IOC4_CALIBRATE_DEFAULT_MHZ   66 /* Assumed if sanity check fails */
 
#define IOC4_CALIBRATE_LOW_LIMIT   (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_LOW_MHZ)
 
#define IOC4_CALIBRATE_HIGH_LIMIT   (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_HIGH_MHZ)
 
#define IOC4_CALIBRATE_DEFAULT   (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_DEFAULT_MHZ)
 
#define IOC4_CALIBRATE_END   (IOC4_CALIBRATE_CYCLES + IOC4_CALIBRATE_DISCARD)
 
#define IOC4_INT_OUT_MODE_TOGGLE   0x7 /* Toggle INT_OUT every COUNT+1 ticks */
 

Functions

int ioc4_register_submodule (struct ioc4_submodule *is)
 
void ioc4_unregister_submodule (struct ioc4_submodule *is)
 
 MODULE_DEVICE_TABLE (pci, ioc4_id_table)
 
 module_init (ioc4_init)
 
 module_exit (ioc4_exit)
 
 MODULE_AUTHOR ("Brent Casavant - Silicon Graphics, Inc. <[email protected]>")
 
 MODULE_DESCRIPTION ("PCI driver master module for SGI IOC4 Base-IO Card")
 
 MODULE_LICENSE ("GPL")
 
 EXPORT_SYMBOL (ioc4_register_submodule)
 
 EXPORT_SYMBOL (ioc4_unregister_submodule)
 

Macro Definition Documentation

#define IOC4_CALIBRATE_COUNT   63 /* Calibration cycle period */

Definition at line 45 of file ioc4.c.

#define IOC4_CALIBRATE_CYCLES   256 /* Average over this many cycles */

Definition at line 46 of file ioc4.c.

#define IOC4_CALIBRATE_DEFAULT   (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_DEFAULT_MHZ)

Definition at line 122 of file ioc4.c.

#define IOC4_CALIBRATE_DEFAULT_MHZ   66 /* Assumed if sanity check fails */

Definition at line 50 of file ioc4.c.

#define IOC4_CALIBRATE_DISCARD   2 /* Discard first few cycles */

Definition at line 47 of file ioc4.c.

#define IOC4_CALIBRATE_END   (IOC4_CALIBRATE_CYCLES + IOC4_CALIBRATE_DISCARD)

Definition at line 125 of file ioc4.c.

#define IOC4_CALIBRATE_HIGH_LIMIT   (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_HIGH_MHZ)

Definition at line 120 of file ioc4.c.

#define IOC4_CALIBRATE_HIGH_MHZ   75 /* Upper bound on bus speed sanity */

Definition at line 49 of file ioc4.c.

#define IOC4_CALIBRATE_LOW_LIMIT   (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_LOW_MHZ)

Definition at line 118 of file ioc4.c.

#define IOC4_CALIBRATE_LOW_MHZ   25 /* Lower bound on bus speed sanity */

Definition at line 48 of file ioc4.c.

#define IOC4_INT_OUT_MODE_TOGGLE   0x7 /* Toggle INT_OUT every COUNT+1 ticks */

Definition at line 128 of file ioc4.c.

Function Documentation

EXPORT_SYMBOL ( ioc4_register_submodule  )
EXPORT_SYMBOL ( ioc4_unregister_submodule  )
int ioc4_register_submodule ( struct ioc4_submodule is)

Definition at line 63 of file ioc4.c.

void ioc4_unregister_submodule ( struct ioc4_submodule is)

Definition at line 90 of file ioc4.c.

MODULE_AUTHOR ( "Brent Casavant - Silicon  Graphics,
Inc.< bcasavan @sgi.com >"   
)
MODULE_DESCRIPTION ( "PCI driver master module for SGI IOC4 Base-IO Card"  )
MODULE_DEVICE_TABLE ( pci  ,
ioc4_id_table   
)
module_exit ( ioc4_exit  )
module_init ( ioc4_init  )
MODULE_LICENSE ( "GPL"  )