예제 #1
0
 public void InitSuperIO()
 {
     MyOls.WriteIoPortByte(0x2e, 0x87);
     MyOls.WriteIoPortByte(0x2e, 0x01);
     MyOls.WriteIoPortByte(0x2e, 0x55);
     MyOls.WriteIoPortByte(0x2e, 0x55);
 }
예제 #2
0
        private static int SuperIo_Inw(byte data)
        {
            int val;

            MyOls.WriteIoPortByte(0x2e, data++);
            val = MyOls.ReadIoPortByte(0x2f) << 8;
            Console.WriteLine("SuperIo_Inw  val1:" + Convert.ToString(val, 16));
            MyOls.WriteIoPortByte(0x2e, data);
            val |= MyOls.ReadIoPortByte(0x2f);
            Console.WriteLine("SuperIo_Inw  val2:" + Convert.ToString(val, 16));
            return(val);
        }
예제 #3
0
 public void ExitSuperIo()
 {
     if (MyOls != null)
     {
         MyOls.WriteIoPortByte(0x2e, 0x02);
         MyOls.WriteIoPortByte(0x2f, 0x02);
     }
 }