Linux 4.2-rc7 Backmerge master for i915 fixes
Showing the changes to include/uapi (8 of 825 files). Show all
Unified · Split
| @@ -32,7 +32,7 @@ · 31 unmodified lines | |||
| 32 | #ifndef __AMDGPU_DRM_H__ | 32 | #ifndef __AMDGPU_DRM_H__ |
| 33 | #define __AMDGPU_DRM_H__ | 33 | #define __AMDGPU_DRM_H__ |
| 34 | 34 | ||
| 35 | #include <drm/drm.h> | 35 | #include "drm.h" |
| 36 | 36 | ||
| 37 | #define DRM_AMDGPU_GEM_CREATE 0x00 | 37 | #define DRM_AMDGPU_GEM_CREATE 0x00 |
| 38 | #define DRM_AMDGPU_GEM_MMAP 0x01 | 38 | #define DRM_AMDGPU_GEM_MMAP 0x01 |
| @@ -614,6 +614,8 @@ struct drm_amdgpu_info_device { · 575 unmodified lines | |||
| 614 | uint32_t vram_type; | 614 | uint32_t vram_type; |
| 615 | /** video memory bit width*/ | 615 | /** video memory bit width*/ |
| 616 | uint32_t vram_bit_width; | 616 | uint32_t vram_bit_width; |
| 617 | /* vce harvesting instance */ | ||
| 618 | uint32_t vce_harvest_config; | ||
| 617 | }; | 619 | }; |
| 618 | 620 | ||
| 619 | struct drm_amdgpu_info_hw_ip { | 621 | struct drm_amdgpu_info_hw_ip { |
| @@ -1081,6 +1081,14 @@ struct drm_i915_reg_read { · 1080 unmodified lines | |||
| 1081 | __u64 offset; | 1081 | __u64 offset; |
| 1082 | __u64 val; /* Return value */ | 1082 | __u64 val; /* Return value */ |
| 1083 | }; | 1083 | }; |
| 1084 | /* Known registers: | ||
| 1085 | * | ||
| 1086 | * Render engine timestamp - 0x2358 + 64bit - gen7+ | ||
| 1087 | * - Note this register returns an invalid value if using the default | ||
| 1088 | * single instruction 8byte read, in order to workaround that use | ||
| 1089 | * offset (0x2538 | 1) instead. | ||
| 1090 | * | ||
| 1091 | */ | ||
| 1084 | 1092 | ||
| 1085 | struct drm_i915_reset_stats { | 1093 | struct drm_i915_reset_stats { |
| 1086 | __u32 ctx_id; | 1094 | __u32 ctx_id; |
| @@ -33,7 +33,7 @@ · 32 unmodified lines | |||
| 33 | #ifndef __RADEON_DRM_H__ | 33 | #ifndef __RADEON_DRM_H__ |
| 34 | #define __RADEON_DRM_H__ | 34 | #define __RADEON_DRM_H__ |
| 35 | 35 | ||
| 36 | #include <drm/drm.h> | 36 | #include "drm.h" |
| 37 | 37 | ||
| 38 | /* WARNING: If you change any of these defines, make sure to change the | 38 | /* WARNING: If you change any of these defines, make sure to change the |
| 39 | * defines in the X server file (radeon_sarea.h) | 39 | * defines in the X server file (radeon_sarea.h) |
| @@ -319,6 +319,7 @@ · 318 unmodified lines | |||
| 319 | #define PCI_MSIX_PBA 8 /* Pending Bit Array offset */ | 319 | #define PCI_MSIX_PBA 8 /* Pending Bit Array offset */ |
| 320 | #define PCI_MSIX_PBA_BIR 0x00000007 /* BAR index */ | 320 | #define PCI_MSIX_PBA_BIR 0x00000007 /* BAR index */ |
| 321 | #define PCI_MSIX_PBA_OFFSET 0xfffffff8 /* Offset into specified BAR */ | 321 | #define PCI_MSIX_PBA_OFFSET 0xfffffff8 /* Offset into specified BAR */ |
| 322 | #define PCI_MSIX_FLAGS_BIRMASK PCI_MSIX_PBA_BIR /* deprecated */ | ||
| 322 | #define PCI_CAP_MSIX_SIZEOF 12 /* size of MSIX registers */ | 323 | #define PCI_CAP_MSIX_SIZEOF 12 /* size of MSIX registers */ |
| 323 | 324 | ||
| 324 | /* MSI-X Table entry format */ | 325 | /* MSI-X Table entry format */ |
| @@ -34,6 +34,7 @@ · 33 unmodified lines | |||
| 34 | /* The feature bitmap for virtio net */ | 34 | /* The feature bitmap for virtio net */ |
| 35 | #define VIRTIO_NET_F_CSUM 0 /* Host handles pkts w/ partial csum */ | 35 | #define VIRTIO_NET_F_CSUM 0 /* Host handles pkts w/ partial csum */ |
| 36 | #define VIRTIO_NET_F_GUEST_CSUM 1 /* Guest handles pkts w/ partial csum */ | 36 | #define VIRTIO_NET_F_GUEST_CSUM 1 /* Guest handles pkts w/ partial csum */ |
| 37 | #define VIRTIO_NET_F_CTRL_GUEST_OFFLOADS 2 /* Dynamic offload configuration. */ | ||
| 37 | #define VIRTIO_NET_F_MAC 5 /* Host has given MAC address. */ | 38 | #define VIRTIO_NET_F_MAC 5 /* Host has given MAC address. */ |
| 38 | #define VIRTIO_NET_F_GUEST_TSO4 7 /* Guest can handle TSOv4 in. */ | 39 | #define VIRTIO_NET_F_GUEST_TSO4 7 /* Guest can handle TSOv4 in. */ |
| 39 | #define VIRTIO_NET_F_GUEST_TSO6 8 /* Guest can handle TSOv6 in. */ | 40 | #define VIRTIO_NET_F_GUEST_TSO6 8 /* Guest can handle TSOv6 in. */ |
| @@ -226,4 +227,19 @@ struct virtio_net_ctrl_mq { · 186 unmodified lines | |||
| 226 | #define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MIN 1 | 227 | #define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MIN 1 |
| 227 | #define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX 0x8000 | 228 | #define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX 0x8000 |
| 228 | 229 | ||
| 230 | /* | ||
| 231 | * Control network offloads | ||
| 232 | * | ||
| 233 | * Reconfigures the network offloads that Guest can handle. | ||
| 234 | * | ||
| 235 | * Available with the VIRTIO_NET_F_CTRL_GUEST_OFFLOADS feature bit. | ||
| 236 | * | ||
| 237 | * Command data format matches the feature bit mask exactly. | ||
| 238 | * | ||
| 239 | * See VIRTIO_NET_F_GUEST_* for the list of offloads | ||
| 240 | * that can be enabled/disabled. | ||
| 241 | */ | ||
| 242 | #define VIRTIO_NET_CTRL_GUEST_OFFLOADS 5 | ||
| 243 | #define VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET 0 | ||
| 244 | |||
| 229 | #endif /* _LINUX_VIRTIO_NET_H */ | 245 | #endif /* _LINUX_VIRTIO_NET_H */ |
| @@ -157,6 +157,12 @@ struct virtio_pci_common_cfg { · 156 unmodified lines | |||
| 157 | __le32 queue_used_hi; /* read-write */ | 157 | __le32 queue_used_hi; /* read-write */ |
| 158 | }; | 158 | }; |
| 159 | 159 | ||
| 160 | /* Fields in VIRTIO_PCI_CAP_PCI_CFG: */ | ||
| 161 | struct virtio_pci_cfg_cap { | ||
| 162 | struct virtio_pci_cap cap; | ||
| 163 | __u8 pci_cfg_data[4]; /* Data for BAR access. */ | ||
| 164 | }; | ||
| 165 | |||
| 160 | /* Macro versions of offsets for the Old Timers! */ | 166 | /* Macro versions of offsets for the Old Timers! */ |
| 161 | #define VIRTIO_PCI_CAP_VNDR 0 | 167 | #define VIRTIO_PCI_CAP_VNDR 0 |
| 162 | #define VIRTIO_PCI_CAP_NEXT 1 | 168 | #define VIRTIO_PCI_CAP_NEXT 1 |
| @@ -31,6 +31,9 @@ · 30 unmodified lines | |||
| 31 | * SUCH DAMAGE. | 31 | * SUCH DAMAGE. |
| 32 | * | 32 | * |
| 33 | * Copyright Rusty Russell IBM Corporation 2007. */ | 33 | * Copyright Rusty Russell IBM Corporation 2007. */ |
| 34 | #ifndef __KERNEL__ | ||
| 35 | #include <stdint.h> | ||
| 36 | #endif | ||
| 34 | #include <linux/types.h> | 37 | #include <linux/types.h> |
| 35 | #include <linux/virtio_types.h> | 38 | #include <linux/virtio_types.h> |
| 36 | 39 | ||
| @@ -143,7 +146,7 @@ static inline void vring_init(struct vring *vr, unsigned int num, void *p, · 106 unmodified lines | |||
| 143 | vr->num = num; | 146 | vr->num = num; |
| 144 | vr->desc = p; | 147 | vr->desc = p; |
| 145 | vr->avail = p + num*sizeof(struct vring_desc); | 148 | vr->avail = p + num*sizeof(struct vring_desc); |
| 146 | vr->used = (void *)(((unsigned long)&vr->avail->ring[num] + sizeof(__virtio16) | 149 | vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16) |
| 147 | + align-1) & ~(align - 1)); | 150 | + align-1) & ~(align - 1)); |
| 148 | } | 151 | } |
| 149 | 152 | ||
| @@ -77,7 +77,7 @@ · 76 unmodified lines | |||
| 77 | #define SND_SOC_TPLG_NUM_TEXTS 16 | 77 | #define SND_SOC_TPLG_NUM_TEXTS 16 |
| 78 | 78 | ||
| 79 | /* ABI version */ | 79 | /* ABI version */ |
| 80 | #define SND_SOC_TPLG_ABI_VERSION 0x2 | 80 | #define SND_SOC_TPLG_ABI_VERSION 0x3 |
| 81 | 81 | ||
| 82 | /* Max size of TLV data */ | 82 | /* Max size of TLV data */ |
| 83 | #define SND_SOC_TPLG_TLV_SIZE 32 | 83 | #define SND_SOC_TPLG_TLV_SIZE 32 |
| @@ -97,7 +97,8 @@ · 13 unmodified lines | |||
| 97 | #define SND_SOC_TPLG_TYPE_PCM 7 | 97 | #define SND_SOC_TPLG_TYPE_PCM 7 |
| 98 | #define SND_SOC_TPLG_TYPE_MANIFEST 8 | 98 | #define SND_SOC_TPLG_TYPE_MANIFEST 8 |
| 99 | #define SND_SOC_TPLG_TYPE_CODEC_LINK 9 | 99 | #define SND_SOC_TPLG_TYPE_CODEC_LINK 9 |
| 100 | #define SND_SOC_TPLG_TYPE_MAX SND_SOC_TPLG_TYPE_CODEC_LINK | 100 | #define SND_SOC_TPLG_TYPE_PDATA 10 |
| 101 | #define SND_SOC_TPLG_TYPE_MAX SND_SOC_TPLG_TYPE_PDATA | ||
| 101 | 102 | ||
| 102 | /* vendor block IDs - please add new vendor types to end */ | 103 | /* vendor block IDs - please add new vendor types to end */ |
| 103 | #define SND_SOC_TPLG_TYPE_VENDOR_FW 1000 | 104 | #define SND_SOC_TPLG_TYPE_VENDOR_FW 1000 |
| @@ -110,7 +111,7 @@ · 6 unmodified lines | |||
| 110 | 111 | ||
| 111 | /* | 112 | /* |
| 112 | * Block Header. | 113 | * Block Header. |
| 113 | * This header preceeds all object and object arrays below. | 114 | * This header precedes all object and object arrays below. |
| 114 | */ | 115 | */ |
| 115 | struct snd_soc_tplg_hdr { | 116 | struct snd_soc_tplg_hdr { |
| 116 | __le32 magic; /* magic number */ | 117 | __le32 magic; /* magic number */ |
| @@ -137,11 +138,19 @@ struct snd_soc_tplg_private { · 20 unmodified lines | |||
| 137 | /* | 138 | /* |
| 138 | * Kcontrol TLV data. | 139 | * Kcontrol TLV data. |
| 139 | */ | 140 | */ |
| 141 | struct snd_soc_tplg_tlv_dbscale { | ||
| 142 | __le32 min; | ||
| 143 | __le32 step; | ||
| 144 | __le32 mute; | ||
| 145 | } __attribute__((packed)); | ||
| 146 | |||
| 140 | struct snd_soc_tplg_ctl_tlv { | 147 | struct snd_soc_tplg_ctl_tlv { |
| 141 | __le32 size; /* in bytes aligned to 4 */ | 148 | __le32 size; /* in bytes of this structure */ |
| 142 | __le32 numid; /* control element numeric identification */ | 149 | __le32 type; /* SNDRV_CTL_TLVT_*, type of TLV */ |
| 143 | __le32 count; /* number of elem in data array */ | 150 | union { |
| 144 | __le32 data[SND_SOC_TPLG_TLV_SIZE]; | 151 | __le32 data[SND_SOC_TPLG_TLV_SIZE]; |
| 152 | struct snd_soc_tplg_tlv_dbscale scale; | ||
| 153 | }; | ||
| 145 | } __attribute__((packed)); | 154 | } __attribute__((packed)); |
| 146 | 155 | ||
| 147 | /* | 156 | /* |
| @@ -155,9 +164,11 @@ struct snd_soc_tplg_channel { · 7 unmodified lines | |||
| 155 | } __attribute__((packed)); | 164 | } __attribute__((packed)); |
| 156 | 165 | ||
| 157 | /* | 166 | /* |
| 158 | * Kcontrol Operations IDs | 167 | * Genericl Operations IDs, for binding Kcontrol or Bytes ext ops |
| 168 | * Kcontrol ops need get/put/info. | ||
| 169 | * Bytes ext ops need get/put. | ||
| 159 | */ | 170 | */ |
| 160 | struct snd_soc_tplg_kcontrol_ops_id { | 171 | struct snd_soc_tplg_io_ops { |
| 161 | __le32 get; | 172 | __le32 get; |
| 162 | __le32 put; | 173 | __le32 put; |
| 163 | __le32 info; | 174 | __le32 info; |
| @@ -171,8 +182,8 @@ struct snd_soc_tplg_ctl_hdr { · 7 unmodified lines | |||
| 171 | __le32 type; | 182 | __le32 type; |
| 172 | char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; | 183 | char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; |
| 173 | __le32 access; | 184 | __le32 access; |
| 174 | struct snd_soc_tplg_kcontrol_ops_id ops; | 185 | struct snd_soc_tplg_io_ops ops; |
| 175 | __le32 tlv_size; /* non zero means control has TLV data */ | 186 | struct snd_soc_tplg_ctl_tlv tlv; |
| 176 | } __attribute__((packed)); | 187 | } __attribute__((packed)); |
| 177 | 188 | ||
| 178 | /* | 189 | /* |
| @@ -222,7 +233,7 @@ struct snd_soc_tplg_stream_config { · 43 unmodified lines | |||
| 222 | /* | 233 | /* |
| 223 | * Manifest. List totals for each payload type. Not used in parsing, but will | 234 | * Manifest. List totals for each payload type. Not used in parsing, but will |
| 224 | * be passed to the component driver before any other objects in order for any | 235 | * be passed to the component driver before any other objects in order for any |
| 225 | * global componnent resource allocations. | 236 | * global component resource allocations. |
| 226 | * | 237 | * |
| 227 | * File block representation for manifest :- | 238 | * File block representation for manifest :- |
| 228 | * +-----------------------------------+----+ | 239 | * +-----------------------------------+----+ |
| @@ -238,6 +249,7 @@ struct snd_soc_tplg_manifest { · 9 unmodified lines | |||
| 238 | __le32 graph_elems; /* number of graph elements */ | 249 | __le32 graph_elems; /* number of graph elements */ |
| 239 | __le32 dai_elems; /* number of DAI elements */ | 250 | __le32 dai_elems; /* number of DAI elements */ |
| 240 | __le32 dai_link_elems; /* number of DAI link elements */ | 251 | __le32 dai_link_elems; /* number of DAI link elements */ |
| 252 | struct snd_soc_tplg_private priv; | ||
| 241 | } __attribute__((packed)); | 253 | } __attribute__((packed)); |
| 242 | 254 | ||
| 243 | /* | 255 | /* |
| @@ -259,7 +271,6 @@ struct snd_soc_tplg_mixer_control { · 15 unmodified lines | |||
| 259 | __le32 invert; | 271 | __le32 invert; |
| 260 | __le32 num_channels; | 272 | __le32 num_channels; |
| 261 | struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN]; | 273 | struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN]; |
| 262 | struct snd_soc_tplg_ctl_tlv tlv; | ||
| 263 | struct snd_soc_tplg_private priv; | 274 | struct snd_soc_tplg_private priv; |
| 264 | } __attribute__((packed)); | 275 | } __attribute__((packed)); |
| 265 | 276 | ||
| @@ -303,6 +314,7 @@ struct snd_soc_tplg_bytes_control { · 37 unmodified lines | |||
| 303 | __le32 mask; | 314 | __le32 mask; |
| 304 | __le32 base; | 315 | __le32 base; |
| 305 | __le32 num_regs; | 316 | __le32 num_regs; |
| 317 | struct snd_soc_tplg_io_ops ext_ops; | ||
| 306 | struct snd_soc_tplg_private priv; | 318 | struct snd_soc_tplg_private priv; |
| 307 | } __attribute__((packed)); | 319 | } __attribute__((packed)); |
| 308 | 320 | ||
| @@ -347,6 +359,7 @@ struct snd_soc_tplg_dapm_widget { · 38 unmodified lines | |||
| 347 | __le32 reg; /* negative reg = no direct dapm */ | 359 | __le32 reg; /* negative reg = no direct dapm */ |
| 348 | __le32 shift; /* bits to shift */ | 360 | __le32 shift; /* bits to shift */ |
| 349 | __le32 mask; /* non-shifted mask */ | 361 | __le32 mask; /* non-shifted mask */ |
| 362 | __le32 subseq; /* sort within widget type */ | ||
| 350 | __u32 invert; /* invert the power bit */ | 363 | __u32 invert; /* invert the power bit */ |
| 351 | __u32 ignore_suspend; /* kept enabled over suspend */ | 364 | __u32 ignore_suspend; /* kept enabled over suspend */ |
| 352 | __u16 event_flags; | 365 | __u16 event_flags; |