1 |
dpavlin |
1 |
/* |
2 |
|
|
* PearPC |
3 |
|
|
* syscdrom.cc |
4 |
|
|
* |
5 |
|
|
* Copyright (C) 2003 Sebastian Biallas (sb@biallas.net) |
6 |
|
|
* |
7 |
|
|
* This program is free software; you can redistribute it and/or modify |
8 |
|
|
* it under the terms of the GNU General Public License version 2 as |
9 |
|
|
* published by the Free Software Foundation. |
10 |
|
|
* |
11 |
|
|
* This program is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
* GNU General Public License for more details. |
15 |
|
|
* |
16 |
|
|
* You should have received a copy of the GNU General Public License |
17 |
|
|
* along with this program; if not, write to the Free Software |
18 |
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#include <cstdio> |
22 |
|
|
#include <cstring> |
23 |
|
|
#include "errno.h" |
24 |
|
|
|
25 |
|
|
#include "io/ide/cd.h" |
26 |
|
|
#include "debug/tracers.h" |
27 |
|
|
|
28 |
|
|
/// Creates a native CDROM device |
29 |
|
|
/// @param device_name The PearPC internal device name for the drive |
30 |
|
|
/// @param image_name The image / device name to identify the real hardware |
31 |
|
|
/// @return On success a pointer to a CDROMDevice is returned, else NULL |
32 |
|
|
/// @author Alexander Stockinger |
33 |
|
|
/// @date 07/19/2004 |
34 |
|
|
CDROMDevice* createNativeCDROMDevice(const char* device_name, const char* image_name) |
35 |
|
|
{ |
36 |
|
|
IO_IDE_ERR("No native CDROMs supported on POSIX\n"); |
37 |
|
|
// No native CDROM devices on this platform |
38 |
|
|
return NULL; |
39 |
|
|
} |