Changeset 462054a in mainline for uspace/drv/bus/usb/ar9271/wmi.c


Ignore:
Timestamp:
2015-01-29T17:46:19Z (9 years ago)
Author:
Jan Kolarik <kolarik@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab365c4
Parents:
01784d2
Message:

Finished HW initialization (but skipped several things, will finish them later if they will be necessary) and finally bringed up device led light :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ar9271/wmi.c

    r01784d2 r462054a  
    115115 * @return EOK if succeed, negative error code otherwise.
    116116 */
    117 int wmi_reg_rmw(htc_device_t *htc_device, uint32_t reg_offset,
     117int wmi_reg_clear_set_bit(htc_device_t *htc_device, uint32_t reg_offset,
    118118        uint32_t set_bit, uint32_t clear_bit)
    119119{
     
    127127        }
    128128       
     129        value &= ~clear_bit;
    129130        value |= set_bit;
    130         value &= ~clear_bit;
    131131       
    132132        rc = wmi_reg_write(htc_device, reg_offset, value);
     
    152152        uint32_t set_bit)
    153153{
    154         return wmi_reg_rmw(htc_device, reg_offset, set_bit, 0);
     154        return wmi_reg_clear_set_bit(htc_device, reg_offset, set_bit, 0);
    155155}
    156156
     
    167167        uint32_t clear_bit)
    168168{
    169         return wmi_reg_rmw(htc_device, reg_offset, 0, clear_bit);
     169        return wmi_reg_clear_set_bit(htc_device, reg_offset, 0, clear_bit);
    170170}
    171171
Note: See TracChangeset for help on using the changeset viewer.