summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2010-08-04 19:29:11 +0000
committerMyles Watson <mylesgw@gmail.com>2010-08-04 19:29:11 +0000
commit127e976ec287df4ceb16a3b176b58497e58e0d8d (patch)
tree73f3a4b2a77f226bdf97d335aa4333d710070a2b /src/console
parent8c4f31b3b5f6c3b7ba0ece39cd7df6273ff70a7e (diff)
Remove warnings from USB debug console code.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5683 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/console')
-rw-r--r--src/console/usbdebug_console.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/console/usbdebug_console.c b/src/console/usbdebug_console.c
index 2e71cc3ea3..6fe0ef7ee6 100644
--- a/src/console/usbdebug_console.c
+++ b/src/console/usbdebug_console.c
@@ -29,20 +29,20 @@ void set_ehci_base(unsigned ehci_base)
if (!dbg_info.ehci_debug)
return;
- diff = dbg_info.ehci_caps - ehci_base;
+ diff = (unsigned)dbg_info.ehci_caps - ehci_base;
dbg_info.ehci_regs -= diff;
dbg_info.ehci_debug -= diff;
- dbg_info.ehci_caps = ehci_base;
+ dbg_info.ehci_caps = (void*)ehci_base;
}
void set_ehci_debug(unsigned ehci_debug)
{
- dbg_info.ehci_debug = ehci_debug;
+ dbg_info.ehci_debug = (void*)ehci_debug;
}
unsigned get_ehci_debug(void)
{
- return dbg_info.ehci_debug;
+ return (unsigned)dbg_info.ehci_debug;
}
static void dbgp_init(void)
@@ -61,7 +61,7 @@ static void dbgp_init(void)
static void dbgp_tx_byte(unsigned char data)
{
if (dbg_info.ehci_debug)
- dbgp_bulk_write_x(&dbg_info, &data, 1);
+ dbgp_bulk_write_x(&dbg_info, (char*)&data, 1);
}
static unsigned char dbgp_rx_byte(void)
@@ -76,7 +76,7 @@ static unsigned char dbgp_rx_byte(void)
static int dbgp_tst_byte(void)
{
- return dbg_info.ehci_debug;
+ return (int)dbg_info.ehci_debug;
}
static const struct console_driver usbdebug_direct_console __console = {