Restore always-on LPT status bits, except ERROR

This commit is contained in:
RichardG867
2020-10-17 01:52:46 -03:00
parent 1816a189ee
commit 65b1111c11
3 changed files with 6 additions and 6 deletions

View File

@@ -21,4 +21,4 @@
extern const lpt_device_t lpt_plip_device;
extern const device_t plip_device;
#endif /*NET_PLIP_H*/
#endif /*NET_PLIP_H*/

View File

@@ -93,8 +93,8 @@ lpt_devices_close(void)
for (i = 0; i < 3; i++) {
dev = &lpt_ports[i];
if (dev->dt)
dev->dt->close(dev->priv);
if (dev->dt)
dev->dt->close(dev->priv);
dev->dt = NULL;
}
@@ -142,7 +142,7 @@ lpt_read(uint16_t port, void *priv)
case 1:
if (dev->dt && dev->dt->read_status)
ret = dev->dt->read_status(dev->priv);
ret = dev->dt->read_status(dev->priv) | 0x07;
else
ret = 0xdf;
break;

View File

@@ -351,7 +351,7 @@ network_rx_queue(void *priv)
network_queue_get(0, &pkt);
if ((pkt != NULL) && (pkt->len > 0)) {
network_dump_packet(pkt);
network_dump_packet(pkt);
net_cards[network_card].rx(pkt->priv, pkt->data, pkt->len);
if (pkt->len >= 128)
timer_on_auto(&network_rx_queue_timer, 0.762939453125 * 2.0 * ((double) pkt->len));
@@ -554,7 +554,7 @@ network_do_tx(void)
network_queue_get(1, &pkt);
if ((pkt != NULL) && (pkt->len > 0)) {
network_dump_packet(pkt);
network_dump_packet(pkt);
switch(network_type) {
case NET_TYPE_PCAP:
net_pcap_in(pkt->data, pkt->len);