PCIe enumeration

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
CheeseBees
Posts: 22
Joined: Mon Nov 19, 2018 12:13 pm
Libera.chat IRC: WhatIsThis

PCIe enumeration

Post by CheeseBees »

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”
User avatar
eryjus
Member
Member
Posts: 286
Joined: Fri Oct 21, 2011 9:47 pm
Libera.chat IRC: eryjus
Location: Tustin, CA USA

Re: PCIe enumeration

Post by eryjus »

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
nullplan
Member
Member
Posts: 1801
Joined: Wed Aug 30, 2017 8:24 am

Re: PCIe enumeration

Post by nullplan »

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!
CheeseBees
Posts: 22
Joined: Mon Nov 19, 2018 12:13 pm
Libera.chat IRC: WhatIsThis

Re: PCIe enumeration

Post by CheeseBees »

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”
Post Reply