1 /////////////////////////////////////////////////////////////////////////
2 // $Id: cdrom_osx.h 14116 2021-01-31 15:44:39Z vruppert $
3 /////////////////////////////////////////////////////////////////////////
4 //
5 //  Copyright (C) 2002-2021  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 // Header file for low-level OS specific CDROM emulation
23 
24 class cdrom_osx_c : public cdrom_base_c {
25 public:
cdrom_osx_c(const char * dev)26   cdrom_osx_c(const char *dev) : cdrom_base_c(dev) {}
27   bool insert_cdrom(const char *dev = NULL);
28   bool read_toc(Bit8u* buf, int* length, bool msf, int start_track, int format);
29   Bit32u capacity();
30   bool read_block(Bit8u* buf, Bit32u lba, int blocksize) BX_CPP_AttrRegparmN(3);
31 };
32