mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 15:44:02 +00:00
parent
604d6bf567
commit
29079b2ac8
@ -293,7 +293,7 @@ class Audio_in::Session : public Genode::Session
|
||||
*/
|
||||
static const char *service_name() { return "Audio_in"; }
|
||||
|
||||
enum { CAP_QUOTA = 4 };
|
||||
static constexpr unsigned CAP_QUOTA = 4;
|
||||
|
||||
/**
|
||||
* Return stream of this session, see 'Stream' above
|
||||
|
@ -314,7 +314,7 @@ class Audio_out::Session : public Genode::Session
|
||||
*/
|
||||
static const char *service_name() { return "Audio_out"; }
|
||||
|
||||
enum { CAP_QUOTA = 4 };
|
||||
static constexpr unsigned CAP_QUOTA = 4;
|
||||
|
||||
/**
|
||||
* Return stream of this session, see 'Stream' above
|
||||
|
@ -182,7 +182,7 @@ struct Block::Session : public Genode::Session
|
||||
*/
|
||||
static const char *service_name() { return "Block"; }
|
||||
|
||||
enum { CAP_QUOTA = 5 };
|
||||
static constexpr unsigned CAP_QUOTA = 5;
|
||||
|
||||
virtual ~Session() { }
|
||||
|
||||
|
@ -47,7 +47,7 @@ struct Capture::Session : Genode::Session
|
||||
* session-object allocation, a session capability, and a dataspace
|
||||
* capability for the pixel buffer.
|
||||
*/
|
||||
enum { CAP_QUOTA = 3 };
|
||||
static constexpr unsigned CAP_QUOTA = 3;
|
||||
|
||||
/**
|
||||
* Return number of bytes needed for pixel buffer of specified size
|
||||
|
@ -33,7 +33,7 @@ struct Event::Session : Genode::Session
|
||||
* session-object allocation, a dataspace capability for the event
|
||||
* buffer, and its session capability.
|
||||
*/
|
||||
enum { CAP_QUOTA = 3 };
|
||||
static constexpr unsigned CAP_QUOTA = 3;
|
||||
|
||||
|
||||
/*********************
|
||||
|
@ -330,7 +330,7 @@ struct File_system::Session : public Genode::Session
|
||||
*/
|
||||
static const char *service_name() { return "File_system"; }
|
||||
|
||||
enum { CAP_QUOTA = 12 };
|
||||
static constexpr unsigned CAP_QUOTA = 12;
|
||||
|
||||
virtual ~Session() { }
|
||||
|
||||
|
@ -31,7 +31,7 @@ struct Gpio::Session : Genode::Session
|
||||
*/
|
||||
static const char *service_name() { return "Gpio"; }
|
||||
|
||||
enum { CAP_QUOTA = 2 };
|
||||
static constexpr unsigned CAP_QUOTA = 2;
|
||||
|
||||
enum Direction { IN, OUT };
|
||||
|
||||
|
@ -112,7 +112,6 @@ struct Gpu::Virtual_address
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Gpu session interface
|
||||
*/
|
||||
@ -124,12 +123,15 @@ struct Gpu::Session : public Genode::Session
|
||||
struct Conflicting_id : Genode::Exception { };
|
||||
struct Mapping_vram_failed : Genode::Exception { };
|
||||
|
||||
enum { REQUIRED_QUOTA = 1024 * 1024, CAP_QUOTA = 32, };
|
||||
static constexpr Genode::size_t REQUIRED_QUOTA = 1024*1024;
|
||||
|
||||
static constexpr unsigned CAP_QUOTA = 32;
|
||||
|
||||
static const char *service_name() { return "Gpu"; }
|
||||
|
||||
virtual ~Session() { }
|
||||
|
||||
|
||||
/***********************
|
||||
** Session interface **
|
||||
***********************/
|
||||
|
@ -32,7 +32,7 @@ struct I2c::Session : public Genode::Session
|
||||
*/
|
||||
static char const *service_name() { return "I2c"; }
|
||||
|
||||
enum { CAP_QUOTA = 2 };
|
||||
static constexpr unsigned CAP_QUOTA = 2;
|
||||
|
||||
/**
|
||||
* Exception thrown in case of a bus error
|
||||
|
@ -62,7 +62,7 @@ struct Loader::Session : Genode::Session
|
||||
*/
|
||||
static const char *service_name() { return "Loader"; }
|
||||
|
||||
enum { CAP_QUOTA = 2 };
|
||||
static constexpr unsigned CAP_QUOTA = 2;
|
||||
|
||||
virtual ~Session() { }
|
||||
|
||||
|
@ -77,7 +77,7 @@ struct Nic::Session : Genode::Session
|
||||
* rx and tx, and four signal context capabilities for the data-flow
|
||||
* signals.
|
||||
*/
|
||||
enum { CAP_QUOTA = 8 };
|
||||
static constexpr unsigned CAP_QUOTA = 8;
|
||||
|
||||
virtual ~Session() { }
|
||||
|
||||
|
@ -36,7 +36,7 @@ struct Pin_control::Session : Genode::Session
|
||||
* A pin-control session consumes a dataspace capability for the server's
|
||||
* session-object allocation and its session capability.
|
||||
*/
|
||||
enum { CAP_QUOTA = 2 };
|
||||
static constexpr unsigned CAP_QUOTA = 2;
|
||||
|
||||
virtual void state(bool) = 0;
|
||||
|
||||
|
@ -36,7 +36,7 @@ struct Pin_state::Session : Genode::Session
|
||||
* A pin-state session consumes a dataspace capability for the server's
|
||||
* session-object allocation and its session capability.
|
||||
*/
|
||||
enum { CAP_QUOTA = 2 };
|
||||
static constexpr unsigned CAP_QUOTA = 2;
|
||||
|
||||
virtual bool state() const = 0;
|
||||
|
||||
|
@ -57,7 +57,7 @@ struct Platform::Session : Genode::Session
|
||||
*/
|
||||
static const char *service_name() { return "Platform"; }
|
||||
|
||||
enum { CAP_QUOTA = 6 };
|
||||
static constexpr unsigned CAP_QUOTA = 6;
|
||||
|
||||
virtual ~Session() { }
|
||||
|
||||
|
@ -60,7 +60,7 @@ struct Report::Session : Genode::Session
|
||||
* session-object allocation, the session capability, and a dataspace
|
||||
* capability for the report buffer.
|
||||
*/
|
||||
enum { CAP_QUOTA = 3 };
|
||||
static constexpr unsigned CAP_QUOTA = 3;
|
||||
|
||||
typedef Session_client Client;
|
||||
|
||||
|
@ -55,7 +55,7 @@ struct Rtc::Session : Genode::Session
|
||||
*/
|
||||
static const char *service_name() { return "Rtc"; }
|
||||
|
||||
enum { CAP_QUOTA = 2 };
|
||||
static constexpr unsigned CAP_QUOTA = 2;
|
||||
|
||||
|
||||
/***********************
|
||||
|
@ -34,7 +34,7 @@ struct Terminal::Session : Genode::Session
|
||||
* session-object allocation, its session capability, and a dataspace
|
||||
* capability for the communication buffer.
|
||||
*/
|
||||
enum { CAP_QUOTA = 3 };
|
||||
static constexpr unsigned CAP_QUOTA = 3;
|
||||
|
||||
class Size
|
||||
{
|
||||
|
@ -72,7 +72,7 @@ struct Uplink::Session : Genode::Session
|
||||
* rx and tx, and four signal context capabilities for the data-flow
|
||||
* signals.
|
||||
*/
|
||||
enum { CAP_QUOTA = 8 };
|
||||
static constexpr unsigned CAP_QUOTA = 8;
|
||||
|
||||
virtual ~Session() { }
|
||||
|
||||
|
@ -181,7 +181,7 @@ struct Usb::Session : public Genode::Session
|
||||
*/
|
||||
static const char *service_name() { return "Usb"; }
|
||||
|
||||
enum { CAP_QUOTA = 5 };
|
||||
static constexpr unsigned CAP_QUOTA = 5;
|
||||
|
||||
/**
|
||||
* Send from the server to the client upon device state change
|
||||
|
Loading…
x
Reference in New Issue
Block a user