1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 242 unchanged lines hidden (view full) --- 251 protected: 252 DmaPort *dmaPort; 253 254 public: 255 DmaDevice(Params *p); 256 virtual ~DmaDevice(); 257 258 void dmaWrite(Addr addr, int size, Event *event, uint8_t *data) |
259 { dmaPort->dmaAction(Packet::WriteInvalidateReq, addr, size, event, data) ; } |
260 261 void dmaRead(Addr addr, int size, Event *event, uint8_t *data = NULL) 262 { dmaPort->dmaAction(Packet::ReadReq, addr, size, event, data); } 263 264 bool dmaPending() { return dmaPort->dmaPending(); } 265 266 virtual unsigned int drain(Event *de); 267 --- 21 unchanged lines hidden --- |