Fixed compilation error
[bochs-mirror.git] / iodev / biosdev.h
blob5b1b5980d2746d5d93280a7267c907cf365abdb7
1 ////////////////////////////////////////////////////////////////////////
2 // $Id: biosdev.h,v 1.8 2006/09/10 17:18:44 vruppert Exp $
3 /////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (C) 2002 MandrakeSoft S.A.
6 //
7 // MandrakeSoft S.A.
8 // 43, rue d'Aboukir
9 // 75002 Paris - France
10 // http://www.linux-mandrake.com/
11 // http://www.mandrakesoft.com/
13 // This library is free software; you can redistribute it and/or
14 // modify it under the terms of the GNU Lesser General Public
15 // License as published by the Free Software Foundation; either
16 // version 2 of the License, or (at your option) any later version.
18 // This library is distributed in the hope that it will be useful,
19 // but WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 // Lesser General Public License for more details.
23 // You should have received a copy of the GNU Lesser General Public
24 // License along with this library; if not, write to the Free Software
25 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #ifndef BX_IODEV_BIOSDEV_H
29 #define BX_IODEV_BIOSDEV_H
31 #define BX_BIOS_MESSAGE_SIZE 80
33 #if BX_USE_BIOS_SMF
34 # define BX_BIOS_SMF static
35 # define BX_BIOS_THIS theBiosDevice->
36 #else
37 # define BX_BIOS_SMF
38 # define BX_BIOS_THIS this->
39 #endif
41 class bx_biosdev_c : public bx_devmodel_c {
42 public:
43 bx_biosdev_c();
44 virtual ~bx_biosdev_c();
46 virtual void init(void);
47 virtual void reset(unsigned type) {}
49 private:
51 static void write_handler(void *this_ptr, Bit32u address, Bit32u value, unsigned io_len);
52 #if !BX_USE_BIOS_SMF
53 void write(Bit32u address, Bit32u value, unsigned io_len);
54 #endif
56 struct {
57 Bit8u bios_message[BX_BIOS_MESSAGE_SIZE];
58 unsigned int bios_message_i;
59 bx_bool bios_panic_flag;
61 Bit8u vgabios_message[BX_BIOS_MESSAGE_SIZE];
62 unsigned int vgabios_message_i;
63 bx_bool vgabios_panic_flag;
64 } s; // state information
67 #endif