/****************************************************************************
NAME
ip_cfg_w - Plug and Play Register write.
DESCRIPTION
This function performs a single 8-bit write to the specified Plug and
Play Register.
The Plug and Play Register number is written to the Auto-configuration
Port (ACP) at I/O address 0x0279 then the data is written to the ACP
data port at I/O address 0x0A79.
Note that per the Plug and Play Specification, all Plug and Play register
accesses are 8-bit.
INPUT
Argument <reg> specifies the Plug and Play register you want to access.
Argument <data> specifies the data you want to write.
CALLS
outportb() - Outputs a byte to a hardware port. Function in the
(Borland) run-time library.
****************************************************************************/
void ip_cfg_w(int reg, BYTE data)
{
outportb(0x279, reg);
/* Write ACP address. */
outportb(0xA79, data);
/* Write ACP data. */
}
How to Perform Plug and Play Initiation Key with PCnet-ISA II
9