Changes in uspace/drv/nic/rtl8139/driver.c [d87561c:99e8fb7b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/rtl8139/driver.c
rd87561c r99e8fb7b 41 41 #include <io/log.h> 42 42 #include <nic.h> 43 #include < device/pci.h>43 #include <pci_dev_iface.h> 44 44 45 45 #include <ipc/irc.h> … … 190 190 return; 191 191 } 192 193 #include <device/pci.h>194 192 195 193 /** Set PmEn (Power management enable) bit value … … 1087 1085 ddf_msg(LVL_DEBUG, "%s device: irq 0x%x assigned", ddf_dev_get_name(dev), rtl8139->irq); 1088 1086 1089 rtl8139->io_addr = IOADDR_TO_PTR( hw_resources->io_ranges.ranges[0].address);1087 rtl8139->io_addr = IOADDR_TO_PTR(RNGABS(hw_resources->io_ranges.ranges[0])); 1090 1088 if (hw_resources->io_ranges.ranges[0].size < RTL8139_IO_SIZE) { 1091 1089 ddf_msg(LVL_ERROR, "i/o range assigned to the device " … … 1144 1142 ddf_msg(LVL_DEBUG, "Creating buffers"); 1145 1143 1146 rc = dmamem_map_anonymous(TX_PAGES * PAGE_SIZE, AS_AREA_WRITE, 0,1147 &rtl8139->tx_buff_phys, &rtl8139->tx_buff_virt);1144 rc = dmamem_map_anonymous(TX_PAGES * PAGE_SIZE, DMAMEM_4GiB, 1145 AS_AREA_WRITE, 0, &rtl8139->tx_buff_phys, &rtl8139->tx_buff_virt); 1148 1146 if (rc != EOK) { 1149 1147 ddf_msg(LVL_ERROR, "Can not allocate transmitter buffers."); … … 1164 1162 RxBUF_TOT_LENGTH); 1165 1163 1166 rc = dmamem_map_anonymous(RxBUF_TOT_LENGTH, AS_AREA_READ, 0,1167 &rtl8139->rx_buff_phys, &rtl8139->rx_buff_virt);1164 rc = dmamem_map_anonymous(RxBUF_TOT_LENGTH, DMAMEM_4GiB, 1165 AS_AREA_READ, 0, &rtl8139->rx_buff_phys, &rtl8139->rx_buff_virt); 1168 1166 if (rc != EOK) { 1169 1167 ddf_msg(LVL_ERROR, "Can not allocate receive buffer.");
Note:
See TracChangeset
for help on using the changeset viewer.