io_device.hh (3918:1f9a98d198e8) io_device.hh (4022:c422464ca16e)
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)
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) ; }
259 {
260 dmaPort->dmaAction(MemCmd::WriteInvalidateReq,
261 addr, size, event, data);
262 }
260
261 void dmaRead(Addr addr, int size, Event *event, uint8_t *data = NULL)
263
264 void dmaRead(Addr addr, int size, Event *event, uint8_t *data = NULL)
262 { dmaPort->dmaAction(Packet::ReadReq, addr, size, event, data); }
265 { dmaPort->dmaAction(MemCmd::ReadReq, addr, size, event, data); }
263
264 bool dmaPending() { return dmaPort->dmaPending(); }
265
266 virtual unsigned int drain(Event *de);
267
268 virtual Port *getPort(const std::string &if_name, int idx = -1)
269 {
270 if (if_name == "pio") {

--- 18 unchanged lines hidden ---
266
267 bool dmaPending() { return dmaPort->dmaPending(); }
268
269 virtual unsigned int drain(Event *de);
270
271 virtual Port *getPort(const std::string &if_name, int idx = -1)
272 {
273 if (if_name == "pio") {

--- 18 unchanged lines hidden ---