Re: Question about PCIbus.dll in Windows CE 6.0
- From: "Dean Ramsier" <ramsiernospam@xxxxxxxxxx>
- Date: Wed, 28 Mar 2007 11:32:58 -0400
The PCI bus driver is included in the image as a module and fixed up to run
in kernel space only because it is a driver. Your application can't load
the dll because it is not in a format that is loadable. You need to
remember this dll is actually a driver that is has already been loaded by
the OS. It's not meant a a library of functions that any app can load and
access.
--
Dean Ramsier - eMVP
BSQUARE Corporation
"Don" <Don@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ED3539FF-0F57-4A95-8BC2-AF0C0B1453BB@xxxxxxxxxxxxxxxx
Hi Dean,
One more thing to add:
I also get the following error displayed in the Windows CE Debug window
when
I try and run my console app that calls Myfunc()
!!ERROR! Trying to load DLL 'pcibus.dll' Fixed-up kernel address into user
app
!!ERROR! CANNOT SPECIFY 'K' FLAG BIB FILE
--
Don
"Dean Ramsier" wrote:
Yes, this is the PCIBus driver provided by MS. Note that it might not be
the one used by your device since your BSP could have a cloned/modified
version itself.
Don't make changes to this directory. If you want to modify it, clone
(copy) it to your BSP and make the changes there. To answer your
question,
just doing a sysgen would not be sufficient to get the changes. You
would
have to also build the directory, or do a Build and Sysgen. But don't do
that, it could cause you problems and is unnecessary.
CreatePCIBus is called by Enumerate, which is called by Init, which is
the
driver entry point. At least, that's the case in CE5, I don't have CE6
in
front of me.
--
Dean Ramsier - eMVP
BSQUARE Corporation
"Don" <Don@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A8C4B03C-57B3-47BC-A810-A7CDF6D182A6@xxxxxxxxxxxxxxxx
Hi,
I am trying to Write to a PCI card I have attached to my Mini-ITX M11
motherboard running Windows CE 6.0. I have been reading the
documentation.
In particular I have a question about the following statement
The PCI Bus driver is in %_WINCEROOT%\Public\Common\Oak\Drivers\PCIbus.
It
is responsible for enumerating the PCI bus and loading device drivers
for
all
PCI devices it finds and recognizes on the bus.
I am assuming that this is the source code for PCIbus.dll. Let me know
if
I
am wrong. If I make changes to the code in this directory would they
be
in
PCIbus.dll the next time I did a clean sysgen. If this is true. Then
what
calles the function
BOOL CreatePciBus(LPCTSTR lpActiveRegPath, LPCTSTR lpInstanceRegPath).
Not sure if I am on the righ track here. I would appreciate anyones
help.
--
Don
.
- Follow-Ups:
- References:
- Re: Question about PCIbus.dll in Windows CE 6.0
- From: Dean Ramsier
- Re: Question about PCIbus.dll in Windows CE 6.0
- Prev by Date: Re: Is there a function to cause a system reboot?
- Next by Date: Re: Question about PCIbus.dll in Windows CE 6.0
- Previous by thread: Re: Question about PCIbus.dll in Windows CE 6.0
- Next by thread: Re: Question about PCIbus.dll in Windows CE 6.0
- Index(es):
Relevant Pages
|