~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Bochs x86 Emulator
bochs/iodev/biosdev.h

Version: ~ [ SVN-2014-01-05 ] ~ [ 2.6.2 ] ~

** Warning: Cannot open xref database.

1 //////////////////////////////////////////////////////////////////////// 2 // $Id: biosdev.h 10209 2011-02-24 22:05:47Z sshwarts $ 3 ///////////////////////////////////////////////////////////////////////// 4 // 5 // Copyright (C) 2002-2009 The Bochs Project 6 // 7 // This library is free software; you can redistribute it and/or 8 // modify it under the terms of the GNU Lesser General Public 9 // License as published by the Free Software Foundation; either 10 // version 2 of the License, or (at your option) any later version. 11 // 12 // This library is distributed in the hope that it will be useful, 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 // Lesser General Public License for more details. 16 // 17 // You should have received a copy of the GNU Lesser General Public 18 // License along with this library; if not, write to the Free Software 19 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 21 22 #ifndef BX_IODEV_BIOSDEV_H 23 #define BX_IODEV_BIOSDEV_H 24 25 #define BX_BIOS_MESSAGE_SIZE 80 26 27 #if BX_USE_BIOS_SMF 28 # define BX_BIOS_SMF static 29 # define BX_BIOS_THIS theBiosDevice-> 30 #else 31 # define BX_BIOS_SMF 32 # define BX_BIOS_THIS this-> 33 #endif 34 35 class bx_biosdev_c : public bx_devmodel_c { 36 public: 37 bx_biosdev_c(); 38 virtual ~bx_biosdev_c(); 39 40 virtual void init(void); 41 virtual void reset(unsigned type) {} 42 43 private: 44 45 static void write_handler(void *this_ptr, Bit32u address, Bit32u value, unsigned io_len); 46 #if !BX_USE_BIOS_SMF 47 void write(Bit32u address, Bit32u value, unsigned io_len); 48 #endif 49 50 struct { 51 Bit8u bios_message[BX_BIOS_MESSAGE_SIZE]; 52 unsigned int bios_message_i; 53 bx_bool bios_panic_flag; 54 55 Bit8u vgabios_message[BX_BIOS_MESSAGE_SIZE]; 56 unsigned int vgabios_message_i; 57 bx_bool vgabios_panic_flag; 58 } s; // state information 59 }; 60 61 #endif 62

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.