Changeset df6ded8 in mainline for uspace/lib/c
- Timestamp:
- 2018-02-28T16:37:50Z (8 years ago)
- 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)
- Location:
- uspace/lib/c/include
- Files:
-
- 3 edited
-
bitops.h (modified) (1 diff)
-
byteorder.h (modified) (1 diff)
-
ipc/dev_iface.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/bitops.h
rf5e5f73 rdf6ded8 54 54 #define BIT_RANGE_EXTRACT(type, hi, lo, value) \ 55 55 (((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)) 56 60 57 61 /** Return position of first non-zero bit from left (i.e. [log_2(arg)]). -
uspace/lib/c/include/byteorder.h
rf5e5f73 rdf6ded8 85 85 #define ntohl(n) uint32_t_be2host((n)) 86 86 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 87 113 static inline uint64_t uint64_t_byteorder_swap(uint64_t n) 88 114 { -
uspace/lib/c/include/ipc/dev_iface.h
rf5e5f73 rdf6ded8 44 44 /** Audio device pcm buffer interface */ 45 45 AUDIO_PCM_BUFFER_IFACE, 46 46 47 47 /** Network interface controller interface */ 48 48 NIC_DEV_IFACE, 49 49 50 50 /** IEEE 802.11 interface controller interface */ 51 51 IEEE80211_DEV_IFACE, 52 52 53 53 /** Interface provided by any PCI device. */ 54 54 PCI_DEV_IFACE, … … 56 56 /** Interface provided by any USB device. */ 57 57 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. */ 59 61 USBHC_DEV_IFACE, 60 62 /** Interface provided by USB HID devices. */
Note:
See TracChangeset
for help on using the changeset viewer.
