About some unimplement functions in DDE

View: New views
3 Messages — Rating Filter:   Alert me  

About some unimplement functions in DDE

by Jingyi WANG :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi~
When I run a device driver on DDE(pkg/dde/linux26/example), the result shows up that pci_set_master() and pci_disable_device is unimplement.
Could you give me some advice on how to make these functions work?



_______________________________________________
l4-hackers mailing list
l4-hackers@...
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers

Re: About some unimplement functions in DDE

by Björn Döbel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Jingyi WANG wrote:
> Hi~When I run a device driver on DDE(pkg/dde/linux26/example), the result
> shows up that pci_set_master() and pci_disable_device is unimplement.
> Could you give me some advice on how to make these functions work?

My first try would be to reuse the functions from the Linux kernel if
you really need them.

Cheers,
Bjoern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrdddwACgkQP5ijxgQLUNmQvgCeKe7wAd+cySRgFrH7/yZs15uZ
7AkAnR8eTfj8ENtePEEhr3Fr0HDlCI1Y
=wQwU
-----END PGP SIGNATURE-----


_______________________________________________
l4-hackers mailing list
l4-hackers@...
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers

Re: About some unimplement functions in DDE

by Christian Helmuth-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Tue, Oct 20, 2009 at 10:33:34AM +0200, Björn Döbel wrote:
> Hello,
>
> Jingyi WANG wrote:
> > Hi~When I run a device driver on DDE(pkg/dde/linux26/example), the result
> > shows up that pci_set_master() and pci_disable_device is unimplement.
> > Could you give me some advice on how to make these functions work?

IMO it's easy to implement these functions. Just call

* ddekit_pci_set_master
* ddekit_pci_enable_device

with appropriate parameters in
pkg/dde/linux26/lib/src/arch/l4/pci.c:122 ff.

> My first try would be to reuse the functions from the Linux kernel if
> you really need them.

This may also work if l4io still does not protect the PCI
configuration space properly ;-)

Cheers
--
Christian Helmuth
Genode Labs

http://www.genode-labs.com/ · http://genode.org/

_______________________________________________
l4-hackers mailing list
l4-hackers@...
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers