From 9916712a62169606d845510028a3ea6f84bd442f Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 11 Jun 2016 21:46:24 +0300 Subject: kms++: organize into subdirs --- kms++/videomode.h | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 kms++/videomode.h (limited to 'kms++/videomode.h') diff --git a/kms++/videomode.h b/kms++/videomode.h deleted file mode 100644 index f9abaf9..0000000 --- a/kms++/videomode.h +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include -#include -#include - -#include "blob.h" - -namespace kms -{ - -struct Videomode -{ - std::string name; - - uint32_t clock; - uint16_t hdisplay, hsync_start, hsync_end, htotal, hskew; - uint16_t vdisplay, vsync_start, vsync_end, vtotal, vscan; - - uint32_t vrefresh; - - uint32_t flags; // DRM_MODE_FLAG_* - uint32_t type; // DRM_MODE_TYPE_* - - std::unique_ptr to_blob(Card& card) const; - - uint16_t hfp() const { return hsync_start - hdisplay; } - uint16_t hsw() const { return hsync_end - hsync_start; } - uint16_t hbp() const { return htotal - hsync_end; } - - uint16_t vfp() const { return vsync_start - vdisplay; } - uint16_t vsw() const { return vsync_end - vsync_start; } - uint16_t vbp() const { return vtotal - vsync_end; } -}; - -} -- cgit v1.2.3