8254x Intel Driver
Posted: Fri May 27, 2011 10:34 am
Hello all,
I'm working on OS development for my school, and I plan to integrate basic Ethernet features. I wrote a PCI driver for bus enumeration and I detect 82546EB card successfully. Now, I try to read BAR0 in order to know the address where card registers are mapped. BAR0 is MMIO (LSB is zero), and I read the value 0xF6EC0000 (depends on material). Then, I try to read a register from this address but I got a page fault exception. Maybe I missed something, in this case can you tell me please?
I already took a look at http://wiki.osdev.org/Intel_8254x and at Intel official documentation for the cards family, but my code doesn't work when reading/writing..
Could I for example change the address in BAR0 ? Maybe it could address the problem...?
If you have any additional resources, don't hesitate, give me them
Thx very much
I'm working on OS development for my school, and I plan to integrate basic Ethernet features. I wrote a PCI driver for bus enumeration and I detect 82546EB card successfully. Now, I try to read BAR0 in order to know the address where card registers are mapped. BAR0 is MMIO (LSB is zero), and I read the value 0xF6EC0000 (depends on material). Then, I try to read a register from this address but I got a page fault exception. Maybe I missed something, in this case can you tell me please?
I already took a look at http://wiki.osdev.org/Intel_8254x and at Intel official documentation for the cards family, but my code doesn't work when reading/writing..
Could I for example change the address in BAR0 ? Maybe it could address the problem...?
If you have any additional resources, don't hesitate, give me them
Thx very much