|
Linux Kernel
3.7.1
|
#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) | |
| #define IOC4_CALIBRATE_COUNT 63 /* Calibration cycle period */ |
| #define IOC4_CALIBRATE_CYCLES 256 /* Average over this many cycles */ |
| #define IOC4_CALIBRATE_DEFAULT (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_DEFAULT_MHZ) |
| #define IOC4_CALIBRATE_DISCARD 2 /* Discard first few cycles */ |
| #define IOC4_CALIBRATE_END (IOC4_CALIBRATE_CYCLES + IOC4_CALIBRATE_DISCARD) |
| #define IOC4_CALIBRATE_HIGH_LIMIT (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_HIGH_MHZ) |
| #define IOC4_CALIBRATE_LOW_LIMIT (1000*IOC4_EXTINT_COUNT_DIVISOR/IOC4_CALIBRATE_LOW_MHZ) |
| #define IOC4_INT_OUT_MODE_TOGGLE 0x7 /* Toggle INT_OUT every COUNT+1 ticks */ |
| EXPORT_SYMBOL | ( | ioc4_register_submodule | ) |
| EXPORT_SYMBOL | ( | ioc4_unregister_submodule | ) |
| int ioc4_register_submodule | ( | struct ioc4_submodule * | is | ) |
| void ioc4_unregister_submodule | ( | struct ioc4_submodule * | is | ) |
| MODULE_AUTHOR | ( | "Brent Casavant - Silicon | Graphics, |
| Inc.< bcasavan @sgi.com >" | |||
| ) |
| MODULE_DEVICE_TABLE | ( | pci | , |
| ioc4_id_table | |||
| ) |
| module_exit | ( | ioc4_exit | ) |
| module_init | ( | ioc4_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
1.8.2