OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 9:43 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: PCIe enumeration
PostPosted: Mon Nov 19, 2018 3:22 pm 
Offline

Joined: Mon Nov 19, 2018 12:13 pm
Posts: 22
I have a PCIe graphics card. I want to access it. From what I have heard, I need to find it with PCIe enumeration. I just don't know how to do this.

What I'm Programming with:
QEMU
MinGW-w64
NASM
Notepad
Code::Blocks
Windows 8.1

What I want to run it on:
QEMU
:wink: something bootable

_________________
- Mitchell Barnes the Confused Idiot
17 years old and programming assembly

“If you're going to tell me to give up then you're wasting time that you could be using to help someone else”

“Assembly is more readable and easy to use than c. Change my mind”


Top
 Profile  
 
 Post subject: Re: PCIe enumeration
PostPosted: Mon Nov 19, 2018 3:33 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 21, 2011 9:47 pm
Posts: 286
Location: Tustin, CA USA
https://wiki.osdev.org/PCI

_________________
Adam

The name is fitting: Century Hobby OS -- At this rate, it's gonna take me that long!
Read about my mistakes and missteps with this iteration: Journal

"Sometimes things just don't make sense until you figure them out." -- Phil Stahlheber


Top
 Profile  
 
 Post subject: Re: PCIe enumeration
PostPosted: Mon Nov 19, 2018 11:13 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
BTW, are you aware that QEMU is emulating a graphics card, and doesn't give you access to the host card?

As I recall from your last topic on the matter, you have an nVidia graphics chip. So, if you want to develop a graphics driver for that thing, you are going to need access to documentation that nVidia only hands out on NDA. Which means you can't release the resulting source code. And you have to deal directly with nVidia, who might just brush you off. You might look at the nouveau source code, though. However, that is all pie in the sky, considering you haven't even got PCI enumeration to work.

_________________
Carpe diem!


Top
 Profile  
 
 Post subject: Re: PCIe enumeration
PostPosted: Tue Nov 20, 2018 7:37 am 
Offline

Joined: Mon Nov 19, 2018 12:13 pm
Posts: 22
Actually I have an rx560

_________________
- Mitchell Barnes the Confused Idiot
17 years old and programming assembly

“If you're going to tell me to give up then you're wasting time that you could be using to help someone else”

“Assembly is more readable and easy to use than c. Change my mind”


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot], SemrushBot [Bot] and 59 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