DMASequencer.cc revision 10919
17008Snate@binkert.org/*
27008Snate@binkert.org * Copyright (c) 2008 Mark D. Hill and David A. Wood
37008Snate@binkert.org * All rights reserved.
47008Snate@binkert.org *
57008Snate@binkert.org * Redistribution and use in source and binary forms, with or without
67008Snate@binkert.org * modification, are permitted provided that the following conditions are
77008Snate@binkert.org * met: redistributions of source code must retain the above copyright
87008Snate@binkert.org * notice, this list of conditions and the following disclaimer;
97008Snate@binkert.org * redistributions in binary form must reproduce the above copyright
107008Snate@binkert.org * notice, this list of conditions and the following disclaimer in the
117008Snate@binkert.org * documentation and/or other materials provided with the distribution;
127008Snate@binkert.org * neither the name of the copyright holders nor the names of its
137008Snate@binkert.org * contributors may be used to endorse or promote products derived from
147008Snate@binkert.org * this software without specific prior written permission.
157008Snate@binkert.org *
167008Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
177008Snate@binkert.org * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
187008Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
197008Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
207008Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
217008Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
227008Snate@binkert.org * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
237008Snate@binkert.org * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
247008Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
257008Snate@binkert.org * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
267008Snate@binkert.org * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
277008Snate@binkert.org */
286285Snate@binkert.org
2910472Sandreas.hansson@arm.com#include <memory>
3010472Sandreas.hansson@arm.com
3110518Snilay@cs.wisc.edu#include "debug/Config.hh"
3210518Snilay@cs.wisc.edu#include "debug/Drain.hh"
338232Snate@binkert.org#include "debug/RubyDma.hh"
349104Shestness@cs.utexas.edu#include "debug/RubyStats.hh"
357039Snate@binkert.org#include "mem/protocol/SequencerMsg.hh"
367039Snate@binkert.org#include "mem/ruby/system/DMASequencer.hh"
376285Snate@binkert.org#include "mem/ruby/system/System.hh"
3810518Snilay@cs.wisc.edu#include "sim/system.hh"
396285Snate@binkert.org
406876Ssteve.reinhardt@amd.comDMASequencer::DMASequencer(const Params *p)
4110919Sbrandon.potter@amd.com    : MemObject(p), m_ruby_system(p->ruby_system), m_version(p->version),
4210919Sbrandon.potter@amd.com      m_controller(NULL), m_mandatory_q_ptr(NULL),
4310919Sbrandon.potter@amd.com      m_usingRubyTester(p->using_ruby_tester),
4410706Spower.jg@gmail.com      slave_port(csprintf("%s.slave", name()), this, 0, p->ruby_system,
4510706Spower.jg@gmail.com                 p->ruby_system->getAccessBackingStore()),
4610913Sandreas.sandberg@arm.com      system(p->system), retry(false)
476285Snate@binkert.org{
4810518Snilay@cs.wisc.edu    assert(m_version != -1);
496285Snate@binkert.org}
506285Snate@binkert.org
517039Snate@binkert.orgvoid
527039Snate@binkert.orgDMASequencer::init()
536285Snate@binkert.org{
5410518Snilay@cs.wisc.edu    MemObject::init();
5510518Snilay@cs.wisc.edu    assert(m_controller != NULL);
5610518Snilay@cs.wisc.edu    m_mandatory_q_ptr = m_controller->getMandatoryQueue();
5710518Snilay@cs.wisc.edu    m_mandatory_q_ptr->setSender(this);
587039Snate@binkert.org    m_is_busy = false;
597039Snate@binkert.org    m_data_block_mask = ~ (~0 << RubySystem::getBlockSizeBits());
6010519Snilay@cs.wisc.edu
6110519Snilay@cs.wisc.edu    slave_port.sendRangeChange();
626285Snate@binkert.org}
636285Snate@binkert.org
6410518Snilay@cs.wisc.eduBaseSlavePort &
6510518Snilay@cs.wisc.eduDMASequencer::getSlavePort(const std::string &if_name, PortID idx)
6610518Snilay@cs.wisc.edu{
6710518Snilay@cs.wisc.edu    // used by the CPUs to connect the caches to the interconnect, and
6810518Snilay@cs.wisc.edu    // for the x86 case also the interrupt master
6910518Snilay@cs.wisc.edu    if (if_name != "slave") {
7010518Snilay@cs.wisc.edu        // pass it along to our super class
7110518Snilay@cs.wisc.edu        return MemObject::getSlavePort(if_name, idx);
7210518Snilay@cs.wisc.edu    } else {
7310518Snilay@cs.wisc.edu        return slave_port;
7410518Snilay@cs.wisc.edu    }
7510518Snilay@cs.wisc.edu}
7610518Snilay@cs.wisc.edu
7710518Snilay@cs.wisc.eduDMASequencer::MemSlavePort::MemSlavePort(const std::string &_name,
7810706Spower.jg@gmail.com    DMASequencer *_port, PortID id, RubySystem* _ruby_system,
7910706Spower.jg@gmail.com    bool _access_backing_store)
8010706Spower.jg@gmail.com    : QueuedSlavePort(_name, _port, queue, id), queue(*_port, *this),
8110919Sbrandon.potter@amd.com      m_ruby_system(_ruby_system), access_backing_store(_access_backing_store)
8210518Snilay@cs.wisc.edu{
8310518Snilay@cs.wisc.edu    DPRINTF(RubyDma, "Created slave memport on ruby sequencer %s\n", _name);
8410518Snilay@cs.wisc.edu}
8510518Snilay@cs.wisc.edu
8610518Snilay@cs.wisc.edubool
8710518Snilay@cs.wisc.eduDMASequencer::MemSlavePort::recvTimingReq(PacketPtr pkt)
8810518Snilay@cs.wisc.edu{
8910518Snilay@cs.wisc.edu    DPRINTF(RubyDma, "Timing request for address %#x on port %d\n",
9010518Snilay@cs.wisc.edu            pkt->getAddr(), id);
9110518Snilay@cs.wisc.edu    DMASequencer *seq = static_cast<DMASequencer *>(&owner);
9210518Snilay@cs.wisc.edu
9310518Snilay@cs.wisc.edu    if (pkt->memInhibitAsserted())
9410518Snilay@cs.wisc.edu        panic("DMASequencer should never see an inhibited request\n");
9510518Snilay@cs.wisc.edu
9610518Snilay@cs.wisc.edu    assert(isPhysMemAddress(pkt->getAddr()));
9710518Snilay@cs.wisc.edu    assert(Address(pkt->getAddr()).getOffset() + pkt->getSize() <=
9810518Snilay@cs.wisc.edu           RubySystem::getBlockSizeBytes());
9910518Snilay@cs.wisc.edu
10010518Snilay@cs.wisc.edu    // Submit the ruby request
10110518Snilay@cs.wisc.edu    RequestStatus requestStatus = seq->makeRequest(pkt);
10210518Snilay@cs.wisc.edu
10310518Snilay@cs.wisc.edu    // If the request successfully issued then we should return true.
10410518Snilay@cs.wisc.edu    // Otherwise, we need to tell the port to retry at a later point
10510518Snilay@cs.wisc.edu    // and return false.
10610518Snilay@cs.wisc.edu    if (requestStatus == RequestStatus_Issued) {
10710518Snilay@cs.wisc.edu        DPRINTF(RubyDma, "Request %s 0x%x issued\n", pkt->cmdString(),
10810518Snilay@cs.wisc.edu                pkt->getAddr());
10910518Snilay@cs.wisc.edu        return true;
11010518Snilay@cs.wisc.edu    }
11110518Snilay@cs.wisc.edu
11210518Snilay@cs.wisc.edu    // Unless one is using the ruby tester, record the stalled M5 port for
11310518Snilay@cs.wisc.edu    // later retry when the sequencer becomes free.
11410518Snilay@cs.wisc.edu    if (!seq->m_usingRubyTester) {
11510518Snilay@cs.wisc.edu        seq->retry = true;
11610518Snilay@cs.wisc.edu    }
11710518Snilay@cs.wisc.edu
11810518Snilay@cs.wisc.edu    DPRINTF(RubyDma, "Request for address %#x did not issued because %s\n",
11910518Snilay@cs.wisc.edu            pkt->getAddr(), RequestStatus_to_string(requestStatus));
12010518Snilay@cs.wisc.edu
12110518Snilay@cs.wisc.edu    return false;
12210518Snilay@cs.wisc.edu}
12310518Snilay@cs.wisc.edu
12410518Snilay@cs.wisc.eduvoid
12510518Snilay@cs.wisc.eduDMASequencer::ruby_hit_callback(PacketPtr pkt)
12610518Snilay@cs.wisc.edu{
12710518Snilay@cs.wisc.edu    DPRINTF(RubyDma, "Hit callback for %s 0x%x\n", pkt->cmdString(),
12810518Snilay@cs.wisc.edu            pkt->getAddr());
12910518Snilay@cs.wisc.edu
13010518Snilay@cs.wisc.edu    // The packet was destined for memory and has not yet been turned
13110518Snilay@cs.wisc.edu    // into a response
13210518Snilay@cs.wisc.edu    assert(system->isMemAddr(pkt->getAddr()));
13310518Snilay@cs.wisc.edu    assert(pkt->isRequest());
13410518Snilay@cs.wisc.edu    slave_port.hitCallback(pkt);
13510518Snilay@cs.wisc.edu
13610518Snilay@cs.wisc.edu    // If we had to stall the slave ports, wake it up because
13710518Snilay@cs.wisc.edu    // the sequencer likely has free resources now.
13810518Snilay@cs.wisc.edu    if (retry) {
13910518Snilay@cs.wisc.edu        retry = false;
14010518Snilay@cs.wisc.edu        DPRINTF(RubyDma,"Sequencer may now be free.  SendRetry to port %s\n",
14110518Snilay@cs.wisc.edu                slave_port.name());
14210713Sandreas.hansson@arm.com        slave_port.sendRetryReq();
14310518Snilay@cs.wisc.edu    }
14410518Snilay@cs.wisc.edu
14510518Snilay@cs.wisc.edu    testDrainComplete();
14610518Snilay@cs.wisc.edu}
14710518Snilay@cs.wisc.edu
14810518Snilay@cs.wisc.eduvoid
14910518Snilay@cs.wisc.eduDMASequencer::testDrainComplete()
15010518Snilay@cs.wisc.edu{
15110518Snilay@cs.wisc.edu    //If we weren't able to drain before, we might be able to now.
15210913Sandreas.sandberg@arm.com    if (drainState() == DrainState::Draining) {
15310518Snilay@cs.wisc.edu        unsigned int drainCount = outstandingCount();
15410518Snilay@cs.wisc.edu        DPRINTF(Drain, "Drain count: %u\n", drainCount);
15510518Snilay@cs.wisc.edu        if (drainCount == 0) {
15610518Snilay@cs.wisc.edu            DPRINTF(Drain, "DMASequencer done draining, signaling drain done\n");
15710913Sandreas.sandberg@arm.com            signalDrainDone();
15810518Snilay@cs.wisc.edu        }
15910518Snilay@cs.wisc.edu    }
16010518Snilay@cs.wisc.edu}
16110518Snilay@cs.wisc.edu
16210913Sandreas.sandberg@arm.comDrainState
16310913Sandreas.sandberg@arm.comDMASequencer::drain()
16410518Snilay@cs.wisc.edu{
16510518Snilay@cs.wisc.edu    if (isDeadlockEventScheduled()) {
16610518Snilay@cs.wisc.edu        descheduleDeadlockEvent();
16710518Snilay@cs.wisc.edu    }
16810518Snilay@cs.wisc.edu
16910518Snilay@cs.wisc.edu    // If the DMASequencer is not empty, then it needs to clear all outstanding
17010913Sandreas.sandberg@arm.com    // requests before it should call signalDrainDone()
17110518Snilay@cs.wisc.edu    DPRINTF(Config, "outstanding count %d\n", outstandingCount());
17210518Snilay@cs.wisc.edu
17310518Snilay@cs.wisc.edu    // Set status
17410913Sandreas.sandberg@arm.com    if (outstandingCount() > 0) {
17510518Snilay@cs.wisc.edu        DPRINTF(Drain, "DMASequencer not drained\n");
17610913Sandreas.sandberg@arm.com        return DrainState::Draining;
17710913Sandreas.sandberg@arm.com    } else {
17810913Sandreas.sandberg@arm.com        return DrainState::Drained;
17910518Snilay@cs.wisc.edu    }
18010518Snilay@cs.wisc.edu}
18110518Snilay@cs.wisc.edu
18210518Snilay@cs.wisc.eduvoid
18310518Snilay@cs.wisc.eduDMASequencer::MemSlavePort::hitCallback(PacketPtr pkt)
18410518Snilay@cs.wisc.edu{
18510518Snilay@cs.wisc.edu    bool needsResponse = pkt->needsResponse();
18610518Snilay@cs.wisc.edu    assert(!pkt->isLLSC());
18710518Snilay@cs.wisc.edu    assert(!pkt->isFlush());
18810518Snilay@cs.wisc.edu
18910518Snilay@cs.wisc.edu    DPRINTF(RubyDma, "Hit callback needs response %d\n", needsResponse);
19010518Snilay@cs.wisc.edu
19110518Snilay@cs.wisc.edu    // turn packet around to go back to requester if response expected
19210706Spower.jg@gmail.com
19310706Spower.jg@gmail.com    if (access_backing_store) {
19410919Sbrandon.potter@amd.com        m_ruby_system->getPhysMem()->access(pkt);
19510706Spower.jg@gmail.com    } else if (needsResponse) {
19610706Spower.jg@gmail.com        pkt->makeResponse();
19710706Spower.jg@gmail.com    }
19810706Spower.jg@gmail.com
19910518Snilay@cs.wisc.edu    if (needsResponse) {
20010518Snilay@cs.wisc.edu        DPRINTF(RubyDma, "Sending packet back over port\n");
20110518Snilay@cs.wisc.edu        // send next cycle
20210919Sbrandon.potter@amd.com        DMASequencer *seq = static_cast<DMASequencer *>(&owner);
20310919Sbrandon.potter@amd.com        RubySystem *rs = seq->m_ruby_system;
20410919Sbrandon.potter@amd.com        schedTimingResp(pkt, curTick() + rs->clockPeriod());
20510518Snilay@cs.wisc.edu    } else {
20610518Snilay@cs.wisc.edu        delete pkt;
20710518Snilay@cs.wisc.edu    }
20810519Snilay@cs.wisc.edu
20910518Snilay@cs.wisc.edu    DPRINTF(RubyDma, "Hit callback done!\n");
21010518Snilay@cs.wisc.edu}
21110518Snilay@cs.wisc.edu
21210518Snilay@cs.wisc.edubool
21310518Snilay@cs.wisc.eduDMASequencer::MemSlavePort::isPhysMemAddress(Addr addr) const
21410518Snilay@cs.wisc.edu{
21510518Snilay@cs.wisc.edu    DMASequencer *seq = static_cast<DMASequencer *>(&owner);
21610518Snilay@cs.wisc.edu    return seq->system->isMemAddr(addr);
21710518Snilay@cs.wisc.edu}
21810518Snilay@cs.wisc.edu
2197039Snate@binkert.orgRequestStatus
2208615Snilay@cs.wisc.eduDMASequencer::makeRequest(PacketPtr pkt)
2216285Snate@binkert.org{
2227544SBrad.Beckmann@amd.com    if (m_is_busy) {
2237544SBrad.Beckmann@amd.com        return RequestStatus_BufferFull;
2247544SBrad.Beckmann@amd.com    }
2257544SBrad.Beckmann@amd.com
2268615Snilay@cs.wisc.edu    uint64_t paddr = pkt->getAddr();
22710562Sandreas.hansson@arm.com    uint8_t* data =  pkt->getPtr<uint8_t>();
2288615Snilay@cs.wisc.edu    int len = pkt->getSize();
2298615Snilay@cs.wisc.edu    bool write = pkt->isWrite();
2306285Snate@binkert.org
2317039Snate@binkert.org    assert(!m_is_busy);  // only support one outstanding DMA request
2327039Snate@binkert.org    m_is_busy = true;
2336285Snate@binkert.org
2347039Snate@binkert.org    active_request.start_paddr = paddr;
2357039Snate@binkert.org    active_request.write = write;
2367039Snate@binkert.org    active_request.data = data;
2377039Snate@binkert.org    active_request.len = len;
2387039Snate@binkert.org    active_request.bytes_completed = 0;
2397039Snate@binkert.org    active_request.bytes_issued = 0;
2408615Snilay@cs.wisc.edu    active_request.pkt = pkt;
2416285Snate@binkert.org
24210472Sandreas.hansson@arm.com    std::shared_ptr<SequencerMsg> msg =
24310472Sandreas.hansson@arm.com        std::make_shared<SequencerMsg>(clockEdge());
2447453Snate@binkert.org    msg->getPhysicalAddress() = Address(paddr);
2457453Snate@binkert.org    msg->getLineAddress() = line_address(msg->getPhysicalAddress());
2467453Snate@binkert.org    msg->getType() = write ? SequencerRequestType_ST : SequencerRequestType_LD;
2477039Snate@binkert.org    int offset = paddr & m_data_block_mask;
2486888SBrad.Beckmann@amd.com
2497453Snate@binkert.org    msg->getLen() = (offset + len) <= RubySystem::getBlockSizeBytes() ?
2507039Snate@binkert.org        len : RubySystem::getBlockSizeBytes() - offset;
2516888SBrad.Beckmann@amd.com
2527915SBrad.Beckmann@amd.com    if (write && (data != NULL)) {
2537915SBrad.Beckmann@amd.com        if (active_request.data != NULL) {
2547915SBrad.Beckmann@amd.com            msg->getDataBlk().setData(data, offset, msg->getLen());
2557915SBrad.Beckmann@amd.com        }
2567039Snate@binkert.org    }
2576888SBrad.Beckmann@amd.com
2587039Snate@binkert.org    assert(m_mandatory_q_ptr != NULL);
2597039Snate@binkert.org    m_mandatory_q_ptr->enqueue(msg);
2607453Snate@binkert.org    active_request.bytes_issued += msg->getLen();
2616285Snate@binkert.org
2627039Snate@binkert.org    return RequestStatus_Issued;
2636285Snate@binkert.org}
2646285Snate@binkert.org
2657039Snate@binkert.orgvoid
2667039Snate@binkert.orgDMASequencer::issueNext()
2676285Snate@binkert.org{
26810231Ssteve.reinhardt@amd.com    assert(m_is_busy);
2697039Snate@binkert.org    active_request.bytes_completed = active_request.bytes_issued;
2707039Snate@binkert.org    if (active_request.len == active_request.bytes_completed) {
2718162SBrad.Beckmann@amd.com        //
2728162SBrad.Beckmann@amd.com        // Must unset the busy flag before calling back the dma port because
2738162SBrad.Beckmann@amd.com        // the callback may cause a previously nacked request to be reissued
2748162SBrad.Beckmann@amd.com        //
2758162SBrad.Beckmann@amd.com        DPRINTF(RubyDma, "DMA request completed\n");
2768162SBrad.Beckmann@amd.com        m_is_busy = false;
2777039Snate@binkert.org        ruby_hit_callback(active_request.pkt);
2787039Snate@binkert.org        return;
2797039Snate@binkert.org    }
2806285Snate@binkert.org
28110472Sandreas.hansson@arm.com    std::shared_ptr<SequencerMsg> msg =
28210472Sandreas.hansson@arm.com        std::make_shared<SequencerMsg>(clockEdge());
2837453Snate@binkert.org    msg->getPhysicalAddress() = Address(active_request.start_paddr +
2847039Snate@binkert.org                                       active_request.bytes_completed);
2856888SBrad.Beckmann@amd.com
2867453Snate@binkert.org    assert((msg->getPhysicalAddress().getAddress() & m_data_block_mask) == 0);
2877453Snate@binkert.org    msg->getLineAddress() = line_address(msg->getPhysicalAddress());
2886888SBrad.Beckmann@amd.com
2897453Snate@binkert.org    msg->getType() = (active_request.write ? SequencerRequestType_ST :
2907039Snate@binkert.org                     SequencerRequestType_LD);
2916888SBrad.Beckmann@amd.com
2927453Snate@binkert.org    msg->getLen() =
2937039Snate@binkert.org        (active_request.len -
2947039Snate@binkert.org         active_request.bytes_completed < RubySystem::getBlockSizeBytes() ?
2957039Snate@binkert.org         active_request.len - active_request.bytes_completed :
2967039Snate@binkert.org         RubySystem::getBlockSizeBytes());
2976888SBrad.Beckmann@amd.com
2987039Snate@binkert.org    if (active_request.write) {
2997453Snate@binkert.org        msg->getDataBlk().
3007039Snate@binkert.org            setData(&active_request.data[active_request.bytes_completed],
3017453Snate@binkert.org                    0, msg->getLen());
3027453Snate@binkert.org        msg->getType() = SequencerRequestType_ST;
3037039Snate@binkert.org    } else {
3047453Snate@binkert.org        msg->getType() = SequencerRequestType_LD;
3057039Snate@binkert.org    }
3066888SBrad.Beckmann@amd.com
3077039Snate@binkert.org    assert(m_mandatory_q_ptr != NULL);
3087039Snate@binkert.org    m_mandatory_q_ptr->enqueue(msg);
3097453Snate@binkert.org    active_request.bytes_issued += msg->getLen();
31010917Sbrandon.potter@amd.com    DPRINTF(RubyDma,
3118160SBrad.Beckmann@amd.com            "DMA request bytes issued %d, bytes completed %d, total len %d\n",
3128160SBrad.Beckmann@amd.com            active_request.bytes_issued, active_request.bytes_completed,
3138160SBrad.Beckmann@amd.com            active_request.len);
3146285Snate@binkert.org}
3156285Snate@binkert.org
3167039Snate@binkert.orgvoid
3177039Snate@binkert.orgDMASequencer::dataCallback(const DataBlock & dblk)
3186285Snate@binkert.org{
31910231Ssteve.reinhardt@amd.com    assert(m_is_busy);
3207039Snate@binkert.org    int len = active_request.bytes_issued - active_request.bytes_completed;
3217039Snate@binkert.org    int offset = 0;
3227039Snate@binkert.org    if (active_request.bytes_completed == 0)
3237039Snate@binkert.org        offset = active_request.start_paddr & m_data_block_mask;
32410231Ssteve.reinhardt@amd.com    assert(!active_request.write);
3257915SBrad.Beckmann@amd.com    if (active_request.data != NULL) {
3267915SBrad.Beckmann@amd.com        memcpy(&active_request.data[active_request.bytes_completed],
3277915SBrad.Beckmann@amd.com               dblk.getData(offset, len), len);
3287915SBrad.Beckmann@amd.com    }
3297039Snate@binkert.org    issueNext();
3306285Snate@binkert.org}
3316285Snate@binkert.org
3327039Snate@binkert.orgvoid
3337039Snate@binkert.orgDMASequencer::ackCallback()
3346285Snate@binkert.org{
3357039Snate@binkert.org    issueNext();
3366285Snate@binkert.org}
3376285Snate@binkert.org
3387039Snate@binkert.orgvoid
33910518Snilay@cs.wisc.eduDMASequencer::recordRequestType(DMASequencerRequestType requestType)
34010518Snilay@cs.wisc.edu{
3419104Shestness@cs.utexas.edu    DPRINTF(RubyStats, "Recorded statistic: %s\n",
3429104Shestness@cs.utexas.edu            DMASequencerRequestType_to_string(requestType));
3439104Shestness@cs.utexas.edu}
3449104Shestness@cs.utexas.edu
3456876Ssteve.reinhardt@amd.comDMASequencer *
3466876Ssteve.reinhardt@amd.comDMASequencerParams::create()
3476876Ssteve.reinhardt@amd.com{
3486876Ssteve.reinhardt@amd.com    return new DMASequencer(this);
3496876Ssteve.reinhardt@amd.com}
350