Gpio::Connection accept a session label

This allows a component to access GPIOs from different banks of
an SOC.

Issue genodelabs#5273
This commit is contained in:
Pirmin Duss 2024-07-05 12:06:27 +02:00 committed by Christian Helmuth
parent 09c40688e1
commit 96ef527436

View File

@ -24,9 +24,9 @@ namespace Gpio { struct Connection; }
struct Gpio::Connection : Genode::Connection<Session>, Session_client
{
Connection(Genode::Env &env, unsigned long gpio_pin)
Connection(Genode::Env &env, unsigned long gpio_pin, Label label = "")
:
Genode::Connection<Session>(env, Label(), Ram_quota { 8*1024 },
Genode::Connection<Session>(env, label, Ram_quota { 8*1024 },
Args("gpio=", gpio_pin)),
Session_client(cap())
{ }