nidas v1.2.3
|
#include <linux/module.h>
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <linux/fcntl.h>
#include <linux/ioport.h>
#include <linux/sched.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <linux/serial_reg.h>
#include "emerald.h"
#include <nidas/linux/ver_macros.h>
#include <nidas/linux/isa_bus.h>
#include <nidas/linux/klog.h>
#include <nidas/linux/Revision.h>
Macros | |
#define | __KERNEL__ |
#define | MODULE |
#define | REPO_REVISION "unknown" |
Functions | |
module_param_array (ioports, uint, emerald_nr_addrs, S_IRUGO) | |
module_param (tty_port_offset, int, S_IRUGO) | |
MODULE_AUTHOR ("Gordon Maclean") | |
MODULE_DESCRIPTION ("driver module supporting initialization and digital I/O on Diamond System Emerald serial port card") | |
MODULE_LICENSE ("Dual BSD/GPL") | |
MODULE_VERSION (REPO_REVISION) | |
static int | emm_check_config (emerald_config *config, const char *devname) |
static void | emm_enable_ports (emerald_board *brd) |
static int | emm_check_model (emerald_board *brd) |
static void | emm_read_config (emerald_board *brd) |
static int | emm_write_config (emerald_board *brd, emerald_config *config) |
static int | emm_read_eeconfig (emerald_board *brd, emerald_config *config) |
static int | emm_write_eeconfig (emerald_board *brd, emerald_config *config) |
static int | emm_load_config_from_eeprom (emerald_board *brd) |
static const char * | emm_mode_to_string (int mode) |
static void | emm_printk_port_modes (emerald_board *brd) |
static int | emm_set_port_mode (emerald_board *brd, int port, int mode) |
static int | emm_get_port_mode (emerald_board *brd, int port) |
static int | emm_set_port_mode_eeprom (emerald_board *brd, int port, int mode) |
static int | emm_get_port_mode_eeprom (emerald_board *brd, int port) |
static int | emm_get_digio_port_out (emerald_board *brd, int port) |
static void | emm_set_digio_out (emerald_board *brd, int val) |
static void | emm_set_digio_port_out (emerald_board *brd, int port, int val) |
static int | emm_read_digio (emerald_board *brd) |
static int | emm_read_digio_port (emerald_board *brd, int port) |
static void | emm_write_digio_port (emerald_board *brd, int port, int val) |
static int | emerald_open (struct inode *inode, struct file *filp) |
static int | emerald_release (struct inode *inode, struct file *filp) |
static long | emerald_ioctl (struct file *filp, unsigned int cmd, unsigned long arg) |
static void | emerald_cleanup_module (void) |
static int __init | emerald_init_module (void) |
module_init (emerald_init_module) | |
module_exit (emerald_cleanup_module) | |
Variables | |
static dev_t | emerald_device = MKDEV(0,0) |
static unsigned long | ioport_base = (unsigned long) SYSTEM_ISA_IOPORT_BASE |
static unsigned int | ioports [EMERALD_MAX_NR_DEVS] = {0,0,0,0} |
static int | emerald_nr_addrs = 0 |
static int | emerald_nr_ok = 0 |
static emerald_board * | emerald_boards = 0 |
static emerald_port * | emerald_ports = 0 |
static int | emerald_nports = 0 |
static int | tty_port_offset = 5 |
static struct class * | emerald_class |
static struct file_operations | emerald_fops |
#define __KERNEL__ |
#define MODULE |
#define REPO_REVISION "unknown" |
Referenced by emerald_init_module().
|
static |
References emerald_boards, emerald_class, emerald_device, emerald_nports, emerald_nr_addrs, emerald_nr_ok, and emerald_ports.
Referenced by emerald_init_module().
|
static |
References emerald_boards, emerald_class, emerald_cleanup_module(), emerald_device, emerald_fops, emerald_nports, emerald_nr_addrs, emerald_nr_ok, EMERALD_NR_PORTS, emerald_ports, emm_check_config(), emm_check_model(), emm_enable_ports(), emm_printk_port_modes(), emm_read_config(), emm_read_digio(), emm_read_eeconfig(), emm_set_digio_out(), emm_write_config(), emm_write_eeconfig(), ioport_base, ioports, REPO_REVISION, and tty_port_offset.
|
static |
References EMERALD_IOC_MAGIC, EMERALD_IOC_MAXNR, EMERALD_IOCEECONFIGLOAD, EMERALD_IOCG_EEMODE, EMERALD_IOCG_MODE, EMERALD_IOCGDIO, EMERALD_IOCGDIOOUT, EMERALD_IOCGEEPORTCONFIG, EMERALD_IOCGISABASE, EMERALD_IOCGNBOARD, EMERALD_IOCGPORTCONFIG, EMERALD_IOCPORTENABLE, EMERALD_IOCS_EEMODE, EMERALD_IOCS_MODE, EMERALD_IOCSDIO, EMERALD_IOCSDIOOUT, EMERALD_IOCSEEPORTCONFIG, EMERALD_IOCSPORTCONFIG, emerald_nr_ok, EMERALD_RS485_NOECHO, emm_enable_ports(), emm_get_digio_port_out(), emm_get_port_mode(), emm_get_port_mode_eeprom(), emm_load_config_from_eeprom(), emm_read_config(), emm_read_digio_port(), emm_read_eeconfig(), emm_set_digio_port_out(), emm_set_port_mode(), emm_set_port_mode_eeprom(), emm_write_config(), emm_write_digio_port(), emm_write_eeconfig(), err, ioport_base, and port.
|
static |
References emerald_nports, EMERALD_NR_PORTS, emerald_ports, and port.
|
static |
|
static |
References EMERALD_NR_PORTS.
Referenced by emerald_init_module(), and emm_load_config_from_eeprom().
|
static |
References EMERALD_MM_8, EMERALD_MM_8P, and EMERALD_NR_PORTS.
Referenced by emerald_init_module().
|
static |
Referenced by emerald_init_module(), emerald_ioctl(), emm_get_port_mode(), emm_printk_port_modes(), and emm_set_port_mode().
|
static |
References port.
Referenced by emerald_ioctl().
|
static |
References EMERALD_MM_8P, EMERALD_NR_PORTS, emm_enable_ports(), and port.
Referenced by emerald_ioctl().
|
static |
References EMERALD_MM_8P, EMERALD_NR_PORTS, and port.
Referenced by emerald_ioctl().
|
static |
References emm_check_config(), emm_read_config(), and emm_read_eeconfig().
Referenced by emerald_ioctl().
|
static |
References EMERALD_RS232, EMERALD_RS422, EMERALD_RS485_ECHO, and EMERALD_RS485_NOECHO.
Referenced by emm_printk_port_modes().
|
static |
References EMERALD_MM_8P, EMERALD_NR_PORTS, emm_enable_ports(), and emm_mode_to_string().
Referenced by emerald_init_module().
|
static |
References EMERALD_NR_PORTS.
Referenced by emerald_init_module(), emerald_ioctl(), and emm_load_config_from_eeprom().
|
static |
Referenced by emerald_init_module(), and emm_read_digio_port().
|
static |
References emm_read_digio(), and port.
Referenced by emerald_ioctl().
|
static |
References EMERALD_NR_PORTS.
Referenced by emerald_init_module(), emerald_ioctl(), and emm_load_config_from_eeprom().
|
static |
Referenced by emerald_init_module().
|
static |
References port.
Referenced by emerald_ioctl().
|
static |
References EMERALD_MM_8P, EMERALD_NR_PORTS, emm_enable_ports(), and port.
Referenced by emerald_ioctl().
|
static |
References EMERALD_MM_8P, EMERALD_NR_PORTS, and port.
Referenced by emerald_ioctl().
|
static |
References EMERALD_NR_PORTS.
Referenced by emerald_init_module(), and emerald_ioctl().
|
static |
References port.
Referenced by emerald_ioctl().
|
static |
References EMERALD_NR_PORTS.
Referenced by emerald_init_module(), and emerald_ioctl().
MODULE_AUTHOR | ( | "Gordon Maclean" | ) |
MODULE_DESCRIPTION | ( | "driver module supporting initialization and digital I/O on Diamond System Emerald serial port card" | ) |
module_exit | ( | emerald_cleanup_module | ) |
module_init | ( | emerald_init_module | ) |
MODULE_LICENSE | ( | "Dual BSD/GPL" | ) |
module_param | ( | tty_port_offset | , |
int | , | ||
S_IRUGO | ) |
module_param_array | ( | ioports | , |
uint | , | ||
emerald_nr_addrs | , | ||
S_IRUGO | ) |
MODULE_VERSION | ( | REPO_REVISION | ) |
|
static |
Referenced by emerald_cleanup_module(), and emerald_init_module().
|
static |
Referenced by emerald_cleanup_module(), and emerald_init_module().
|
static |
Referenced by emerald_cleanup_module(), and emerald_init_module().
|
static |
Referenced by emerald_init_module().
|
static |
Referenced by emerald_cleanup_module(), emerald_init_module(), and emerald_open().
|
static |
Referenced by emerald_cleanup_module(), and emerald_init_module().
|
static |
Referenced by emerald_cleanup_module(), emerald_init_module(), and emerald_ioctl().
|
static |
Referenced by emerald_cleanup_module(), emerald_init_module(), and emerald_open().
|
static |
Referenced by emerald_init_module(), and emerald_ioctl().
|
static |
Referenced by emerald_init_module().
|
static |
Referenced by emerald_init_module().