64
Utilities
Leading
EDGE COMPUTING
Sample Code
#include <stdio.h>
#include <stdlib.h>
typedefunsigned charBYTE;
void EnterConfig()
{
outportb(SIO_CONFIG_INDEX, 0x87);
outportb(SIO_CONFIG_INDEX, 0x01);
outportb(SIO_CONFIG_INDEX, 0x55);
outportb(SIO_CONFIG_INDEX, 0x55);
}
void ExitConfig()
{
outportb(SIO_CONFIG_INDEX, 0x02);
outportb(SIO_CONFIG_DATA, 0x02);
}
void LDNSelection(BYTE LDN)
{
outportb(SIO_CONFIG_INDEX, 0x07);
outportb(SIO_CONFIG_DATA, LDN);
}
void SIOBasicIORead(
BYTE LDN,
BYTE Register,
BYTE *Data)
{
LDNSelection(LDN);
outportb(SIO_CONFIG_INDEX, Register);
*Data = inportb(SIO_CONFIG_DATA);
}
void SIOBasicIOWrite(
BYTE LDN,
BYTE Register,
BYTE Data)
{
Summary of Contents for cPCI-6630 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 24: ...12 Specifications Leading EDGE COMPUTING This page intentionally left blank...
Page 30: ...18 Functional Description Leading EDGE COMPUTING This page intentionally left blank...
Page 56: ...44 Board Interfaces Leading EDGE COMPUTING This page intentionally left blank...
Page 74: ...62 Driver Installation Leading EDGE COMPUTING This page intentionally left blank...
Page 81: ...Utilities 69 cPCI 6630 if i 7 bData2 bData2 1 outportb IT8786_GPIO_BASE_ADDRESS 0x06 bData...
Page 82: ...70 Utilities Leading EDGE COMPUTING This page intentionally left blank...
Page 119: ...BIOS Setup Utility 107 cPCI 6630 8 4 2 PCH IO Configuration...