summaryrefslogtreecommitdiff
path: root/utils/hwstub/stub/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/stub/target.h')
-rw-r--r--utils/hwstub/stub/target.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/utils/hwstub/stub/target.h b/utils/hwstub/stub/target.h
index 43151e9a34..cb17401a9c 100644
--- a/utils/hwstub/stub/target.h
+++ b/utils/hwstub/stub/target.h
@@ -25,15 +25,16 @@
25 25
26/* do target specific init */ 26/* do target specific init */
27void target_init(void); 27void target_init(void);
28/* exit, performing the atexit action (default is target specific) */ 28/* get descriptor, set buffer to NULL on error */
29void target_exit(void); 29void target_get_desc(int desc, void **buffer);
30/* get information, return actual size or -1 if error */ 30/* pack all descriptors for config desc */
31int target_get_info(int info, void **buffer); 31void target_get_config_desc(void *buffer, int *size);
32/* set atexit action or return -1 on error */
33int target_atexit(int action);
34/* Wait a very short time (us<=1000) */ 32/* Wait a very short time (us<=1000) */
35void target_udelay(int us); 33void target_udelay(int us);
36/* Wait for a short time (ms <= 1000) */ 34/* Wait for a short time (ms <= 1000) */
37void target_mdelay(int ms); 35void target_mdelay(int ms);
38 36
37/* mandatory for all targets */
38extern struct hwstub_target_desc_t target_descriptor;
39
39#endif /* __TARGET_H__ */ 40#endif /* __TARGET_H__ */