mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
This commit is contained in:
@@ -107,7 +107,7 @@ void up_dataabort(uint32_t *regs, uint32_t far, uint32_t fsr)
|
||||
* fatal error.
|
||||
*/
|
||||
|
||||
pgllinfo("FSR: %08x FAR: %08x\n", fsr, far);
|
||||
pginfo("FSR: %08x FAR: %08x\n", fsr, far);
|
||||
if ((fsr & FSR_MASK) != FSR_PAGE)
|
||||
{
|
||||
goto segfault;
|
||||
@@ -118,7 +118,7 @@ void up_dataabort(uint32_t *regs, uint32_t far, uint32_t fsr)
|
||||
* (It has not yet been saved in the register context save area).
|
||||
*/
|
||||
|
||||
pgllinfo("VBASE: %08x VEND: %08x\n", PG_PAGED_VBASE, PG_PAGED_VEND);
|
||||
pginfo("VBASE: %08x VEND: %08x\n", PG_PAGED_VBASE, PG_PAGED_VEND);
|
||||
if (far < PG_PAGED_VBASE || far >= PG_PAGED_VEND)
|
||||
{
|
||||
goto segfault;
|
||||
|
||||
@@ -99,8 +99,8 @@ void up_prefetchabort(uint32_t *regs)
|
||||
* virtual addresses.
|
||||
*/
|
||||
|
||||
pgllinfo("VADDR: %08x VBASE: %08x VEND: %08x\n",
|
||||
regs[REG_PC], PG_PAGED_VBASE, PG_PAGED_VEND);
|
||||
pginfo("VADDR: %08x VBASE: %08x VEND: %08x\n",
|
||||
regs[REG_PC], PG_PAGED_VBASE, PG_PAGED_VEND);
|
||||
|
||||
if (regs[REG_R15] >= PG_PAGED_VBASE && regs[REG_R15] < PG_PAGED_VEND)
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ void up_release_pending(void)
|
||||
{
|
||||
struct tcb_s *rtcb = this_task();
|
||||
|
||||
sllinfo("From TCB=%p\n", rtcb);
|
||||
sinfo("From TCB=%p\n", rtcb);
|
||||
|
||||
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
bool switch_needed;
|
||||
|
||||
sllinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
sinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list.
|
||||
* sched_removereadytorun will return true if we just
|
||||
|
||||
@@ -72,27 +72,27 @@ void up_dumpnvic(FAR const char *msg)
|
||||
|
||||
flags = enter_critical_section();
|
||||
|
||||
_llinfo("NVIC: %s\n", msg);
|
||||
_llinfo(" ISER: %08x ICER: %08x ISPR: %08x ICPR: %08x\n",
|
||||
getreg32(ARMV6M_NVIC_ISER), getreg32(ARMV6M_NVIC_ICER),
|
||||
getreg32(ARMV6M_NVIC_ISPR), getreg32(ARMV6M_NVIC_ICPR));
|
||||
_info("NVIC: %s\n", msg);
|
||||
_info(" ISER: %08x ICER: %08x ISPR: %08x ICPR: %08x\n",
|
||||
getreg32(ARMV6M_NVIC_ISER), getreg32(ARMV6M_NVIC_ICER),
|
||||
getreg32(ARMV6M_NVIC_ISPR), getreg32(ARMV6M_NVIC_ICPR));
|
||||
|
||||
for (i = 0 ; i < 8; i += 4)
|
||||
{
|
||||
_llinfo(" IPR%d: %08x IPR%d: %08x IPR%d: %08x IPR%d: %08x\n",
|
||||
i, getreg32(ARMV6M_NVIC_IPR(i)),
|
||||
i+1, getreg32(ARMV6M_NVIC_IPR(i+1)),
|
||||
i+2, getreg32(ARMV6M_NVIC_IPR(i+2)),
|
||||
i+3, getreg32(ARMV6M_NVIC_IPR(i+3)));
|
||||
_info(" IPR%d: %08x IPR%d: %08x IPR%d: %08x IPR%d: %08x\n",
|
||||
i, getreg32(ARMV6M_NVIC_IPR(i)),
|
||||
i+1, getreg32(ARMV6M_NVIC_IPR(i+1)),
|
||||
i+2, getreg32(ARMV6M_NVIC_IPR(i+2)),
|
||||
i+3, getreg32(ARMV6M_NVIC_IPR(i+3)));
|
||||
}
|
||||
|
||||
_llinfo("SYSCON:\n");
|
||||
_llinfo(" CPUID: %08x ICSR: %08x AIRCR: %08x SCR: %08x\n",
|
||||
getreg32(ARMV6M_SYSCON_CPUID), getreg32(ARMV6M_SYSCON_ICSR),
|
||||
getreg32(ARMV6M_SYSCON_AIRCR), getreg32(ARMV6M_SYSCON_SCR));
|
||||
_llinfo(" CCR: %08x SHPR2: %08x SHPR3: %08x\n",
|
||||
getreg32(ARMV6M_SYSCON_CCR), getreg32(ARMV6M_SYSCON_SHPR2),
|
||||
getreg32(ARMV6M_SYSCON_SHPR3));
|
||||
_info("SYSCON:\n");
|
||||
_info(" CPUID: %08x ICSR: %08x AIRCR: %08x SCR: %08x\n",
|
||||
getreg32(ARMV6M_SYSCON_CPUID), getreg32(ARMV6M_SYSCON_ICSR),
|
||||
getreg32(ARMV6M_SYSCON_AIRCR), getreg32(ARMV6M_SYSCON_SCR));
|
||||
_info(" CCR: %08x SHPR2: %08x SHPR3: %08x\n",
|
||||
getreg32(ARMV6M_SYSCON_CCR), getreg32(ARMV6M_SYSCON_SHPR2),
|
||||
getreg32(ARMV6M_SYSCON_SHPR3));
|
||||
|
||||
leave_critical_section(flags);
|
||||
#endif
|
||||
|
||||
@@ -66,7 +66,7 @@ void up_release_pending(void)
|
||||
{
|
||||
struct tcb_s *rtcb = this_task();
|
||||
|
||||
sllinfo("From TCB=%p\n", rtcb);
|
||||
sinfo("From TCB=%p\n", rtcb);
|
||||
|
||||
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
bool switch_needed;
|
||||
|
||||
sllinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
sinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list.
|
||||
* sched_removereadytorun will return true if we just removed the head
|
||||
|
||||
@@ -147,19 +147,19 @@ int up_svcall(int irq, FAR void *context)
|
||||
if (cmd > SYS_switch_context)
|
||||
# endif
|
||||
{
|
||||
svcllinfo("SVCALL Entry: regs: %p cmd: %d\n", regs, cmd);
|
||||
svcllinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcllinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcinfo("SVCALL Entry: regs: %p cmd: %d\n", regs, cmd);
|
||||
svcinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
# ifdef CONFIG_BUILD_PROTECTED
|
||||
svcllinfo(" PSR: %08x PRIMASK: %08x EXC_RETURN: %08x\n",
|
||||
regs[REG_XPSR], regs[REG_PRIMASK], regs[REG_EXC_RETURN]);
|
||||
svcinfo(" PSR: %08x PRIMASK: %08x EXC_RETURN: %08x\n",
|
||||
regs[REG_XPSR], regs[REG_PRIMASK], regs[REG_EXC_RETURN]);
|
||||
# else
|
||||
svcllinfo(" PSR: %08x PRIMASK: %08x\n",
|
||||
regs[REG_XPSR], regs[REG_PRIMASK]);
|
||||
svcinfo(" PSR: %08x PRIMASK: %08x\n",
|
||||
regs[REG_XPSR], regs[REG_PRIMASK]);
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
@@ -444,7 +444,7 @@ int up_svcall(int irq, FAR void *context)
|
||||
|
||||
regs[REG_R0] -= CONFIG_SYS_RESERVED;
|
||||
#else
|
||||
svcllerr("ERROR: Bad SYS call: %d\n", regs[REG_R0]);
|
||||
svcerr("ERROR: Bad SYS call: %d\n", regs[REG_R0]);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
@@ -459,30 +459,30 @@ int up_svcall(int irq, FAR void *context)
|
||||
if (regs != CURRENT_REGS)
|
||||
# endif
|
||||
{
|
||||
svcllinfo("SVCall Return:\n");
|
||||
svcllinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
CURRENT_REGS[REG_R0], CURRENT_REGS[REG_R1],
|
||||
CURRENT_REGS[REG_R2], CURRENT_REGS[REG_R3],
|
||||
CURRENT_REGS[REG_R4], CURRENT_REGS[REG_R5],
|
||||
CURRENT_REGS[REG_R6], CURRENT_REGS[REG_R7]);
|
||||
svcllinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
CURRENT_REGS[REG_R8], CURRENT_REGS[REG_R9],
|
||||
CURRENT_REGS[REG_R10], CURRENT_REGS[REG_R11],
|
||||
CURRENT_REGS[REG_R12], CURRENT_REGS[REG_R13],
|
||||
CURRENT_REGS[REG_R14], CURRENT_REGS[REG_R15]);
|
||||
svcinfo("SVCall Return:\n");
|
||||
svcinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
CURRENT_REGS[REG_R0], CURRENT_REGS[REG_R1],
|
||||
CURRENT_REGS[REG_R2], CURRENT_REGS[REG_R3],
|
||||
CURRENT_REGS[REG_R4], CURRENT_REGS[REG_R5],
|
||||
CURRENT_REGS[REG_R6], CURRENT_REGS[REG_R7]);
|
||||
svcinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
CURRENT_REGS[REG_R8], CURRENT_REGS[REG_R9],
|
||||
CURRENT_REGS[REG_R10], CURRENT_REGS[REG_R11],
|
||||
CURRENT_REGS[REG_R12], CURRENT_REGS[REG_R13],
|
||||
CURRENT_REGS[REG_R14], CURRENT_REGS[REG_R15]);
|
||||
#ifdef CONFIG_BUILD_PROTECTED
|
||||
svcllinfo(" PSR: %08x PRIMASK: %08x EXC_RETURN: %08x\n",
|
||||
CURRENT_REGS[REG_XPSR], CURRENT_REGS[REG_PRIMASK],
|
||||
CURRENT_REGS[REG_EXC_RETURN]);
|
||||
svcinfo(" PSR: %08x PRIMASK: %08x EXC_RETURN: %08x\n",
|
||||
CURRENT_REGS[REG_XPSR], CURRENT_REGS[REG_PRIMASK],
|
||||
CURRENT_REGS[REG_EXC_RETURN]);
|
||||
#else
|
||||
svcllinfo(" PSR: %08x PRIMASK: %08x\n",
|
||||
CURRENT_REGS[REG_XPSR], CURRENT_REGS[REG_PRIMASK]);
|
||||
svcinfo(" PSR: %08x PRIMASK: %08x\n",
|
||||
CURRENT_REGS[REG_XPSR], CURRENT_REGS[REG_PRIMASK]);
|
||||
#endif
|
||||
}
|
||||
# ifdef CONFIG_DEBUG_SVCALL
|
||||
else
|
||||
{
|
||||
svcllinfo("SVCall Return: %d\n", regs[REG_R0]);
|
||||
svcinfo("SVCall Return: %d\n", regs[REG_R0]);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@@ -64,19 +64,19 @@ static inline void arm_registerdump(FAR struct tcb_s *tcb)
|
||||
{
|
||||
int regndx;
|
||||
|
||||
_llinfo("CPU%d:\n", up_cpu_index());
|
||||
_info("CPU%d:\n", up_cpu_index());
|
||||
|
||||
/* Dump the startup registers */
|
||||
|
||||
for (regndx = REG_R0; regndx <= REG_R15; regndx += 8)
|
||||
{
|
||||
uint32_t *ptr = (uint32_t *)&tcb->xcp.regs[regndx];
|
||||
_llinfo("R%d: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regndx, ptr[0], ptr[1], ptr[2], ptr[3],
|
||||
ptr[4], ptr[5], ptr[6], ptr[7]);
|
||||
_info("R%d: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regndx, ptr[0], ptr[1], ptr[2], ptr[3],
|
||||
ptr[4], ptr[5], ptr[6], ptr[7]);
|
||||
}
|
||||
|
||||
_llinfo("CPSR: %08x\n", tcb->xcp.regs[REG_CPSR]);
|
||||
_info("CPSR: %08x\n", tcb->xcp.regs[REG_CPSR]);
|
||||
}
|
||||
#else
|
||||
# define arm_registerdump(tcb)
|
||||
@@ -106,7 +106,7 @@ int arm_start_handler(int irq, FAR void *context)
|
||||
{
|
||||
FAR struct tcb_s *tcb;
|
||||
|
||||
sllinfo("CPU%d Started\n", up_cpu_index());
|
||||
sinfo("CPU%d Started\n", up_cpu_index());
|
||||
|
||||
/* Reset scheduler parameters */
|
||||
|
||||
@@ -155,7 +155,7 @@ int arm_start_handler(int irq, FAR void *context)
|
||||
|
||||
int up_cpu_start(int cpu)
|
||||
{
|
||||
sllinfo("Starting CPU%d\n", cpu);
|
||||
sinfo("Starting CPU%d\n", cpu);
|
||||
|
||||
DEBUGASSERT(cpu >= 0 && cpu < CONFIG_SMP_NCPUS && cpu != this_cpu());
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ uint32_t *arm_dataabort(uint32_t *regs, uint32_t dfar, uint32_t dfsr)
|
||||
* fatal error.
|
||||
*/
|
||||
|
||||
pgllinfo("DFSR: %08x DFAR: %08x\n", dfsr, dfar);
|
||||
pginfo("DFSR: %08x DFAR: %08x\n", dfsr, dfar);
|
||||
if ((dfsr & FSR_MASK) != FSR_PAGE)
|
||||
{
|
||||
goto segfault;
|
||||
@@ -115,7 +115,7 @@ uint32_t *arm_dataabort(uint32_t *regs, uint32_t dfar, uint32_t dfsr)
|
||||
* (It has not yet been saved in the register context save area).
|
||||
*/
|
||||
|
||||
pgllinfo("VBASE: %08x VEND: %08x\n", PG_PAGED_VBASE, PG_PAGED_VEND);
|
||||
pginfo("VBASE: %08x VEND: %08x\n", PG_PAGED_VBASE, PG_PAGED_VEND);
|
||||
if (dfar < PG_PAGED_VBASE || dfar >= PG_PAGED_VEND)
|
||||
{
|
||||
goto segfault;
|
||||
|
||||
@@ -387,7 +387,7 @@ uint32_t *arm_decodeirq(uint32_t *regs)
|
||||
regval = getreg32(GIC_ICCIAR);
|
||||
irq = (regval & GIC_ICCIAR_INTID_MASK) >> GIC_ICCIAR_INTID_SHIFT;
|
||||
|
||||
irqllinfo("irq=%d\n", irq);
|
||||
irqinfo("irq=%d\n", irq);
|
||||
|
||||
/* Ignore spurions IRQs. ICCIAR will report 1023 if there is no pending
|
||||
* interrupt.
|
||||
|
||||
@@ -69,22 +69,22 @@
|
||||
|
||||
static inline void arm_gic_dump_cpu(bool all, int irq, int nlines)
|
||||
{
|
||||
irqllinfo(" CPU Interface Registers:\n");
|
||||
irqllinfo(" ICR: %08x PMR: %08x BPR: %08x IAR: %08x\n",
|
||||
getreg32(GIC_ICCICR), getreg32(GIC_ICCPMR),
|
||||
getreg32(GIC_ICCBPR), getreg32(GIC_ICCIAR));
|
||||
irqllinfo(" RPR: %08x HPIR: %08x ABPR: %08x\n",
|
||||
getreg32(GIC_ICCRPR), getreg32(GIC_ICCHPIR),
|
||||
getreg32(GIC_ICCABPR));
|
||||
irqllinfo(" AIAR: %08x AHPIR: %08x IDR: %08x\n",
|
||||
getreg32(GIC_ICCAIAR), getreg32(GIC_ICCAHPIR),
|
||||
getreg32(GIC_ICCIDR));
|
||||
irqllinfo(" APR1: %08x APR2: %08x APR3: %08x APR4: %08x\n",
|
||||
getreg32(GIC_ICCAPR1), getreg32(GIC_ICCAPR2),
|
||||
getreg32(GIC_ICCAPR3), getreg32(GIC_ICCAPR4));
|
||||
irqllinfo(" NSAPR1: %08x NSAPR2: %08x NSAPR3: %08x NSAPR4: %08x\n",
|
||||
getreg32(GIC_ICCNSAPR1), getreg32(GIC_ICCNSAPR2),
|
||||
getreg32(GIC_ICCNSAPR3), getreg32(GIC_ICCNSAPR4));
|
||||
irqinfo(" CPU Interface Registers:\n");
|
||||
irqinfo(" ICR: %08x PMR: %08x BPR: %08x IAR: %08x\n",
|
||||
getreg32(GIC_ICCICR), getreg32(GIC_ICCPMR),
|
||||
getreg32(GIC_ICCBPR), getreg32(GIC_ICCIAR));
|
||||
irqinfo(" RPR: %08x HPIR: %08x ABPR: %08x\n",
|
||||
getreg32(GIC_ICCRPR), getreg32(GIC_ICCHPIR),
|
||||
getreg32(GIC_ICCABPR));
|
||||
irqinfo(" AIAR: %08x AHPIR: %08x IDR: %08x\n",
|
||||
getreg32(GIC_ICCAIAR), getreg32(GIC_ICCAHPIR),
|
||||
getreg32(GIC_ICCIDR));
|
||||
irqinfo(" APR1: %08x APR2: %08x APR3: %08x APR4: %08x\n",
|
||||
getreg32(GIC_ICCAPR1), getreg32(GIC_ICCAPR2),
|
||||
getreg32(GIC_ICCAPR3), getreg32(GIC_ICCAPR4));
|
||||
irqinfo(" NSAPR1: %08x NSAPR2: %08x NSAPR3: %08x NSAPR4: %08x\n",
|
||||
getreg32(GIC_ICCNSAPR1), getreg32(GIC_ICCNSAPR2),
|
||||
getreg32(GIC_ICCNSAPR3), getreg32(GIC_ICCNSAPR4));
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@@ -110,9 +110,9 @@ static void arm_gic_dumpregs(uintptr_t regaddr, int nlines, int incr)
|
||||
incr <<= 2;
|
||||
for (i = 0; i < nlines; i += incr, regaddr += 16)
|
||||
{
|
||||
irqllinfo(" %08x %08x %08x %08x\n",
|
||||
getreg32(regaddr), getreg32(regaddr + 4),
|
||||
getreg32(regaddr + 8), getreg32(regaddr + 12));
|
||||
irqinfo(" %08x %08x %08x %08x\n",
|
||||
getreg32(regaddr), getreg32(regaddr + 4),
|
||||
getreg32(regaddr + 8), getreg32(regaddr + 12));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ static void arm_gic_dumpregs(uintptr_t regaddr, int nlines, int incr)
|
||||
static inline void arm_gic_dump4(const char *name, uintptr_t regaddr,
|
||||
int nlines)
|
||||
{
|
||||
irqllinfo(" %s[%08lx]\n", name, (unsigned long)regaddr);
|
||||
irqinfo(" %s[%08lx]\n", name, (unsigned long)regaddr);
|
||||
arm_gic_dumpregs(regaddr, nlines, 4);
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ static inline void arm_gic_dump4(const char *name, uintptr_t regaddr,
|
||||
static inline void arm_gic_dump8(const char *name, uintptr_t regaddr,
|
||||
int nlines)
|
||||
{
|
||||
irqllinfo(" %s[%08lx]\n", name, (unsigned long)regaddr);
|
||||
irqinfo(" %s[%08lx]\n", name, (unsigned long)regaddr);
|
||||
arm_gic_dumpregs(regaddr, nlines, 8);
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ static inline void arm_gic_dump8(const char *name, uintptr_t regaddr,
|
||||
static inline void arm_gic_dump16(const char *name, uintptr_t regaddr,
|
||||
int nlines)
|
||||
{
|
||||
irqllinfo(" %s[%08lx]\n", name, (unsigned long)regaddr);
|
||||
irqinfo(" %s[%08lx]\n", name, (unsigned long)regaddr);
|
||||
arm_gic_dumpregs(regaddr, nlines, 16);
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ static inline void arm_gic_dump16(const char *name, uintptr_t regaddr,
|
||||
static inline void arm_gic_dump32(const char *name, uintptr_t regaddr,
|
||||
int nlines)
|
||||
{
|
||||
irqllinfo(" %s[%08lx]\n", name, (unsigned long)regaddr);
|
||||
irqinfo(" %s[%08lx]\n", name, (unsigned long)regaddr);
|
||||
arm_gic_dumpregs(regaddr, nlines, 32);
|
||||
}
|
||||
|
||||
@@ -226,10 +226,10 @@ static inline void arm_gic_dump32(const char *name, uintptr_t regaddr,
|
||||
|
||||
static inline void arm_gic_dump_distributor(bool all, int irq, int nlines)
|
||||
{
|
||||
irqllinfo(" Distributor Registers:\n");
|
||||
irqllinfo(" DCR: %08x ICTR: %08x IIDR: %08x\n",
|
||||
getreg32(GIC_ICDDCR), getreg32(GIC_ICDICTR),
|
||||
getreg32(GIC_ICDIIDR));
|
||||
irqinfo(" Distributor Registers:\n");
|
||||
irqinfo(" DCR: %08x ICTR: %08x IIDR: %08x\n",
|
||||
getreg32(GIC_ICDDCR), getreg32(GIC_ICDICTR),
|
||||
getreg32(GIC_ICDIIDR));
|
||||
|
||||
if (all)
|
||||
{
|
||||
@@ -246,27 +246,27 @@ static inline void arm_gic_dump_distributor(bool all, int irq, int nlines)
|
||||
}
|
||||
else
|
||||
{
|
||||
irqllinfo(" ISR: %08x ISER: %08x ISPR: %08x SAR: %08x\n",
|
||||
getreg32(GIC_ICDISR(irq)), getreg32(GIC_ICDISER(irq)),
|
||||
getreg32(GIC_ICDISPR(irq)), getreg32(GIC_ICDSAR(irq)));
|
||||
irqllinfo(" IPR: %08x IPTR: %08x ICFR: %08x SPISR: %08x\n",
|
||||
getreg32(GIC_ICDIPR(irq)), getreg32(GIC_ICDIPTR(irq)),
|
||||
getreg32(GIC_ICDICFR(irq)), getreg32(GIC_ICDSPISR(irq)));
|
||||
irqllinfo(" NSACR: %08x SCPR: %08x\n",
|
||||
getreg32(GIC_ICDNSACR(irq)), getreg32(GIC_ICDSCPR(irq)));
|
||||
irqinfo(" ISR: %08x ISER: %08x ISPR: %08x SAR: %08x\n",
|
||||
getreg32(GIC_ICDISR(irq)), getreg32(GIC_ICDISER(irq)),
|
||||
getreg32(GIC_ICDISPR(irq)), getreg32(GIC_ICDSAR(irq)));
|
||||
irqinfo(" IPR: %08x IPTR: %08x ICFR: %08x SPISR: %08x\n",
|
||||
getreg32(GIC_ICDIPR(irq)), getreg32(GIC_ICDIPTR(irq)),
|
||||
getreg32(GIC_ICDICFR(irq)), getreg32(GIC_ICDSPISR(irq)));
|
||||
irqinfo(" NSACR: %08x SCPR: %08x\n",
|
||||
getreg32(GIC_ICDNSACR(irq)), getreg32(GIC_ICDSCPR(irq)));
|
||||
}
|
||||
|
||||
irqllinfo(" PIDR[%08lx]:\n", (unsigned long)GIC_ICDPIDR(0));
|
||||
irqllinfo(" %08x %08x %08x %08x\n",
|
||||
getreg32(GIC_ICDPIDR(0)), getreg32(GIC_ICDPIDR(1)),
|
||||
getreg32(GIC_ICDPIDR(2)), getreg32(GIC_ICDPIDR(3)));
|
||||
irqllinfo(" %08x %08x %08x %08x\n",
|
||||
getreg32(GIC_ICDPIDR(4)), getreg32(GIC_ICDPIDR(5)),
|
||||
getreg32(GIC_ICDPIDR(6)));
|
||||
irqllinfo(" CIDR[%08lx]:\n", (unsigned long)GIC_ICDCIDR(0));
|
||||
irqllinfo(" %08x %08x %08x %08x\n",
|
||||
getreg32(GIC_ICDCIDR(0)), getreg32(GIC_ICDCIDR(1)),
|
||||
getreg32(GIC_ICDCIDR(2)), getreg32(GIC_ICDCIDR(3)));
|
||||
irqinfo(" PIDR[%08lx]:\n", (unsigned long)GIC_ICDPIDR(0));
|
||||
irqinfo(" %08x %08x %08x %08x\n",
|
||||
getreg32(GIC_ICDPIDR(0)), getreg32(GIC_ICDPIDR(1)),
|
||||
getreg32(GIC_ICDPIDR(2)), getreg32(GIC_ICDPIDR(3)));
|
||||
irqinfo(" %08x %08x %08x %08x\n",
|
||||
getreg32(GIC_ICDPIDR(4)), getreg32(GIC_ICDPIDR(5)),
|
||||
getreg32(GIC_ICDPIDR(6)));
|
||||
irqinfo(" CIDR[%08lx]:\n", (unsigned long)GIC_ICDCIDR(0));
|
||||
irqinfo(" %08x %08x %08x %08x\n",
|
||||
getreg32(GIC_ICDCIDR(0)), getreg32(GIC_ICDCIDR(1)),
|
||||
getreg32(GIC_ICDCIDR(2)), getreg32(GIC_ICDCIDR(3)));
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@@ -295,11 +295,11 @@ void arm_gic_dump(const char *msg, bool all, int irq)
|
||||
|
||||
if (all)
|
||||
{
|
||||
irqllinfo("GIC: %s NLINES=%u\n", msg, nlines);
|
||||
irqinfo("GIC: %s NLINES=%u\n", msg, nlines);
|
||||
}
|
||||
else
|
||||
{
|
||||
irqllinfo("GIC: %s IRQ=%d\n", msg, irq);
|
||||
irqinfo("GIC: %s IRQ=%d\n", msg, irq);
|
||||
}
|
||||
|
||||
arm_gic_dump_cpu(all, irq, nlines);
|
||||
|
||||
@@ -86,8 +86,8 @@ uint32_t *arm_prefetchabort(uint32_t *regs, uint32_t ifar, uint32_t ifsr)
|
||||
* virtual addresses.
|
||||
*/
|
||||
|
||||
pgllinfo("VADDR: %08x VBASE: %08x VEND: %08x\n",
|
||||
regs[REG_PC], PG_PAGED_VBASE, PG_PAGED_VEND);
|
||||
pginfo("VADDR: %08x VBASE: %08x VEND: %08x\n",
|
||||
regs[REG_PC], PG_PAGED_VBASE, PG_PAGED_VEND);
|
||||
|
||||
if (regs[REG_R15] >= PG_PAGED_VBASE && regs[REG_R15] < PG_PAGED_VEND)
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ void up_release_pending(void)
|
||||
{
|
||||
struct tcb_s *rtcb = this_task();
|
||||
|
||||
sllinfo("From TCB=%p\n", rtcb);
|
||||
sinfo("From TCB=%p\n", rtcb);
|
||||
|
||||
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
bool switch_needed;
|
||||
|
||||
sllinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
sinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list.
|
||||
* sched_removereadytorun will return true if we just
|
||||
|
||||
@@ -156,14 +156,14 @@ uint32_t *arm_syscall(uint32_t *regs)
|
||||
* and R1..R7 = variable number of arguments depending on the system call.
|
||||
*/
|
||||
|
||||
svcllinfo("SYSCALL Entry: regs: %p cmd: %d\n", regs, cmd);
|
||||
svcllinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcllinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcllinfo("CPSR: %08x\n", regs[REG_CPSR]);
|
||||
svcinfo("SYSCALL Entry: regs: %p cmd: %d\n", regs, cmd);
|
||||
svcinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcinfo("CPSR: %08x\n", regs[REG_CPSR]);
|
||||
|
||||
/* Handle the SVCall according to the command in R0 */
|
||||
|
||||
@@ -456,7 +456,7 @@ uint32_t *arm_syscall(uint32_t *regs)
|
||||
|
||||
regs[REG_R0] -= CONFIG_SYS_RESERVED;
|
||||
#else
|
||||
svcllerr("ERROR: Bad SYS call: %d\n", regs[REG_R0]);
|
||||
svcerr("ERROR: Bad SYS call: %d\n", regs[REG_R0]);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARCH_KERNEL_STACK
|
||||
@@ -479,14 +479,14 @@ uint32_t *arm_syscall(uint32_t *regs)
|
||||
|
||||
/* Report what happened */
|
||||
|
||||
svcllinfo("SYSCALL Exit: regs: %p\n", regs);
|
||||
svcllinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcllinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcllinfo("CPSR: %08x\n", regs[REG_CPSR]);
|
||||
svcinfo("SYSCALL Exit: regs: %p\n", regs);
|
||||
svcinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcinfo("CPSR: %08x\n", regs[REG_CPSR]);
|
||||
|
||||
/* Return the last value of curent_regs. This supports context switches
|
||||
* on return from the exception. That capability is only used with the
|
||||
|
||||
@@ -66,7 +66,7 @@ void up_release_pending(void)
|
||||
{
|
||||
struct tcb_s *rtcb = this_task();
|
||||
|
||||
sllinfo("From TCB=%p\n", rtcb);
|
||||
sinfo("From TCB=%p\n", rtcb);
|
||||
|
||||
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
bool switch_needed;
|
||||
|
||||
sllinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
sinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list.
|
||||
* sched_removereadytorun will return true if we just removed the head
|
||||
|
||||
@@ -142,18 +142,18 @@ int up_svcall(int irq, FAR void *context)
|
||||
if (cmd > SYS_switch_context)
|
||||
# endif
|
||||
{
|
||||
svcllinfo("SVCALL Entry: regs: %p cmd: %d\n", regs, cmd);
|
||||
svcllinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcllinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcinfo("SVCALL Entry: regs: %p cmd: %d\n", regs, cmd);
|
||||
svcinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
# ifdef REG_EXC_RETURN
|
||||
svcllinfo(" PSR: %08x EXC_RETURN: %08x\n",
|
||||
regs[REG_XPSR], regs[REG_EXC_RETURN]);
|
||||
svcinfo(" PSR: %08x EXC_RETURN: %08x\n",
|
||||
regs[REG_XPSR], regs[REG_EXC_RETURN]);
|
||||
# else
|
||||
svcllinfo(" PSR: %08x\n", regs[REG_XPSR]);
|
||||
svcinfo(" PSR: %08x\n", regs[REG_XPSR]);
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
@@ -446,7 +446,7 @@ int up_svcall(int irq, FAR void *context)
|
||||
|
||||
regs[REG_R0] -= CONFIG_SYS_RESERVED;
|
||||
#else
|
||||
svcllerr("ERROR: Bad SYS call: %d\n", regs[REG_R0]);
|
||||
svcerr("ERROR: Bad SYS call: %d\n", regs[REG_R0]);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
@@ -461,28 +461,28 @@ int up_svcall(int irq, FAR void *context)
|
||||
if (regs != CURRENT_REGS)
|
||||
# endif
|
||||
{
|
||||
svcllinfo("SVCall Return:\n");
|
||||
svcllinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
CURRENT_REGS[REG_R0], CURRENT_REGS[REG_R1],
|
||||
CURRENT_REGS[REG_R2], CURRENT_REGS[REG_R3],
|
||||
CURRENT_REGS[REG_R4], CURRENT_REGS[REG_R5],
|
||||
CURRENT_REGS[REG_R6], CURRENT_REGS[REG_R7]);
|
||||
svcllinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
CURRENT_REGS[REG_R8], CURRENT_REGS[REG_R9],
|
||||
CURRENT_REGS[REG_R10], CURRENT_REGS[REG_R11],
|
||||
CURRENT_REGS[REG_R12], CURRENT_REGS[REG_R13],
|
||||
CURRENT_REGS[REG_R14], CURRENT_REGS[REG_R15]);
|
||||
svcinfo("SVCall Return:\n");
|
||||
svcinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
CURRENT_REGS[REG_R0], CURRENT_REGS[REG_R1],
|
||||
CURRENT_REGS[REG_R2], CURRENT_REGS[REG_R3],
|
||||
CURRENT_REGS[REG_R4], CURRENT_REGS[REG_R5],
|
||||
CURRENT_REGS[REG_R6], CURRENT_REGS[REG_R7]);
|
||||
svcinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
CURRENT_REGS[REG_R8], CURRENT_REGS[REG_R9],
|
||||
CURRENT_REGS[REG_R10], CURRENT_REGS[REG_R11],
|
||||
CURRENT_REGS[REG_R12], CURRENT_REGS[REG_R13],
|
||||
CURRENT_REGS[REG_R14], CURRENT_REGS[REG_R15]);
|
||||
# ifdef REG_EXC_RETURN
|
||||
svcllinfo(" PSR: %08x EXC_RETURN: %08x\n",
|
||||
CURRENT_REGS[REG_XPSR], CURRENT_REGS[REG_EXC_RETURN]);
|
||||
svcinfo(" PSR: %08x EXC_RETURN: %08x\n",
|
||||
CURRENT_REGS[REG_XPSR], CURRENT_REGS[REG_EXC_RETURN]);
|
||||
# else
|
||||
svcllinfo(" PSR: %08x\n", CURRENT_REGS[REG_XPSR]);
|
||||
svcinfo(" PSR: %08x\n", CURRENT_REGS[REG_XPSR]);
|
||||
# endif
|
||||
}
|
||||
# ifdef CONFIG_DEBUG_SVCALL
|
||||
else
|
||||
{
|
||||
svcllinfo("SVCall Return: %d\n", regs[REG_R0]);
|
||||
svcinfo("SVCall Return: %d\n", regs[REG_R0]);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@@ -411,7 +411,7 @@ void up_l2ccinitialize(void)
|
||||
putreg32(L2CC_CR_L2CEN, L2CC_CR);
|
||||
}
|
||||
|
||||
sllinfo("(%d ways) * (%d bytes/way) = %d bytes\n",
|
||||
sinfo("(%d ways) * (%d bytes/way) = %d bytes\n",
|
||||
PL310_NWAYS, PL310_WAYSIZE, PL310_CACHE_SIZE);
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ void up_release_pending(void)
|
||||
{
|
||||
struct tcb_s *rtcb = this_task();
|
||||
|
||||
sllinfo("From TCB=%p\n", rtcb);
|
||||
sinfo("From TCB=%p\n", rtcb);
|
||||
|
||||
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
bool switch_needed;
|
||||
|
||||
sllinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
sinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list.
|
||||
* sched_removereadytorun will return true if we just
|
||||
|
||||
@@ -154,14 +154,14 @@ uint32_t *arm_syscall(uint32_t *regs)
|
||||
* and R1..R7 = variable number of arguments depending on the system call.
|
||||
*/
|
||||
|
||||
svcllinfo("SYSCALL Entry: regs: %p cmd: %d\n", regs, cmd);
|
||||
svcllinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcllinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcllinfo("CPSR: %08x\n", regs[REG_CPSR]);
|
||||
svcinfo("SYSCALL Entry: regs: %p cmd: %d\n", regs, cmd);
|
||||
svcinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcinfo("CPSR: %08x\n", regs[REG_CPSR]);
|
||||
|
||||
/* Handle the SVCall according to the command in R0 */
|
||||
|
||||
@@ -454,7 +454,7 @@ uint32_t *arm_syscall(uint32_t *regs)
|
||||
|
||||
regs[REG_R0] -= CONFIG_SYS_RESERVED;
|
||||
#else
|
||||
svcllerr("ERROR: Bad SYS call: %d\n", regs[REG_R0]);
|
||||
svcerr("ERROR: Bad SYS call: %d\n", regs[REG_R0]);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARCH_KERNEL_STACK
|
||||
@@ -477,14 +477,14 @@ uint32_t *arm_syscall(uint32_t *regs)
|
||||
|
||||
/* Report what happened */
|
||||
|
||||
svcllinfo("SYSCALL Exit: regs: %p\n", regs);
|
||||
svcllinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcllinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcllinfo("CPSR: %08x\n", regs[REG_CPSR]);
|
||||
svcinfo("SYSCALL Exit: regs: %p\n", regs);
|
||||
svcinfo(" R0: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3],
|
||||
regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]);
|
||||
svcinfo(" R8: %08x %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11],
|
||||
regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]);
|
||||
svcinfo("CPSR: %08x\n", regs[REG_CPSR]);
|
||||
|
||||
/* Return the last value of curent_regs. This supports context switches
|
||||
* on return from the exception. That capability is only used with the
|
||||
|
||||
@@ -1267,7 +1267,7 @@ static void c5471_receive(struct c5471_driver_s *c5471)
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
if (BUF->type == HTONS(ETHTYPE_IP))
|
||||
{
|
||||
nllinfo("IPv4 frame\n");
|
||||
ninfo("IPv4 frame\n");
|
||||
|
||||
/* Handle ARP on input then give the IPv4 packet to the network
|
||||
* layer
|
||||
@@ -1310,7 +1310,7 @@ static void c5471_receive(struct c5471_driver_s *c5471)
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
if (BUF->type == HTONS(ETHTYPE_IP6))
|
||||
{
|
||||
nllinfo("Iv6 frame\n");
|
||||
ninfo("Iv6 frame\n");
|
||||
|
||||
/* Give the IPv6 packet to the network layer */
|
||||
|
||||
|
||||
@@ -234,17 +234,17 @@ static int wdt_setusec(uint32_t usec)
|
||||
|
||||
static int wdt_interrupt(int irq, void *context)
|
||||
{
|
||||
wdllinfo("expired\n");
|
||||
wdinfo("expired\n");
|
||||
|
||||
#if defined(CONFIG_SOFTWARE_REBOOT)
|
||||
# if defined(CONFIG_SOFTWARE_TEST)
|
||||
wdllinfo(" Test only\n");
|
||||
wdinfo(" Test only\n");
|
||||
# else
|
||||
wdllinfo(" Re-booting\n");
|
||||
wdinfo(" Re-booting\n");
|
||||
# warning "Add logic to reset CPU here"
|
||||
# endif
|
||||
#else
|
||||
wdllinfo(" No reboot\n");
|
||||
wdinfo(" No reboot\n");
|
||||
#endif
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -146,10 +146,10 @@ void _exit(int status)
|
||||
|
||||
(void)up_irq_save();
|
||||
|
||||
sllinfo("TCB=%p exiting\n", this_task());
|
||||
sinfo("TCB=%p exiting\n", this_task());
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
sllinfo("Other tasks:\n");
|
||||
sinfo("Other tasks:\n");
|
||||
sched_foreach(_up_dumponexit, NULL);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -443,7 +443,7 @@ static uint8_t dm320_getreg8(uint32_t addr)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
ullinfo("...\n");
|
||||
uinfo("...\n");
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -460,7 +460,7 @@ static uint8_t dm320_getreg8(uint32_t addr)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count-3);
|
||||
uinfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -472,7 +472,7 @@ static uint8_t dm320_getreg8(uint32_t addr)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
ullinfo("%08x->%02x\n", addr, val);
|
||||
uinfo("%08x->%02x\n", addr, val);
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
@@ -506,7 +506,7 @@ static uint32_t dm320_getreg16(uint32_t addr)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
ullinfo("...\n");
|
||||
uinfo("...\n");
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -523,7 +523,7 @@ static uint32_t dm320_getreg16(uint32_t addr)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count-3);
|
||||
uinfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -535,7 +535,7 @@ static uint32_t dm320_getreg16(uint32_t addr)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
ullinfo("%08x->%04x\n", addr, val);
|
||||
uinfo("%08x->%04x\n", addr, val);
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
@@ -569,7 +569,7 @@ static uint32_t dm320_getreg32(uint32_t addr)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
ullinfo("...\n");
|
||||
uinfo("...\n");
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -586,7 +586,7 @@ static uint32_t dm320_getreg32(uint32_t addr)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count-3);
|
||||
uinfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -598,7 +598,7 @@ static uint32_t dm320_getreg32(uint32_t addr)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
ullinfo("%08x->%08x\n", addr, val);
|
||||
uinfo("%08x->%08x\n", addr, val);
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
@@ -616,7 +616,7 @@ static void dm320_putreg8(uint8_t val, uint32_t addr)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
ullinfo("%08x<-%02x\n", addr, val);
|
||||
uinfo("%08x<-%02x\n", addr, val);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -637,7 +637,7 @@ static void dm320_putreg16(uint16_t val, uint32_t addr)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
ullinfo("%08x<-%04x\n", addr, val);
|
||||
uinfo("%08x<-%04x\n", addr, val);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -658,7 +658,7 @@ static void dm320_putreg32(uint32_t val, uint32_t addr)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
ullinfo("%08x<-%08x\n", addr, val);
|
||||
uinfo("%08x<-%08x\n", addr, val);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -1216,8 +1216,8 @@ static inline void dm320_ep0setup(struct dm320_usbdev_s *priv)
|
||||
value = GETUINT16(ctrl.value);
|
||||
len = GETUINT16(ctrl.len);
|
||||
|
||||
ullinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl.type, ctrl.req, value, index, len);
|
||||
uinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl.type, ctrl.req, value, index, len);
|
||||
|
||||
/* Dispatch any non-standard requests */
|
||||
|
||||
@@ -1618,7 +1618,7 @@ static int dm320_ctlrinterrupt(int irq, FAR void *context)
|
||||
}
|
||||
else
|
||||
{
|
||||
ullinfo("Pending data on OUT endpoint\n");
|
||||
uinfo("Pending data on OUT endpoint\n");
|
||||
priv->rxpending = 1;
|
||||
}
|
||||
}
|
||||
@@ -2417,7 +2417,7 @@ void up_usbinitialize(void)
|
||||
|
||||
#ifdef CONFIG_DEBUG_USB_INFO
|
||||
chiprev = dm320_getreg16(DM320_BUSC_REVR);
|
||||
ullinfo("DM320 revision : %d.%d\n", chiprev >> 4, chiprev & 0x0f);
|
||||
uinfo("DM320 revision : %d.%d\n", chiprev >> 4, chiprev & 0x0f);
|
||||
#endif
|
||||
|
||||
/* Enable USB clock & GIO clock */
|
||||
|
||||
@@ -110,7 +110,7 @@ static void up_idlepm(void)
|
||||
|
||||
/* Perform board-specific, state-dependent logic here */
|
||||
|
||||
_llinfo("newstate= %d oldstate=%d\n", newstate, oldstate);
|
||||
_info("newstate= %d oldstate=%d\n", newstate, oldstate);
|
||||
|
||||
/* Then force the global state change */
|
||||
|
||||
|
||||
@@ -522,8 +522,8 @@ static int pwm_interrupt(struct efm32_pwmtimer_s *priv)
|
||||
|
||||
/* Now all of the time critical stuff is done so we can do some debug output */
|
||||
|
||||
pwmllinfo("Update interrupt SR: %04x prev: %d curr: %d count: %d\n",
|
||||
regval, priv->prev, priv->curr, priv->count);
|
||||
pwminfo("Update interrupt SR: %04x prev: %d curr: %d count: %d\n",
|
||||
regval, priv->prev, priv->curr, priv->count);
|
||||
|
||||
return OK;
|
||||
#else
|
||||
|
||||
@@ -819,7 +819,7 @@ static uint32_t efm32_getreg(uint32_t addr)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
ullinfo("...\n");
|
||||
uinfo("...\n");
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -836,7 +836,7 @@ static uint32_t efm32_getreg(uint32_t addr)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count-3);
|
||||
uinfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -848,7 +848,7 @@ static uint32_t efm32_getreg(uint32_t addr)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
ullinfo("%08x->%08x\n", addr, val);
|
||||
uinfo("%08x->%08x\n", addr, val);
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
@@ -866,7 +866,7 @@ static void efm32_putreg(uint32_t val, uint32_t addr)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
ullinfo("%08x<-%08x\n", addr, val);
|
||||
uinfo("%08x<-%08x\n", addr, val);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -1224,9 +1224,9 @@ static void efm32_epin_request(FAR struct efm32_usbdev_s *priv,
|
||||
return;
|
||||
}
|
||||
|
||||
ullinfo("EP%d req=%p: len=%d xfrd=%d zlp=%d\n",
|
||||
privep->epphy, privreq, privreq->req.len,
|
||||
privreq->req.xfrd, privep->zlp);
|
||||
uinfo("EP%d req=%p: len=%d xfrd=%d zlp=%d\n",
|
||||
privep->epphy, privreq, privreq->req.len,
|
||||
privreq->req.xfrd, privep->zlp);
|
||||
|
||||
/* Check for a special case: If we are just starting a request (xfrd==0) and
|
||||
* the class driver is trying to send a zero-length packet (len==0). Then set
|
||||
@@ -1490,8 +1490,8 @@ static void efm32_epout_complete(FAR struct efm32_usbdev_s *priv,
|
||||
return;
|
||||
}
|
||||
|
||||
ullinfo("EP%d: len=%d xfrd=%d\n",
|
||||
privep->epphy, privreq->req.len, privreq->req.xfrd);
|
||||
uinfo("EP%d: len=%d xfrd=%d\n",
|
||||
privep->epphy, privreq->req.len, privreq->req.xfrd);
|
||||
|
||||
/* Return the completed read request to the class driver and mark the state
|
||||
* IDLE.
|
||||
@@ -1525,7 +1525,7 @@ static inline void efm32_ep0out_receive(FAR struct efm32_ep_s *privep, int bcnt)
|
||||
DEBUGASSERT(privep && privep->ep.priv);
|
||||
priv = (FAR struct efm32_usbdev_s *)privep->ep.priv;
|
||||
|
||||
ullinfo("EP0: bcnt=%d\n", bcnt);
|
||||
uinfo("EP0: bcnt=%d\n", bcnt);
|
||||
usbtrace(TRACE_READ(EP0), bcnt);
|
||||
|
||||
/* Verify that an OUT SETUP request as received before this data was
|
||||
@@ -1618,7 +1618,8 @@ static inline void efm32_epout_receive(FAR struct efm32_ep_s *privep, int bcnt)
|
||||
return;
|
||||
}
|
||||
|
||||
ullinfo("EP%d: len=%d xfrd=%d\n", privep->epphy, privreq->req.len, privreq->req.xfrd);
|
||||
uinfo("EP%d: len=%d xfrd=%d\n",
|
||||
privep->epphy, privreq->req.len, privreq->req.xfrd);
|
||||
usbtrace(TRACE_READ(privep->epphy), bcnt);
|
||||
|
||||
/* Get the number of bytes to transfer from the RxFIFO */
|
||||
@@ -1702,7 +1703,7 @@ static void efm32_epout_request(FAR struct efm32_usbdev_s *priv,
|
||||
return;
|
||||
}
|
||||
|
||||
ullinfo("EP%d: len=%d\n", privep->epphy, privreq->req.len);
|
||||
uinfo("EP%d: len=%d\n", privep->epphy, privreq->req.len);
|
||||
|
||||
/* Ignore any attempt to receive a zero length packet (this really
|
||||
* should not happen.
|
||||
@@ -2498,8 +2499,8 @@ static inline void efm32_ep0out_setup(struct efm32_usbdev_s *priv)
|
||||
ctrlreq.index = GETUINT16(priv->ctrlreq.index);
|
||||
ctrlreq.len = GETUINT16(priv->ctrlreq.len);
|
||||
|
||||
ullinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrlreq.type, ctrlreq.req, ctrlreq.value, ctrlreq.index, ctrlreq.len);
|
||||
uinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrlreq.type, ctrlreq.req, ctrlreq.value, ctrlreq.index, ctrlreq.len);
|
||||
|
||||
/* Check for a standard request */
|
||||
|
||||
@@ -2633,7 +2634,7 @@ static inline void efm32_epout_interrupt(FAR struct efm32_usbdev_s *priv)
|
||||
if ((daint & 1) != 0)
|
||||
{
|
||||
regval = efm32_getreg(EFM32_USB_DOEPINT(epno));
|
||||
ullinfo("DOEPINT(%d) = %08x\n", epno, regval);
|
||||
uinfo("DOEPINT(%d) = %08x\n", epno, regval);
|
||||
efm32_putreg(0xFF, EFM32_USB_DOEPINT(epno));
|
||||
}
|
||||
|
||||
@@ -2863,8 +2864,8 @@ static inline void efm32_epin_interrupt(FAR struct efm32_usbdev_s *priv)
|
||||
{
|
||||
if ((daint & 1) != 0)
|
||||
{
|
||||
ullinfo("DIEPINT(%d) = %08x\n",
|
||||
epno, efm32_getreg(EFM32_USB_DIEPINT(epno)));
|
||||
uinfo("DIEPINT(%d) = %08x\n",
|
||||
epno, efm32_getreg(EFM32_USB_DIEPINT(epno)));
|
||||
efm32_putreg(0xFF, EFM32_USB_DIEPINT(epno));
|
||||
}
|
||||
|
||||
@@ -4337,7 +4338,8 @@ static int efm32_ep_submit(FAR struct usbdev_ep_s *ep, FAR struct usbdev_req_s *
|
||||
if (!req || !req->callback || !req->buf || !ep)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(EFM32_TRACEERR_INVALIDPARMS), 0);
|
||||
ullinfo("req=%p callback=%p buf=%p ep=%p\n", req, req->callback, req->buf, ep);
|
||||
uinfo("req=%p callback=%p buf=%p ep=%p\n",
|
||||
req, req->callback, req->buf, ep);
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -582,7 +582,7 @@ static const struct efm32_usbhost_trace_s g_trace2[TRACE2_NSTRINGS] =
|
||||
#ifdef CONFIG_EFM32_USBHOST_REGDEBUG
|
||||
static void efm32_printreg(uint32_t addr, uint32_t val, bool iswrite)
|
||||
{
|
||||
ullinfo("%08x%s%08x\n", addr, iswrite ? "<-" : "->", val);
|
||||
uinfo("%08x%s%08x\n", addr, iswrite ? "<-" : "->", val);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -632,7 +632,7 @@ static void efm32_checkreg(uint32_t addr, uint32_t val, bool iswrite)
|
||||
{
|
||||
/* No.. More than one. */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count);
|
||||
uinfo("[repeats %d more times]\n", count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2448,7 +2448,7 @@ static inline void efm32_gint_hcinisr(FAR struct efm32_usbhost_s *priv,
|
||||
/* AND the two to get the set of enabled, pending HC interrupts */
|
||||
|
||||
pending &= regval;
|
||||
ullinfo("HCINTMSK%d: %08x pending: %08x\n", chidx, regval, pending);
|
||||
uinfo("HCINTMSK%d: %08x pending: %08x\n", chidx, regval, pending);
|
||||
|
||||
/* Check for a pending ACK response received/transmitted (ACK) interrupt */
|
||||
|
||||
@@ -2709,7 +2709,7 @@ static inline void efm32_gint_hcoutisr(FAR struct efm32_usbhost_s *priv,
|
||||
/* AND the two to get the set of enabled, pending HC interrupts */
|
||||
|
||||
pending &= regval;
|
||||
ullinfo("HCINTMSK%d: %08x pending: %08x\n", chidx, regval, pending);
|
||||
uinfo("HCINTMSK%d: %08x pending: %08x\n", chidx, regval, pending);
|
||||
|
||||
/* Check for a pending ACK response received/transmitted (ACK) interrupt */
|
||||
|
||||
@@ -3012,7 +3012,7 @@ static inline void efm32_gint_rxflvlisr(FAR struct efm32_usbhost_s *priv)
|
||||
/* Read and pop the next status from the Rx FIFO */
|
||||
|
||||
grxsts = efm32_getreg(EFM32_USB_GRXSTSP);
|
||||
ullinfo("GRXSTS: %08x\n", grxsts);
|
||||
uinfo("GRXSTS: %08x\n", grxsts);
|
||||
|
||||
/* Isolate the channel number/index in the status word */
|
||||
|
||||
@@ -3166,8 +3166,8 @@ static inline void efm32_gint_nptxfeisr(FAR struct efm32_usbhost_s *priv)
|
||||
|
||||
/* Write the next group of packets into the Tx FIFO */
|
||||
|
||||
ullinfo("HNPTXSTS: %08x chidx: %d avail: %d buflen: %d xfrd: %d wrsize: %d\n",
|
||||
regval, chidx, avail, chan->buflen, chan->xfrd, wrsize);
|
||||
uinfo("HNPTXSTS: %08x chidx: %d avail: %d buflen: %d xfrd: %d wrsize: %d\n",
|
||||
regval, chidx, avail, chan->buflen, chan->xfrd, wrsize);
|
||||
|
||||
efm32_gint_wrpacket(priv, chan->buffer, chidx, wrsize);
|
||||
}
|
||||
@@ -3254,8 +3254,8 @@ static inline void efm32_gint_ptxfeisr(FAR struct efm32_usbhost_s *priv)
|
||||
|
||||
/* Write the next group of packets into the Tx FIFO */
|
||||
|
||||
ullinfo("HPTXSTS: %08x chidx: %d avail: %d buflen: %d xfrd: %d wrsize: %d\n",
|
||||
regval, chidx, avail, chan->buflen, chan->xfrd, wrsize);
|
||||
uinfo("HPTXSTS: %08x chidx: %d avail: %d buflen: %d xfrd: %d wrsize: %d\n",
|
||||
regval, chidx, avail, chan->buflen, chan->xfrd, wrsize);
|
||||
|
||||
efm32_gint_wrpacket(priv, chan->buffer, chidx, wrsize);
|
||||
}
|
||||
@@ -4795,7 +4795,8 @@ static int efm32_connect(FAR struct usbhost_driver_s *drvr,
|
||||
/* Set the connected/disconnected flag */
|
||||
|
||||
hport->connected = connected;
|
||||
ullinfo("Hub port %d connected: %s\n", hport->port, connected ? "YES" : "NO");
|
||||
uinfo("Hub port %d connected: %s\n",
|
||||
hport->port, connected ? "YES" : "NO");
|
||||
|
||||
/* Report the connection event */
|
||||
|
||||
|
||||
@@ -557,7 +557,7 @@ static void kinetis_receive(FAR struct kinetis_driver_s *priv)
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
if (BUF->type == HTONS(ETHTYPE_IP))
|
||||
{
|
||||
nllinfo("IPv4 frame\n");
|
||||
ninfo("IPv4 frame\n");
|
||||
NETDEV_RXIPV4(&priv->dev);
|
||||
|
||||
/* Handle ARP on input then give the IPv4 packet to the network
|
||||
@@ -598,7 +598,7 @@ static void kinetis_receive(FAR struct kinetis_driver_s *priv)
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
if (BUF->type == HTONS(ETHTYPE_IP6))
|
||||
{
|
||||
nllinfo("Iv6 frame\n");
|
||||
ninfo("Iv6 frame\n");
|
||||
NETDEV_RXIPV6(&priv->dev);
|
||||
|
||||
/* Give the IPv6 packet to the network layer */
|
||||
|
||||
@@ -791,8 +791,8 @@ static void kinetis_transmit(struct kinetis_dev_s *priv)
|
||||
* ready (BWR)
|
||||
*/
|
||||
|
||||
mcllinfo("Entry: remaining: %d IRQSTAT: %08x\n",
|
||||
priv->remaining, getreg32(KINETIS_SDHC_IRQSTAT));
|
||||
mcinfo("Entry: remaining: %d IRQSTAT: %08x\n",
|
||||
priv->remaining, getreg32(KINETIS_SDHC_IRQSTAT));
|
||||
|
||||
while (priv->remaining > 0 &&
|
||||
(getreg32(KINETIS_SDHC_IRQSTAT) & SDHC_INT_BWR) != 0)
|
||||
@@ -837,8 +837,8 @@ static void kinetis_transmit(struct kinetis_dev_s *priv)
|
||||
putreg32(data.w, KINETIS_SDHC_DATPORT);
|
||||
}
|
||||
|
||||
mcllinfo("Exit: remaining: %d IRQSTAT: %08x\n",
|
||||
priv->remaining, getreg32(KINETIS_SDHC_IRQSTAT));
|
||||
mcinfo("Exit: remaining: %d IRQSTAT: %08x\n",
|
||||
priv->remaining, getreg32(KINETIS_SDHC_IRQSTAT));
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -876,8 +876,8 @@ static void kinetis_receive(struct kinetis_dev_s *priv)
|
||||
* ready (BRR)
|
||||
*/
|
||||
|
||||
mcllinfo("Entry: remaining: %d IRQSTAT: %08x\n",
|
||||
priv->remaining, getreg32(KINETIS_SDHC_IRQSTAT));
|
||||
mcinfo("Entry: remaining: %d IRQSTAT: %08x\n",
|
||||
priv->remaining, getreg32(KINETIS_SDHC_IRQSTAT));
|
||||
|
||||
while (priv->remaining > 0 &&
|
||||
(getreg32(KINETIS_SDHC_IRQSTAT) & SDHC_INT_BRR) != 0)
|
||||
@@ -928,9 +928,9 @@ static void kinetis_receive(struct kinetis_dev_s *priv)
|
||||
|
||||
putreg32(watermark << SDHC_WML_RD_SHIFT, KINETIS_SDHC_WML);
|
||||
|
||||
mcllinfo("Exit: remaining: %d IRQSTAT: %08x WML: %08x\n",
|
||||
priv->remaining, getreg32(KINETIS_SDHC_IRQSTAT),
|
||||
getreg32(KINETIS_SDHC_WML));
|
||||
mcinfo("Exit: remaining: %d IRQSTAT: %08x WML: %08x\n",
|
||||
priv->remaining, getreg32(KINETIS_SDHC_IRQSTAT),
|
||||
getreg32(KINETIS_SDHC_WML));
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -971,7 +971,7 @@ static void kinetis_eventtimeout(int argc, uint32_t arg)
|
||||
/* Wake up any waiting threads */
|
||||
|
||||
kinetis_endwait(priv, SDIOWAIT_TIMEOUT);
|
||||
mcllerr("ERROR: Timeout: remaining: %d\n", priv->remaining);
|
||||
mcerr("ERROR: Timeout: remaining: %d\n", priv->remaining);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1103,8 +1103,8 @@ static int kinetis_interrupt(int irq, void *context)
|
||||
|
||||
regval = getreg32(KINETIS_SDHC_IRQSIGEN);
|
||||
enabled = getreg32(KINETIS_SDHC_IRQSTAT) & regval;
|
||||
mcllinfo("IRQSTAT: %08x IRQSIGEN %08x enabled: %08x\n",
|
||||
getreg32(KINETIS_SDHC_IRQSTAT), regval, enabled);
|
||||
mcinfo("IRQSTAT: %08x IRQSIGEN %08x enabled: %08x\n",
|
||||
getreg32(KINETIS_SDHC_IRQSTAT), regval, enabled);
|
||||
|
||||
/* Disable card interrupts to clear the card interrupt to the host system. */
|
||||
|
||||
@@ -1160,7 +1160,7 @@ static int kinetis_interrupt(int irq, void *context)
|
||||
{
|
||||
/* Terminate the transfer with an error */
|
||||
|
||||
mcllerr("ERROR: Data block CRC failure, remaining: %d\n", priv->remaining);
|
||||
mcerr("ERROR: Data block CRC failure, remaining: %d\n", priv->remaining);
|
||||
kinetis_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR);
|
||||
}
|
||||
|
||||
@@ -1170,7 +1170,7 @@ static int kinetis_interrupt(int irq, void *context)
|
||||
{
|
||||
/* Terminate the transfer with an error */
|
||||
|
||||
mcllerr("ERROR: Data timeout, remaining: %d\n", priv->remaining);
|
||||
mcerr("ERROR: Data timeout, remaining: %d\n", priv->remaining);
|
||||
kinetis_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_TIMEOUT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -805,7 +805,7 @@ static int up_interrupt(int irq, void *context)
|
||||
*/
|
||||
|
||||
regval = up_serialin(priv, KINETIS_UART_S1_OFFSET);
|
||||
_llinfo("S1: %02x\n", regval);
|
||||
_info("S1: %02x\n", regval);
|
||||
UNUSED(regval);
|
||||
|
||||
regval = up_serialin(priv, KINETIS_UART_D_OFFSET);
|
||||
|
||||
@@ -375,8 +375,8 @@ const struct trace_msg_t g_usb_trace_strings_deverror[] =
|
||||
/* CONFIG_KHCI_USBDEV_BDTDEBUG dumps most BDT settings */
|
||||
|
||||
#ifdef CONFIG_KHCI_USBDEV_BDTDEBUG
|
||||
# define bdterr ullerr
|
||||
# define bdtinfo ullinfo
|
||||
# define bdterr uerr
|
||||
# define bdtinfo uinfo
|
||||
#else
|
||||
# define bdterr(x...)
|
||||
# define bdtinfo(x...)
|
||||
@@ -693,7 +693,7 @@ static uint16_t khci_getreg(uint32_t addr)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
ullinfo("...\n");
|
||||
uinfo("...\n");
|
||||
}
|
||||
return val;
|
||||
}
|
||||
@@ -709,7 +709,7 @@ static uint16_t khci_getreg(uint32_t addr)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count-3);
|
||||
uinfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -721,7 +721,7 @@ static uint16_t khci_getreg(uint32_t addr)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
ullinfo("%08x->%04x\n", addr, val);
|
||||
uinfo("%08x->%04x\n", addr, val);
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
@@ -735,7 +735,7 @@ static void khci_putreg(uint32_t val, uint32_t addr)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
ullinfo("%08x<-%04x\n", addr, val);
|
||||
uinfo("%08x<-%04x\n", addr, val);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -966,15 +966,15 @@ static void khci_wrcomplete(struct khci_usbdev_s *priv,
|
||||
epno = USB_EPNO(privep->ep.eplog);
|
||||
|
||||
#ifdef CONFIG_USBDEV_NOWRITEAHEAD
|
||||
ullinfo("EP%d: len=%d xfrd=%d inflight=%d\n",
|
||||
epno, privreq->req.len, privreq->req.xfrd, privreq->inflight[0]);
|
||||
uinfo("EP%d: len=%d xfrd=%d inflight=%d\n",
|
||||
epno, privreq->req.len, privreq->req.xfrd, privreq->inflight[0]);
|
||||
#else
|
||||
ullinfo("EP%d: len=%d xfrd=%d inflight={%d, %d}\n",
|
||||
epno, privreq->req.len, privreq->req.xfrd,
|
||||
privreq->inflight[0], privreq->inflight[1]);
|
||||
uinfo("EP%d: len=%d xfrd=%d inflight={%d, %d}\n",
|
||||
epno, privreq->req.len, privreq->req.xfrd,
|
||||
privreq->inflight[0], privreq->inflight[1]);
|
||||
#endif
|
||||
bdtinfo("EP%d BDT IN [%p] {%08x, %08x}\n",
|
||||
epno, bdtin, bdtin->status, bdtin->addr);
|
||||
epno, bdtin, bdtin->status, bdtin->addr);
|
||||
|
||||
/* We should own the BDT that just completed. But NULLify the entire BDT IN.
|
||||
* Why? So that we can tell later that the BDT available. No, it is not
|
||||
@@ -1282,8 +1282,8 @@ static int khci_wrstart(struct khci_usbdev_s *priv,
|
||||
bytesleft = privreq->req.len;
|
||||
}
|
||||
|
||||
ullinfo("epno=%d req=%p: len=%d xfrd=%d index=%d nullpkt=%d\n",
|
||||
epno, privreq, privreq->req.len, xfrd, index, privep->txnullpkt);
|
||||
uinfo("epno=%d req=%p: len=%d xfrd=%d index=%d nullpkt=%d\n",
|
||||
epno, privreq, privreq->req.len, xfrd, index, privep->txnullpkt);
|
||||
|
||||
/* Get the number of bytes left to be sent in the packet */
|
||||
|
||||
@@ -1396,10 +1396,10 @@ static int khci_rdcomplete(struct khci_usbdev_s *priv,
|
||||
bdtout = privep->bdtout;
|
||||
epno = USB_EPNO(privep->ep.eplog);
|
||||
|
||||
ullinfo("EP%d: len=%d xfrd=%d\n",
|
||||
epno, privreq->req.len, privreq->req.xfrd);
|
||||
uinfo("EP%d: len=%d xfrd=%d\n",
|
||||
epno, privreq->req.len, privreq->req.xfrd);
|
||||
bdtinfo("EP%d BDT OUT [%p] {%08x, %08x}\n",
|
||||
epno, bdtout, bdtout->status, bdtout->addr);
|
||||
epno, bdtout, bdtout->status, bdtout->addr);
|
||||
|
||||
/* We should own the BDT that just completed */
|
||||
|
||||
@@ -1685,7 +1685,7 @@ static int khci_rdrequest(struct khci_usbdev_s *priv,
|
||||
return OK;
|
||||
}
|
||||
|
||||
ullinfo("EP%d: len=%d\n", USB_EPNO(privep->ep.eplog), privreq->req.len);
|
||||
uinfo("EP%d: len=%d\n", USB_EPNO(privep->ep.eplog), privreq->req.len);
|
||||
|
||||
/* Ignore any attempt to receive a zero length packet */
|
||||
|
||||
@@ -1975,8 +1975,8 @@ static void khci_ep0setup(struct khci_usbdev_s *priv)
|
||||
index.w = GETUINT16(priv->ctrl.index);
|
||||
len.w = GETUINT16(priv->ctrl.len);
|
||||
|
||||
ullinfo("SETUP: type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
priv->ctrl.type, priv->ctrl.req, value.w, index.w, len.w);
|
||||
uinfo("SETUP: type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
priv->ctrl.type, priv->ctrl.req, value.w, index.w, len.w);
|
||||
|
||||
/* Dispatch any non-standard requests */
|
||||
|
||||
@@ -2219,7 +2219,7 @@ static void khci_ep0setup(struct khci_usbdev_s *priv)
|
||||
{
|
||||
/* Special case recipient=device test mode */
|
||||
|
||||
ullinfo("test mode: %d\n", index.w);
|
||||
uinfo("test mode: %d\n", index.w);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2893,7 +2893,7 @@ x
|
||||
if ((usbir & USB_INT_ERROR) != 0)
|
||||
{
|
||||
usbtrace(TRACE_INTDECODE(KHCI_TRACEINTID_UERR), usbir);
|
||||
ullerr("ERROR: EIR=%04x\n", khci_getreg(KINETIS_USB0_ERRSTAT));
|
||||
uerr("ERROR: EIR=%04x\n", khci_getreg(KINETIS_USB0_ERRSTAT));
|
||||
|
||||
/* Clear all pending USB error interrupts */
|
||||
|
||||
@@ -3221,7 +3221,7 @@ static int khci_epconfigure(struct usbdev_ep_s *ep,
|
||||
if (!ep || !desc)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(KHCI_TRACEERR_INVALIDPARMS), 0);
|
||||
ullerr("ERROR: ep=%p desc=%p\n");
|
||||
uerr("ERROR: ep=%p desc=%p\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
@@ -3352,7 +3352,7 @@ static int khci_epdisable(struct usbdev_ep_s *ep)
|
||||
if (!ep)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(KHCI_TRACEERR_INVALIDPARMS), 0);
|
||||
ullerr("ERROR: ep=%p\n", ep);
|
||||
uerr("ERROR: ep=%p\n", ep);
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
@@ -3451,8 +3451,8 @@ static int khci_epsubmit(struct usbdev_ep_s *ep, struct usbdev_req_s *req)
|
||||
if (!req || !req->callback || !req->buf || !ep)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(KHCI_TRACEERR_INVALIDPARMS), 0);
|
||||
ullerr("ERROR: req=%p callback=%p buf=%p ep=%p\n",
|
||||
req, req->callback, req->buf, ep);
|
||||
uerr("ERROR: req=%p callback=%p buf=%p ep=%p\n",
|
||||
req, req->callback, req->buf, ep);
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
@@ -3464,7 +3464,7 @@ static int khci_epsubmit(struct usbdev_ep_s *ep, struct usbdev_req_s *req)
|
||||
if (!priv->driver)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(KHCI_TRACEERR_NOTCONFIGURED), priv->usbdev.speed);
|
||||
ullerr("ERROR: driver=%p\n", priv->driver);
|
||||
uerr("ERROR: driver=%p\n", priv->driver);
|
||||
return -ESHUTDOWN;
|
||||
}
|
||||
#endif
|
||||
@@ -4233,10 +4233,10 @@ static void khci_hwreset(struct khci_usbdev_s *priv)
|
||||
khci_putreg((uint8_t)((uint32_t)g_bdt >> 16), KINETIS_USB0_BDTPAGE2);
|
||||
khci_putreg((uint8_t)(((uint32_t)g_bdt >> 8) & USB_BDTPAGE1_MASK), KINETIS_USB0_BDTPAGE1);
|
||||
|
||||
ullinfo("BDT Address %hhx \n" ,&g_bdt);
|
||||
ullinfo("BDTPAGE3 %hhx\n",khci_getreg(KINETIS_USB0_BDTPAGE3));
|
||||
ullinfo("BDTPAGE2 %hhx\n",khci_getreg(KINETIS_USB0_BDTPAGE2));
|
||||
ullinfo("BDTPAGE1 %hhx\n",khci_getreg(KINETIS_USB0_BDTPAGE1));
|
||||
uinfo("BDT Address %hhx \n" ,&g_bdt);
|
||||
uinfo("BDTPAGE3 %hhx\n",khci_getreg(KINETIS_USB0_BDTPAGE3));
|
||||
uinfo("BDTPAGE2 %hhx\n",khci_getreg(KINETIS_USB0_BDTPAGE2));
|
||||
uinfo("BDTPAGE1 %hhx\n",khci_getreg(KINETIS_USB0_BDTPAGE1));
|
||||
|
||||
/* Clear any pending interrupts */
|
||||
|
||||
|
||||
@@ -118,12 +118,12 @@ void kl_dumpgpio(gpio_cfgset_t pinset, const char *msg)
|
||||
|
||||
flags = enter_critical_section();
|
||||
|
||||
_llinfo("GPIO%c pinset: %08x base: %08x -- %s\n",
|
||||
g_portchar[port], pinset, base, msg);
|
||||
_llinfo(" PDOR: %08x PDIR: %08x PDDR: %08x\n",
|
||||
getreg32(base + KL_GPIO_PDOR_OFFSET),
|
||||
getreg32(base + KL_GPIO_PDIR_OFFSET),
|
||||
getreg32(base + KL_GPIO_PDDR_OFFSET));
|
||||
_info("GPIO%c pinset: %08x base: %08x -- %s\n",
|
||||
g_portchar[port], pinset, base, msg);
|
||||
_info(" PDOR: %08x PDIR: %08x PDDR: %08x\n",
|
||||
getreg32(base + KL_GPIO_PDOR_OFFSET),
|
||||
getreg32(base + KL_GPIO_PDIR_OFFSET),
|
||||
getreg32(base + KL_GPIO_PDDR_OFFSET));
|
||||
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ static void up_idlepm(void)
|
||||
|
||||
/* Perform board-specific, state-dependent logic here */
|
||||
|
||||
_llinfo("newstate= %d oldstate=%d\n", newstate, oldstate);
|
||||
_info("newstate= %d oldstate=%d\n", newstate, oldstate);
|
||||
|
||||
/* Then force the global state change */
|
||||
|
||||
|
||||
@@ -308,7 +308,7 @@ static void can_printreg(uint32_t addr, uint32_t value)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
canllinfo("...\n");
|
||||
caninfo("...\n");
|
||||
}
|
||||
|
||||
return;
|
||||
@@ -325,7 +325,7 @@ static void can_printreg(uint32_t addr, uint32_t value)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
canllinfo("[repeats %d more times]\n", count-3);
|
||||
caninfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -337,7 +337,7 @@ static void can_printreg(uint32_t addr, uint32_t value)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
canllinfo("%08x->%08x\n", addr, value);
|
||||
caninfo("%08x->%08x\n", addr, value);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -398,7 +398,7 @@ static void can_putreg(struct up_dev_s *priv, int offset, uint32_t value)
|
||||
|
||||
/* Show the register value being written */
|
||||
|
||||
canllinfo("%08x<-%08x\n", addr, value);
|
||||
caninfo("%08x<-%08x\n", addr, value);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -458,7 +458,7 @@ static void can_putcommon(uint32_t addr, uint32_t value)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
canllinfo("%08x<-%08x\n", addr, value);
|
||||
caninfo("%08x<-%08x\n", addr, value);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -942,7 +942,7 @@ static void can_interrupt(FAR struct can_dev_s *dev)
|
||||
/* Read the interrupt and capture register (also clearing most status bits) */
|
||||
|
||||
regval = can_getreg(priv, LPC17_CAN_ICR_OFFSET);
|
||||
canllinfo("CAN%d ICR: %08x\n", priv->port, regval);
|
||||
caninfo("CAN%d ICR: %08x\n", priv->port, regval);
|
||||
|
||||
/* Check for a receive interrupt */
|
||||
|
||||
@@ -972,7 +972,7 @@ static void can_interrupt(FAR struct can_dev_s *dev)
|
||||
|
||||
if ((rfs & CAN_RFS_FF) != 0)
|
||||
{
|
||||
canllerr("ERROR: Received message with extended identifier. Dropped\n");
|
||||
canerr("ERROR: Received message with extended identifier. Dropped\n");
|
||||
}
|
||||
else
|
||||
#endif
|
||||
@@ -1049,7 +1049,7 @@ static int can12_interrupt(int irq, void *context)
|
||||
{
|
||||
/* Handle CAN1/2 interrupts */
|
||||
|
||||
canllinfo("irq: %d\n", irq);
|
||||
caninfo("irq: %d\n", irq);
|
||||
|
||||
#ifdef CONFIG_LPC17_CAN1
|
||||
can_interrupt(&g_can1dev);
|
||||
@@ -1126,8 +1126,8 @@ static int can_bittiming(struct up_dev_s *priv)
|
||||
uint32_t ts2;
|
||||
uint32_t sjw;
|
||||
|
||||
canllinfo("CAN%d PCLK: %d baud: %d\n", priv->port,
|
||||
CAN_CLOCK_FREQUENCY(priv->divisor), priv->baud);
|
||||
caninfo("CAN%d PCLK: %d baud: %d\n", priv->port,
|
||||
CAN_CLOCK_FREQUENCY(priv->divisor), priv->baud);
|
||||
|
||||
/* Try to get CAN_BIT_QUANTA quanta in one bit_time.
|
||||
*
|
||||
@@ -1179,7 +1179,7 @@ static int can_bittiming(struct up_dev_s *priv)
|
||||
|
||||
sjw = 1;
|
||||
|
||||
canllinfo("TS1: %d TS2: %d BRP: %d SJW= %d\n", ts1, ts2, brp, sjw);
|
||||
caninfo("TS1: %d TS2: %d BRP: %d SJW= %d\n", ts1, ts2, brp, sjw);
|
||||
|
||||
/* Configure bit timing */
|
||||
|
||||
@@ -1196,7 +1196,7 @@ static int can_bittiming(struct up_dev_s *priv)
|
||||
btr |= CAN_BTR_SAM;
|
||||
#endif
|
||||
|
||||
canllinfo("Setting CANxBTR= 0x%08x\n", btr);
|
||||
caninfo("Setting CANxBTR= 0x%08x\n", btr);
|
||||
can_putreg(priv, LPC17_CAN_BTR_OFFSET, btr); /* Set bit timing */
|
||||
return OK;
|
||||
}
|
||||
@@ -1224,7 +1224,7 @@ FAR struct can_dev_s *lpc17_caninitialize(int port)
|
||||
irqstate_t flags;
|
||||
uint32_t regval;
|
||||
|
||||
canllinfo("CAN%d\n", port);
|
||||
caninfo("CAN%d\n", port);
|
||||
|
||||
flags = enter_critical_section();
|
||||
|
||||
|
||||
@@ -534,7 +534,7 @@ static struct lpc17_dmadesc_s g_usbddesc[CONFIG_LPC17_USBDEV_NDMADESCRIPTORS];
|
||||
#ifdef CONFIG_LPC17_USBDEV_REGDEBUG
|
||||
static void lpc17_printreg(uint32_t addr, uint32_t val, bool iswrite)
|
||||
{
|
||||
ullinfo("%08x%s%08x\n", addr, iswrite ? "<-" : "->", val);
|
||||
uinfo("%08x%s%08x\n", addr, iswrite ? "<-" : "->", val);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -584,7 +584,7 @@ static void lpc17_checkreg(uint32_t addr, uint32_t val, bool iswrite)
|
||||
{
|
||||
/* No.. More than one. */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count);
|
||||
uinfo("[repeats %d more times]\n", count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1079,8 +1079,9 @@ static int lpc17_wrrequest(struct lpc17_ep_s *privep)
|
||||
return OK;
|
||||
}
|
||||
|
||||
ullinfo("epphy=%d req=%p: len=%d xfrd=%d nullpkt=%d\n",
|
||||
privep->epphy, privreq, privreq->req.len, privreq->req.xfrd, privep->txnullpkt);
|
||||
uinfo("epphy=%d req=%p: len=%d xfrd=%d nullpkt=%d\n",
|
||||
privep->epphy, privreq, privreq->req.len, privreq->req.xfrd,
|
||||
privep->txnullpkt);
|
||||
|
||||
/* Ignore any attempt to send a zero length packet on anything but EP0IN */
|
||||
|
||||
@@ -1188,8 +1189,8 @@ static int lpc17_rdrequest(struct lpc17_ep_s *privep)
|
||||
return OK;
|
||||
}
|
||||
|
||||
ullinfo("len=%d xfrd=%d nullpkt=%d\n",
|
||||
privreq->req.len, privreq->req.xfrd, privep->txnullpkt);
|
||||
uinfo("len=%d xfrd=%d nullpkt=%d\n",
|
||||
privreq->req.len, privreq->req.xfrd, privep->txnullpkt);
|
||||
|
||||
/* Ignore any attempt to receive a zero length packet */
|
||||
|
||||
@@ -1596,8 +1597,8 @@ static inline void lpc17_ep0setup(struct lpc17_usbdev_s *priv)
|
||||
index = GETUINT16(ctrl.index);
|
||||
len = GETUINT16(ctrl.len);
|
||||
|
||||
ullinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl.type, ctrl.req, value, index, len);
|
||||
uinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl.type, ctrl.req, value, index, len);
|
||||
|
||||
/* Dispatch any non-standard requests */
|
||||
|
||||
@@ -1742,7 +1743,7 @@ static inline void lpc17_ep0setup(struct lpc17_usbdev_s *priv)
|
||||
if (((ctrl.type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_DEVICE) &&
|
||||
value == USB_FEATURE_TESTMODE)
|
||||
{
|
||||
ullinfo("test mode: %d\n", index);
|
||||
uinfo("test mode: %d\n", index);
|
||||
}
|
||||
else if ((ctrl.type & USB_REQ_RECIPIENT_MASK) != USB_REQ_RECIPIENT_ENDPOINT)
|
||||
{
|
||||
@@ -2324,7 +2325,7 @@ static int lpc17_usbinterrupt(int irq, FAR void *context)
|
||||
}
|
||||
else
|
||||
{
|
||||
ullinfo("Pending data on OUT endpoint\n");
|
||||
uinfo("Pending data on OUT endpoint\n");
|
||||
priv->rxpending = 1;
|
||||
}
|
||||
}
|
||||
@@ -2803,7 +2804,8 @@ static int lpc17_epsubmit(FAR struct usbdev_ep_s *ep, FAR struct usbdev_req_s *r
|
||||
if (!req || !req->callback || !req->buf || !ep)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(LPC17_TRACEERR_INVALIDPARMS), 0);
|
||||
ullinfo("req=%p callback=%p buf=%p ep=%p\n", req, req->callback, req->buf, ep);
|
||||
uinfo("req=%p callback=%p buf=%p ep=%p\n",
|
||||
req, req->callback, req->buf, ep);
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -460,7 +460,7 @@ static struct lpc17_xfrinfo_s g_xfrbuffers[CONFIG_LPC17_USBHOST_NPREALLOC];
|
||||
#ifdef CONFIG_LPC17_USBHOST_REGDEBUG
|
||||
static void lpc17_printreg(uint32_t addr, uint32_t val, bool iswrite)
|
||||
{
|
||||
ullinfo("%08x%s%08x\n", addr, iswrite ? "<-" : "->", val);
|
||||
uinfo("%08x%s%08x\n", addr, iswrite ? "<-" : "->", val);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -510,7 +510,7 @@ static void lpc17_checkreg(uint32_t addr, uint32_t val, bool iswrite)
|
||||
{
|
||||
/* No.. More than one. */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count);
|
||||
uinfo("[repeats %d more times]\n", count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1646,7 +1646,7 @@ static int lpc17_usbinterrupt(int irq, void *context)
|
||||
|
||||
intst = lpc17_getreg(LPC17_USBHOST_INTST);
|
||||
regval = lpc17_getreg(LPC17_USBHOST_INTEN);
|
||||
ullinfo("INST: %08x INTEN: %08x\n", intst, regval);
|
||||
uinfo("INST: %08x INTEN: %08x\n", intst, regval);
|
||||
|
||||
pending = intst & regval;
|
||||
if (pending != 0)
|
||||
@@ -1656,18 +1656,18 @@ static int lpc17_usbinterrupt(int irq, void *context)
|
||||
if ((pending & OHCI_INT_RHSC) != 0)
|
||||
{
|
||||
uint32_t rhportst1 = lpc17_getreg(LPC17_USBHOST_RHPORTST1);
|
||||
ullinfo("Root Hub Status Change, RHPORTST1: %08x\n", rhportst1);
|
||||
uinfo("Root Hub Status Change, RHPORTST1: %08x\n", rhportst1);
|
||||
|
||||
if ((rhportst1 & OHCI_RHPORTST_CSC) != 0)
|
||||
{
|
||||
uint32_t rhstatus = lpc17_getreg(LPC17_USBHOST_RHSTATUS);
|
||||
ullinfo("Connect Status Change, RHSTATUS: %08x\n", rhstatus);
|
||||
uinfo("Connect Status Change, RHSTATUS: %08x\n", rhstatus);
|
||||
|
||||
/* If DRWE is set, Connect Status Change indicates a remote wake-up event */
|
||||
|
||||
if (rhstatus & OHCI_RHSTATUS_DRWE)
|
||||
{
|
||||
ullinfo("DRWE: Remote wake-up\n");
|
||||
uinfo("DRWE: Remote wake-up\n");
|
||||
}
|
||||
|
||||
/* Otherwise... Not a remote wake-up event */
|
||||
@@ -1684,7 +1684,7 @@ static int lpc17_usbinterrupt(int irq, void *context)
|
||||
{
|
||||
/* Yes.. connected. */
|
||||
|
||||
ullinfo("Connected\n");
|
||||
uinfo("Connected\n");
|
||||
priv->connected = true;
|
||||
priv->change = true;
|
||||
|
||||
@@ -1714,7 +1714,7 @@ static int lpc17_usbinterrupt(int irq, void *context)
|
||||
priv->rhport.hport.speed = USB_SPEED_FULL;
|
||||
}
|
||||
|
||||
ullinfo("Speed:%d\n", priv->rhport.hport.speed);
|
||||
uinfo("Speed:%d\n", priv->rhport.hport.speed);
|
||||
}
|
||||
|
||||
/* Check if we are now disconnected */
|
||||
@@ -1723,7 +1723,7 @@ static int lpc17_usbinterrupt(int irq, void *context)
|
||||
{
|
||||
/* Yes.. disconnect the device */
|
||||
|
||||
ullinfo("Disconnected\n");
|
||||
uinfo("Disconnected\n");
|
||||
priv->connected = false;
|
||||
priv->change = true;
|
||||
|
||||
@@ -3458,7 +3458,7 @@ static int lpc17_connect(FAR struct usbhost_driver_s *drvr,
|
||||
/* Set the connected/disconnected flag */
|
||||
|
||||
hport->connected = connected;
|
||||
ullinfo("Hub port %d connected: %s\n", hport->port, connected ? "YES" : "NO");
|
||||
uinfo("Hub port %d connected: %s\n", hport->port, connected ? "YES" : "NO");
|
||||
|
||||
/* Report the connection event */
|
||||
|
||||
|
||||
@@ -539,7 +539,7 @@ static uint32_t lpc214x_getreg(uint32_t addr)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
ullinfo("...\n");
|
||||
uinfo("...\n");
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -556,7 +556,7 @@ static uint32_t lpc214x_getreg(uint32_t addr)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count-3);
|
||||
uinfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -568,7 +568,7 @@ static uint32_t lpc214x_getreg(uint32_t addr)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
ullinfo("%08x->%08x\n", addr, val);
|
||||
uinfo("%08x->%08x\n", addr, val);
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
@@ -586,7 +586,7 @@ static void lpc214x_putreg(uint32_t val, uint32_t addr)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
ullinfo("%08x<-%08x\n", addr, val);
|
||||
uinfo("%08x<-%08x\n", addr, val);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -1021,8 +1021,9 @@ static int lpc214x_wrrequest(struct lpc214x_ep_s *privep)
|
||||
return OK;
|
||||
}
|
||||
|
||||
ullinfo("epphy=%d req=%p: len=%d xfrd=%d nullpkt=%d\n",
|
||||
privep->epphy, privreq, privreq->req.len, privreq->req.xfrd, privep->txnullpkt);
|
||||
uinfo("epphy=%d req=%p: len=%d xfrd=%d nullpkt=%d\n",
|
||||
privep->epphy, privreq, privreq->req.len, privreq->req.xfrd,
|
||||
privep->txnullpkt);
|
||||
|
||||
/* Ignore any attempt to send a zero length packet on anything but EP0IN */
|
||||
|
||||
@@ -1130,8 +1131,8 @@ static int lpc214x_rdrequest(struct lpc214x_ep_s *privep)
|
||||
return OK;
|
||||
}
|
||||
|
||||
ullinfo("len=%d xfrd=%d nullpkt=%d\n",
|
||||
privreq->req.len, privreq->req.xfrd, privep->txnullpkt);
|
||||
uinfo("len=%d xfrd=%d nullpkt=%d\n",
|
||||
privreq->req.len, privreq->req.xfrd, privep->txnullpkt);
|
||||
|
||||
/* Ignore any attempt to receive a zero length packet */
|
||||
|
||||
@@ -1552,8 +1553,8 @@ static inline void lpc214x_ep0setup(struct lpc214x_usbdev_s *priv)
|
||||
index = GETUINT16(ctrl.index);
|
||||
len = GETUINT16(ctrl.len);
|
||||
|
||||
ullinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl.type, ctrl.req, value, index, len);
|
||||
uinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl.type, ctrl.req, value, index, len);
|
||||
|
||||
/* Dispatch any non-standard requests */
|
||||
|
||||
@@ -1697,7 +1698,7 @@ static inline void lpc214x_ep0setup(struct lpc214x_usbdev_s *priv)
|
||||
if (((ctrl.type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_DEVICE) &&
|
||||
value == USB_FEATURE_TESTMODE)
|
||||
{
|
||||
ullinfo("test mode: %d\n", index);
|
||||
uinfo("test mode: %d\n", index);
|
||||
}
|
||||
else if ((ctrl.type & USB_REQ_RECIPIENT_MASK) != USB_REQ_RECIPIENT_ENDPOINT)
|
||||
{
|
||||
@@ -2287,7 +2288,7 @@ static int lpc214x_usbinterrupt(int irq, FAR void *context)
|
||||
}
|
||||
else
|
||||
{
|
||||
ullinfo("Pending data on OUT endpoint\n");
|
||||
uinfo("Pending data on OUT endpoint\n");
|
||||
priv->rxpending = 1;
|
||||
}
|
||||
}
|
||||
@@ -2763,7 +2764,8 @@ static int lpc214x_epsubmit(FAR struct usbdev_ep_s *ep, FAR struct usbdev_req_s
|
||||
if (!req || !req->callback || !req->buf || !ep)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(LPC214X_TRACEERR_INVALIDPARMS), 0);
|
||||
ullinfo("req=%p callback=%p buf=%p ep=%p\n", req, req->callback, req->buf, ep);
|
||||
uinfo("req=%p callback=%p buf=%p ep=%p\n",
|
||||
req, req->callback, req->buf, ep);
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -826,7 +826,7 @@ static uint32_t lpc31_swap32(uint32_t value)
|
||||
static void lpc31_printreg(volatile uint32_t *regaddr, uint32_t regval,
|
||||
bool iswrite)
|
||||
{
|
||||
ullinfo("%08x%s%08x\n", (uintptr_t)regaddr, iswrite ? "<-" : "->", regval);
|
||||
uinfo("%08x%s%08x\n", (uintptr_t)regaddr, iswrite ? "<-" : "->", regval);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -877,7 +877,7 @@ static void lpc31_checkreg(volatile uint32_t *regaddr, uint32_t regval, bool isw
|
||||
{
|
||||
/* No.. More than one. */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count);
|
||||
uinfo("[repeats %d more times]\n", count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3370,7 +3370,7 @@ static int lpc31_ehci_interrupt(int irq, FAR void *context)
|
||||
#ifdef CONFIG_USBHOST_TRACE
|
||||
usbhost_vtrace1(EHCI_VTRACE1_TOPHALF, usbsts & regval);
|
||||
#else
|
||||
ullinfo("USBSTS: %08x USBINTR: %08x\n", usbsts, regval);
|
||||
uinfo("USBSTS: %08x USBINTR: %08x\n", usbsts, regval);
|
||||
#endif
|
||||
|
||||
/* Handle all unmasked interrupt sources */
|
||||
@@ -4680,7 +4680,7 @@ static int lpc31_connect(FAR struct usbhost_driver_s *drvr,
|
||||
/* Set the connected/disconnected flag */
|
||||
|
||||
hport->connected = connected;
|
||||
ullinfo("Hub port %d connected: %s\n", hport->port, connected ? "YES" : "NO");
|
||||
uinfo("Hub port %d connected: %s\n", hport->port, connected ? "YES" : "NO");
|
||||
|
||||
/* Report the connection event */
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ static bool spi_checkreg(bool wr, uint32_t value, uint32_t address)
|
||||
{
|
||||
if (g_ntimes > 0)
|
||||
{
|
||||
spillinfo("...[Repeats %d times]...\n", g_ntimes);
|
||||
spiinfo("...[Repeats %d times]...\n", g_ntimes);
|
||||
}
|
||||
|
||||
g_wrlast = wr;
|
||||
@@ -239,7 +239,7 @@ static void spi_putreg(uint32_t value, uint32_t address)
|
||||
{
|
||||
if (spi_checkreg(true, value, address))
|
||||
{
|
||||
spillinfo("%08x<-%08x\n", address, value);
|
||||
spiinfo("%08x<-%08x\n", address, value);
|
||||
}
|
||||
putreg32(value, address);
|
||||
}
|
||||
@@ -265,7 +265,7 @@ static uint32_t spi_getreg(uint32_t address)
|
||||
uint32_t value = getreg32(address);
|
||||
if (spi_checkreg(false, value, address))
|
||||
{
|
||||
spillinfo("%08x->%08x\n", address, value);
|
||||
spiinfo("%08x->%08x\n", address, value);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -501,7 +501,7 @@ static uint32_t lpc31_getreg(uint32_t addr)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
ullinfo("...\n");
|
||||
uinfo("...\n");
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -518,7 +518,7 @@ static uint32_t lpc31_getreg(uint32_t addr)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count-3);
|
||||
uinfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -530,7 +530,7 @@ static uint32_t lpc31_getreg(uint32_t addr)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
ullinfo("%08x->%08x\n", addr, val);
|
||||
uinfo("%08x->%08x\n", addr, val);
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
@@ -548,7 +548,7 @@ static void lpc31_putreg(uint32_t val, uint32_t addr)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
ullinfo("%08x<-%08x\n", addr, val);
|
||||
uinfo("%08x<-%08x\n", addr, val);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -1183,8 +1183,8 @@ static inline void lpc31_ep0setup(struct lpc31_usbdev_s *priv)
|
||||
index = GETUINT16(ctrl.index);
|
||||
len = GETUINT16(ctrl.len);
|
||||
|
||||
ullinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl.type, ctrl.req, value, index, len);
|
||||
uinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl.type, ctrl.req, value, index, len);
|
||||
|
||||
/* Dispatch any non-standard requests */
|
||||
if ((ctrl.type & USB_REQ_TYPE_MASK) != USB_REQ_TYPE_STANDARD)
|
||||
@@ -1323,7 +1323,7 @@ static inline void lpc31_ep0setup(struct lpc31_usbdev_s *priv)
|
||||
if (((ctrl.type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_DEVICE) &&
|
||||
value == USB_FEATURE_TESTMODE)
|
||||
{
|
||||
ullinfo("test mode: %d\n", index);
|
||||
uinfo("test mode: %d\n", index);
|
||||
}
|
||||
else if ((ctrl.type & USB_REQ_RECIPIENT_MASK) != USB_REQ_RECIPIENT_ENDPOINT)
|
||||
{
|
||||
@@ -2083,7 +2083,7 @@ static int lpc31_epsubmit(FAR struct usbdev_ep_s *ep, FAR struct usbdev_req_s *r
|
||||
if (!req || !req->callback || !req->buf || !ep)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(LPC31_TRACEERR_INVALIDPARMS), 0);
|
||||
ullinfo("req=%p callback=%p buf=%p ep=%p\n", req, req->callback, req->buf, ep);
|
||||
uinfo("req=%p callback=%p buf=%p ep=%p\n", req, req->callback, req->buf, ep);
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -817,7 +817,7 @@ static uint32_t lpc43_swap32(uint32_t value)
|
||||
static void lpc43_printreg(volatile uint32_t *regaddr, uint32_t regval,
|
||||
bool iswrite)
|
||||
{
|
||||
ullinfo("%08x%s%08x\n", (uintptr_t)regaddr, iswrite ? "<-" : "->", regval);
|
||||
uinfo("%08x%s%08x\n", (uintptr_t)regaddr, iswrite ? "<-" : "->", regval);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -868,7 +868,7 @@ static void lpc43_checkreg(volatile uint32_t *regaddr, uint32_t regval, bool isw
|
||||
{
|
||||
/* No.. More than one. */
|
||||
|
||||
ullinfo("[repeats %d more times]\n", count);
|
||||
uinfo("[repeats %d more times]\n", count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3207,7 +3207,7 @@ static int lpc43_ehci_interrupt(int irq, FAR void *context)
|
||||
#ifdef CONFIG_USBHOST_TRACE
|
||||
usbhost_vtrace1(EHCI_VTRACE1_TOPHALF, usbsts & regval);
|
||||
#else
|
||||
ullinfo("USBSTS: %08x USBINTR: %08x\n", usbsts, regval);
|
||||
uinfo("USBSTS: %08x USBINTR: %08x\n", usbsts, regval);
|
||||
#endif
|
||||
|
||||
/* Handle all unmasked interrupt sources */
|
||||
@@ -4511,7 +4511,7 @@ static int lpc43_connect(FAR struct usbhost_driver_s *drvr,
|
||||
/* Set the connected/disconnected flag */
|
||||
|
||||
hport->connected = connected;
|
||||
ullinfo("Hub port %d connected: %s\n", hport->port, connected ? "YES" : "NO");
|
||||
uinfo("Hub port %d connected: %s\n", hport->port, connected ? "YES" : "NO");
|
||||
|
||||
/* Report the connection event */
|
||||
|
||||
|
||||
@@ -704,7 +704,7 @@ static uint32_t lpc43_getreg(uint32_t addr)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
nllinfo("...\n");
|
||||
ninfo("...\n");
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -721,7 +721,7 @@ static uint32_t lpc43_getreg(uint32_t addr)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
nllinfo("[repeats %d more times]\n", count-3);
|
||||
ninfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -733,7 +733,7 @@ static uint32_t lpc43_getreg(uint32_t addr)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
nllinfo("%08x->%08x\n", addr, val);
|
||||
ninfo("%08x->%08x\n", addr, val);
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
@@ -760,7 +760,7 @@ static void lpc43_putreg(uint32_t val, uint32_t addr)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
nllinfo("%08x<-%08x\n", addr, val);
|
||||
ninfo("%08x<-%08x\n", addr, val);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -947,8 +947,8 @@ static int lpc43_transmit(FAR struct lpc43_ethmac_s *priv)
|
||||
txdesc = priv->txhead;
|
||||
txfirst = txdesc;
|
||||
|
||||
nllinfo("d_len: %d d_buf: %p txhead: %p tdes0: %08x\n",
|
||||
priv->dev.d_len, priv->dev.d_buf, txdesc, txdesc->tdes0);
|
||||
ninfo("d_len: %d d_buf: %p txhead: %p tdes0: %08x\n",
|
||||
priv->dev.d_len, priv->dev.d_buf, txdesc, txdesc->tdes0);
|
||||
|
||||
DEBUGASSERT(txdesc && (txdesc->tdes0 & ETH_TDES0_OWN) == 0);
|
||||
|
||||
@@ -964,7 +964,7 @@ static int lpc43_transmit(FAR struct lpc43_ethmac_s *priv)
|
||||
bufcount = (priv->dev.d_len + (CONFIG_LPC43_ETH_BUFSIZE-1)) / CONFIG_LPC43_ETH_BUFSIZE;
|
||||
lastsize = priv->dev.d_len - (bufcount - 1) * CONFIG_LPC43_ETH_BUFSIZE;
|
||||
|
||||
nllinfo("bufcount: %d lastsize: %d\n", bufcount, lastsize);
|
||||
ninfo("bufcount: %d lastsize: %d\n", bufcount, lastsize);
|
||||
|
||||
/* Set the first segment bit in the first TX descriptor */
|
||||
|
||||
@@ -1074,8 +1074,8 @@ static int lpc43_transmit(FAR struct lpc43_ethmac_s *priv)
|
||||
|
||||
priv->inflight++;
|
||||
|
||||
nllinfo("txhead: %p txtail: %p inflight: %d\n",
|
||||
priv->txhead, priv->txtail, priv->inflight);
|
||||
ninfo("txhead: %p txtail: %p inflight: %d\n",
|
||||
priv->txhead, priv->txtail, priv->inflight);
|
||||
|
||||
/* If all TX descriptors are in-flight, then we have to disable receive interrupts
|
||||
* too. This is because receive events can trigger more un-stoppable transmit
|
||||
@@ -1373,7 +1373,7 @@ static void lpc43_freesegment(FAR struct lpc43_ethmac_s *priv,
|
||||
struct eth_rxdesc_s *rxdesc;
|
||||
int i;
|
||||
|
||||
nllinfo("rxfirst: %p segments: %d\n", rxfirst, segments);
|
||||
ninfo("rxfirst: %p segments: %d\n", rxfirst, segments);
|
||||
|
||||
/* Set OWN bit in RX descriptors. This gives the buffers back to DMA */
|
||||
|
||||
@@ -1431,8 +1431,8 @@ static int lpc43_recvframe(FAR struct lpc43_ethmac_s *priv)
|
||||
uint8_t *buffer;
|
||||
int i;
|
||||
|
||||
nllinfo("rxhead: %p rxcurr: %p segments: %d\n",
|
||||
priv->rxhead, priv->rxcurr, priv->segments);
|
||||
ninfo("rxhead: %p rxcurr: %p segments: %d\n",
|
||||
priv->rxhead, priv->rxcurr, priv->segments);
|
||||
|
||||
/* Check if there are free buffers. We cannot receive new frames in this
|
||||
* design unless there is at least one free buffer.
|
||||
@@ -1440,7 +1440,7 @@ static int lpc43_recvframe(FAR struct lpc43_ethmac_s *priv)
|
||||
|
||||
if (!lpc43_isfreebuffer(priv))
|
||||
{
|
||||
nllerr("ERROR: No free buffers\n");
|
||||
nerr("ERROR: No free buffers\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
@@ -1497,7 +1497,7 @@ static int lpc43_recvframe(FAR struct lpc43_ethmac_s *priv)
|
||||
rxcurr = priv->rxcurr;
|
||||
}
|
||||
|
||||
nllinfo("rxhead: %p rxcurr: %p segments: %d\n",
|
||||
ninfo("rxhead: %p rxcurr: %p segments: %d\n",
|
||||
priv->rxhead, priv->rxcurr, priv->segments);
|
||||
|
||||
/* Check if any errors are reported in the frame */
|
||||
@@ -1536,8 +1536,8 @@ static int lpc43_recvframe(FAR struct lpc43_ethmac_s *priv)
|
||||
priv->rxhead = (struct eth_rxdesc_s *)rxdesc->rdes3;
|
||||
lpc43_freesegment(priv, rxcurr, priv->segments);
|
||||
|
||||
nllinfo("rxhead: %p d_buf: %p d_len: %d\n",
|
||||
priv->rxhead, dev->d_buf, dev->d_len);
|
||||
ninfo("rxhead: %p d_buf: %p d_len: %d\n",
|
||||
priv->rxhead, dev->d_buf, dev->d_len);
|
||||
|
||||
return OK;
|
||||
}
|
||||
@@ -1563,8 +1563,8 @@ static int lpc43_recvframe(FAR struct lpc43_ethmac_s *priv)
|
||||
|
||||
priv->rxhead = rxdesc;
|
||||
|
||||
nllinfo("rxhead: %p rxcurr: %p segments: %d\n",
|
||||
priv->rxhead, priv->rxcurr, priv->segments);
|
||||
ninfo("rxhead: %p rxcurr: %p segments: %d\n",
|
||||
priv->rxhead, priv->rxcurr, priv->segments);
|
||||
|
||||
return -EAGAIN;
|
||||
}
|
||||
@@ -1632,7 +1632,7 @@ static void lpc43_receive(FAR struct lpc43_ethmac_s *priv)
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
if (BUF->type == HTONS(ETHTYPE_IP))
|
||||
{
|
||||
nllinfo("IPv4 frame\n");
|
||||
ninfo("IPv4 frame\n");
|
||||
|
||||
/* Handle ARP on input then give the IPv4 packet to the network
|
||||
* layer
|
||||
@@ -1672,7 +1672,7 @@ static void lpc43_receive(FAR struct lpc43_ethmac_s *priv)
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
if (BUF->type == HTONS(ETHTYPE_IP6))
|
||||
{
|
||||
nllinfo("Iv6 frame\n");
|
||||
ninfo("Iv6 frame\n");
|
||||
|
||||
/* Give the IPv6 packet to the network layer */
|
||||
|
||||
@@ -1709,7 +1709,7 @@ static void lpc43_receive(FAR struct lpc43_ethmac_s *priv)
|
||||
#ifdef CONFIG_NET_ARP
|
||||
if (BUF->type == htons(ETHTYPE_ARP))
|
||||
{
|
||||
nllinfo("ARP frame\n");
|
||||
ninfo("ARP frame\n");
|
||||
|
||||
/* Handle ARP packet */
|
||||
|
||||
@@ -1768,8 +1768,8 @@ static void lpc43_freeframe(FAR struct lpc43_ethmac_s *priv)
|
||||
struct eth_txdesc_s *txdesc;
|
||||
int i;
|
||||
|
||||
nllinfo("txhead: %p txtail: %p inflight: %d\n",
|
||||
priv->txhead, priv->txtail, priv->inflight);
|
||||
ninfo("txhead: %p txtail: %p inflight: %d\n",
|
||||
priv->txhead, priv->txtail, priv->inflight);
|
||||
|
||||
/* Scan for "in-flight" descriptors owned by the CPU */
|
||||
|
||||
@@ -1784,8 +1784,8 @@ static void lpc43_freeframe(FAR struct lpc43_ethmac_s *priv)
|
||||
* TX descriptors.
|
||||
*/
|
||||
|
||||
nllinfo("txtail: %p tdes0: %08x tdes2: %08x tdes3: %08x\n",
|
||||
txdesc, txdesc->tdes0, txdesc->tdes2, txdesc->tdes3);
|
||||
ninfo("txtail: %p tdes0: %08x tdes2: %08x tdes3: %08x\n",
|
||||
txdesc, txdesc->tdes0, txdesc->tdes2, txdesc->tdes3);
|
||||
|
||||
DEBUGASSERT(txdesc->tdes2 != 0);
|
||||
|
||||
@@ -1837,8 +1837,8 @@ static void lpc43_freeframe(FAR struct lpc43_ethmac_s *priv)
|
||||
|
||||
priv->txtail = txdesc;
|
||||
|
||||
nllinfo("txhead: %p txtail: %p inflight: %d\n",
|
||||
priv->txhead, priv->txtail, priv->inflight);
|
||||
ninfo("txhead: %p txtail: %p inflight: %d\n",
|
||||
priv->txhead, priv->txtail, priv->inflight);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1975,7 +1975,7 @@ static inline void lpc43_interrupt_process(FAR struct lpc43_ethmac_s *priv)
|
||||
{
|
||||
/* Just let the user know what happened */
|
||||
|
||||
nllerr("ERROR: Abnormal event(s): %08x\n", dmasr);
|
||||
nerr("ERROR: Abnormal event(s): %08x\n", dmasr);
|
||||
|
||||
/* Clear all pending abnormal events */
|
||||
|
||||
@@ -2179,7 +2179,7 @@ static void lpc43_txtimeout_expiry(int argc, uint32_t arg, ...)
|
||||
{
|
||||
FAR struct lpc43_ethmac_s *priv = (FAR struct lpc43_ethmac_s *)arg;
|
||||
|
||||
nllinfo("Timeout!\n");
|
||||
ninfo("Timeout!\n");
|
||||
|
||||
#ifdef CONFIG_NET_NOINTS
|
||||
/* Disable further Ethernet interrupts. This will prevent some race
|
||||
@@ -2647,8 +2647,8 @@ static int lpc43_addmac(struct net_driver_s *dev, FAR const uint8_t *mac)
|
||||
uint32_t temp;
|
||||
uint32_t registeraddress;
|
||||
|
||||
nllinfo("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
ninfo("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
|
||||
/* Add the MAC address to the hardware multicast hash table */
|
||||
|
||||
@@ -2704,8 +2704,8 @@ static int lpc43_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
|
||||
uint32_t temp;
|
||||
uint32_t registeraddress;
|
||||
|
||||
nllinfo("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
ninfo("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
|
||||
/* Remove the MAC address to the hardware multicast hash table */
|
||||
|
||||
@@ -3718,11 +3718,11 @@ static void lpc43_macaddress(FAR struct lpc43_ethmac_s *priv)
|
||||
FAR struct net_driver_s *dev = &priv->dev;
|
||||
uint32_t regval;
|
||||
|
||||
nllinfo("%s MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||
dev->d_ifname,
|
||||
dev->d_mac.ether_addr_octet[0], dev->d_mac.ether_addr_octet[1],
|
||||
dev->d_mac.ether_addr_octet[2], dev->d_mac.ether_addr_octet[3],
|
||||
dev->d_mac.ether_addr_octet[4], dev->d_mac.ether_addr_octet[5]);
|
||||
ninfo("%s MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||
dev->d_ifname,
|
||||
dev->d_mac.ether_addr_octet[0], dev->d_mac.ether_addr_octet[1],
|
||||
dev->d_mac.ether_addr_octet[2], dev->d_mac.ether_addr_octet[3],
|
||||
dev->d_mac.ether_addr_octet[4], dev->d_mac.ether_addr_octet[5]);
|
||||
|
||||
/* Set the MAC address high register */
|
||||
|
||||
@@ -3925,12 +3925,12 @@ static int lpc43_ethconfig(FAR struct lpc43_ethmac_s *priv)
|
||||
|
||||
/* Reset the Ethernet block */
|
||||
|
||||
nllinfo("Reset the Ethernet block\n");
|
||||
ninfo("Reset the Ethernet block\n");
|
||||
lpc43_ethreset(priv);
|
||||
|
||||
/* Initialize the PHY */
|
||||
|
||||
nllinfo("Initialize the PHY\n");
|
||||
ninfo("Initialize the PHY\n");
|
||||
ret = lpc43_phyinit(priv);
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -3945,7 +3945,7 @@ static int lpc43_ethconfig(FAR struct lpc43_ethmac_s *priv)
|
||||
|
||||
/* Initialize the MAC and DMA */
|
||||
|
||||
nllinfo("Initialize the MAC and DMA\n");
|
||||
ninfo("Initialize the MAC and DMA\n");
|
||||
ret = lpc43_macconfig(priv);
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -3966,7 +3966,7 @@ static int lpc43_ethconfig(FAR struct lpc43_ethmac_s *priv)
|
||||
|
||||
/* Enable normal MAC operation */
|
||||
|
||||
nllinfo("Enable normal operation\n");
|
||||
ninfo("Enable normal operation\n");
|
||||
return lpc43_macenable(priv);
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ static void up_idlepm(void)
|
||||
|
||||
/* Perform board-specific, state-dependent logic here */
|
||||
|
||||
_llinfo("newstate= %d oldstate=%d\n", newstate, oldstate);
|
||||
_info("newstate= %d oldstate=%d\n", newstate, oldstate);
|
||||
|
||||
/* Then force the global state change */
|
||||
|
||||
|
||||
@@ -201,8 +201,8 @@ void up_timer_initialize(void)
|
||||
mask_bits++;
|
||||
}
|
||||
|
||||
tmrllinfo("mask_bits = %d, mask = %X, ticks_per_int = %d\r\n",
|
||||
mask_bits, (0xffffffff << (32 - mask_bits)), ticks_per_int);
|
||||
tmrinfo("mask_bits = %d, mask = %X, ticks_per_int = %d\r\n",
|
||||
mask_bits, (0xffffffff << (32 - mask_bits)), ticks_per_int);
|
||||
|
||||
/* Set the mask and compare value so we get interrupts every
|
||||
* RIT_TIMER_RESOLUTION cycles.
|
||||
|
||||
@@ -522,7 +522,7 @@ static uint32_t lpc43_getreg(uint32_t addr)
|
||||
{
|
||||
if (count == 4)
|
||||
{
|
||||
usbllinfo("...\n");
|
||||
usbinfo("...\n");
|
||||
}
|
||||
|
||||
return val;
|
||||
@@ -539,7 +539,7 @@ static uint32_t lpc43_getreg(uint32_t addr)
|
||||
{
|
||||
/* Yes.. then show how many times the value repeated */
|
||||
|
||||
usbllinfo("[repeats %d more times]\n", count-3);
|
||||
usbinfo("[repeats %d more times]\n", count-3);
|
||||
}
|
||||
|
||||
/* Save the new address, value, and count */
|
||||
@@ -551,7 +551,7 @@ static uint32_t lpc43_getreg(uint32_t addr)
|
||||
|
||||
/* Show the register value read */
|
||||
|
||||
usbllinfo("%08x->%08x\n", addr, val);
|
||||
usbinfo("%08x->%08x\n", addr, val);
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
@@ -569,7 +569,7 @@ static void lpc43_putreg(uint32_t val, uint32_t addr)
|
||||
{
|
||||
/* Show the register value being written */
|
||||
|
||||
usbllinfo("%08x<-%08x\n", addr, val);
|
||||
usbinfo("%08x<-%08x\n", addr, val);
|
||||
|
||||
/* Write the value */
|
||||
|
||||
@@ -1228,8 +1228,8 @@ static inline void lpc43_ep0setup(struct lpc43_usbdev_s *priv)
|
||||
|
||||
priv->ep0buf_len = len;
|
||||
|
||||
ullinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl->type, ctrl->req, value, index, len);
|
||||
uinfo("type=%02x req=%02x value=%04x index=%04x len=%04x\n",
|
||||
ctrl->type, ctrl->req, value, index, len);
|
||||
|
||||
/* Starting a control request - update state */
|
||||
|
||||
@@ -1393,7 +1393,7 @@ static inline void lpc43_ep0setup(struct lpc43_usbdev_s *priv)
|
||||
if (((ctrl->type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_DEVICE) &&
|
||||
value == USB_FEATURE_TESTMODE)
|
||||
{
|
||||
ullinfo("test mode: %d\n", index);
|
||||
uinfo("test mode: %d\n", index);
|
||||
}
|
||||
else if ((ctrl->type & USB_REQ_RECIPIENT_MASK) != USB_REQ_RECIPIENT_ENDPOINT)
|
||||
{
|
||||
@@ -2206,7 +2206,7 @@ static int lpc43_epsubmit(FAR struct usbdev_ep_s *ep, FAR struct usbdev_req_s *r
|
||||
if (!req || !req->callback || !req->buf || !ep)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(LPC43_TRACEERR_INVALIDPARMS), 0);
|
||||
ullinfo("req=%p callback=%p buf=%p ep=%p\n", req, req->callback, req->buf, ep);
|
||||
uinfo("req=%p callback=%p buf=%p ep=%p\n", req, req->callback, req->buf, ep);
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -99,7 +99,7 @@ static void up_idlepm(void)
|
||||
|
||||
/* Perform board-specific, state-dependent logic here */
|
||||
|
||||
_llinfo("newstate= %d oldstate=%d\n", newstate, oldstate);
|
||||
_info("newstate= %d oldstate=%d\n", newstate, oldstate);
|
||||
|
||||
/* Then force the global state change */
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user