First of all,thank u..
Then i have another doubt
if i given proper registry entries,it will load my driver properly,but how
can i communicate with the device
WRITE_PORT_UCHAR .....can i use these kinds of api's.Is there any chance of
error in general while communicating....

Thanking u

RE: hai luca by LucaCalligaris

LucaCalligaris
Thu Nov 18 05:39:02 CST 2004

The memory base address you get from the registry is a phyisical address:
you have to use TransBusAddrToStatic to have it statically mapped
to a vitual address your driver can manage. Once you get this pointer
you can use WRITE_REGISTER_XXX functions
to access to your device registries.


"Manoj" wrote:

> First of all,thank u..
> Then i have another doubt
> if i given proper registry entries,it will load my driver properly,but how
> can i communicate with the device
> WRITE_PORT_UCHAR .....can i use these kinds of api's.Is there any chance of
> error in general while communicating....
>
> Thanking u

RE: hai luca by Manoj

Manoj
Fri Nov 19 00:39:02 CST 2004

Thank You
But if i inserted a pci device ,will the cepc pci enumerator will detect
it .
i tried it,it is not detecting it,what should i do?

"Luca Calligaris" wrote:

> The memory base address you get from the registry is a phyisical address:
> you have to use TransBusAddrToStatic to have it statically mapped
> to a vitual address your driver can manage. Once you get this pointer
> you can use WRITE_REGISTER_XXX functions
> to access to your device registries.
>
>
> "Manoj" wrote:
>
> > First of all,thank u..
> > Then i have another doubt
> > if i given proper registry entries,it will load my driver properly,but how
> > can i communicate with the device
> > WRITE_PORT_UCHAR .....can i use these kinds of api's.Is there any chance of
> > error in general while communicating....
> >
> > Thanking u

RE: hai luca by LucaCalligaris

LucaCalligaris
Fri Nov 19 02:23:02 CST 2004

You say that you insert the PCI device in a PCI slot and CE PCI
enumerator does not detect it?
Have you inserted the registry entries
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Template\...]
for your device?


"Manoj" wrote:

> Thank You
> But if i inserted a pci device ,will the cepc pci enumerator will detect
> it .
> i tried it,it is not detecting it,what should i do?
>
> "Luca Calligaris" wrote:
>
> > The memory base address you get from the registry is a phyisical address:
> > you have to use TransBusAddrToStatic to have it statically mapped
> > to a vitual address your driver can manage. Once you get this pointer
> > you can use WRITE_REGISTER_XXX functions
> > to access to your device registries.
> >
> >
> > "Manoj" wrote:
> >
> > > First of all,thank u..
> > > Then i have another doubt
> > > if i given proper registry entries,it will load my driver properly,but how
> > > can i communicate with the device
> > > WRITE_PORT_UCHAR .....can i use these kinds of api's.Is there any chance of
> > > error in general while communicating....
> > >
> > > Thanking u