diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-05-25 16:02:28 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-05-25 16:02:28 +0000 |
commit | 56394484e3b46d234ec504dc23114b9cf8c67778 (patch) | |
tree | 192ce725470542f0b28817948608721866e00a41 /src | |
parent | 2b01a8a5cd84af76e0b4ad7cc0ffc22e1e2f5146 (diff) | |
download | coreboot-56394484e3b46d234ec504dc23114b9cf8c67778.tar.xz |
Fix usbdebug compilation.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5585 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r-- | src/include/usb_ch9.h | 19 | ||||
-rw-r--r-- | src/include/usbdebug_direct.h | 4 | ||||
-rw-r--r-- | src/lib/usbdebug_direct.c | 6 | ||||
-rw-r--r-- | src/mainboard/kontron/986lcd-m/romstage.c | 1 |
4 files changed, 15 insertions, 15 deletions
diff --git a/src/include/usb_ch9.h b/src/include/usb_ch9.h index 13aa391cb3..fa682776ba 100644 --- a/src/include/usb_ch9.h +++ b/src/include/usb_ch9.h @@ -61,22 +61,21 @@ #define USB_DEVICE_DEBUG_MODE 6 /* (special devices only) */ -//frim usb_ch9.h struct usb_ctrlrequest { - uint8_t bRequestType; - uint8_t bRequest; - uint16_t wValue; - uint16_t wIndex; - uint16_t wLength; + u8 bRequestType; + u8 bRequest; + u16 wValue; + u16 wIndex; + u16 wLength; } __attribute__ ((packed)); struct usb_debug_descriptor { - uint8_t bLength; - uint8_t bDescriptorType; + u8 bLength; + u8 bDescriptorType; /* bulk endpoints with 8 byte maxpacket */ - uint8_t bDebugInEndpoint; - uint8_t bDebugOutEndpoint; + u8 bDebugInEndpoint; + u8 bDebugOutEndpoint; }; #endif diff --git a/src/include/usbdebug_direct.h b/src/include/usbdebug_direct.h index 98e1aea998..b9d170b1f3 100644 --- a/src/include/usbdebug_direct.h +++ b/src/include/usbdebug_direct.h @@ -15,8 +15,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA */ -#ifndef USBDEBUG_DIRECT_H -#define USBDEBUG_DIRECT_H +#ifndef USBDEBUG_H +#define USBDEBUG_H struct ehci_debug_info { void *ehci_caps; diff --git a/src/lib/usbdebug_direct.c b/src/lib/usbdebug_direct.c index d2e46729d1..19ce15086f 100644 --- a/src/lib/usbdebug_direct.c +++ b/src/lib/usbdebug_direct.c @@ -342,9 +342,9 @@ static int ehci_wait_for_port(struct ehci_regs *ehci_regs, int port) #define DBGP_DEBUG 1 #if DBGP_DEBUG -# define dbgp_printk(fmt, arg...) printk(BIOS_DEBUG, fmt, arg) +# define dbgp_printk(fmt_arg...) printk(BIOS_DEBUG, fmt_arg) #else -#define dbgp_printk(fmt, arg...) do {} while(0) +#define dbgp_printk(fmt_arg...) do {} while(0) #endif static void usbdebug_direct_init(unsigned ehci_bar, unsigned offset, struct ehci_debug_info *info) { @@ -531,7 +531,7 @@ err: /* Things didn't work so remove my claim */ ctrl = read32(&ehci_debug->control); ctrl &= ~(DBGP_CLAIM | DBGP_OUT); - write32(&ehci_debug->control, ctrl); + write32((unsigned long)&ehci_debug->control, ctrl); next_debug_port: port_map_tried |= (1<<(debug_port-1)); diff --git a/src/mainboard/kontron/986lcd-m/romstage.c b/src/mainboard/kontron/986lcd-m/romstage.c index 9ddbb05ee3..cb40034751 100644 --- a/src/mainboard/kontron/986lcd-m/romstage.c +++ b/src/mainboard/kontron/986lcd-m/romstage.c @@ -50,6 +50,7 @@ #if CONFIG_USBDEBUG_DIRECT #define DBGP_DEFAULT 1 +#include <usbdebug_direct.h> #include "southbridge/intel/i82801gx/i82801gx_usb_debug.c" #include "pc80/usbdebug_direct_serial.c" #endif |