Re: LPC bus drive for windows CE 6



I have got a real bus because un the LPC I have got some devices. It is a
"static" bus because all the present devices will be always in the same
place (address, interrupt....). The FPGA get/set data from external devices
and allow the user application that runs on the windows CE 6 to get/set this
data using the LPC bus. So I have to read/write FPGA register through the
LPC BUC. What do you think about ?

L


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> ha scritto nel messaggio
news:ec%23kx4cuIHA.1236@xxxxxxxxxxxxxxxxxxxxxxx
It's an architectural question. For a 'real' bus, where different devices
can be connected, think USB or PCI, you'd usually want to have a bus
driver, which would know how to figure out what's plugged into the bus,
what interrupts are available, where the hardware will be mapped in the
memory map, etc. and will cause the actual driver for each device found on
that bus to be loaded.

In this case, if this FPGA will always be there and nothing else ever
will, there's no real reason to build a bus driver. Because of that,
you'll probably simply create a suitable driver (again, knowing that it's
an FPGA is not of *any* help to tell you what sort of a driver you need),
add appropriate registry entries to your device to load the driver as a
BuiltIn driver, etc. Any 'stream interface driver' sample *might* be
useful as a sample, but without knowing what the FPGA does, we can't say
what you should do for sure.

Paul T.

"Loz" <mauro.aleottiNOSPAM@xxxxxxxxxx> wrote in message
news:g0s8s5$p7r$1@xxxxxxxxxxxxxx
Thanks for your answer,

The device on the LPC bus is a generic FPGA. So I have to read and write
a set of FPGA registers. Do you think that reading PCI samples driver can
help me?

L


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> ha scritto nel messaggio
news:OpzaZRcuIHA.5096@xxxxxxxxxxxxxxxxxxxxxxx
There aren't going to be any examples for that specific bus. I don't
know anything about the bus architecture, either, but you can look at
how the PCI bus is handled in the Windows CE source code to see what you
can do. As for the driver for the specific device, that will depend on
what sort of device it is. If it's a display adapter, it should be
clear that reading a sample network driver isn't of any value. If it's
just some random device that wouldn't have a standard driver type for
Windows CE (not display, not network, not keyboard or mouse, not serial,
etc.), then you can look at any 'stream interface driver' and get an
idea of what sort of things you might do.

Paul T.

"Loz" <mauro.aleottiNOSPAM@xxxxxxxxxx> wrote in message
news:g0s0d3$lja$1@xxxxxxxxxxxxxx
Hi,

I'm new to windows CE. I have got a board based on Intel Celeron with
the LPC Bus. I have to write a driver for a custom device on the LPC
bus. Where I can find some exemples and/or hints?

regards

L










.



Relevant Pages