diff options
Diffstat (limited to 'utils/hwstub/stub/target.h')
-rw-r--r-- | utils/hwstub/stub/target.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/hwstub/stub/target.h b/utils/hwstub/stub/target.h index cb17401a9c..5cd049d04f 100644 --- a/utils/hwstub/stub/target.h +++ b/utils/hwstub/stub/target.h | |||
@@ -33,6 +33,14 @@ void target_get_config_desc(void *buffer, int *size); | |||
33 | void target_udelay(int us); | 33 | void target_udelay(int us); |
34 | /* Wait for a short time (ms <= 1000) */ | 34 | /* Wait for a short time (ms <= 1000) */ |
35 | void target_mdelay(int ms); | 35 | void target_mdelay(int ms); |
36 | /* Read a n-bit word atomically */ | ||
37 | uint8_t target_read8(const void *addr); | ||
38 | uint16_t target_read16(const void *addr); | ||
39 | uint32_t target_read32(const void *addr); | ||
40 | /* Write a n-bit word atomically */ | ||
41 | void target_write8(void *addr, uint8_t val); | ||
42 | void target_write16(void *addr, uint16_t val); | ||
43 | void target_write32(void *addr, uint32_t val); | ||
36 | 44 | ||
37 | /* mandatory for all targets */ | 45 | /* mandatory for all targets */ |
38 | extern struct hwstub_target_desc_t target_descriptor; | 46 | extern struct hwstub_target_desc_t target_descriptor; |