diff options
Diffstat (limited to 'utils/hwstub/stub/target.h')
-rw-r--r-- | utils/hwstub/stub/target.h | 13 |
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 */ |
27 | void target_init(void); | 27 | void target_init(void); |
28 | /* exit, performing the atexit action (default is target specific) */ | 28 | /* get descriptor, set buffer to NULL on error */ |
29 | void target_exit(void); | 29 | void target_get_desc(int desc, void **buffer); |
30 | /* get information, return actual size or -1 if error */ | 30 | /* pack all descriptors for config desc */ |
31 | int target_get_info(int info, void **buffer); | 31 | void target_get_config_desc(void *buffer, int *size); |
32 | /* set atexit action or return -1 on error */ | ||
33 | int target_atexit(int action); | ||
34 | /* Wait a very short time (us<=1000) */ | 32 | /* Wait a very short time (us<=1000) */ |
35 | void target_udelay(int us); | 33 | void target_udelay(int us); |
36 | /* Wait for a short time (ms <= 1000) */ | 34 | /* Wait for a short time (ms <= 1000) */ |
37 | void target_mdelay(int ms); | 35 | void target_mdelay(int ms); |
38 | 36 | ||
37 | /* mandatory for all targets */ | ||
38 | extern struct hwstub_target_desc_t target_descriptor; | ||
39 | |||
39 | #endif /* __TARGET_H__ */ | 40 | #endif /* __TARGET_H__ */ |