gem5  [DEVELOP-FOR-23.0]
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ide_ctrl.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2022 Google, Inc.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met: redistributions of source code must retain the above copyright
7  * notice, this list of conditions and the following disclaimer;
8  * redistributions in binary form must reproduce the above copyright
9  * notice, this list of conditions and the following disclaimer in the
10  * documentation and/or other materials provided with the distribution;
11  * neither the name of the copyright holders nor the names of its
12  * contributors may be used to endorse or promote products derived from
13  * this software without specific prior written permission.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 #ifndef __DEV_X86_IDE_CTRL_HH__
29 #define __DEV_X86_IDE_CTRL_HH__
30 
31 #include <vector>
32 
33 #include "dev/intpin.hh"
34 #include "dev/storage/ide_ctrl.hh"
35 #include "params/X86IdeController.hh"
36 
37 namespace gem5
38 {
39 
41 {
42  private:
45 
46  public:
48  X86IdeController(const Params &p);
49 
50  Port &getPort(const std::string &if_name,
51  PortID idx=InvalidPortID) override;
52 
53  void postInterrupt(bool is_primary) override;
54  void clearInterrupt(bool is_primary) override;
55 };
56 
57 } // namespace gem5
58 
59 #endif // __DEV_X86_IDE_CTRL_HH_
gem5::X86IdeController::intPrimary
std::vector< IntSourcePin< X86IdeController > * > intPrimary
Definition: ide_ctrl.hh:43
gem5::PortID
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
Definition: types.hh:245
gem5::X86IdeController::PARAMS
PARAMS(X86IdeController)
std::vector
STL vector class.
Definition: stl.hh:37
gem5::InvalidPortID
const PortID InvalidPortID
Definition: types.hh:246
gem5::X86IdeController::postInterrupt
void postInterrupt(bool is_primary) override
Definition: ide_ctrl.cc:46
gem5::X86IdeController::getPort
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
Definition: ide_ctrl.cc:62
gem5::X86IdeController
Definition: ide_ctrl.hh:40
gem5::VegaISA::p
Bitfield< 54 > p
Definition: pagetable.hh:70
gem5::X86IdeController::X86IdeController
X86IdeController(const Params &p)
Definition: ide_ctrl.cc:33
gem5::DmaDevice::Params
DmaDeviceParams Params
Definition: dma_device.hh:224
gem5::IdeController
Device model for an Intel PIIX4 IDE controller.
Definition: ide_ctrl.hh:52
gem5::X86IdeController::intSecondary
std::vector< IntSourcePin< X86IdeController > * > intSecondary
Definition: ide_ctrl.hh:44
gem5::Port
Ports are used to interface objects to each other.
Definition: port.hh:61
ide_ctrl.hh
gem5::X86IdeController::clearInterrupt
void clearInterrupt(bool is_primary) override
Definition: ide_ctrl.cc:54
intpin.hh
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: gpu_translation_state.hh:37

Generated on Sun Jul 30 2023 01:56:56 for gem5 by doxygen 1.8.17