nidas v1.2.3
|
#include <linux/fs.h>
#include <linux/moduleparam.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/io.h>
#include <linux/poll.h>
#include <linux/ioport.h>
#include <linux/cdev.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <nidas/linux/mesa.h>
#include <nidas/linux/ver_macros.h>
#include <nidas/linux/irigclock.h>
#include <nidas/linux/klog.h>
#include <nidas/linux/util.h>
#include <nidas/linux/isa_bus.h>
#include <nidas/linux/Revision.h>
Macros | |
#define | REPO_REVISION "unknown" |
#define | DEVNAME_MESA "mesa" |
#define | MESA_CNTR_SAMPLE_QUEUE_SIZE 128 |
#define | MESA_RADAR_SAMPLE_QUEUE_SIZE 32 |
#define | MESA_P260X_SAMPLE_QUEUE_SIZE 32 |
Functions | |
MODULE_AUTHOR ("Mike Spowart <spowart@ucar.edu>") | |
MODULE_DESCRIPTION ("Mesa ISA driver") | |
MODULE_LICENSE ("GPL") | |
MODULE_VERSION (REPO_REVISION) | |
module_param_array (ioport, int, numboards, S_IRUGO) | |
MODULE_PARM_DESC (ioport, "ISA memory base of each board (default 0x220)") | |
static void | read_counter (void *ptr) |
static void | read_radar (void *ptr) |
static void | read_260x (void *ptr) |
static void | outportbwswap (struct MESA_Board *brd, unsigned char thebyte) |
static int | load_start (struct MESA_Board *brd) |
static int | load_finish (struct MESA_Board *brd) |
static int | load_program (struct MESA_Board *brd, struct mesa_prog *buf) |
static int | close_ports (struct MESA_Board *brd) |
static int | mesa_open (struct inode *inode, struct file *filp) |
static int | mesa_release (struct inode *inode, struct file *filp) |
static int | data_ready (struct MESA_Board *brd) |
static unsigned int | mesa_poll (struct file *filp, poll_table *wait) |
static ssize_t | mesa_read (struct file *filp, char __user *buf, size_t count, loff_t *f_pos) |
static long | mesa_ioctl (struct file *filp, unsigned int cmd, unsigned long arg) |
static void | mesa_cleanup (void) |
static int __init | mesa_init (void) |
module_init (mesa_init) | |
module_exit (mesa_cleanup) | |
Variables | |
static struct MESA_Board * | boards = 0 |
static int | numboards = 0 |
static unsigned int | ioport [MESA_4I34_MAX_NR_DEVS] = { 0x220, 0, 0, 0 } |
static dev_t | mesa_device = MKDEV(0, 0) |
static struct cdev | mesa_cdev |
static struct class * | mesa_class |
static struct file_operations | mesa_fops |
#define DEVNAME_MESA "mesa" |
Referenced by mesa_init().
#define MESA_CNTR_SAMPLE_QUEUE_SIZE 128 |
Referenced by mesa_ioctl(), and read_counter().
#define MESA_P260X_SAMPLE_QUEUE_SIZE 32 |
Referenced by mesa_ioctl(), and read_260x().
#define MESA_RADAR_SAMPLE_QUEUE_SIZE 32 |
Referenced by mesa_ioctl(), and read_radar().
#define REPO_REVISION "unknown" |
Referenced by mesa_init().
|
static |
References flush_irig_callbacks(), free_dsm_circ_buf(), and unregister_irig_callback().
Referenced by mesa_cleanup(), mesa_ioctl(), and mesa_release().
|
inlinestatic |
Referenced by mesa_poll(), and mesa_read().
|
static |
Referenced by mesa_ioctl().
|
static |
References outportbwswap().
Referenced by mesa_ioctl().
|
static |
Referenced by mesa_ioctl().
|
static |
References boards, close_ports(), mesa_cdev, mesa_class, mesa_device, and numboards.
Referenced by mesa_init().
|
static |
References boards, DEVNAME_MESA, err, ioport, mesa_cdev, mesa_class, mesa_cleanup(), mesa_device, mesa_fops, numboards, and REPO_REVISION.
|
static |
References alloc_dsm_circ_buf(), close_ports(), COUNTERS_SET, DIGITAL_IN_SET, free_dsm_circ_buf(), IRIG_100_HZ, IRIG_NUM_RATES, irigClockRateToEnum(), load_finish(), load_program(), load_start(), MESA_CNTR_SAMPLE_QUEUE_SIZE, MESA_IOC_MAXNR, MESA_LOAD_BLOCK, MESA_LOAD_DONE, MESA_LOAD_START, MESA_MAGIC, MESA_P260X_SAMPLE_QUEUE_SIZE, MESA_RADAR_SAMPLE_QUEUE_SIZE, MESA_STOP, MSECS_PER_SEC, N_COUNTERS, N_PMS260X, N_RADARS, PMS260X_SET, RADAR_SET, rate, read_260x(), read_counter(), read_radar(), register_irig_callback(), TWO_SIXTY_BINS, and unregister_irig_callback().
|
static |
References boards, MSECS_PER_SEC, and numboards.
|
static |
References data_ready().
|
static |
References data_ready(), and nidas_circbuf_read().
|
static |
References close_ports().
MODULE_AUTHOR | ( | "Mike Spowart <spowart@ucar.edu>" | ) |
MODULE_DESCRIPTION | ( | "Mesa ISA driver" | ) |
module_exit | ( | mesa_cleanup | ) |
module_init | ( | mesa_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
MODULE_VERSION | ( | REPO_REVISION | ) |
|
static |
Referenced by load_program().
|
static |
References ID_260X, MESA_P260X_SAMPLE_QUEUE_SIZE, and TWO_SIXTY_BINS.
Referenced by mesa_ioctl().
|
static |
References ID_COUNTERS, and MESA_CNTR_SAMPLE_QUEUE_SIZE.
Referenced by mesa_ioctl().
|
static |
References ID_RADAR, MESA_RADAR_SAMPLE_QUEUE_SIZE, and dsm_sample::timetag.
Referenced by mesa_ioctl().
|
static |
Referenced by mesa_cleanup(), mesa_init(), and mesa_open().
|
static |
Referenced by mesa_init(), and test_ISA_Writes().
|
static |
Referenced by mesa_cleanup(), and mesa_init().
|
static |
Referenced by mesa_cleanup(), and mesa_init().
|
static |
Referenced by mesa_cleanup(), and mesa_init().
|
static |
Referenced by mesa_init().
|
static |
Referenced by mesa_cleanup(), mesa_init(), and mesa_open().