From 3bfb59f70d4bf8ca7b9e6a0bdbcacdbbebf41403 Mon Sep 17 00:00:00 2001 From: Andrew Schultz Date: Tue, 11 May 2004 18:06:50 -0400 Subject: Changes to fix bad DMA handling by disk when using scatter gather page mappings (writes still unverified, and read could probably be looked over a bit more too) dev/ide_disk.cc: dev/ide_disk.hh: Major changes to fix bogus handling of dma transfers. The read seems to work pretty well, but the write is unverfied until we can get a disk image that actually tries to write. dev/tsunami_pchip.cc: Change mask to properly mask 13 bits not 12 --HG-- extra : convert_revision : 08fe9bc32970e449cd045de479553a96a4e389d6 --- dev/ide_disk.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dev/ide_disk.hh') diff --git a/dev/ide_disk.hh b/dev/ide_disk.hh index 016f827cc..88a492cbc 100644 --- a/dev/ide_disk.hh +++ b/dev/ide_disk.hh @@ -313,6 +313,8 @@ class IdeDisk : public SimObject (cmdReg.cyl_low << 8) | (cmdReg.sec_num)); } + inline Addr pciToDma(Addr &pciAddr); + /** * Serialize this object to the given output stream. * @param os The stream to serialize to. -- cgit v1.2.3