gem5  v22.1.0.0
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_
DmaDeviceParams Params
Definition: dma_device.hh:209
Device model for an Intel PIIX4 IDE controller.
Definition: ide_ctrl.hh:53
Ports are used to interface objects to each other.
Definition: port.hh:62
std::vector< IntSourcePin< X86IdeController > * > intPrimary
Definition: ide_ctrl.hh:43
void clearInterrupt(bool is_primary) override
Definition: ide_ctrl.cc:54
PARAMS(X86IdeController)
X86IdeController(const Params &p)
Definition: ide_ctrl.cc:33
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
void postInterrupt(bool is_primary) override
Definition: ide_ctrl.cc:46
std::vector< IntSourcePin< X86IdeController > * > intSecondary
Definition: ide_ctrl.hh:44
STL vector class.
Definition: stl.hh:37
Bitfield< 54 > p
Definition: pagetable.hh:70
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
const PortID InvalidPortID
Definition: types.hh:246
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
Definition: types.hh:245
Simple PCI IDE controller with bus mastering capability and UDMA modeled after controller in the Inte...

Generated on Wed Dec 21 2022 10:22:35 for gem5 by doxygen 1.9.1