OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 8:18 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Get SATA AHCI BAR
PostPosted: Wed Apr 23, 2014 8:58 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
That's probably a good assumption for the primary channel on the first controller. But you should test that you are getting sane responses before actually using it.


Top
 Profile  
 
 Post subject: Re: Get SATA AHCI BAR
PostPosted: Wed Apr 23, 2014 9:08 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
An IDE controller on the chipset is often designed to appear as an ISA one. So even though it is most likely listed as a PCI device, it will respond to ports not listed in it's BAR. That however does not hold for AHCI interfaces as they lack legacy.

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: Get SATA AHCI BAR
PostPosted: Wed Apr 23, 2014 7:48 pm 
Offline

Joined: Wed Apr 23, 2014 1:41 am
Posts: 17
sortie wrote:
Read the replies you already got! The first reply linked to the PCI tutorial that covers all this. See the section about recursive scans.

Thx sortie for your help. My problem now is how to send the logs found on HDD to a FTP server...


Top
 Profile  
 
 Post subject: Re: Get SATA AHCI BAR
PostPosted: Thu Apr 24, 2014 10:03 am 
Offline
Member
Member

Joined: Sat Nov 21, 2009 5:11 pm
Posts: 852
Bender wrote:
I'm sorry for asking an ignorant question, but does the same go for a IDE controller? For now I assumed it as port 0x1F0.

For an IDE controller, each channel can operate in either Native or Compatibility mode. This is controlled by the Programming Interface byte. In Native mode, the port ranges are indicated by BARs and the IRQ lines are connected to a single PCI interrupt pin. In Compatibility mode, the port ranges are fixed and the IRQ lines are connected to fixed ISA IRQs. Check the PCI IDE specification.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 56 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