+ ne2k_rdata_t *rdata = gcb->context;
+ if( rdata->rx_next_cb )
+ {
+ udi_nic_rx_cb_t *rx_cb = rdata->rx_next_cb;
+ rdata->rx_next_cb = rx_cb->chain;
+ rx_cb->chain = NULL;
+ udi_debug_printf("ne2k_intr__rx_ok: Initialising buffer\n");
+ udi_buf_write(ne2k_rx__buf_allocated, UDI_GCB(rx_cb), NULL, 1520, rx_cb->rx_buf, 0, 0, NULL);
+ }
+ else
+ {
+ // Drop packet due to no free cbs
+ udi_debug_printf("ne2k_intr__rx_ok: Dropped due to no free rx cbs\n");
+ // TODO: Tell hardware to drop packet
+ }
+}
+
+void ne2k_rx__buf_allocated(udi_cb_t *gcb, udi_buf_t *new_buf)
+{
+ ne2k_rdata_t *rdata = gcb->context;
+ udi_nic_rx_cb_t *rx_cb = UDI_MCB(gcb, udi_nic_rx_cb_t);