60
Utilities
Leading
EDGE COMPUTING
Sample Code
#include<stdio.h>
#include<dos.h>
#define IT8783_ID1 0x87
#define IT8783_ID2 0x83
static unsigned int IT8783_ioPort = 0x2e;
//Check index port
void Enter_IT8783_Config(unsigned int flag)
{
if(flag) IT8783_ioPort = 0x4e;
switch(IT8783_ioPort)
{
case 0x2E: //Address port = 0x2E, enter
keys = 0x87, 0x01, 0x55, 0x55
outportb(0x2E, 0x87);
outportb(0x2E, 0x01);
outportb(0x2E, 0x55);
outportb(0x2E, 0x55);
break;
case 0x4E: //Address port = 0x4E, enter
keys = 0x87, 0x01, 0x55, 0xAA
outportb(0x4E, 0x87);
outportb(0x4E, 0x01);
outportb(0x4E, 0x55);
outportb(0x4E, 0xAA);
break;
default:
break;
}
}
//Exit index port
void Exit_IT8783_Config(unsigned int flag)
{
if(flag) IT8783_ioPort = 0x4e;
outportb(IT8783_ioPort, 0x02);
Summary of Contents for cPCI-6530BL Series
Page 8: ...viii Table of Contents Leading EDGE COMPUTING This page intentionally left blank ...
Page 10: ...x List of Figures Leading EDGE COMPUTING This page intentionally left blank ...
Page 12: ...xii List of Tables Leading EDGE COMPUTING This page intentionally left blank ...
Page 16: ...4 Introduction Leading EDGE COMPUTING This page intentionally left blank ...
Page 24: ...12 Specifications Leading EDGE COMPUTING This page intentionally left blank ...
Page 68: ...56 Getting Started Leading EDGE COMPUTING This page intentionally left blank ...
Page 76: ...64 Utilities Leading EDGE COMPUTING This page intentionally left blank ...
Page 110: ...98 BIOS Setup Utility Leading EDGE COMPUTING 8 4 2 PCH IO Configuration ...