
Applied Micro Circuits Corporation
6195 Lusk Blvd., San Diego, CA 92121  (619) 450-9333
15-79
PCI CONTROLLER
S5933
/****************************************************************************/
int write_configuration_byte(byte bus_number,
byte device_and_function,
byte register_number,
byte byte_to_write)
{
int ret_status; /* Function Return Status */
/* Call write_configuration_area function with byte data */
ret_status = write_configuration_area(WRITE_CONFIG_BYTE,
bus_number,
device_and_function,
register_number,
byte_to_write);
return (ret_status);
}
/****************************************************************************/
/*
*/
/*
WRITE_CONFIGURATION_WORD
*/
/*
*/
/* Purpose: Writes a word to the configuration space of a specific device
*/
/*
*/
/* Inputs:
*/
/*
*/
/*
byte bus_number
*/
/*
PCI bus to read configuration data from
*/
/*
*/
/*
byte device_and_function
*/
/*
Device Number in upper 5 bits, Function Number in lower 3 bits
*/
/*
*/
/*
byte register_number
*/
/*
Register Number of configuration space to read
*/
/*
*/
/*
word word_to_write
*/
/*
Word to write to Configuration Space
*/
/*
*/
/* Outputs:
*/
/*
*/
/*
Return Value - Indicates presence of device
*/
/*
SUCCESSFUL - Device found
*/
/*
NOT_SUCCESSFUL - BIOS error
*/
/*
BAD_REGISTER_NUMBER - Invalid Register Number
*/
/*
*/
/****************************************************************************/
int write_configuration_word(byte bus_number,
byte device_and_function,
byte register_number,
word word_to_write)
{
int ret_status; /* Function Return Status */
/* Call read_configuration_area function with word data */
ret_status = write_configuration_area(WRITE_CONFIG_WORD,
bus_number,