summaryrefslogtreecommitdiff
path: root/kms++/inc
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2019-01-11 12:09:40 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2019-01-14 09:27:28 +0200
commit82b200e00c2c7dbeae108b21b2bba39305300d4a (patch)
tree9b2c3970fa97256a15ce520fdb0da0d4682036ac /kms++/inc
parent6126525e3921d2ccc54ca393e6a24d4bd0f08429 (diff)
card: add open_modesetting_card()
Add open_modesetting_card() which iterates the DRM cards and returns the first one that has crtcs and connectors. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/inc')
-rw-r--r--kms++/inc/kms++/card.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kms++/inc/kms++/card.h b/kms++/inc/kms++/card.h
index 72111f1..4b0d877 100644
--- a/kms++/inc/kms++/card.h
+++ b/kms++/inc/kms++/card.h
@@ -3,6 +3,7 @@
#include <cstdint>
#include <vector>
#include <map>
+#include <memory>
#include "decls.h"
#include "pipeline.h"
@@ -13,6 +14,8 @@ class Card
{
friend class Framebuffer;
public:
+ static std::unique_ptr<Card> open_modesetting_card();
+
Card();
Card(const std::string& dev_path);
Card(const std::string& driver, uint32_t idx);