miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
lwip_port.c File Reference
#include <miniOS/net/lwip_port.h>
#include <miniOS/net/net_observe.h>
#include <string.h>
Include dependency graph for lwip_port.c:

Classes

struct  lwip_port_state_t

Functions

static void lwip_port_receive (netdev_t *dev, const void *frame, size_t frame_len, void *ctx)
netdev_tlwip_port_attach (lwip_port_rx_callback_t rx_callback, void *rx_ctx, lwip_port_timeout_callback_t timeout_callback, void *timeout_ctx)
void lwip_port_poll (void)
void lwip_port_poll_timeouts (uint32_t elapsed_ms)
int lwip_port_tx (const void *frame, size_t frame_len)
lwip_port_frame_kind_t lwip_port_classify (const ethernet_frame_info_t *info)
uint32_t sys_now (void)
unsigned int miniOS_lwip_rand (void)

Variables

static lwip_port_state_t g_lwip_port_state
volatile uint64_t lapic_tick_count

Function Documentation

◆ lwip_port_attach()

netdev_t * lwip_port_attach ( lwip_port_rx_callback_t rx_callback,
void * rx_ctx,
lwip_port_timeout_callback_t timeout_callback,
void * timeout_ctx )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lwip_port_classify()

lwip_port_frame_kind_t lwip_port_classify ( const ethernet_frame_info_t * info)
Here is the caller graph for this function:

◆ lwip_port_poll()

void lwip_port_poll ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lwip_port_poll_timeouts()

void lwip_port_poll_timeouts ( uint32_t elapsed_ms)
Here is the caller graph for this function:

◆ lwip_port_receive()

void lwip_port_receive ( netdev_t * dev,
const void * frame,
size_t frame_len,
void * ctx )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lwip_port_tx()

int lwip_port_tx ( const void * frame,
size_t frame_len )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ miniOS_lwip_rand()

unsigned int miniOS_lwip_rand ( void )

◆ sys_now()

uint32_t sys_now ( void )

Variable Documentation

◆ g_lwip_port_state

lwip_port_state_t g_lwip_port_state
static