Fixed the bugs I introduced earlier. original code was ok.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14244 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -194,7 +194,7 @@ OHCI::OHCI( pci_info *info , Stack *stack )
|
|||||||
hcd_soft_endpoint *sed, *psed;
|
hcd_soft_endpoint *sed, *psed;
|
||||||
dprintf( "OHCI: constructing new BusManager\n" );
|
dprintf( "OHCI: constructing new BusManager\n" );
|
||||||
m_opreg_base = OHCI::pci_module->read_pci_config(m_pcii->bus, m_pcii->device, m_pcii->function, 0x20, 4);
|
m_opreg_base = OHCI::pci_module->read_pci_config(m_pcii->bus, m_pcii->device, m_pcii->function, 0x20, 4);
|
||||||
m_opreg_base &= ~PCI_address_io_mask;
|
m_opreg_base &= PCI_address_io_mask;
|
||||||
TRACE( "OHCI: iospace offset: %lx\n" , m_opreg_base );
|
TRACE( "OHCI: iospace offset: %lx\n" , m_opreg_base );
|
||||||
m_roothub_base = 255; //Invalidate the Root Hub address
|
m_roothub_base = 255; //Invalidate the Root Hub address
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ UHCI::UHCI( pci_info *info , Stack *stack )
|
|||||||
m_pcii = info;
|
m_pcii = info;
|
||||||
m_stack = stack;
|
m_stack = stack;
|
||||||
m_reg_base = UHCI::pci_module->read_pci_config(m_pcii->bus, m_pcii->device, m_pcii->function, PCI_memory_base, 4);
|
m_reg_base = UHCI::pci_module->read_pci_config(m_pcii->bus, m_pcii->device, m_pcii->function, PCI_memory_base, 4);
|
||||||
m_reg_base &= ~PCI_address_io_mask;
|
m_reg_base &= PCI_address_io_mask;
|
||||||
TRACE( "USB UHCI: iospace offset: %lx\n" , m_reg_base );
|
TRACE( "USB UHCI: iospace offset: %lx\n" , m_reg_base );
|
||||||
m_rh_address = 255; //Invalidate the RH address
|
m_rh_address = 255; //Invalidate the RH address
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user