summaryrefslogtreecommitdiffstats
path: root/pywrap/pcipywrap.i
diff options
context:
space:
mode:
Diffstat (limited to 'pywrap/pcipywrap.i')
-rw-r--r--pywrap/pcipywrap.i10
1 files changed, 9 insertions, 1 deletions
diff --git a/pywrap/pcipywrap.i b/pywrap/pcipywrap.i
index 88a746f..f08ceb7 100644
--- a/pywrap/pcipywrap.i
+++ b/pywrap/pcipywrap.i
@@ -8,7 +8,7 @@ extern void __redirect_logs_to_exeption();
typedef struct {
%extend {
- Pcipywrap(const char* fpga_device = NULL, const char* model = NULL);
+ Pcipywrap(const char* fpga_device = "/dev/fpga0", const char* model = NULL);
Pcipywrap(PyObject* ctx){return create_Pcipywrap(ctx);}
~Pcipywrap();
@@ -21,5 +21,13 @@ typedef struct {
PyObject* get_registers_list(const char *bank = NULL);
PyObject* get_register_info(const char* reg,const char *bank = NULL);
PyObject* get_property_list(const char* branch = NULL);
+ PyObject* read_dma(unsigned char dma, size_t size);
+
+ PyObject* lock_global();
+ void unlock_global();
+
+ PyObject* lock(const char *lock_id);
+ PyObject* try_lock(const char *lock_id);
+ PyObject* unlock(const char *lock_id);
}
} Pcipywrap;