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