regDev Simple access to register based devices

Slides:



Advertisements
Similar presentations
MIL/STD-1553B Bus Overview J. Frederick Bartlett Fermilab June 3, 1999.
Advertisements

Device Drivers. Linux Device Drivers Linux supports three types of hardware device: character, block and network –character devices: R/W without buffering.
Status – Week 257 Victor Moya. Summary GPU interface. GPU interface. GPU state. GPU state. API/Driver State. API/Driver State. Driver/CPU Proxy. Driver/CPU.
Dirk Zimoch, EPICS Collaboration Meeting, Vancouver 2009 Real-Time Data Transfer using the Timing System (Original slides and driver code by Babak Kalantari)
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
Chapter 11: File System Implementation
Wir schaffen Wissen – heute für morgen June 11, 2015PSI,June 11, 2015PSI, Paul Scherrer Institut Modular High Bandwidth Data Acquisition System With Gigabit.
HW API internal meeting 2/10/2001 Eric CANO, CERN/EP-CMD1 What’s proposed? l Integration with Christoph’s generic hardware access library for user-friendly.
OPC Overview OPC Device Support (PLC Gateway for 3.14) Ralph Lange – EPICS Collaboration Meeting at SLAC, April 2005.
14 Nov 2000G3/FlexIO/PLC5/VSIOD8 Carl Lionberger 1 EPICS Support for G3/FlexIO/PLC5/VSIOD8 Carl Lionberger Group3™ optical-fiber-connected I/O AB FlexIO™
Dirk Zimoch, EPICS Meeting April 2007, Hamburg Siemens S7 PLC Communication.
OSI and Architecture Independent Device Driver Jim Chen HYTEC ELECTRONICS LIMITED Spring 2013 – Diamond Light Source.
EPICS support for ControlLogix via EtherNet/IP Kay-Uwe Kasemir, LANL May 2001.
Ether_ip - EPICS EtherNet/IP support for ControlLogix Kay-Uwe Kasemir, LANL Nov
Managed by UT-Battelle for the Department of Energy Kay Kasemir Sept EPICS EtherIP Driver.
Argonne National Laboratory is managed by The University of Chicago for the U.S. Department of Energy P0 Feedback Project: Merging EPICS with FPGA’s Nicholas.
File System. NET+OS 6 File System Architecture Design Goals File System Layer Design Storage Services Layer Design RAM Services Layer Design Flash Services.
Input / Output CS 537 – Introduction to Operating Systems.
Wir schaffen Wissen – heute für morgen 24. August 2015PSI,24. August 2015PSI, Paul Scherrer Institut Embedded PREEMPT_RT Linux for IOxOS VME IOC Damir.
Wir schaffen Wissen – heute für morgen 24 August 2015PSI,24 August 2015PSI, Paul Scherrer Institut Status WP 8.2 RF Low Level Electronic Manuel Brönnimann.
Disk Access. DISK STRUCTURE Sector: Smallest unit of data transfer from/to disk; 512B 2/4/8 adjacent sectors transferred together: Blocks Read/write heads.
SLAAC Hardware Status Brian Schott Provo, UT September 1999.
Writing Your Own Custom IP Drivers for the IOC Blade 9010 By Darrell Nineham 5 Craddock.
Cpr E 308 Input/Output Recall: OS must abstract out all the details of specific I/O devices Today –Block and Character Devices –Hardware Issues – Programmed.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
Dirk Zimoch, 2007 Introduction to asynDriver. Page 2Dirk Zimoch, 2007 Introduction to asynDriver What is asynDriver? ■ “asynDriver is a general purpose.
8 May 2001EPICS Group3 Carl Lionberger1 EPICS Support for Group3 Control System Carl Lionberger Group3™ optical-fiber-connected I/O Software and operational.
EPICS devSNMP Extensions Euan Troup, CSIRO Australia Telescope National Facility ASKAP Project Paul Wild Observatory.
Ralph Lange: OPC Gateway (Device Support) OPC Gateway (Device Support) Ralph Lange – EPICS Collaboration Meeting March SSRF.
GBT Interface Card for a Linux Computer Carson Teale 1.
Berliner Elektronenspeicherringgesellschaft für Synchrotronstrahlung mbH (BESSY) OPC - Device Support Bernhard Kuner, Carsten Winkler BESSY, Berlin, Germany.
On-the-fly scanning: Improvements in the EPICS motor and mca modules Mark Rivers University of Chicago.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
1 File Systems: Consistency Issues. 2 File Systems: Consistency Issues File systems maintains many data structures  Free list/bit vector  Directories.
File System Implementation
Fast Fault Finder A Machine Protection Component.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
Connecting EPICS with Easily Reconfigurable I/O Hardware EPICS Collaboration Meeting Fall 2011.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output – 2 I/O Software CS 342 – Operating Systems Ibrahim Korpeoglu.
1 1999/Ph 514: Supported Hardware EPICS Supported Hardware Ned D. Arnold APS.
F28HS2 Hardware-Software Interface Lecture 6 - Programming in C 6.
Babak Kalantari, EPICS Collaboration Meeting, Kobe 2009 A generic driver for Data Buffer of MRF Timing System Babak Kalantari Paul Scherrer Institute Switzerland.
I/O Software CS 537 – Introduction to Operating Systems.
EPICS Records J. Frederick Bartlett Fermilab June 1,1999.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
WIR SCHAFFEN WISSEN – HEUTE FÜR MORGEN caQtDM: future use of a display manager Helge Brands, Anton Mezger :: Paul Scherrer Institut, Switzerland Spring.
WIR SCHAFFEN WISSEN – HEUTE FÜR MORGEN SwissFEL Timing System status & plans Babak Kalantari :: Large Research Facilities /Controls :: Paul Scherrer Institut.
Input/Output (I/O) Important OS function – control I/O
JavaIOC Overview and Update
Advanced Photon Source
Input/Output 1 1.
Von Neumann model - Memory
EPICS MCA and Canberra Support
asyn: An Interface Between EPICS Drivers and Clients
Register Use Policy Conventions
Human Interface Devices
caQtDM: future use of a display manager
Tejalal Choudhary “Computer Programming” Fundamentals of “C”
What Happens if There is no Free Frame?
asyn Driver Tutorial Measurement Computing 1608GX-2A0
Von Neumann model - Memory
Chapter 5: I/O Systems.
Bare Metal System Software Development
Hardware Organization
File System Implementation
umbrellaID: OpenIRIS & Umbrella
C Language B. DHIVYA 17PCA140 II MCA.
Current EPICS Developments at PSI
MIPS Assembly.
Presentation transcript:

regDev Simple access to register based devices Dirk Zimoch :: Controls :: Paul Scherrer Institut regDev Simple access to register based devices EPICS collaboration meeting, Lund 2016

What is the purpose of regDev? register map device longin longout ai ao mbbi mbbo record record offset 0x0000 int8, uint8, int16, uint16, int32, uint32, float, double record 1*n bytes (n = 1,2,4,8) ai ao record masked uint8, uint16, uint32 masked n bytes bi bo mbbiDirect mbboDirect record m*n bytes array of int8, uint8, int16, uint16, int32, uint32, float, double waveform aai aao stringin stringout [···] record Make the driver interface simple

What is included in regDev? Device support for all standard EPICS records A simple interface to register map drivers Optionally with asynchronous read/write, I/O intr, DMA Copy utility with mask and byte swap support regDev low level driver updater async completion ai record readArray() ao record writeMaskedArray() ··· Device Supports array scaler aai record dmaAlloc() aao record I/O Intr

Feature: Periodic Updater UGLY Feature: Periodic Updater Synchronize output records with device set values A feature really missing in EPICS base Read back and update output records periodically (Do not write to device again) out record in record read FLNK DOL OUT PP SDIS .PACT .SCAN=… read updater external dial write write out record set value read in record read value

Feature: Dynamic offset calculation Offset can be simple static integer expression: 0x1000+12*4 written with macros: $(base)+$(x)*4 Or dynamic: 'record'*0x100+0x1000+$(x)*4 ping-pong buffer record record record record

Example low level driver: mmap VME A16, A24, A32, CRCSR, BLT, MBLT, 2eSST Device file (on Linux) Physical address: /dev/mem PCI device: /sys/bus/pci/devices/*:*:*.*/resource* User Space I/O device: /dev/uio* Shared memory file: /dev/shm/* ...

Future feature: buffered read regDev local buffer register map device longin longout ai ao mbbi mbbo record record (DMA) read ai ao record bi bo mbbiDirect mbboDirect record waveform aai aao stringin stringout [···] [···] record

Future feature: asyn interface (?) regDev asyn interface updater ai record asyn driver ao record ··· Device Supports array scaler aai record aao record (If I have really nothing else to do.)

Wir schaffen Wissen – heute für morgen