Exemple #1
0
        public bool Detect()
        {
            if (!DirectIo.Startup())
            {
                return(false);
            }

            DirectIo.Write(1, 0xCFB);
            var tmp = DirectIo.ReadUInt32(0xCF8);

            DirectIo.Write(0x80000000, 0xCF8);
            var result = DirectIo.ReadUInt32(0xCF8) == 0x80000000;

            DirectIo.Write(tmp, 0xCF8);

            return(result && Check());
        }
Exemple #2
0
        public uint ReadUint32(PciDevice device, ushort offset)
        {
            var ptr = PrepareAccess(device, offset);

            return(DirectIo.ReadUInt32(ptr));
        }