If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Accessing PCI devices (low level programming)
Hello all,
I'm trying to figure out how OSes are working by making mine. For the moment, I try to detect PCi devices in my computer. So, I have took an Intel PCi bridge datasheet and I have read it. I have tried to get device ID and vendor ID of device 0, function 0 on bus 0 with a simple piece of code. When I lauch it on my computer (there is not other OS in the computer, just grub), it returns me vendor ID 0x8086 (Intel) and device Id..... I do not remember the number, but it is good, it is my PCI bridge. When I do the same under bochs, the IA-32 emulator, it returns me 0xFFFF for both device ID and Vendor ID. For sure, I have forgotten to initialize something, required for probing PCI device, and my computer BIOS do this initialization for me and not bochs BIOS. So I would like to know if someone as already do such kind of low level probing on PCI bus, or if he know where I could get some doc on this subject (just on the initialization of PCI) Thank very much Sebastien |
#2
|
|||
|
|||
On Wed, 08 Oct 2003 21:43:03 +0200, Sebastien DI MERCURIO wrote:
Hello all, I'm trying to figure out how OSes are working by making mine. For the moment, I try to detect PCi devices in my computer. [snip] So I would like to know if someone as already do such kind of low level probing on PCI bus, or if he know where I could get some doc on this subject (just on the initialization of PCI) Thank very much Sebastien You must make sure that your emulator is not hiding or vitualizing any of your hardware devices. You may find what you want by looking into the Linux kernel source. There is an online cross-referenced source at http://lxr.linux.no. Have a look in the "Documentation" directory first. -- HTH Murray |
#3
|
|||
|
|||
"Sebastien DI MERCURIO" wrote in
: [cut] So I would like to know if someone as already do such kind of low level probing on PCI bus, or if he know where I could get some doc on this subject (just on the initialization of PCI) you can look at uniflash code, its pascal, but its better than nothing |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
all ide devices fried? | paranoid | General | 1 | September 14th 04 09:54 PM |
Are mains surge protectors needed in the UK? | Bagpuss | General | 259 | July 20th 04 08:19 PM |
P4C800 Deluxe freezes when accessing CD's | Tönne Bäcklinder | Asus Motherboards | 4 | May 13th 04 07:50 PM |
Can low level format but not High Level | Chukyo | Homebuilt PC's | 4 | December 31st 03 10:55 PM |
Low sound level from AIW | Ar Q | Ati Videocards | 0 | July 16th 03 03:23 AM |