Home |
Function xn_add_host_table_entry Function xn_delete_host_table_entry Function xn_interface_open_config Function xn_interface_ethernet_statistics Function xn_interface_statistics Function xn_send_ethernet_frame Function cb_wr_screen_string_fnc Function cb_rs232_connection_lost_fnc |
Function xn_interface_open_configOpens an interface with a different configuration than what is specified in the device table. int xn_interface_open_config(int device_id, int minor_number, unsigned short io_address, int irq_val, WORD mem_address); Parametersdevice_idDevice type (NE2000_DEVICE, SMC91C9X_DEVICE, LOOP_DEVICE, etc.). minor_numberMinor device number to distinguish multiple devices handled by the same driver. io_addressI/O address to use instead of address from device table (0=use device table value). irq_valIRQ to use instead of IRQ from device table (-1=use device table value). mem_addressMemory address to use instead of memory address from device table (0=use device table value). return valueReturns interface number if interface was opened successfully, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Error Codes further describes each error. Possible values for this function are:
xn_interface_open_config is equivalent to xn_interface_open, except with additional parameters for I/O address, IRQ, and memory address. xn_interface_open_config is equivalent to xn_attach, but is used for non-dedicated interfaces.
|