qemu-armv7: Trivial style fixes
Minor style fixes to avoid future bikeshedding. - Opening brace for functions go on their own lines. - use fixed-length types where appropriate. BUG=none BRANCH=none TEST=it compiles Signed-off-by: David Hendricks <dhendrix@chromium.org> Change-Id: If9855d32c8ed1f5977937806c8c4cce65dd7d450 Reviewed-on: https://chromium-review.googlesource.com/196955 Reviewed-by: David Hendricks <dhendrix@chromium.org> Commit-Queue: David Hendricks <dhendrix@chromium.org> Tested-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
parent
dde4928c04
commit
e2bfeed186
2 changed files with 15 additions and 9 deletions
|
|
@ -14,11 +14,13 @@
|
|||
*/
|
||||
|
||||
void udelay(unsigned int n);
|
||||
void udelay(unsigned int n) {
|
||||
void udelay(unsigned int n)
|
||||
{
|
||||
/* TODO provide delay here. */
|
||||
}
|
||||
|
||||
int init_timer(void);
|
||||
int init_timer(void) {
|
||||
int init_timer(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,17 +18,20 @@
|
|||
|
||||
#define VEXPRESS_UART0_IO_ADDRESS (0x10009000)
|
||||
|
||||
static void pl011_init_dev(void) {
|
||||
static void pl011_init_dev(void)
|
||||
{
|
||||
}
|
||||
|
||||
static void pl011_uart_tx_byte(unsigned char data) {
|
||||
static volatile unsigned int *uart0_address =
|
||||
(unsigned int *)VEXPRESS_UART0_IO_ADDRESS;
|
||||
static void pl011_uart_tx_byte(uint8_t data)
|
||||
{
|
||||
static volatile uint32_t *uart0_address =
|
||||
(uint32_t *)VEXPRESS_UART0_IO_ADDRESS;
|
||||
|
||||
*uart0_address = (unsigned int)data;
|
||||
*uart0_address = (uint32_t)data;
|
||||
}
|
||||
|
||||
static void pl011_uart_tx_flush(void) {
|
||||
static void pl011_uart_tx_flush(void)
|
||||
{
|
||||
}
|
||||
|
||||
#if !defined(__PRE_RAM__)
|
||||
|
|
@ -54,7 +57,8 @@ void uart_tx_byte(unsigned char data)
|
|||
pl011_uart_tx_byte(data);
|
||||
}
|
||||
|
||||
void uart_tx_flush(void) {
|
||||
void uart_tx_flush(void)
|
||||
{
|
||||
pl011_uart_tx_flush();
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue