tsunami_pchip.cc (8232:b28d06a175be) tsunami_pchip.cc (8851:7e966326ef5b)
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;

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

279 PTE from a table in memory and then uses that mapping
280 to create an address for the SG page
281 */
282
283 tbaMask = ~(((wsm[i] & (ULL(0xfff) << 20)) >> 10) | ULL(0x3ff));
284 baMask = (wsm[i] & (ULL(0xfff) << 20)) | (ULL(0x7f) << 13);
285 pteAddr = (tba[i] & tbaMask) | ((busAddr & baMask) >> 10);
286
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;

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

279 PTE from a table in memory and then uses that mapping
280 to create an address for the SG page
281 */
282
283 tbaMask = ~(((wsm[i] & (ULL(0xfff) << 20)) >> 10) | ULL(0x3ff));
284 baMask = (wsm[i] & (ULL(0xfff) << 20)) | (ULL(0x7f) << 13);
285 pteAddr = (tba[i] & tbaMask) | ((busAddr & baMask) >> 10);
286
287 pioPort->readBlob(pteAddr, (uint8_t*)&pteEntry, sizeof(uint64_t));
287 pioPort.readBlob(pteAddr, (uint8_t*)&pteEntry,
288 sizeof(uint64_t));
288
289 dmaAddr = ((pteEntry & ~ULL(0x1)) << 12) | (busAddr & ULL(0x1fff));
290
291 } else {
292 baMask = (wsm[i] & (ULL(0xfff) << 20)) | ULL(0xfffff);
293 tbaMask = ~baMask;
294 dmaAddr = (tba[i] & tbaMask) | (busAddr & baMask);
295 }

--- 56 unchanged lines hidden ---
289
290 dmaAddr = ((pteEntry & ~ULL(0x1)) << 12) | (busAddr & ULL(0x1fff));
291
292 } else {
293 baMask = (wsm[i] & (ULL(0xfff) << 20)) | ULL(0xfffff);
294 tbaMask = ~baMask;
295 dmaAddr = (tba[i] & tbaMask) | (busAddr & baMask);
296 }

--- 56 unchanged lines hidden ---