Changeset df6ded8 in mainline for uspace/lib/c


Ignore:
Timestamp:
2018-02-28T16:37:50Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b20da0
Parents:
f5e5f73 (diff), b2dca8de (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jakub Jermar <jakub@…> (2018-02-28 16:06:42)
git-committer:
Jakub Jermar <jakub@…> (2018-02-28 16:37:50)
Message:

Merge github.com:helenos-xhci-team/helenos

This commit merges support for USB 3 and generally refactors, fixes,
extends and cleans up the existing USB framework.

Notable additions and features:

  • new host controller driver has been implemented to control various xHC models (among others, NEC Renesas uPD720200)
  • isochronous data transfer mode
  • support for explicit USB device removal
  • USB tablet driver
Location:
uspace/lib/c/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/bitops.h

    rf5e5f73 rdf6ded8  
    5454#define BIT_RANGE_EXTRACT(type, hi, lo, value) \
    5555    (((value) >> (lo)) & BIT_RRANGE(type, (hi) - (lo) + 1))
     56
     57/** Insert @a value between bits @a hi .. @a lo. */
     58#define BIT_RANGE_INSERT(type, hi, lo, value) \
     59    (((value) & BIT_RRANGE(type, (hi) - (lo) + 1)) << (lo))
    5660
    5761/** Return position of first non-zero bit from left (i.e. [log_2(arg)]).
  • uspace/lib/c/include/byteorder.h

    rf5e5f73 rdf6ded8  
    8585#define ntohl(n)  uint32_t_be2host((n))
    8686
     87#define uint8_t_be2host(n)  (n)
     88#define uint8_t_le2host(n)  (n)
     89#define host2uint8_t_be(n)  (n)
     90#define host2uint8_t_le(n)  (n)
     91#define host2uint8_t_le(n)  (n)
     92
     93#define  int8_t_le2host(n)  uint8_t_le2host(n)
     94#define int16_t_le2host(n) uint16_t_le2host(n)
     95#define int32_t_le2host(n) uint32_t_le2host(n)
     96#define int64_t_le2host(n) uint64_t_le2host(n)
     97
     98#define  int8_t_be2host(n)  uint8_t_be2host(n)
     99#define int16_t_be2host(n) uint16_t_be2host(n)
     100#define int32_t_be2host(n) uint32_t_be2host(n)
     101#define int64_t_be2host(n) uint64_t_be2host(n)
     102
     103#define  host2int8_t_le(n)  host2uint8_t_le(n)
     104#define host2int16_t_le(n) host2uint16_t_le(n)
     105#define host2int32_t_le(n) host2uint32_t_le(n)
     106#define host2int64_t_le(n) host2uint64_t_le(n)
     107
     108#define  host2int8_t_be(n)  host2uint8_t_be(n)
     109#define host2int16_t_be(n) host2uint16_t_be(n)
     110#define host2int32_t_be(n) host2uint32_t_be(n)
     111#define host2int64_t_be(n) host2uint64_t_be(n)
     112
    87113static inline uint64_t uint64_t_byteorder_swap(uint64_t n)
    88114{
  • uspace/lib/c/include/ipc/dev_iface.h

    rf5e5f73 rdf6ded8  
    4444        /** Audio device pcm buffer interface */
    4545        AUDIO_PCM_BUFFER_IFACE,
    46        
     46
    4747        /** Network interface controller interface */
    4848        NIC_DEV_IFACE,
    49                
     49
    5050        /** IEEE 802.11 interface controller interface */
    5151        IEEE80211_DEV_IFACE,
    52        
     52
    5353        /** Interface provided by any PCI device. */
    5454        PCI_DEV_IFACE,
     
    5656        /** Interface provided by any USB device. */
    5757        USB_DEV_IFACE,
    58         /** Interface provided by USB host controller. */
     58        /** Interface provided by USB diagnostic devices. */
     59        USBDIAG_DEV_IFACE,
     60        /** Interface provided by USB host controller to USB device. */
    5961        USBHC_DEV_IFACE,
    6062        /** Interface provided by USB HID devices. */
Note: See TracChangeset for help on using the changeset viewer.