2 * UDI Ne2000 NIC Driver
3 * By John Hodge (thePowersGang)
8 #define UDI_VERSION 0x101
9 #define UDI_NIC_VERSION 0x101
12 #include "ne2000_common.h"
15 void ne2k_nd_tx_tx_req__trans_done(udi_cb_t *gcb, udi_buf_t *new_buf, udi_status_t status, udi_ubit16_t res);
18 void ne2k_nd_tx_channel_event_ind(udi_channel_event_cb_t *cb)
22 void ne2k_nd_tx_tx_req(udi_nic_tx_cb_t *cb)
24 ne2k_rdata_t *rdata = UDI_GCB(cb)->context;
26 udi_debug_printf("ne2k_nd_tx_tx_req: %p\n", cb);
27 udi_debug_printf("- pio_handles[%i] = %p\n", NE2K_PIO_TX, rdata->pio_handles[NE2K_PIO_TX]);
28 udi_debug_printf("- cb->tx_buf->buf_size = %x\n", cb->tx_buf->buf_size);
29 udi_pio_trans(ne2k_nd_tx_tx_req__trans_done, UDI_GCB(cb), rdata->pio_handles[NE2K_PIO_TX],
30 0, cb->tx_buf, &cb->tx_buf->buf_size);
32 void ne2k_nd_tx_tx_req__trans_done(udi_cb_t *gcb, udi_buf_t *new_buf, udi_status_t status, udi_ubit16_t res)
34 udi_nsr_tx_rdy( UDI_MCB(gcb, udi_nic_tx_cb_t) );
37 void ne2k_nd_tx_exp_tx_req(udi_nic_tx_cb_t *cb)
39 // TODO: "expediant" TX reqest
40 ne2k_nd_tx_tx_req(cb);