
Applied Micro Circuits Corporation
6195 Lusk Blvd., San Diego, CA 92121 (619) 450-9333
15-83
PCI CONTROLLER
S5933
return(_EAX);
}
/****************************************************************************/
/*
*/
/*
INSB
*/
/*
*/
/* Purpose: Inputs a string of BYTEs from a hardware port
*/
/*
*/
/* Inputs:
*/
/*
*/
/*
word port
*/
/*
hardware port to read from
*/
/*
*/
/*
void *buf
*/
/*
Buffer to read data into
*/
/*
*/
/*
int count
*/
/*
Number of BYTEs to read
*/
/*
*/
/* Outputs:
*/
/*
*/
/*
None
*/
/*
*/
/****************************************************************************/
void insb(word port, void *buf, int count)
{
_ES = FP_SEG(buf);
/* Segment of buf */
_DI = FP_OFF(buf);
/* Offset of buf
*/
_CX = count;
/* Number to read */
_DX = port;
/* Port
*/
asm
REP INSB;
}
/****************************************************************************/
/*
*/
/*
INSW
*/
/*
*/
/* Purpose: Inputs a string of WORDs from a hardware port
*/
/*
*/
/* Inputs:
*/
/*
*/
/*
word port
*/
/*
hardware port to read from
*/
/*
*/
/*
void *buf
*/
/*
Buffer to read data into
*/
/*
*/
/*
int count
*/
/*
Number of WORDs to read
*/
/*
*/
/* Outputs:
*/
/*
*/
/*
None
*/
/*
*/
/****************************************************************************/