OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Sep 15, 2019 8:33 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: XHCI port detection
PostPosted: Wed Sep 11, 2019 2:27 pm 
Offline

Joined: Tue Aug 30, 2016 1:31 pm
Posts: 10
Hello everyone,

I tried to detect ports on XHCI.
On virtual machine (BOCHS) it detects the ports as I expected but on real hardware it gives 0x00 as portstatus and when you go over the limit it shows 0x200.
https://github.com/AdeRegt/SanderOSUSB/ ... dev/xhci.c is the sourcecode.
What am I doing wrong?


Top
 Profile  
 
 Post subject: Re: XHCI port detection
PostPosted: Thu Sep 12, 2019 11:32 am 
Offline
Member
Member

Joined: Sat Mar 10, 2018 10:16 am
Posts: 130
Bochs isnt support XHCI ports. Correct me if I am wrong. Maybe some wrong about PCI progif value with detection(for xhci 0x30)?


Top
 Profile  
 
 Post subject: Re: XHCI port detection
PostPosted: Thu Sep 12, 2019 11:35 am 
Offline

Joined: Tue Aug 30, 2016 1:31 pm
Posts: 10
Bochs actually do support it, with an extension.
plugin_ctrl: unmapped=1, biosdev=1, speaker=1, extfpuirq=1, parallel=1, serial=1, gameport=1, usb_xhci=1
usb_xhci: enabled=1, port1="disk:/home/example/Downloads/mikeos-4.6b3/disk_images/mikeos.flp", options1=none, port2=none, options2=none


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group