Fields
revision: u64,
_start: *const fn (*const SimpleNetworkProtocol) callconv(cc) Status,
_stop: *const fn (*const SimpleNetworkProtocol) callconv(cc) Status,
_initialize: *const fn (*const SimpleNetworkProtocol, usize, usize) callconv(cc) Status,
_reset: *const fn (*const SimpleNetworkProtocol, bool) callconv(cc) Status,
_shutdown: *const fn (*const SimpleNetworkProtocol) callconv(cc) Status,
_receive_filters: *const fn (*const SimpleNetworkProtocol, SimpleNetworkReceiveFilter, SimpleNetworkReceiveFilter, bool, usize, ?[*]const MacAddress) callconv(cc) Status,
_station_address: *const fn (*const SimpleNetworkProtocol, bool, ?*const MacAddress) callconv(cc) Status,
_statistics: *const fn (*const SimpleNetworkProtocol, bool, ?*usize, ?*NetworkStatistics) callconv(cc) Status,
_mcast_ip_to_mac: *const fn (*const SimpleNetworkProtocol, bool, *const anyopaque, *MacAddress) callconv(cc) Status,
_nvdata: *const fn (*const SimpleNetworkProtocol, bool, usize, usize, [*]u8) callconv(cc) Status,
_get_status: *const fn (*const SimpleNetworkProtocol, *SimpleNetworkInterruptStatus, ?*?[*]u8) callconv(cc) Status,
_transmit: *const fn (*const SimpleNetworkProtocol, usize, usize, [*]const u8, ?*const MacAddress, ?*const MacAddress, ?*const u16) callconv(cc) Status,
_receive: *const fn (*const SimpleNetworkProtocol, ?*usize, *usize, [*]u8, ?*MacAddress, ?*MacAddress, ?*u16) callconv(cc) Status,
wait_for_packet: Event,
mode: *SimpleNetworkMode,
Functions
fn getStatus(self: *const SimpleNetworkProtocol, interrupt_status: *SimpleNetworkInterruptStatus, tx_buf: ?*?[*]u8) Status
Reads the current interrupt status and recycled transmit buffer status from a ne…
Reads the current interrupt status and recycled transmit buffer status from a network interface.
fn initialize(self: *const SimpleNetworkProtocol, extra_rx_buffer_size: usize, extra_tx_buffer_size: usize) Status
Resets a network adapter and allocates the transmit and receive buffers required…
Resets a network adapter and allocates the transmit and receive buffers required by the network interface.
fn mcastIpToMac(self: *const SimpleNetworkProtocol, ipv6: bool, ip: *const anyopaque, mac: *MacAddress) Status
Converts a multicast IP address to a multicast HW MAC address.
fn nvdata(self: *const SimpleNetworkProtocol, read_write: bool, offset: usize, buffer_size: usize, buffer: [*]u8) Status
Performs read and write operations on the NVRAM device attached to a network int…
Performs read and write operations on the NVRAM device attached to a network interface.
fn receive(self: *const SimpleNetworkProtocol, header_size: ?*usize, buffer_size: *usize, buffer: [*]u8, src_addr: ?*MacAddress, dest_addr: ?*MacAddress, protocol: ?*u16) Status
Receives a packet from a network interface.
fn receiveFilters(self: *const SimpleNetworkProtocol, enable: SimpleNetworkReceiveFilter, disable: SimpleNetworkReceiveFilter, reset_mcast_filter: bool, mcast_filter_cnt: usize, mcast_filter: ?[*]const MacAddress) Status
Manages the multicast receive filters of a network interface.
fn reset(self: *const SimpleNetworkProtocol, extended_verification: bool) Status
Resets a network adapter and reinitializes it with the parameters that were prov…
Resets a network adapter and reinitializes it with the parameters that were provided in the previous call to initialize().
fn shutdown(self: *const SimpleNetworkProtocol) Status
Resets a network adapter and leaves it in a state that is safe for another drive…
Resets a network adapter and leaves it in a state that is safe for another driver to initialize.
fn start(self: *const SimpleNetworkProtocol) Status
Changes the state of a network interface from “stopped” to “started”.
fn stationAddress(self: *const SimpleNetworkProtocol, reset_flag: bool, new: ?*const MacAddress) Status
Modifies or resets the current station address, if supported.
fn statistics(self: *const SimpleNetworkProtocol, reset_flag: bool, statistics_size: ?*usize, statistics_table: ?*NetworkStatistics) Status
Resets or collects the statistics on a network interface.
fn stop(self: *const SimpleNetworkProtocol) Status
Changes the state of a network interface from “started” to “stopped”.
fn transmit(self: *const SimpleNetworkProtocol, header_size: usize, buffer_size: usize, buffer: [*]const u8, src_addr: ?*const MacAddress, dest_addr: ?*const MacAddress, protocol: ?*const u16) Status
Places a packet in the transmit queue of a network interface.