Fixed compilation error
[bochs-mirror.git] / iodev / extfpuirq.h
blob1cbd6ffcf5550f1c972c4bab301b2335b6f3a25c
1 /////////////////////////////////////////////////////////////////////////
2 // $Id: extfpuirq.h,v 1.4 2006/03/07 21:11:16 sshwarts 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
27 #ifndef BX_IODEV_EXTFPUIRQ_H
28 #define BX_IODEV_EXTFPUIRQ_H
31 #if BX_USE_EFI_SMF
32 # define BX_EXTFPUIRQ_SMF static
33 # define BX_EXTFPUIRQ_THIS theExternalFpuIrq->
34 #else
35 # define BX_EXTFPUIRQ_SMF
36 # define BX_EXTFPUIRQ_THIS this->
37 #endif
40 class bx_extfpuirq_c : public bx_devmodel_c {
41 public:
42 bx_extfpuirq_c();
43 virtual ~bx_extfpuirq_c();
44 virtual void init(void);
45 virtual void reset(unsigned type);
47 private:
49 static void write_handler(void *this_ptr, Bit32u address, Bit32u value, unsigned io_len);
50 #if !BX_USE_EFI_SMF
51 void write(Bit32u address, Bit32u value, unsigned io_len);
52 #endif
55 #endif