copy_engine.hh (12087:0e082672ac6b) | copy_engine.hh (13784:1941dc118243) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 81 unchanged lines hidden (view full) --- 90 CompletionWrite 91 }; 92 93 ChannelState nextState; 94 95 public: 96 CopyEngineChannel(CopyEngine *_ce, int cid); 97 virtual ~CopyEngineChannel(); | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 81 unchanged lines hidden (view full) --- 90 CompletionWrite 91 }; 92 93 ChannelState nextState; 94 95 public: 96 CopyEngineChannel(CopyEngine *_ce, int cid); 97 virtual ~CopyEngineChannel(); |
98 BaseMasterPort &getMasterPort(); | 98 Port &getPort(); |
99 100 std::string name() { assert(ce); return ce->name() + csprintf("-chan%d", channelId); } 101 virtual Tick read(PacketPtr pkt) 102 { panic("CopyEngineChannel has no I/O access\n");} 103 virtual Tick write(PacketPtr pkt) 104 { panic("CopyEngineChannel has no I/O access\n"); } 105 106 void channelRead(PacketPtr pkt, Addr daddr, int size); --- 81 unchanged lines hidden (view full) --- 188 { 189 return dynamic_cast<const Params *>(_params); 190 } 191 CopyEngine(const Params *params); 192 ~CopyEngine(); 193 194 void regStats() override; 195 | 99 100 std::string name() { assert(ce); return ce->name() + csprintf("-chan%d", channelId); } 101 virtual Tick read(PacketPtr pkt) 102 { panic("CopyEngineChannel has no I/O access\n");} 103 virtual Tick write(PacketPtr pkt) 104 { panic("CopyEngineChannel has no I/O access\n"); } 105 106 void channelRead(PacketPtr pkt, Addr daddr, int size); --- 81 unchanged lines hidden (view full) --- 188 { 189 return dynamic_cast<const Params *>(_params); 190 } 191 CopyEngine(const Params *params); 192 ~CopyEngine(); 193 194 void regStats() override; 195 |
196 BaseMasterPort &getMasterPort(const std::string &if_name, 197 PortID idx = InvalidPortID) override; | 196 Port &getPort(const std::string &if_name, 197 PortID idx = InvalidPortID) override; |
198 199 Tick read(PacketPtr pkt) override; 200 Tick write(PacketPtr pkt) override; 201 202 void serialize(CheckpointOut &cp) const override; 203 void unserialize(CheckpointIn &cp) override; 204}; 205 206#endif //__DEV_PCI_COPY_ENGINE_HH__ 207 | 198 199 Tick read(PacketPtr pkt) override; 200 Tick write(PacketPtr pkt) override; 201 202 void serialize(CheckpointOut &cp) const override; 203 void unserialize(CheckpointIn &cp) override; 204}; 205 206#endif //__DEV_PCI_COPY_ENGINE_HH__ 207 |