2 stether_close (), 3 stether_config (), 4 stether_config_arc () – Maxim Integrated 78Q8430 ST 5100/OS-20 with NexGen TCP/IP Stack User Manual
Page 14: Stether_close (), Stether_config (), Stether_config_arc (), Figure 5: stether_close call graph
78Q8430 Driver Manual for ST5100/OS-20 with NexGen TCP/IP Stack
UM_8430_005
14
Rev.
1.0
4.2 STETHER_Close
()
Prototype:
int
STETHER_Close(NGifnet
*
netp)
Description:
Driver cleanup and Ethernet controller shutdown are handled by this function. It stops the driver,
deletes the task and serialization, unloads the driver and de-queues and frees any pending buffers.
Parameters:
netp
network interface type NGethifnet_tsc
Returns:
NG_EOK if OK.
NG_EALREADY Error if interface is not up.
Figure 5: STETHER_Close Call Graph
4.3 STETHER_Config
()
Prototype:
void
STETHER_Config (U32 Eth_BaseAddr,U8 Addr_Shift,U8 Tsc_Interrupt,U8 Int_Level,
U8 Use16Bit,U8 Trans_Len)
Description:
This routine configures the 78Q8430 interface. It records the input parameters in globally available
variables for use by the driver.
Parameters:
Eth_BaseAddr
78Q8430 base address
Addr_Shift
address shift
Tsc_Interrupt
tsc interrupt
Int_Level
interrupt
level
Use16Bit
use 16-bit bus width
Trans_Len
transfer packet length
Returns:
none
4.4 STETHER_Config_ARC
()
Prototype:
void
STETHER_Config_ARC(NGifnet
*
netp)
Description:
This function configures the ARC table with the contents of the preset arc_entry[] array found in
DEVICE_CONTROL_STRUCT. The ARC address has the same format as a standard 6 byte MAC
address. It implements all the available default rules.