openMSX
|
#include <CartridgeSlotManager.hh>
Public Member Functions | |
CartridgeSlotManager (MSXMotherBoard &motherBoard) | |
~CartridgeSlotManager () | |
void | createExternalSlot (int ps) |
void | createExternalSlot (int ps, int ss) |
void | removeExternalSlot (int ps) |
void | removeExternalSlot (int ps, int ss) |
void | testRemoveExternalSlot (int ps, const HardwareConfig &allowed) const |
void | testRemoveExternalSlot (int ps, int ss, const HardwareConfig &allowed) const |
void | getSpecificSlot (unsigned slot, int &ps, int &ss) const |
void | getAnyFreeSlot (int &ps, int &ss) const |
void | allocateSlot (int ps, int ss, const HardwareConfig &hwConfig) |
void | freeSlot (int ps, int ss, const HardwareConfig &hwConfig) |
int | allocateAnyPrimarySlot (const HardwareConfig &hwConfig) |
int | allocateSpecificPrimarySlot (unsigned slot, const HardwareConfig &hwConfig) |
void | freePrimarySlot (int ps, const HardwareConfig &hwConfig) |
bool | isExternalSlot (int ps, int ss, bool convert) const |
Static Public Member Functions | |
static int | getSlotNum (std::string_view slot) |
Definition at line 16 of file CartridgeSlotManager.hh.
|
explicit |
Definition at line 77 of file CartridgeSlotManager.cc.
openmsx::CartridgeSlotManager::~CartridgeSlotManager | ( | ) |
Definition at line 84 of file CartridgeSlotManager.cc.
References openmsx::FileOperations::exists(), and xrange().
int openmsx::CartridgeSlotManager::allocateAnyPrimarySlot | ( | const HardwareConfig & | hwConfig | ) |
Definition at line 244 of file CartridgeSlotManager.cc.
References openmsx::FileOperations::exists(), and xrange().
void openmsx::CartridgeSlotManager::allocateSlot | ( | int | ps, |
int | ss, | ||
const HardwareConfig & | hwConfig | ||
) |
Definition at line 268 of file CartridgeSlotManager.cc.
References openmsx::FileOperations::exists(), and xrange().
int openmsx::CartridgeSlotManager::allocateSpecificPrimarySlot | ( | unsigned | slot, |
const HardwareConfig & | hwConfig | ||
) |
Definition at line 207 of file CartridgeSlotManager.cc.
References openmsx::FileOperations::exists().
void openmsx::CartridgeSlotManager::createExternalSlot | ( | int | ps | ) |
Definition at line 113 of file CartridgeSlotManager.cc.
References createExternalSlot().
Referenced by createExternalSlot().
void openmsx::CartridgeSlotManager::createExternalSlot | ( | int | ps, |
int | ss | ||
) |
Definition at line 118 of file CartridgeSlotManager.cc.
References openmsx::MSXMotherBoard::getCPUInterface(), openmsx::MSXMotherBoard::getMSXCliComm(), openmsx::CliComm::HARDWARE, isExternalSlot(), openmsx::MSXMotherBoard::registerMediaInfo(), UNREACHABLE, openmsx::CliComm::update(), and xrange().
void openmsx::CartridgeSlotManager::freePrimarySlot | ( | int | ps, |
const HardwareConfig & | hwConfig | ||
) |
Definition at line 258 of file CartridgeSlotManager.cc.
void openmsx::CartridgeSlotManager::freeSlot | ( | int | ps, |
int | ss, | ||
const HardwareConfig & | hwConfig | ||
) |
Definition at line 290 of file CartridgeSlotManager.cc.
References openmsx::FileOperations::exists(), and xrange().
void openmsx::CartridgeSlotManager::getAnyFreeSlot | ( | int & | ps, |
int & | ss | ||
) | const |
Definition at line 225 of file CartridgeSlotManager.cc.
References openmsx::FileOperations::exists(), and xrange().
|
static |
Definition at line 93 of file CartridgeSlotManager.cc.
Referenced by openmsx::HardwareConfig::parseSlots().
void openmsx::CartridgeSlotManager::getSpecificSlot | ( | unsigned | slot, |
int & | ps, | ||
int & | ss | ||
) | const |
Definition at line 194 of file CartridgeSlotManager.cc.
References openmsx::FileOperations::exists().
bool openmsx::CartridgeSlotManager::isExternalSlot | ( | int | ps, |
int | ss, | ||
bool | convert | ||
) | const |
Definition at line 308 of file CartridgeSlotManager.cc.
Referenced by createExternalSlot().
void openmsx::CartridgeSlotManager::removeExternalSlot | ( | int | ps | ) |
Definition at line 177 of file CartridgeSlotManager.cc.
References removeExternalSlot().
Referenced by removeExternalSlot(), and openmsx::HardwareConfig::~HardwareConfig().
void openmsx::CartridgeSlotManager::removeExternalSlot | ( | int | ps, |
int | ss | ||
) |
Definition at line 182 of file CartridgeSlotManager.cc.
References openmsx::MSXMotherBoard::getMSXCliComm(), openmsx::CliComm::HARDWARE, openmsx::MSXMotherBoard::unregisterMediaInfo(), and openmsx::CliComm::update().
void openmsx::CartridgeSlotManager::testRemoveExternalSlot | ( | int | ps, |
const HardwareConfig & | allowed | ||
) | const |
Definition at line 162 of file CartridgeSlotManager.cc.
References testRemoveExternalSlot().
Referenced by openmsx::HardwareConfig::testRemove(), and testRemoveExternalSlot().
void openmsx::CartridgeSlotManager::testRemoveExternalSlot | ( | int | ps, |
int | ss, | ||
const HardwareConfig & | allowed | ||
) | const |
Definition at line 168 of file CartridgeSlotManager.cc.