hi,
how does a typical driver writes address on pci bus, i mean if i'm
targeting the address 01h
then could it be, 00000001h (32-bit AD bus in pCI).

Thx.

Re: writing on Base Address Registers by Tim

Tim
Thu Nov 24 23:37:10 CST 2005

"krby_xtrm" <kerby.martino@gmail.com> wrote:
>
> how does a typical driver writes address on pci bus, i mean if i'm
>targeting the address 01h
>then could it be, 00000001h (32-bit AD bus in pCI).

Address 1 on the PCI bus is part of the vector for INT 0.

If you mean address 1 within some device's address space, then your driver
will get resources in its AddDevice handler. The physical addresses from
the PCI BAR register will be given to the driver there. Your driver will
map that into kernel space, and access it through regular memory pointers.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.