Go to the documentation of this file.
34 #ifndef __DEV_STORAGE_IDE_CTRL_HH__
35 #define __DEV_STORAGE_IDE_CTRL_HH__
40 #include "params/IdeController.hh"
76 Addr cmdAddr, cmdSize, ctrlAddr, ctrlSize;
82 memset(
static_cast<void *
>(
this), 0,
sizeof(*
this));
85 BMICommandReg command;
106 select(
bool select_device_1)
108 selectBit = select_device_1;
109 selected = selectBit ? device1 : device0;
116 Channel(std::string newName,
Addr _cmdSize,
Addr _ctrlSize);
165 #endif // __DEV_STORAGE_IDE_CTRL_HH_
Device model for an Intel PIIX4 IDE controller.
void serialize(CheckpointOut &cp) const override
Serialize this object to the given output stream.
uint64_t Tick
Tick count type.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
IdeControllerParams Params
bool isDiskSelected(IdeDisk *diskPtr)
See if a disk is selected based on its pointer.
void dispatchAccess(PacketPtr pkt, bool read)
void setDmaComplete(IdeDisk *disk)
const Params * params() const
EndBitUnion(BMIStatusReg) BitUnion8(BMICommandReg) Bitfield< 3 > rw
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Tick writeConfig(PacketPtr pkt) override
Write to the PCI config space data that is stored locally.
EndBitUnion(BMICommandReg) struct Channel
virtual const std::string name() const
Tick readConfig(PacketPtr pkt) override
Read from the PCI config space data that is stored locally.
const SimObjectParams * _params
Cached copy of the object parameters.
BitUnion8(BMIStatusReg) Bitfield< 6 > dmaCap0
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Addr bmiAddr
Bus master interface (BMI) registers.
uint16_t primaryTiming
Registers used in device specific PCI configuration.
std::ostream CheckpointOut
PCI device, base implementation is only config space.
void unserialize(CheckpointIn &cp) override
Reconstruct the state of this object from a checkpoint.
Generated on Wed Sep 30 2020 14:02:11 for gem5 by doxygen 1.8.17