Connect two devices to vbus
Pierre Larus <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.devel |
|---|---|
| Message-ID | <CAJPtDgrC4TyMYvdadXJFhvwWH5iXW33LubUBNTyKuSSZ5MxjLg@mail.gmail.com> |
Hi,
In my project, I have defined two io memory ressources as devices. I want
connect these two devices to vbus.
"io_bus.gpt2" is actually connected to vbus. But is it possible to also
connect "io_bus.intc" to vbus ?
local name = "l4rtos";
local DeviceFile = "beagle.devs"
local IOFile = "beagle.io"
local loader = L4.default_loader;
local io_bus =
{
gpt2 = loader:new_channel();
intc = loader:new_channel();
};
loader:start({
caps = {
gpt2 = io_bus.gpt2:svr(),
intc = io_bus.intc:svr(),
icu = L4.Env.icu,
sigma0 = L4.cast(L4.Proto.Factory,
L4.Env.sigma0):create(L4.Proto.Sigma0),
},
},
"rom/io rom/" .. DeviceFile .. " rom/" .. IOFile);
loader:start(
{ caps = {
vbus = io_bus.gpt2,
icu = L4.Env.icu,
log = L4.Env.log:m("rws"),
},
},
"rom/" .. name);
Regards,
Pierre Larus
_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers