@@ -700,23 +700,27 @@ static void set_ru_state(EEPRO100State * s, ru_state_t state)
700
700
701
701
static void dump_statistics (EEPRO100State * s )
702
702
{
703
+ const MemTxAttrs attrs = MEMTXATTRS_UNSPECIFIED ;
704
+
703
705
/* Dump statistical data. Most data is never changed by the emulation
704
706
* and always 0, so we first just copy the whole block and then those
705
707
* values which really matter.
706
708
* Number of data should check configuration!!!
707
709
*/
708
710
pci_dma_write (& s -> dev , s -> statsaddr , & s -> statistics , s -> stats_size );
709
711
stl_le_pci_dma (& s -> dev , s -> statsaddr + 0 ,
710
- s -> statistics .tx_good_frames );
712
+ s -> statistics .tx_good_frames , attrs );
711
713
stl_le_pci_dma (& s -> dev , s -> statsaddr + 36 ,
712
- s -> statistics .rx_good_frames );
714
+ s -> statistics .rx_good_frames , attrs );
713
715
stl_le_pci_dma (& s -> dev , s -> statsaddr + 48 ,
714
- s -> statistics .rx_resource_errors );
716
+ s -> statistics .rx_resource_errors , attrs );
715
717
stl_le_pci_dma (& s -> dev , s -> statsaddr + 60 ,
716
- s -> statistics .rx_short_frame_errors );
718
+ s -> statistics .rx_short_frame_errors , attrs );
717
719
#if 0
718
- stw_le_pci_dma (& s -> dev , s -> statsaddr + 76 , s -> statistics .xmt_tco_frames );
719
- stw_le_pci_dma (& s -> dev , s -> statsaddr + 78 , s -> statistics .rcv_tco_frames );
720
+ stw_le_pci_dma (& s -> dev , s -> statsaddr + 76 ,
721
+ s -> statistics .xmt_tco_frames , attrs );
722
+ stw_le_pci_dma (& s -> dev , s -> statsaddr + 78 ,
723
+ s -> statistics .rcv_tco_frames , attrs );
720
724
missing ("CU dump statistical counters" );
721
725
#endif
722
726
}
@@ -833,6 +837,7 @@ static void set_multicast_list(EEPRO100State *s)
833
837
834
838
static void action_command (EEPRO100State * s )
835
839
{
840
+ const MemTxAttrs attrs = MEMTXATTRS_UNSPECIFIED ;
836
841
/* The loop below won't stop if it gets special handcrafted data.
837
842
Therefore we limit the number of iterations. */
838
843
unsigned max_loop_count = 16 ;
@@ -911,7 +916,7 @@ static void action_command(EEPRO100State *s)
911
916
}
912
917
/* Write new status. */
913
918
stw_le_pci_dma (& s -> dev , s -> cb_address ,
914
- s -> tx .status | ok_status | STATUS_C );
919
+ s -> tx .status | ok_status | STATUS_C , attrs );
915
920
if (bit_i ) {
916
921
/* CU completed action. */
917
922
eepro100_cx_interrupt (s );
@@ -937,6 +942,7 @@ static void action_command(EEPRO100State *s)
937
942
938
943
static void eepro100_cu_command (EEPRO100State * s , uint8_t val )
939
944
{
945
+ const MemTxAttrs attrs = MEMTXATTRS_UNSPECIFIED ;
940
946
cu_state_t cu_state ;
941
947
switch (val ) {
942
948
case CU_NOP :
@@ -986,7 +992,7 @@ static void eepro100_cu_command(EEPRO100State * s, uint8_t val)
986
992
/* Dump statistical counters. */
987
993
TRACE (OTHER , logout ("val=0x%02x (dump stats)\n" , val ));
988
994
dump_statistics (s );
989
- stl_le_pci_dma (& s -> dev , s -> statsaddr + s -> stats_size , 0xa005 );
995
+ stl_le_pci_dma (& s -> dev , s -> statsaddr + s -> stats_size , 0xa005 , attrs );
990
996
break ;
991
997
case CU_CMD_BASE :
992
998
/* Load CU base. */
@@ -997,7 +1003,7 @@ static void eepro100_cu_command(EEPRO100State * s, uint8_t val)
997
1003
/* Dump and reset statistical counters. */
998
1004
TRACE (OTHER , logout ("val=0x%02x (dump stats and reset)\n" , val ));
999
1005
dump_statistics (s );
1000
- stl_le_pci_dma (& s -> dev , s -> statsaddr + s -> stats_size , 0xa007 );
1006
+ stl_le_pci_dma (& s -> dev , s -> statsaddr + s -> stats_size , 0xa007 , attrs );
1001
1007
memset (& s -> statistics , 0 , sizeof (s -> statistics ));
1002
1008
break ;
1003
1009
case CU_SRESUME :
@@ -1612,6 +1618,7 @@ static ssize_t nic_receive(NetClientState *nc, const uint8_t * buf, size_t size)
1612
1618
* - Magic packets should set bit 30 in power management driver register.
1613
1619
* - Interesting packets should set bit 29 in power management driver register.
1614
1620
*/
1621
+ const MemTxAttrs attrs = MEMTXATTRS_UNSPECIFIED ;
1615
1622
EEPRO100State * s = qemu_get_nic_opaque (nc );
1616
1623
uint16_t rfd_status = 0xa000 ;
1617
1624
#if defined(CONFIG_PAD_RECEIVED_FRAMES )
@@ -1726,9 +1733,9 @@ static ssize_t nic_receive(NetClientState *nc, const uint8_t * buf, size_t size)
1726
1733
TRACE (OTHER , logout ("command 0x%04x, link 0x%08x, addr 0x%08x, size %u\n" ,
1727
1734
rfd_command , rx .link , rx .rx_buf_addr , rfd_size ));
1728
1735
stw_le_pci_dma (& s -> dev , s -> ru_base + s -> ru_offset +
1729
- offsetof(eepro100_rx_t , status ), rfd_status );
1736
+ offsetof(eepro100_rx_t , status ), rfd_status , attrs );
1730
1737
stw_le_pci_dma (& s -> dev , s -> ru_base + s -> ru_offset +
1731
- offsetof(eepro100_rx_t , count ), size );
1738
+ offsetof(eepro100_rx_t , count ), size , attrs );
1732
1739
/* Early receive interrupt not supported. */
1733
1740
#if 0
1734
1741
eepro100_er_interrupt (s );
0 commit comments