Ejemplo n.º 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;
         }
     }
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 4
0
 public void Map(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType, bool overwrite)
 {
     Map(device, device.Address, device.Size, accessType, overwrite);
 }
Ejemplo n.º 5
0
 public void Map(MemoryMappedDevice device, bool overwrite)
 {
     Map(device, MemoryMapEntry.AccessType.Read, overwrite);
     Map(device, MemoryMapEntry.AccessType.Write, overwrite);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 7
0
 public void Unmap(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType)
 {
     Unmap(device, device.Address, device.Size, accessType);
 }
Ejemplo n.º 8
0
 public void Unmap(MemoryMappedDevice device)
 {
     Unmap(device, MemoryMapEntry.AccessType.Read);
     Unmap(device, MemoryMapEntry.AccessType.Write);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 10
0
 public void Unmap(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType)
 {
     Unmap(device, device.Address, device.Size, accessType);
 }
Ejemplo n.º 11
0
 public void Unmap(MemoryMappedDevice device)
 {
     Unmap(device, MemoryMapEntry.AccessType.Read);
     Unmap(device, MemoryMapEntry.AccessType.Write);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 13
0
 public void Map(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType, bool overwrite)
 {
     Map(device, device.Address, device.Size, accessType, overwrite);
 }
Ejemplo n.º 14
0
 public void Map(MemoryMappedDevice device, bool overwrite)
 {
     Map(device, MemoryMapEntry.AccessType.Read, overwrite);
     Map(device, MemoryMapEntry.AccessType.Write, overwrite);
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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);
 }