From: John Hodge Date: Thu, 3 Oct 2013 15:01:12 +0000 (+0800) Subject: UDI/ne2000 - Stubbed tx so it loads X-Git-Tag: rel0.15~147 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=74a79298e084982a1bb94a2983fbacafcfbc857e;p=tpg%2Facess2.git UDI/ne2000 - Stubbed tx so it loads --- diff --git a/UDI/drivers/net_ne2000/ne2000_core.c b/UDI/drivers/net_ne2000/ne2000_core.c index ea562287..f5066614 100644 --- a/UDI/drivers/net_ne2000/ne2000_core.c +++ b/UDI/drivers/net_ne2000/ne2000_core.c @@ -58,6 +58,7 @@ void ne2k_enumerate_req(udi_enumerate_cb_t *cb, udi_ubit8_t enumeration_level) 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: diff --git a/UDI/drivers/net_ne2000/ne2000_rx.c b/UDI/drivers/net_ne2000/ne2000_rx.c index f38f5107..287d8e3f 100644 --- a/UDI/drivers/net_ne2000/ne2000_rx.c +++ b/UDI/drivers/net_ne2000/ne2000_rx.c @@ -18,6 +18,7 @@ void ne2k_nd_rx_channel_event_ind(udi_channel_event_cb_t *cb) } 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) { diff --git a/UDI/drivers/net_ne2000/ne2000_tx.c b/UDI/drivers/net_ne2000/ne2000_tx.c index e69de29b..111531da 100644 --- a/UDI/drivers/net_ne2000/ne2000_tx.c +++ b/UDI/drivers/net_ne2000/ne2000_tx.c @@ -0,0 +1,34 @@ +/* + * UDI Ne2000 NIC Driver + * By John Hodge (thePowersGang) + * + * ne2000_tx.c + * - Transmit Code + */ +#include +#include +#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); +} + + + diff --git a/UDI/drivers/net_ne2000/udiprops.txt b/UDI/drivers/net_ne2000/udiprops.txt index ca8f4292..8173018f 100644 --- a/UDI/drivers/net_ne2000/udiprops.txt +++ b/UDI/drivers/net_ne2000/udiprops.txt @@ -17,9 +17,9 @@ parent_bind_ops 1 0 1 0 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