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; --- 195 unchanged lines hidden (view full) --- 204 { 205 return dynamic_cast<const Params *>(_params); 206 } 207 208 virtual void init(); 209 210 virtual unsigned int drain(Event *de); 211 |
212 virtual Port *getPort(const std::string &if_name, int idx = -1); 213 |
214 friend class PioPort; 215 216}; 217 218class BasicPioDevice : public PioDevice 219{ 220 protected: 221 /** Address that the device listens to. */ --- 49 unchanged lines hidden (view full) --- 271 } 272 273 bool dmaPending() { return dmaPort->dmaPending(); } 274 275 virtual unsigned int drain(Event *de); 276 277 unsigned cacheBlockSize() const { return dmaPort->cacheBlockSize(); } 278 |
279 virtual Port *getPort(const std::string &if_name, int idx = -1); |
280 281 friend class DmaPort; 282}; 283 284 285#endif // __DEV_IO_DEVICE_HH__ |