tsunami_pchip.cc (4918:3214e3694fb2) tsunami_pchip.cc (5834:b9e30a60dee4)
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;

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

295 return (dmaAddr & DMA_ADDR_MASK);
296 }
297 }
298 }
299
300 // if no match was found, then return the original address
301 return busAddr;
302}
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;

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

295 return (dmaAddr & DMA_ADDR_MASK);
296 }
297 }
298 }
299
300 // if no match was found, then return the original address
301 return busAddr;
302}
303
303Addr
304TsunamiPChip::calcConfigAddr(int bus, int dev, int func)
305{
306 assert(func < 8);
307 assert(dev < 32);
308 assert(bus == 0);
309
310 return TsunamiPciBus0Config | (func << 8) | (dev << 11);
311}
312
304Addr
305TsunamiPChip::calcConfigAddr(int bus, int dev, int func)
306{
307 assert(func < 8);
308 assert(dev < 32);
309 assert(bus == 0);
310
311 return TsunamiPciBus0Config | (func << 8) | (dev << 11);
312}
313
314Addr
315TsunamiPChip::calcIOAddr(Addr addr)
316{
317 return TSUNAMI_PCI0_IO + addr;
318}
313
319
320Addr
321TsunamiPChip::calcMemAddr(Addr addr)
322{
323 return TSUNAMI_PCI0_MEMORY + addr;
324}
314
315void
316TsunamiPChip::serialize(std::ostream &os)
317{
318 SERIALIZE_SCALAR(pctl);
319 SERIALIZE_ARRAY(wsba, 4);
320 SERIALIZE_ARRAY(wsm, 4);
321 SERIALIZE_ARRAY(tba, 4);

--- 17 unchanged lines hidden ---
325
326void
327TsunamiPChip::serialize(std::ostream &os)
328{
329 SERIALIZE_SCALAR(pctl);
330 SERIALIZE_ARRAY(wsba, 4);
331 SERIALIZE_ARRAY(wsm, 4);
332 SERIALIZE_ARRAY(tba, 4);

--- 17 unchanged lines hidden ---