zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g" git grep -l 's\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g" Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
ee6fa31af6
commit
a1b77fd589
2364 changed files with 32505 additions and 32505 deletions
|
@ -17,11 +17,11 @@
|
|||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(soc);
|
||||
|
||||
static u32_t ref_clk_freq;
|
||||
static uint32_t ref_clk_freq;
|
||||
|
||||
#define CAVS_INTC_NODE(n) DT_INST(n, intel_cavs_intc)
|
||||
|
||||
void z_soc_irq_enable(u32_t irq)
|
||||
void z_soc_irq_enable(uint32_t irq)
|
||||
{
|
||||
struct device *dev_cavs, *dev_ictl;
|
||||
|
||||
|
@ -80,7 +80,7 @@ void z_soc_irq_enable(u32_t irq)
|
|||
irq_enable_next_level(dev_ictl, INTR_CNTL_IRQ_NUM(irq));
|
||||
}
|
||||
|
||||
void z_soc_irq_disable(u32_t irq)
|
||||
void z_soc_irq_disable(uint32_t irq)
|
||||
{
|
||||
struct device *dev_cavs, *dev_ictl;
|
||||
|
||||
|
@ -224,7 +224,7 @@ static inline void soc_set_resource_ownership(void)
|
|||
SOC_GENO_MNDIV_OWNER_DSP;
|
||||
}
|
||||
|
||||
u32_t soc_get_ref_clk_freq(void)
|
||||
uint32_t soc_get_ref_clk_freq(void)
|
||||
{
|
||||
return ref_clk_freq;
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ static inline void soc_read_bootstraps(void)
|
|||
{
|
||||
volatile struct soc_global_regs *regs =
|
||||
(volatile struct soc_global_regs *)SOC_S1000_GLB_CTRL_BASE;
|
||||
u32_t bootstrap;
|
||||
uint32_t bootstrap;
|
||||
|
||||
bootstrap = regs->straps;
|
||||
|
||||
|
|
|
@ -92,9 +92,9 @@
|
|||
#define SOC_MDIVXR_SET_DIVIDER_BYPASS BIT_MASK(12)
|
||||
|
||||
struct soc_mclk_control_regs {
|
||||
u32_t mdivctrl;
|
||||
u32_t reserved[31];
|
||||
u32_t mdivxr[SOC_NUM_MCLK_OUTPUTS];
|
||||
uint32_t mdivctrl;
|
||||
uint32_t reserved[31];
|
||||
uint32_t mdivxr[SOC_NUM_MCLK_OUTPUTS];
|
||||
};
|
||||
|
||||
#define PDM_BASE 0x00010000
|
||||
|
@ -127,11 +127,11 @@ struct soc_mclk_control_regs {
|
|||
|
||||
struct soc_resource_alloc_regs {
|
||||
union {
|
||||
u16_t lpgpdmacxo[SOC_NUM_LPGPDMAC];
|
||||
u16_t reserved[4];
|
||||
uint16_t lpgpdmacxo[SOC_NUM_LPGPDMAC];
|
||||
uint16_t reserved[4];
|
||||
};
|
||||
u32_t dspiopo;
|
||||
u32_t geno;
|
||||
uint32_t dspiopo;
|
||||
uint32_t geno;
|
||||
};
|
||||
|
||||
/* L2 Local Memory Registers */
|
||||
|
@ -145,8 +145,8 @@ struct soc_resource_alloc_regs {
|
|||
#define SOC_DMIC_SHIM_DMICLCTL_CPA BIT(8)
|
||||
|
||||
struct soc_dmic_shim_regs {
|
||||
u32_t dmiclcap;
|
||||
u32_t dmiclctl;
|
||||
uint32_t dmiclcap;
|
||||
uint32_t dmiclctl;
|
||||
};
|
||||
|
||||
/* SOC DSP SHIM Registers */
|
||||
|
@ -160,40 +160,40 @@ struct soc_dmic_shim_regs {
|
|||
#define SOC_PWRCTL_DISABLE_PWR_GATING_DSP1 BIT(1)
|
||||
|
||||
struct soc_dsp_shim_regs {
|
||||
u32_t reserved[8];
|
||||
uint32_t reserved[8];
|
||||
union {
|
||||
struct {
|
||||
u32_t walclk32_lo;
|
||||
u32_t walclk32_hi;
|
||||
uint32_t walclk32_lo;
|
||||
uint32_t walclk32_hi;
|
||||
};
|
||||
u64_t walclk;
|
||||
uint64_t walclk;
|
||||
};
|
||||
u32_t dspwctcs;
|
||||
u32_t reserved1[1];
|
||||
uint32_t dspwctcs;
|
||||
uint32_t reserved1[1];
|
||||
union {
|
||||
struct {
|
||||
u32_t dspwct0c32_lo;
|
||||
u32_t dspwct0c32_hi;
|
||||
uint32_t dspwct0c32_lo;
|
||||
uint32_t dspwct0c32_hi;
|
||||
};
|
||||
u64_t dspwct0c;
|
||||
uint64_t dspwct0c;
|
||||
};
|
||||
union {
|
||||
struct {
|
||||
u32_t dspwct1c32_lo;
|
||||
u32_t dspwct1c32_hi;
|
||||
uint32_t dspwct1c32_lo;
|
||||
uint32_t dspwct1c32_hi;
|
||||
};
|
||||
u64_t dspwct1c;
|
||||
uint64_t dspwct1c;
|
||||
};
|
||||
u32_t reserved2[14];
|
||||
u32_t clkctl;
|
||||
u32_t clksts;
|
||||
u32_t reserved3[4];
|
||||
u16_t pwrctl;
|
||||
u16_t pwrsts;
|
||||
u32_t lpsctl;
|
||||
u32_t lpsdmas0;
|
||||
u32_t lpsdmas1;
|
||||
u32_t reserved4[22];
|
||||
uint32_t reserved2[14];
|
||||
uint32_t clkctl;
|
||||
uint32_t clksts;
|
||||
uint32_t reserved3[4];
|
||||
uint16_t pwrctl;
|
||||
uint16_t pwrsts;
|
||||
uint32_t lpsctl;
|
||||
uint32_t lpsdmas0;
|
||||
uint32_t lpsdmas1;
|
||||
uint32_t reserved4[22];
|
||||
};
|
||||
|
||||
/* Global Control registers */
|
||||
|
@ -214,12 +214,12 @@ struct soc_dsp_shim_regs {
|
|||
#define SOC_S1000_STRAP_REF_CLK_24P576 (2 << 3)
|
||||
|
||||
struct soc_global_regs {
|
||||
u32_t reserved1[5];
|
||||
u32_t cavs_dsp1power_control;
|
||||
u32_t reserved2[2];
|
||||
u32_t gna_power_control;
|
||||
u32_t reserved3[7];
|
||||
u32_t straps;
|
||||
uint32_t reserved1[5];
|
||||
uint32_t cavs_dsp1power_control;
|
||||
uint32_t reserved2[2];
|
||||
uint32_t gna_power_control;
|
||||
uint32_t reserved3[7];
|
||||
uint32_t straps;
|
||||
};
|
||||
|
||||
/* macros for data cache operations */
|
||||
|
@ -228,10 +228,10 @@ struct soc_global_regs {
|
|||
#define SOC_DCACHE_INVALIDATE(addr, size) \
|
||||
xthal_dcache_region_invalidate((addr), (size))
|
||||
|
||||
extern void z_soc_irq_enable(u32_t irq);
|
||||
extern void z_soc_irq_disable(u32_t irq);
|
||||
extern void z_soc_irq_enable(uint32_t irq);
|
||||
extern void z_soc_irq_disable(uint32_t irq);
|
||||
extern int z_soc_irq_is_enabled(unsigned int irq);
|
||||
|
||||
extern u32_t soc_get_ref_clk_freq(void);
|
||||
extern uint32_t soc_get_ref_clk_freq(void);
|
||||
|
||||
#endif /* __INC_SOC_H */
|
||||
|
|
|
@ -26,14 +26,14 @@ static struct device *idc;
|
|||
extern void __start(void);
|
||||
|
||||
struct cpustart_rec {
|
||||
u32_t cpu;
|
||||
uint32_t cpu;
|
||||
arch_cpustart_t fn;
|
||||
char *stack_top;
|
||||
void *arg;
|
||||
u32_t vecbase;
|
||||
u32_t alive;
|
||||
uint32_t vecbase;
|
||||
uint32_t alive;
|
||||
/* padding to cache line */
|
||||
u8_t padding[XCHAL_DCACHE_LINESIZE - 6 * 4];
|
||||
uint8_t padding[XCHAL_DCACHE_LINESIZE - 6 * 4];
|
||||
};
|
||||
|
||||
static __aligned(XCHAL_DCACHE_LINESIZE)
|
||||
|
@ -122,7 +122,7 @@ void arch_start_cpu(int cpu_num, k_thread_stack_t *stack, int sz,
|
|||
(volatile struct soc_dsp_shim_regs *)SOC_DSP_SHIM_REG_BASE;
|
||||
volatile struct soc_global_regs *soc_glb_regs =
|
||||
(volatile struct soc_global_regs *)SOC_S1000_GLB_CTRL_BASE;
|
||||
u32_t vecbase;
|
||||
uint32_t vecbase;
|
||||
|
||||
__ASSERT(cpu_num == 1, "Intel S1000 supports only two CPUs!");
|
||||
|
||||
|
@ -150,7 +150,7 @@ void arch_start_cpu(int cpu_num, k_thread_stack_t *stack, int sz,
|
|||
* and set the vector.
|
||||
*/
|
||||
sys_write32(0x0, SOC_L2RAM_LOCAL_MEM_REG_LSPGCTL);
|
||||
*((u32_t *)LPSRAM_BOOT_VECTOR_ADDR) = (u32_t)__start;
|
||||
*((uint32_t *)LPSRAM_BOOT_VECTOR_ADDR) = (uint32_t)__start;
|
||||
|
||||
/* Disable power gating for DSP core #cpu_num */
|
||||
dsp_shim_regs->pwrctl |= SOC_PWRCTL_DISABLE_PWR_GATING_DSP1;
|
||||
|
|
|
@ -40,14 +40,14 @@ void log_3(const char *str,
|
|||
|
||||
void log_n(const char *str,
|
||||
log_arg_t *args,
|
||||
u32_t narg,
|
||||
uint32_t narg,
|
||||
struct log_msg_ids src_level)
|
||||
{
|
||||
}
|
||||
|
||||
void log_hexdump(const char *str,
|
||||
const u8_t *data,
|
||||
u32_t length,
|
||||
const uint8_t *data,
|
||||
uint32_t length,
|
||||
struct log_msg_ids src_level)
|
||||
{
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ void log_string_sync(struct log_msg_ids src_level, const char *fmt, ...)
|
|||
}
|
||||
|
||||
void log_hexdump_sync(struct log_msg_ids src_level, const char *metadata,
|
||||
const u8_t *data, u32_t len)
|
||||
const uint8_t *data, uint32_t len)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -79,12 +79,12 @@ void log_free(void *buf)
|
|||
{
|
||||
}
|
||||
|
||||
u32_t log_get_strdup_pool_utilization(void)
|
||||
uint32_t log_get_strdup_pool_utilization(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32_t log_get_strdup_longest_string(void)
|
||||
uint32_t log_get_strdup_longest_string(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -99,6 +99,6 @@ void __printf_like(2, 3) log_from_user(struct log_msg_ids src_level,
|
|||
}
|
||||
|
||||
void log_hexdump_from_user(struct log_msg_ids src_level, const char *metadata,
|
||||
const u8_t *data, u32_t len)
|
||||
const uint8_t *data, uint32_t len)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue