#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/list.h>
#include <linux/ioport.h>
#include <linux/serial.h>
#include <linux/interrupt.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/mtd/mtd.h>
#include <linux/crypto.h>
#include <asm/uaccess.h>
#include "axis_hardware.h"
Include dependency graph for parallel_io.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | input_def |
| Properties on individual input. More... | |
| struct | output_def |
| Properties on individual output. More... | |
| struct | axis_io_bitmap |
| Mirrors for Axis Parallel IO. More... | |
Defines | |
| #define | AXIS_DIPSWITCH_NUMBER 16 |
| #define | AXIS_DIPSWITCH_MAP_SIZE (AXIS_DIPSWITCH_NUMBER>>3) |
| #define | AXIS_OUTPUTS_NUMBER 32 |
| #define | AXIS_OUTPUTS_MAP_SIZE (AXIS_OUTPUTS_NUMBER>>3) |
| #define | PARALLEL_IO_CONFIGURATION (0x30+CONTROL_OFFSET) |
| #define | PARALLEL_OUTPUTS_PORT (0x34+CONTROL_OFFSET) |
| #define | RAW_PARALLEL_INPUTS_PORT (0x20+CONTROL_OFFSET) |
| #define | DEBOUNCED_PARALLEL_INPUTS_PORT (0x28+CONTROL_OFFSET) |
| #define | RAW_MISC_INPUTS_PORT (0x24+CONTROL_OFFSET) |
| #define | DEBOUNCED_MISC_INPUTS_PORT (0x2C+CONTROL_OFFSET) |
| #define | READ_INPUTS_MASK_REGISTER (0x38+CONTROL_OFFSET) |
| #define | READ_MISC_MASK_REGISTER (0x3C+CONTROL_OFFSET) |
| #define | DIPSWITCH_OFFSET 0x64 |
| #define | AUTO_READ_ENABLE (1<<0) |
| #define | AUTO_WRITE_ENABLE (1<<4) |
| #define | MISC_INPUTS 4 |
| #define | AXIS_INPUTS_NUMBER 40 |
| #define | AXIS_INPUTS_MAP_SIZE (AXIS_INPUTS_NUMBER>>3) |
| #define | AXIS_OUTPUTS_NUMBER 32 |
| #define | AXIS_OUTPUTS_MAP_SIZE (AXIS_OUTPUTS_NUMBER>>3) |
Functions | |
| void | create_proc_dipswitch_entries (struct axis_pci_device_entry *device) |
| create /proc entries for dipswitches | |
| void | delete_proc_dipswitch_entries (struct axis_pci_device_entry *device) |
| Remove the /proc dipswitch entries. | |
| void | create_proc_input_entries (struct axis_pci_device_entry *device) |
| create /proc entries for inputs | |
| void | delete_proc_input_entries (struct axis_pci_device_entry *device) |
| Remove the /proc input entries. | |
| void | create_proc_output_entries (struct axis_pci_device_entry *device) |
| create /proc entries for outputs | |
| void | delete_proc_output_entries (struct axis_pci_device_entry *device) |
| Remove the /proc output entries. | |
| void | update_inputs_bitmap (struct axis_pci_device_entry *device) |
| synchs the inputs mirror with physical hardware | |
| void | enable_axis_inputs (struct axis_pci_device_entry *device) |
| Enables Axis inputs. | |
| void | init_parallel_io (struct axis_pci_device_entry *device) |
| Initalises AXIS parallel. | |
Variables | |
| file_operations | output_file_operations |
| file_operations | dipswitch_file_operations |
| file_operations | input_file_operations |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create /proc entries for dipswitches
Called by the PCI probe function creates a directory full of inputs |
Here is the call graph for this function:

|
|
create /proc entries for inputs
Called by the PCI probe function creates a directory full of inputs |
Here is the call graph for this function:

|
|
create /proc entries for outputs
Called by the PCI probe function creates a directory full of outputs |
Here is the call graph for this function:

|
|
Remove the /proc dipswitch entries.
Removes the /proc dipswitch entries |
|
|
Remove the /proc input entries.
Delete all the input /proc entries called if PCI device removed (unlikely) or on module unload |
|
|
Remove the /proc output entries.
Remove all the entries in the /proc file system related to outputs |
|
|
Enables Axis inputs.
Enables Axis inputs |
|
|
Initalises AXIS parallel.
Initalises AXIS parallel, called as PCI device is detected |
Here is the call graph for this function:

|
|
synchs the inputs mirror with physical hardware
Reads the inputs temp version pending stage two inputs |
|
|
|
|
|
|
|
|
|
1.3.6