io_device.hh (5578:db6756431717) | io_device.hh (5732:1a24f9a28729) |
---|---|
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; --- 283 unchanged lines hidden (view full) --- 292 if (pioPort != NULL) 293 fatal("%s: pio port already connected to %s", 294 name(), pioPort->getPeer()->name()); 295 pioPort = new PioPort(this, sys); 296 return pioPort; 297 } else if (if_name == "dma") { 298 if (dmaPort != NULL) 299 fatal("%s: dma port already connected to %s", | 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; --- 283 unchanged lines hidden (view full) --- 292 if (pioPort != NULL) 293 fatal("%s: pio port already connected to %s", 294 name(), pioPort->getPeer()->name()); 295 pioPort = new PioPort(this, sys); 296 return pioPort; 297 } else if (if_name == "dma") { 298 if (dmaPort != NULL) 299 fatal("%s: dma port already connected to %s", |
300 name(), pioPort->getPeer()->name()); | 300 name(), dmaPort->getPeer()->name()); |
301 dmaPort = new DmaPort(this, sys); 302 return dmaPort; 303 } else 304 return NULL; 305 } 306 307 friend class DmaPort; 308}; 309 310 311#endif // __DEV_IO_DEVICE_HH__ | 301 dmaPort = new DmaPort(this, sys); 302 return dmaPort; 303 } else 304 return NULL; 305 } 306 307 friend class DmaPort; 308}; 309 310 311#endif // __DEV_IO_DEVICE_HH__ |