Changeset 09ab0a9a in mainline for uspace/drv/nic/rtl8139/driver.c
- Timestamp:
- 2018-09-13T12:05:53Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/rtl8139/driver.c
rb2aaaa0 r09ab0a9a 112 112 #define RxBUF_TOT_LENGTH RTL8139_RXBUF_LENGTH(RXBUF_SIZE_FLAGS) 113 113 114 115 114 /** Default interrupt mask */ 116 115 #define RTL_DEFAULT_INTERRUPTS UINT16_C(0xFFFF) … … 123 122 #define REG_GET_VAL(value, reg_part)\ 124 123 (((value) >> reg_part##_SHIFT) & reg_part##_MASK) 125 126 124 127 125 /** Set interrupts on controller … … 430 428 } 431 429 432 433 430 /** Reset the controller 434 431 * … … 620 617 return frames; 621 618 } 622 623 619 624 620 irq_pio_range_t rtl8139_irq_pio_ranges[] = { … … 746 742 } 747 743 748 749 744 /** Deal with poll interrupt 750 745 * … … 767 762 return receive; 768 763 } 769 770 764 771 765 /** Poll device according to isr status … … 963 957 } 964 958 965 966 959 static errno_t rtl8139_unicast_set(nic_t *nic_data, nic_unicast_mode_t mode, 967 960 const nic_address_t *, size_t); … … 969 962 const nic_address_t *addr, size_t addr_count); 970 963 static errno_t rtl8139_broadcast_set(nic_t *nic_data, nic_broadcast_mode_t mode); 971 972 964 973 965 /** Create driver data structure … … 1004 996 nic_set_poll_handlers(nic_data, rtl8139_poll_mode_change, rtl8139_poll); 1005 997 1006 1007 998 fibril_mutex_initialize(&rtl8139->rx_lock); 1008 999 fibril_mutex_initialize(&rtl8139->tx_lock); … … 1097 1088 return ret; 1098 1089 } 1099 1100 1090 1101 1091 /** Allocate buffers using DMA framework … … 1978 1968 } 1979 1969 1980 1981 1970 /** Turn Wakeup On Lan method on 1982 1971 * … … 2057 2046 } 2058 2047 2059 2060 2048 /** Set polling mode 2061 2049 * … … 2143 2131 } 2144 2132 2145 2146 2133 /** Main function of RTL8139 driver 2147 2134 *
Note:
See TracChangeset
for help on using the changeset viewer.