Bochs/bochs/iodev/display/ddc.h
Volker Ruppert e23a930864 Added "ddc" parameter to the "vga" option to make it possible either to disable
the DDC feature or to read the monitor EDID from file. By the default the
builtin "Bochs Screen" EDID is used.
2020-03-21 18:00:02 +00:00

53 lines
1.5 KiB
C++

////////////////////////////////////////////////////////////////////////
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2018-2020 The Bochs Project
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef BX_DISPLAY_DDC_H
#define BX_DISPLAY_DDC_H
class bx_ddc_c : public logfunctions {
public:
bx_ddc_c();
virtual ~bx_ddc_c();
Bit8u read(void);
void write(bx_bool dck, bx_bool dda);
private:
Bit8u get_edid_byte(void);
struct {
Bit8u ddc_mode;
bx_bool DCKhost;
bx_bool DDAhost;
bx_bool DDAmon;
Bit8u ddc_stage;
Bit8u ddc_bitshift;
bx_bool ddc_ack;
bx_bool ddc_rw;
Bit8u ddc_byte;
Bit8u edid_index;
Bit8u edid_data[128];
} s; // state information
};
#endif