1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: A simple EPICS driver example for PCI devices using asynPortDriver on Linux |
From: | "Perez Juarez, Emilio \(DLSLtd, RAL, LSCI\) via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Wang, Lin" <wanglin at ihep.ac.cn> |
Date: | Sun, 4 Dec 2022 10:39:37 +0000 |
Hi Lin Wang and thanks for sharing,
I have some comments/questions:
I hope any of that was useful,
Kind Regards,
Emilio
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Wang, Lin via Tech-talk <tech-talk at aps.anl.gov>
Sent: 02 December 2022 10:15 To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: A simple EPICS driver example for PCI devices using asynPortDriver on Linux Dear all,
A simple EPICS driver example for PCI devices using asynPortDriver on Linux is shared in the following GitHub link in case somebody might be interested, https://github.com/wanglin86769/cpciEpicsApp
This is an EPICS IOC developed for the LLRF system of a small-scale accelerator facility at CSNS campus. The LLRF board is a customized cPCI FPGA board with PCI 9056 bridge, the control interface is merely register access plus waveform read with 1 second update period, no interrupt or DMA is needed.
The Linux driver part is implemented as kernel module rather than UIO (Userspace I/O). This example is only useful for simple customized PCI devices that does not need interrupt and DMA, and only one MMIO (Memory mapped I/O) BAR is used to access the FPGA registers.
This is my first assignment to control PCI under Linux rather than vxWorks, any suggestion is appreciated.
Regards, Lin Wang Staff Engineer Controls Group, Accelerator System Division, CSNS (China Spallation Neutron Source) IHEP (Institute of High Energy Physics), Chinese Academy of Science
-- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. |