Revision 4ef1a3d3 hw/rtl8139.c
b/hw/rtl8139.c | ||
---|---|---|
1909 | 1909 |
|
1910 | 1910 |
cpu_physical_memory_read(cplus_tx_ring_desc, (uint8_t *)&val, 4); |
1911 | 1911 |
txdw0 = le32_to_cpu(val); |
1912 |
/* TODO: implement VLAN tagging support, VLAN tag data is read to txdw1 */ |
|
1912 | 1913 |
cpu_physical_memory_read(cplus_tx_ring_desc+4, (uint8_t *)&val, 4); |
1913 | 1914 |
txdw1 = le32_to_cpu(val); |
1914 | 1915 |
cpu_physical_memory_read(cplus_tx_ring_desc+8, (uint8_t *)&val, 4); |
... | ... | |
1920 | 1921 |
descriptor, |
1921 | 1922 |
txdw0, txdw1, txbufLO, txbufHI)); |
1922 | 1923 |
|
1924 |
/* TODO: the following discard cast should clean clang analyzer output */ |
|
1925 |
(void)txdw1; |
|
1926 |
|
|
1923 | 1927 |
/* w0 ownership flag */ |
1924 | 1928 |
#define CP_TX_OWN (1<<31) |
1925 | 1929 |
/* w0 end of ring flag */ |
... | ... | |
2045 | 2049 |
/* update ring data */ |
2046 | 2050 |
val = cpu_to_le32(txdw0); |
2047 | 2051 |
cpu_physical_memory_write(cplus_tx_ring_desc, (uint8_t *)&val, 4); |
2052 |
/* TODO: implement VLAN tagging support, VLAN tag data is read to txdw1 */ |
|
2048 | 2053 |
// val = cpu_to_le32(txdw1); |
2049 | 2054 |
// cpu_physical_memory_write(cplus_tx_ring_desc+4, &val, 4); |
2050 | 2055 |
|
Also available in: Unified diff