working on USB device scan

This commit is contained in:
Markus Fröschle
2014-10-03 09:58:45 +00:00
parent 69941141f7
commit 2ee1ddf58d
8 changed files with 331 additions and 299 deletions

View File

@@ -54,7 +54,7 @@
#include "usb.h"
#include "video.h"
//#define DEBUG_SYSINIT
#define DEBUG_SYSINIT
#ifdef DEBUG_SYSINIT
#define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0)
#else
@@ -702,7 +702,7 @@ void init_usb(void)
do
{
handle = pci_find_device(0x0000, 0xffff, index++);
handle = pci_find_classcode(PCI_CLASS_SERIAL_USB, index++);
if (handle > 0)
{
uint32_t id = 0;