io_device.hh (7403:3d433863cd41) io_device.hh (7607:e75d877c8557)
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;

--- 141 unchanged lines hidden (view full) ---

150
151 /** event to give us a kick every time we backoff time is reached. */
152 EventWrapper<DmaPort, &DmaPort::sendDma> backoffEvent;
153
154 public:
155 DmaPort(MemObject *dev, System *s, Tick min_backoff, Tick max_backoff);
156
157 void dmaAction(Packet::Command cmd, Addr addr, int size, Event *event,
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;

--- 141 unchanged lines hidden (view full) ---

150
151 /** event to give us a kick every time we backoff time is reached. */
152 EventWrapper<DmaPort, &DmaPort::sendDma> backoffEvent;
153
154 public:
155 DmaPort(MemObject *dev, System *s, Tick min_backoff, Tick max_backoff);
156
157 void dmaAction(Packet::Command cmd, Addr addr, int size, Event *event,
158 uint8_t *data, Tick delay);
158 uint8_t *data, Tick delay, Request::Flags flag = 0);
159
160 bool dmaPending() { return pendingCount > 0; }
161
162 unsigned cacheBlockSize() const { return peerBlockSize(); }
163 unsigned int drain(Event *de);
164};
165
166/**

--- 151 unchanged lines hidden ---
159
160 bool dmaPending() { return pendingCount > 0; }
161
162 unsigned cacheBlockSize() const { return peerBlockSize(); }
163 unsigned int drain(Event *de);
164};
165
166/**

--- 151 unchanged lines hidden ---