Changeset 01784d2 in mainline for uspace/drv/bus/usb/ar9271/wmi.h


Ignore:
Timestamp:
2015-01-28T18:19:30Z (10 years ago)
Author:
Jan Kolarik <kolarik@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
462054a
Parents:
ef521d4
Message:

Fixed errors in registry read and write, finished reseting device.

File:
1 edited

Legend:

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

    ref521d4 r01784d2  
    106106} wmi_command_t;
    107107
     108/**
     109 * Structure used when sending registry buffer
     110 */
    108111typedef struct {
    109112        uint32_t offset;                /**< Big Endian value! */
    110113        uint32_t value;                 /**< Big Endian value! */
    111 } reg_buffer_t;
     114} wmi_reg_t;
    112115
    113116extern int wmi_reg_read(htc_device_t *htc_device, uint32_t reg_offset,
     
    115118extern int wmi_reg_write(htc_device_t *htc_device, uint32_t reg_offset,
    116119        uint32_t val);
     120extern int wmi_reg_rmw(htc_device_t *htc_device, uint32_t reg_offset,
     121        uint32_t set_bit, uint32_t clear_bit);
     122extern int wmi_reg_set_bit(htc_device_t *htc_device, uint32_t reg_offset,
     123        uint32_t set_bit);
     124extern int wmi_reg_clear_bit(htc_device_t *htc_device, uint32_t reg_offset,
     125        uint32_t clear_bit);
    117126extern int wmi_reg_buffer_write(htc_device_t *htc_device,
    118         reg_buffer_t *reg_buffer, size_t elements);
     127        wmi_reg_t *reg_buffer, size_t elements);
    119128extern int wmi_send_command(htc_device_t *htc_device,
    120129        wmi_command_t command_id,
    121130        uint8_t *command_buffer, uint32_t command_length,
    122         uint8_t *response_buffer, uint32_t response_length);
     131        void *response_buffer);
    123132
    124133#endif  /* ATHEROS_WMI_H */
Note: See TracChangeset for help on using the changeset viewer.