Commit e8ada80a authored by Andre Przywara's avatar Andre Przywara
Browse files

skeletton: Use generic console_t data structure



Since now the generic console_t structure holds the UART base address as
well, let's use that generic location and drop the UART driver specific
data structure at all.

Change-Id: I347849424782333149e5912a25cc0ab9d277a201
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
parent 78b40dce
......@@ -50,7 +50,7 @@ func console_xxx_register
* by later console callback (e.g. putc).
* Example:
*/
str r1, [r0, #CONSOLE_T_XXX_BASE]
str r1, [r0, #CONSOLE_T_BASE]
str r2, [r0, #CONSOLE_T_XXX_SOME_OTHER_VALUE]
/*
......@@ -87,7 +87,7 @@ func console_xxx_putc
* console_xxx_t structure pointed to by r1.
* Example:
*/
ldr r1, [r1, #CONSOLE_T_XXX_BASE]
ldr r1, [r1, #CONSOLE_T_BASE]
/*
* Write r0 to hardware.
......@@ -125,7 +125,7 @@ func console_xxx_getc
* console_xxx_t structure pointed to by r0.
* Example:
*/
ldr r1, [r0, #CONSOLE_T_XXX_BASE]
ldr r1, [r0, #CONSOLE_T_BASE]
/*
* Try to read character into r0 from hardware.
......@@ -159,7 +159,7 @@ func console_xxx_flush
* console_xxx_t structure pointed to by r0.
* Example:
*/
ldr r1, [r0, #CONSOLE_T_XXX_BASE]
ldr r1, [r0, #CONSOLE_T_BASE]
/*
* Flush all remaining output from hardware FIFOs. Do not return until
......
......@@ -50,7 +50,7 @@ func console_xxx_register
* by later console callback (e.g. putc).
* Example:
*/
str x1, [x0, #CONSOLE_T_XXX_BASE]
str x1, [x0, #CONSOLE_T_BASE]
str x2, [x0, #CONSOLE_T_XXX_SOME_OTHER_VALUE]
/*
......@@ -87,7 +87,7 @@ func console_xxx_putc
* console_xxx_t structure pointed to by x1.
* Example:
*/
ldr x1, [x1, #CONSOLE_T_XXX_BASE]
ldr x1, [x1, #CONSOLE_T_BASE]
/*
* Write w0 to hardware.
......@@ -125,7 +125,7 @@ func console_xxx_getc
* console_xxx_t structure pointed to by x0.
* Example:
*/
ldr x1, [x0, #CONSOLE_T_XXX_BASE]
ldr x1, [x0, #CONSOLE_T_BASE]
/*
* Try to read character into w0 from hardware.
......@@ -159,7 +159,7 @@ func console_xxx_flush
* console_xxx_t structure pointed to by x0.
* Example:
*/
ldr x1, [x0, #CONSOLE_T_XXX_BASE]
ldr x1, [x0, #CONSOLE_T_BASE]
/*
* Flush all remaining output from hardware FIFOs. Do not return until
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment