vmod/vmodttl: fixed bug related to luns not ordered and/or not starting from zero.
[ht-drivers.git] / utils / extest / cmd_generic.c
blob4397aceb4ca192cf2f94a193d99d5e99965319e7
1 /**
2 * @file cmd_generic.c
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
10 * commands.
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)
24 return 1;
27 int hndl_getversion(struct cmd_desc* cmdd, struct atom *atoms)
29 return 1;
32 int hndl_module(struct cmd_desc *cmdd, struct atom *atoms)
34 return 1;
37 int hndl_nextmodule(struct cmd_desc *cmdd, struct atom *atoms)
39 return 1;
42 int hndl_rawio(struct cmd_desc* cmdd, struct atom *atoms)
44 return 1;
47 int hndl_maps(struct cmd_desc *cmdd, struct atom *atoms)
49 return 1;
52 int hndl_timeout(struct cmd_desc *cmdd, struct atom *atoms)
54 return 1;
57 int hndl_queue(struct cmd_desc *cmdd, struct atom *atoms)
59 return 1;
62 int hndl_clients(struct cmd_desc *cmdd, struct atom *atoms)
64 return 1;
67 int hndl_connect(struct cmd_desc *cmdd, struct atom *atoms)
69 return 1;
72 int hndl_enable(struct cmd_desc *cmdd, struct atom *atoms)
74 return 1;
77 int hndl_reset(struct cmd_desc* cmdd, struct atom *atoms)
79 return 1;
82 int hndl_getstatus(struct cmd_desc* cmdd, struct atom *atoms)
84 return 1;
87 int hndl_waitintr(struct cmd_desc* cmdd, struct atom *atoms)
89 return 1;
92 int hndl_simintr(struct cmd_desc* cmdd, struct atom *atoms)
94 return 1;
97 #if 0 /* JTAG -- to be implemented */
98 int hndl_jtag_vhdl(struct cmd_desc* cmdd, struct atom *atoms)
100 return 1;
102 #endif /* JTAG */