rdata->macaddr[0], rdata->macaddr[1], rdata->macaddr[2],
rdata->macaddr[3], rdata->macaddr[4], rdata->macaddr[5] );
attr_list ++;
+ cb->attr_valid_length = attr_list - cb->attr_list;
udi_enumerate_ack(cb, UDI_ENUMERATE_OK, NE2K_OPS_CTRL);
break;
case UDI_ENUMERATE_NEXT:
}
void ne2k_nd_rx_rx_rdy(udi_nic_rx_cb_t *cb)
{
+ // TODO: Add cb(s) to avaliable list
}
void ne2k_intr__rx_ok(udi_cb_t *gcb)
{
+/*
+ * UDI Ne2000 NIC Driver
+ * By John Hodge (thePowersGang)
+ *
+ * ne2000_tx.c
+ * - Transmit Code
+ */
+#include <udi.h>
+#include <udi_nic.h>
+#include "ne2000_common.h"
+
+// === PROTOTYPES ===
+
+// === CODE ===
+void ne2k_nd_tx_channel_event_ind(udi_channel_event_cb_t *cb)
+{
+ // TODO: Set up tx cb(s)
+}
+
+void ne2k_nd_tx_tx_req(udi_nic_tx_cb_t *cb)
+{
+ // TODO: TX request
+
+ udi_nsr_tx_rdy(cb);
+}
+
+void ne2k_nd_tx_exp_tx_req(udi_nic_tx_cb_t *cb)
+{
+ // TODO: "expediant" TX reqest
+ ne2k_nd_tx_tx_req(cb);
+}
+
+
+
child_bind_ops 2 0 1 # Ctrl (TX and RX are set up via this)
# Realtek 8029
-device 101 1 bus_type string pci pci_vendor_id ubit32 10ec pci_device_id ubit 8029
+device 101 1 bus_type string pci pci_vendor_id ubit32 0x10ec pci_device_id ubit32 0x8029
# Realtek 8129
-device 102 1 bus_type string pci pci_vendor_id ubit32 10ec pci_device_id ubit 8129
+device 102 1 bus_type string pci pci_vendor_id ubit32 0x10ec pci_device_id ubit32 0x8129
#custom %media_type driver 0 0