4 * @brief Generic handlers for extest's built-in commands
6 * This hasn't been done yet.
7 * It would be wise to use for these handler the 'general IOCTL' concept;
8 * that is, we should have a separate--and generic--set of IOCTLs
9 * (or a user-space library) to be able to handle these frequently used
11 * The GIOCTL set used in mil1553's Linux' driver might be a good start.
13 * @author Copyright (C) 2009 CERN CO/HT
15 * @section license_sec License
16 * Released under the GPL v2. (and only v2, not any later version)
18 #include <cmd_handlers.h>
20 extern int snprintf(char *s
, size_t n
, const char *format
, ...);
22 int hndl_swdeb(struct cmd_desc
* cmdd
, struct atom
*atoms
)
27 int hndl_getversion(struct cmd_desc
* cmdd
, struct atom
*atoms
)
32 int hndl_module(struct cmd_desc
*cmdd
, struct atom
*atoms
)
37 int hndl_nextmodule(struct cmd_desc
*cmdd
, struct atom
*atoms
)
42 int hndl_rawio(struct cmd_desc
* cmdd
, struct atom
*atoms
)
47 int hndl_maps(struct cmd_desc
*cmdd
, struct atom
*atoms
)
52 int hndl_timeout(struct cmd_desc
*cmdd
, struct atom
*atoms
)
57 int hndl_queue(struct cmd_desc
*cmdd
, struct atom
*atoms
)
62 int hndl_clients(struct cmd_desc
*cmdd
, struct atom
*atoms
)
67 int hndl_connect(struct cmd_desc
*cmdd
, struct atom
*atoms
)
72 int hndl_enable(struct cmd_desc
*cmdd
, struct atom
*atoms
)
77 int hndl_reset(struct cmd_desc
* cmdd
, struct atom
*atoms
)
82 int hndl_getstatus(struct cmd_desc
* cmdd
, struct atom
*atoms
)
87 int hndl_waitintr(struct cmd_desc
* cmdd
, struct atom
*atoms
)
92 int hndl_simintr(struct cmd_desc
* cmdd
, struct atom
*atoms
)
97 #if 0 /* JTAG -- to be implemented */
98 int hndl_jtag_vhdl(struct cmd_desc
* cmdd
, struct atom
*atoms
)