diff options
Diffstat (limited to 'src/mame/funworld/photoplysx.cpp')
-rw-r--r-- | src/mame/funworld/photoplysx.cpp | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/src/mame/funworld/photoplysx.cpp b/src/mame/funworld/photoplysx.cpp new file mode 100644 index 00000000000..fd43b1f5841 --- /dev/null +++ b/src/mame/funworld/photoplysx.cpp @@ -0,0 +1,104 @@ +// license:BSD-3-Clause +// copyright-holders: +/* +Funworld Photo Play Spirit Xtreme + +CPU: Intel CELERON 2 GHz / 128 / 400 (SL6VR) +RAM: 256MB DDR 333 +PCB: Intel 865G + Intel Extreme Graphics 2 + Intel FW82801FR +I/O: Cypress AN2131SC (12.000 MHz xtal) + Winbond W83627HF + Realtek RTL8101L +BIOS: 03/11/2009-I865G-6A79AD4EC-00 (Pm49FL004T-33JC) +Dongle: GNT FNW USB Token +Sound: C-Media CMI9761A + +The GNT FNW USB Token is RSA capable (2048 bits) cryptographic token (http://www.softidea.sk/doc/gnt_datasheet_en.pdf) which supports also +AES (128 bits), DES, 3DES, SHA-1, secure random number generation, etc. It has 34,5 KB of secured user memory for storing keys, and since +it performs the cryptographic operations internally, they cannot be extracted. +On its default configuration for Photo Play, the PKCS#11 API is disabled (it supports also a propietary low level API), and contains the +following memory map: +-RSA slots: 10 +-MEM1: 53568 Bytes, read protected, write protected. +-MEM2: 4096 Bytes, free read, write with PIN1 or PIN2. +-MEM3: 1024 Bytes, free read, write only with PIN2. + +A single wrong login attempt locks the token. +*/ + +#include "emu.h" +#include "cpu/i386/i386.h" +#include "machine/pci.h" + +namespace { + +class photoplaysx_state : public driver_device +{ +public: + photoplaysx_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu") + { } + + void photoplaysx(machine_config &config); + +private: + required_device<cpu_device> m_maincpu; + + void photoplaysx_map(address_map &map) ATTR_COLD; +}; + +void photoplaysx_state::photoplaysx_map(address_map &map) +{ + map(0x00000000, 0x0009ffff).ram(); + map(0x000e0000, 0x000fffff).rom().region("bios", 0x60000); + map(0xfff80000, 0xffffffff).rom().region("bios", 0); +} + +static INPUT_PORTS_START( photoplaysx ) +INPUT_PORTS_END + +void photoplaysx_state::photoplaysx(machine_config &config) +{ + PENTIUM4(config, m_maincpu, 100'000'000); // Actually an Intel CELERON 2 GHz / 128 / 400 (SL6VR) + m_maincpu->set_addrmap(AS_PROGRAM, &photoplaysx_state::photoplaysx_map); + + PCI_ROOT(config, "pci", 0); + // ... +} + +/*************************************************************************** + + Game drivers + +***************************************************************************/ + +ROM_START( photopsxsp ) + ROM_REGION32_LE(0x80000, "bios", 0) + ROM_LOAD("photoplay_bios_pm49fl004t.bin", 0x00000, 0x80000, CRC(50bf84fe) SHA1(d0afe83b57f822d4fdb96dc1e0c6eedeccbfce7b) ) // 03/11/2009-I865G-6A79AD4EC-00 + + ROM_REGION(0xe540, "dongle", 0) + ROM_LOAD("phpsx_gnt_fnw_usb_mem1.bin", 0x0000, 0xd140, NO_DUMP ) + ROM_LOAD("phpsx_gnt_fnw_usb_mem2.bin", 0xd140, 0x1000, CRC(8dc6622c) SHA1(e7ef831cd57dfd64b919088d7c557159dcdc9306) ) + ROM_LOAD("phpsx_gnt_fnw_usb_mem3.bin", 0xe140, 0x0400, CRC(e4b1f083) SHA1(963750ced5cea804f94c5fbbf0e8946fede747d8) ) + + DISK_REGION( "ide:0:hdd" ) // ExcelStor Callisto 40GB J840 + DISK_IMAGE( "photoply_sprt_xt_2004_sp", 0, BAD_DUMP SHA1(00f600872bf0c84b045f55cc4903d694593dfcb3) ) // May contain operator data / configuration +ROM_END + +ROM_START( photopsxusp ) + ROM_REGION32_LE(0x80000, "bios", 0) + ROM_LOAD("photoplay_bios_pm49fl004t.bin", 0x00000, 0x80000, CRC(50bf84fe) SHA1(d0afe83b57f822d4fdb96dc1e0c6eedeccbfce7b) ) // 03/11/2009-I865G-6A79AD4EC-00 + + ROM_REGION(0xe540, "dongle", 0) + ROM_LOAD("phpsx_gnt_fnw_usb_mem1.bin", 0x0000, 0xd140, NO_DUMP ) + ROM_LOAD("phpsx_gnt_fnw_usb_mem2.bin", 0xd140, 0x1000, CRC(8dc6622c) SHA1(e7ef831cd57dfd64b919088d7c557159dcdc9306) ) + ROM_LOAD("phpsx_gnt_fnw_usb_mem3.bin", 0xe140, 0x0400, CRC(e4b1f083) SHA1(963750ced5cea804f94c5fbbf0e8946fede747d8) ) + + DISK_REGION( "ide:0:hdd" ) // Seagate ST3160815A 160GB + DISK_IMAGE( "photoply_sprt_xt_2004_sp_u", 0, BAD_DUMP SHA1(dac230cae6efaa24362260101d39b421d5fccd45) ) // May contain operator data / configuration +ROM_END + +} // Anonymous namespace + + +GAME( 2004, photopsxsp, 0, photoplaysx, photoplaysx, photoplaysx_state, empty_init, ROT0, "Funworld", "Photo Play Spirit Xtreme (Spanish)", MACHINE_NO_SOUND | MACHINE_NOT_WORKING ) +GAME( 2004?, photopsxusp, photopsxsp, photoplaysx, photoplaysx, photoplaysx_state, empty_init, ROT0, "Funworld", "Photo Play Spirit Xtreme (update, Spanish)", MACHINE_NO_SOUND | MACHINE_NOT_WORKING ) |