mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-15 21:58:24 +00:00
@ -943,20 +943,19 @@ struct Ahci::Port : private Port_base
|
||||
mmio.write<Port_mmio::Fbu>((uint32_t)(phys >> 32));
|
||||
}
|
||||
|
||||
typedef Port_mmio::Is Is;
|
||||
typedef Port_mmio::Ie Ie;
|
||||
typedef Port_mmio::Cmd Cmd;
|
||||
typedef Port_mmio::Tfd Tfd;
|
||||
typedef Port_mmio::Ssts Ssts;
|
||||
typedef Port_mmio::Serr Serr;
|
||||
typedef Port_mmio::Sctl Sctl;
|
||||
typedef Port_mmio::Sact Sact;
|
||||
typedef Port_mmio::Ci Ci;
|
||||
|
||||
typedef Port_mmio::Register_set::Polling_timeout Polling_timeout;
|
||||
typedef Port_mmio::Register_set::Attempts Attempts;
|
||||
typedef Port_mmio::Register_set::Microseconds Microseconds;
|
||||
using Is = Port_mmio::Is;
|
||||
using Ie = Port_mmio::Ie;
|
||||
using Cmd = Port_mmio::Cmd;
|
||||
using Tfd = Port_mmio::Tfd;
|
||||
using Ssts = Port_mmio::Ssts;
|
||||
using Serr = Port_mmio::Serr;
|
||||
using Sctl = Port_mmio::Sctl;
|
||||
using Sact = Port_mmio::Sact;
|
||||
using Ci = Port_mmio::Ci;
|
||||
|
||||
using Polling_timeout = Port_mmio::Register_set::Polling_timeout;
|
||||
using Attempts = Port_mmio::Register_set::Attempts;
|
||||
using Microseconds = Port_mmio::Register_set::Microseconds;
|
||||
|
||||
void ack_irq(Port_mmio &mmio)
|
||||
{
|
||||
|
@ -145,8 +145,8 @@ class Ata::Protocol : public Ahci::Protocol, Noncopyable
|
||||
Util::Slots<Request, 32> _slots { };
|
||||
unsigned _slot_states = 0;
|
||||
|
||||
typedef String<Identity::Serial_number> Serial_string;
|
||||
typedef String<Identity::Model_number> Model_string;
|
||||
using Serial_string = String<Identity::Serial_number>;
|
||||
using Model_string = String<Identity::Model_number>;
|
||||
|
||||
Constructible<Identity> _identity { };
|
||||
bool _writeable { false };
|
||||
|
@ -228,7 +228,7 @@ struct Audio_out::Root_policy
|
||||
|
||||
|
||||
namespace Audio_out {
|
||||
typedef Root_component<Session_component, Root_policy> Root_component;
|
||||
using Root_component = Root_component<Session_component, Root_policy>;
|
||||
}
|
||||
|
||||
|
||||
@ -273,7 +273,7 @@ struct Audio_out::Main
|
||||
|
||||
Main(Genode::Env &env) : env(env)
|
||||
{
|
||||
typedef Genode::String<32> Dev;
|
||||
using Dev = Genode::String<32>;
|
||||
Dev const dev = config.xml().attribute_value("alsa_device", Dev("hw"));
|
||||
|
||||
/* init ALSA */
|
||||
|
@ -178,7 +178,7 @@ class Virtio_fb::Driver
|
||||
static const bool has_data_payload = true;
|
||||
};
|
||||
|
||||
typedef Virtio::Queue<Control_header, Control_queue_traits> Control_queue;
|
||||
using Control_queue = Virtio::Queue<Control_header, Control_queue_traits>;
|
||||
|
||||
class Fb_memory_resource : public Platform::Dma_buffer
|
||||
{
|
||||
|
@ -122,8 +122,8 @@ class Virtio_input::Driver
|
||||
|
||||
enum { QUEUE_SIZE = 64, QUEUE_ELM_SIZE = sizeof(Event) };
|
||||
|
||||
typedef Virtio::Queue<Event, Events_queue_traits> Events_virtqueue;
|
||||
typedef Virtio::Queue<Event, Status_queue_traits> Status_virtqueue;
|
||||
using Events_virtqueue = Virtio::Queue<Event, Events_queue_traits>;
|
||||
using Status_virtqueue = Virtio::Queue<Event, Status_queue_traits>;
|
||||
|
||||
Driver(Driver const &);
|
||||
Driver &operator = (Driver const &);
|
||||
|
@ -143,8 +143,8 @@ class Virtio_nic::Device : Noncopyable
|
||||
static const bool has_data_payload = true;
|
||||
};
|
||||
|
||||
typedef Virtio::Queue<Virtio_net_header, Rx_queue_traits> Rx_queue_type;
|
||||
typedef Virtio::Queue<Virtio_net_header, Tx_queue_traits> Tx_queue_type;
|
||||
using Rx_queue_type = Virtio::Queue<Virtio_net_header, Rx_queue_traits>;
|
||||
using Tx_queue_type = Virtio::Queue<Virtio_net_header, Tx_queue_traits>;
|
||||
|
||||
bool const _verbose;
|
||||
Virtio::Device &_device;
|
||||
|
@ -25,7 +25,7 @@ struct Ps2::Led_state
|
||||
{
|
||||
Genode::Env &_env;
|
||||
|
||||
typedef Genode::String<32> Name;
|
||||
using Name = Genode::String<32>;
|
||||
|
||||
Name const _name;
|
||||
|
||||
@ -37,8 +37,8 @@ struct Ps2::Led_state
|
||||
|
||||
void update(Genode::Xml_node config, Genode::Signal_context_capability sigh)
|
||||
{
|
||||
typedef Genode::String<32> Attr;
|
||||
typedef Genode::String<16> Value;
|
||||
using Attr = Genode::String<32>;
|
||||
using Value = Genode::String<16>;
|
||||
|
||||
Attr const attr(_name, "_led");
|
||||
Value const value = config.attribute_value(attr.string(), Value());
|
||||
|
@ -35,7 +35,7 @@ namespace Uart {
|
||||
class Session_component;
|
||||
class Root;
|
||||
|
||||
typedef Root_component<Session_component, Multiple_clients> Root_component;
|
||||
using Root_component = Root_component<Session_component, Multiple_clients>;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user