Exemple #1
0
 public void Unmap(MemoryMappedDevice device, ushort address, uint size, MemoryMapEntry.AccessType accessType)
 {
     for (uint i = 0; i < size; i++)
     {
         if (_memoryMap[address + i][accessType] == device)
         {
             _memoryMap[address + i][accessType] = null;
         }
     }
 }
Exemple #2
0
        public void Map(MemoryMappedDevice device, ushort address, uint size, MemoryMapEntry.AccessType accessType, bool overwrite)
        {
            if (!overwrite)
            {
                for (uint i = 0; i < size; i++)
                {
                    if (_memoryMap[address + i][accessType] != null)
                        throw new ArgumentException();
                }
            }

            for (uint i = 0; i < size; i++)
                _memoryMap[address + i][accessType] = device;
        }
Exemple #3
0
        public void Map(MemoryMappedDevice device, ushort address, uint size, MemoryMapEntry.AccessType accessType, bool overwrite)
        {
            if (!overwrite)
            {
                for (uint i = 0; i < size; i++)
                {
                    if (_memoryMap[address + i][accessType] != null)
                    {
                        throw new ArgumentException();
                    }
                }
            }

            for (uint i = 0; i < size; i++)
            {
                _memoryMap[address + i][accessType] = device;
            }
        }
Exemple #4
0
 public void Map(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType, bool overwrite)
 {
     Map(device, device.Address, device.Size, accessType, overwrite);
 }
Exemple #5
0
 public void Map(MemoryMappedDevice device, bool overwrite)
 {
     Map(device, MemoryMapEntry.AccessType.Read, overwrite);
     Map(device, MemoryMapEntry.AccessType.Write, overwrite);
 }
Exemple #6
0
 public void Unmap(MemoryMappedDevice device, ushort address, uint size)
 {
     Unmap(device, address, size, MemoryMapEntry.AccessType.Read);
     Unmap(device, address, size, MemoryMapEntry.AccessType.Write);
 }
Exemple #7
0
 public void Unmap(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType)
 {
     Unmap(device, device.Address, device.Size, accessType);
 }
Exemple #8
0
 public void Unmap(MemoryMappedDevice device)
 {
     Unmap(device, MemoryMapEntry.AccessType.Read);
     Unmap(device, MemoryMapEntry.AccessType.Write);
 }
Exemple #9
0
 public void Map(MemoryMappedDevice device, ushort address, uint size, bool overwrite)
 {
     Map(device, address, size, MemoryMapEntry.AccessType.Read, overwrite);
     Map(device, address, size, MemoryMapEntry.AccessType.Write, overwrite);
 }
Exemple #10
0
 public void Unmap(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType)
 {
     Unmap(device, device.Address, device.Size, accessType);
 }
Exemple #11
0
 public void Unmap(MemoryMappedDevice device)
 {
     Unmap(device, MemoryMapEntry.AccessType.Read);
     Unmap(device, MemoryMapEntry.AccessType.Write);
 }
Exemple #12
0
 public void Map(MemoryMappedDevice device, ushort address, uint size, bool overwrite)
 {
     Map(device, address, size, MemoryMapEntry.AccessType.Read, overwrite);
     Map(device, address, size, MemoryMapEntry.AccessType.Write, overwrite);
 }
Exemple #13
0
 public void Map(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType, bool overwrite)
 {
     Map(device, device.Address, device.Size, accessType, overwrite);
 }
Exemple #14
0
 public void Map(MemoryMappedDevice device, bool overwrite)
 {
     Map(device, MemoryMapEntry.AccessType.Read, overwrite);
     Map(device, MemoryMapEntry.AccessType.Write, overwrite);
 }
Exemple #15
0
 public void Unmap(MemoryMappedDevice device, ushort address, uint size, MemoryMapEntry.AccessType accessType)
 {
     for (uint i = 0; i < size; i++)
     {
         if (_memoryMap[address + i][accessType] == device)
             _memoryMap[address + i][accessType] = null;
     }
 }
Exemple #16
0
 public void Unmap(MemoryMappedDevice device, ushort address, uint size)
 {
     Unmap(device, address, size, MemoryMapEntry.AccessType.Read);
     Unmap(device, address, size, MemoryMapEntry.AccessType.Write);
 }