Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:53

0001 /**
0002  *  @file
0003  *
0004  *  @ingroup shared_vmeuniversedma
0005  *
0006  *  @brief vmeUniverseDMA Support
0007  */
0008 
0009 #ifndef VME_UNIVERSE_DMA_H
0010 #define VME_UNIVERSE_DMA_H
0011 
0012 /*
0013  * Authorship
0014  * ----------
0015  * This software was created by
0016  *     Till Straumann <strauman@slac.stanford.edu>, 2006, 2007
0017  *     Stanford Linear Accelerator Center, Stanford University.
0018  *
0019  * Acknowledgement of sponsorship
0020  * ------------------------------
0021  * This software was produced by
0022  *     the Stanford Linear Accelerator Center, Stanford University,
0023  *     under Contract DE-AC03-76SFO0515 with the Department of Energy.
0024  *
0025  * Government disclaimer of liability
0026  * ----------------------------------
0027  * Neither the United States nor the United States Department of Energy,
0028  * nor any of their employees, makes any warranty, express or implied, or
0029  * assumes any legal liability or responsibility for the accuracy,
0030  * completeness, or usefulness of any data, apparatus, product, or process
0031  * disclosed, or represents that its use would not infringe privately owned
0032  * rights.
0033  *
0034  * Stanford disclaimer of liability
0035  * --------------------------------
0036  * Stanford University makes no representations or warranties, express or
0037  * implied, nor assumes any liability for the use of this software.
0038  *
0039  * Stanford disclaimer of copyright
0040  * --------------------------------
0041  * Stanford University, owner of the copyright, hereby disclaims its
0042  * copyright and all other rights in this software.  Hence, anyone may
0043  * freely use it for any purpose without restriction.
0044  *
0045  * Maintenance of notices
0046  * ----------------------
0047  * In the interest of clarity regarding the origin and status of this
0048  * SLAC software, this and all the preceding Stanford University notices
0049  * are to remain affixed to any copy or derivative of this software made
0050  * or distributed by the recipient and are to be affixed to any copy of
0051  * software made or distributed by the recipient that contains a copy or
0052  * derivative of this software.
0053  *
0054  * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
0055  */
0056 #include <bsp/vmeUniverse.h>
0057 #include <stdint.h>
0058 
0059 #ifdef __cplusplus
0060 extern "C" {
0061 #endif
0062 
0063 /**
0064  *  @defgroup shared_vmeuniversedma vmeUniverseDMA Support
0065  *
0066  *  @ingroup shared_vmeuniverse
0067  *
0068  *  @brief vmeUniverseDMA Support Package
0069  */
0070 
0071 extern struct VMEDmaListClassRec_ vmeUniverseDmaListClass;
0072 
0073 int
0074 vmeUniverseDmaSetupXX(volatile LERegister *base, int channel, uint32_t mode, uint32_t xfer_mode, void *custom);
0075 
0076 int
0077 vmeUniverseDmaSetup(int channel, uint32_t mode, uint32_t xfer_mode, void *custom);
0078 
0079 int
0080 vmeUniverseDmaStartXX(volatile LERegister *base, int channel, uint32_t pci_addr, uint32_t vme_addr, uint32_t n_bytes);
0081 
0082 int
0083 vmeUniverseDmaStart(int channel, uint32_t pci_addr, uint32_t vme_addr, uint32_t n_bytes);
0084 
0085 uint32_t
0086 vmeUniverseDmaStatusXX(volatile LERegister *base, int channel);
0087 
0088 uint32_t
0089 vmeUniverseDmaStatus(int channel);
0090 
0091 #ifdef __cplusplus
0092 }
0093 #endif
0094 
0095 #endif