summaryrefslogtreecommitdiff
path: root/Kernel/Graphics/Definitions.h
blob: b9d33c67eb5458278b274dd1e7328cd6f3ad8be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Copyright (c) 2021-2022, Liav A. <liavalb@hotmail.co.il>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Types.h>

namespace Kernel::Graphics {

struct Timings {
    size_t blanking_start() const
    {
        return active;
    }
    size_t blanking_end() const
    {
        return total;
    }

    size_t active;
    size_t sync_start;
    size_t sync_end;
    size_t total;
};

struct Modesetting {
    size_t pixel_clock_in_khz;
    Timings horizontal;
    Timings vertical;
};
// Note: Address 0x50 is expected to be the DDC2 (EDID) i2c address.
static constexpr u8 ddc2_i2c_address = 0x50;

}