Changeset 850fd32 in mainline for uspace/drv/nic/rtl8139/driver.c
- Timestamp:
- 2018-03-11T01:21:19Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 84239b1, f0e825d
- Parents:
- 338d54a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/rtl8139/driver.c
r338d54a7 r850fd32 231 231 *mac0_dest = pio_read_32(rtl8139->io_port + MAC0); 232 232 *mac4_dest = pio_read_16(rtl8139->io_port + MAC0 + 4); 233 } ;233 } 234 234 235 235 /** Set MAC address to the device … … 423 423 err_size: 424 424 return; 425 } ;425 } 426 426 427 427 … … 612 612 rtl8139_rx_reset(rtl8139); 613 613 return frames; 614 } ;614 } 615 615 616 616 … … 833 833 /* Turn the interrupts on again */ 834 834 rtl8139_hw_int_set(rtl8139); 835 } ;835 } 836 836 837 837 /** Register interrupt handler for the card in the system … … 1039 1039 ddf_msg(LVL_ERROR, "%s device: unexpected irq count", ddf_dev_get_name(dev)); 1040 1040 return EINVAL; 1041 } ;1041 } 1042 1042 if (hw_resources->io_ranges.count != 1) { 1043 1043 ddf_msg(LVL_ERROR, "%s device: unexpected io ranges count", ddf_dev_get_name(dev)); … … 1331 1331 rtl8139_dev_cleanup(dev); 1332 1332 return rc; 1333 } ;1333 } 1334 1334 1335 1335 /** Set card MAC address … … 1526 1526 1527 1527 return EOK; 1528 } ;1528 } 1529 1529 1530 1530 /** Set current pause frame configuration … … 1562 1562 } 1563 1563 return EOK; 1564 } ;1564 } 1565 1565 1566 1566 /** Set operation mode of the device … … 1937 1937 1938 1938 return EOK; 1939 } ;1939 } 1940 1940 1941 1941 /** Set acceptance of weird frames … … 1967 1967 fibril_mutex_unlock(&rtl8139->rx_lock); 1968 1968 return EOK; 1969 } ;1969 } 1970 1970 1971 1971 … … 2006 2006 default: 2007 2007 return EINVAL; 2008 } ;2008 } 2009 2009 if(rtl8139->pm.active++ == 0) 2010 2010 rtl8139_hw_pmen_set(rtl8139, 1); … … 2042 2042 default: 2043 2043 return; 2044 } ;2044 } 2045 2045 rtl8139->pm.active--; 2046 2046 if (rtl8139->pm.active == 0)
Note:
See TracChangeset
for help on using the changeset viewer.