Changeset 1b20da0 in mainline for uspace/drv/nic/rtl8169/driver.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/rtl8169/driver.c
rdf6ded8 r1b20da0 59 59 static errno_t rtl8169_set_operation_mode(ddf_fun_t *fun, int speed, 60 60 nic_channel_mode_t duplex, nic_role_t role); 61 static errno_t rtl8169_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 61 static errno_t rtl8169_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 62 62 nic_result_t *we_receive, uint16_t *time); 63 static errno_t rtl8169_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 63 static errno_t rtl8169_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 64 64 uint16_t time); 65 65 static errno_t rtl8169_autoneg_enable(ddf_fun_t *fun, uint32_t advertisement); … … 237 237 /* Allocate TX ring */ 238 238 rtl8169->tx_ring = AS_AREA_ANY; 239 rc = dmamem_map_anonymous(TX_RING_SIZE, DMAMEM_4GiB, 239 rc = dmamem_map_anonymous(TX_RING_SIZE, DMAMEM_4GiB, 240 240 AS_AREA_READ | AS_AREA_WRITE, 0, &rtl8169->tx_ring_phys, 241 241 (void **)&rtl8169->tx_ring); … … 251 251 /* Allocate RX ring */ 252 252 rtl8169->rx_ring = AS_AREA_ANY; 253 rc = dmamem_map_anonymous(RX_RING_SIZE, DMAMEM_4GiB, 253 rc = dmamem_map_anonymous(RX_RING_SIZE, DMAMEM_4GiB, 254 254 AS_AREA_READ | AS_AREA_WRITE, 0, &rtl8169->rx_ring_phys, 255 255 (void **)&rtl8169->rx_ring); … … 265 265 /* Allocate TX buffers */ 266 266 rtl8169->tx_buff = AS_AREA_ANY; 267 rc = dmamem_map_anonymous(TX_BUFFERS_SIZE, DMAMEM_4GiB, 267 rc = dmamem_map_anonymous(TX_BUFFERS_SIZE, DMAMEM_4GiB, 268 268 AS_AREA_READ | AS_AREA_WRITE, 0, &rtl8169->tx_buff_phys, 269 269 &rtl8169->tx_buff); … … 277 277 /* Allocate RX buffers */ 278 278 rtl8169->rx_buff = AS_AREA_ANY; 279 rc = dmamem_map_anonymous(RX_BUFFERS_SIZE, DMAMEM_4GiB, 279 rc = dmamem_map_anonymous(RX_BUFFERS_SIZE, DMAMEM_4GiB, 280 280 AS_AREA_READ | AS_AREA_WRITE, 0, &rtl8169->rx_buff_phys, 281 281 &rtl8169->rx_buff); … … 594 594 } 595 595 596 static errno_t rtl8169_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 596 static errno_t rtl8169_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 597 597 nic_result_t *we_receive, uint16_t *time) 598 598 { … … 600 600 } 601 601 602 static errno_t rtl8169_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 602 static errno_t rtl8169_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 603 603 uint16_t time) 604 604 {
Note:
See TracChangeset
for help on using the changeset viewer.