e647f7b120
- Basic I2C implementation for DDC2B support. - Added VESA EDID structure (values from a patch for the LGPL'd VGABIOS). - Windows now detecting plug&play monitor "Bochs Screen" if an original VGABIOS image is used (Cirrus PCI / Voodoo Banshee). - TODO: Add this feature in the Cirrus version of the LGPL'd VGABIOS.
51 lines
1.4 KiB
C++
51 lines
1.4 KiB
C++
////////////////////////////////////////////////////////////////////////
|
|
// $Id$
|
|
/////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2018 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 {
|
|
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;
|
|
} s; // state information
|
|
};
|
|
|
|
#endif
|