Re: writing/finding pci bar0



Tim Roberts wrote:


No. The BAR addresses are assigned by the BIOS at boot time, and possibly
modified later by the Linux kernel.

i understand the bios sets the five base addr's initially. but if the
kernel can change
them, why can't i (using setpci for example)?


when i look a the output of lspci -bvx, the value stored at
offset 0x10 is one higher than the actual base address. why
is this?

The low-order bit of the BAR registers say whether the address is in memory
space (0) or I/O port space (1). Parallel ports use I/O ports. That's why
you're able to tickle it from user mode (using outpb, right?). If it was a
memory address, you'd need to use a kernel driver.

interesting. after all the digging i've done, i did not come across
that little
detail. writing to the ports with outb.


--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

.



Relevant Pages

  • Re: [PATCH] I/O space boot parameter
    ... have issues with the 64k I/O space limit. ... The ES7000 has a BIOS option ... the kernel sees the BARs on the ... Ideally the way to handle this case is to not that the BAR is not ...
    (Linux-Kernel)
  • Re: [Linux-fbdev-devel] Generic VESA framebuffer driver and Video card BOOT?
    ... >> kernel image or that the image is corrupt or that hardware diagnostics failed. ... Well being able to use this BIOS emulator logic to bring up the primary ... the same as Open Firmware really). ... Actually there is nothing wrong with the x86 BIOS from the perspective of ...
    (Linux-Kernel)
  • Windows CE 6.0 Hangs / Reboots
    ... CE Ethernet Bootloader found 32Bit BIOS Entry master_bios32=a00fae20 ... GetRoutingOption, found ROM version for Routing table. ... Looking for rom chain ... Old or invalid version stamp in kernel structures - starting clean! ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Grub
    ... But beware of what the bios exactly is!! ... It asks the disk ... Grub, for example, or Windows bootloader, or whatever... ... there is no kernel to provide access to them. ...
    (Fedora)
  • Windows CE 6.0 Hangs / Reboots
    ... CE Ethernet Bootloader found 32Bit BIOS Entry master_bios32=a00fae20 ... GetRoutingOption, found ROM version for Routing table. ... Looking for rom chain ... Old or invalid version stamp in kernel structures - starting clean! ...
    (microsoft.public.windowsce.embedded)