~ubuntu-branches/ubuntu/lucid/linux-mvl-dove/lucid

« back to all changes in this revision

Viewing changes to include/drm/vmwgfx_drm.h

  • Committer: Bazaar Package Importer
  • Author(s): Andy Whitcroft, Andy Whitcroft, Eric Miao, Saeed Bishara, Tony Lindgren, Upstream Kernel Changes, Ubuntu: 2.6.32-16.24, Ubuntu: 2.6.32-16.23, Ubuntu: 2.6.32-15.22, Ubuntu: 2.6.32-15.21, Ubuntu: 2.6.32-14.20
  • Date: 2010-03-08 15:26:14 UTC
  • Revision ID: james.westby@ubuntu.com-20100308152614-wawwjda2b5xh0qth
Tags: 2.6.32-202.12
[ Andy Whitcroft ]

* rebase to Ubuntu-2.6.32-16.24
* [Config] updateconfigs following rebase to Ubuntu-2.6.32-16.24
* [Config] updateconfigs following rebase to Ubuntu-2.6.32-16.24
* lintian -- update debhelper package version dependancy
* lintian -- fix ghostscript dependancy
* lintian -- add required misc:Depends
* rename the debug packages to match archive standard
  - LP: #527837

[ Eric Miao ]

* SAUCE: dove: disable conflicting v6 cache fns in zImage head.S
* [Config]: CONFIG_KEXEC=y and CONFIG_ATAGS_PROC=y
* [Config]: update configs for latest Marvell patchset
* [Config]: disable OABI_COMPAT
  - LP: #534277

[ Saeed Bishara ]

* SAUCE: arm: invalidate TLBs when enabling mmu
* SAUCE: arm: disable L2 cache in the v7 finish function

[ Tony Lindgren ]

* SAUCE: arm: Fix init_atags_procfs() to check tag->hdr.size

[ Upstream Kernel Changes ]

* Revert "printk: remove unused code from kernel/printk.c"
* Revert "Save thread registers in coredumps" Because this patch is
  already in the kernel.
* Revert "dove: enable cpu mode (v6/v7) in run-time detection"
* Revert "ARM: provide the cpu_match function to PJ4"
* Revert "ARM: introduce the cpu_match function to the proc_info"
* ARM: 5884/1: arm: Fix DCC console for v7
* ARM: 5885/1: arm: Flush TLB entries in setup_mm_for_reboot()
* ARM: 5886/1: arm: Fix cpu_proc_fin() for proc-v7.S and make kexec work
* ARM: 5888/1: arm: Update comments in cacheflush.h and remove
  unnecessary V6 and V7 comments
* rt5630: fix codec->hw_read function
* mm: Check if any page in a pageblock is reserved before marking it
  MIGRATE_RESERVE
* Add build option to to set the default panic timeout.
* sched: Enable might_sleep before initializing drivers.
* Add code to prevent system calls from being restarted muliple times
  before returning from the kernel.
* Save thread registers in coredumps
* armv6 dcc tty driver
* PM: Add wake lock api.
* PM: Add early suspend api.
* PM: Implement wakelock api.
* PM: Implement early suspend api
* PM: Add user-space wake lock api.
* PM: wakelock: Abort task freezing if a wake lock is held.
* PM: earlysuspend: Add console switch when user requested sleep state
  changes.
* PM: earlysuspend: Removing dependence on console.
* rtc: Add android alarm driver.
* rtc: Try to prevent RTC errors from accumulating.
* switch: switch class and GPIO drivers.
* pmem: Add pmem driver
* Add android_aid.h
* ashmem for 2.6.27.
* Add missing conflict codes for 0079-ashmem-for-2.6.27.patch
* Paranoid network.
* net: socket ioctl to reset connections matching local address
* sysfs_net_ipv4: Add sysfs-based knobs for controlling TCP window size
* uidstat: Adding uid stat driver to collect network statistics.
* adding conflict patch codes for
  0083-uidstat-Adding-uid-stat-driver-to-collect-network-s.patch
* FAT: Add new ioctl VFAT_IOCTL_GET_VOLUME_ID for reading the volume ID.
* Grants system server access to /proc/<pid>/oom_adj for Android
  applications.
* Input: Generic GPIO Input device.
* add missing conflict code for
  0086-Input-Generic-GPIO-Input-device.patch
* Input: Hold wake lock while event queue is not empty.
* Input: Use monotonic time for event time stamps.
* Input: synaptics_i2c_rmi: Driver for Synaptics Touchscreens using RMI
  over I2C.
* input: Add keyreset driver.
* mmc: Add status IRQ and status callback function to mmc platform data
* mmc: sd: Add new CONFIG_MMC_PARANOID_SD_INIT for enabling retries
  during SD detection
* mmc: Add concept of an 'embedded' SDIO device.
* trout: Add functions for WiFi
* mmc: Add new API call 'sdio_reset_comm' for resetting communication
  with an SDIO device
* mmc: sd: When resuming, try a little harder to init the card
* mmc: mmcblk: Add new feature 'CONFIG_MMC_BLOCK_PARANOID_RESUME'
* mmc: sd: Add retries in re-detection
* android_usb: Composite USB gadget driver for android.
* rfkill: Introduce CONFIG_RFKILL_PM and use instead of CONFIG_PM to
  power down
* tiwlan: Add abstract wifi control functions support
* android: Add android config documentation to boot framework.
* block: block_dump: Add number of sectors to debug output
* fs: block_dump: Don't display inode changes if block_dump < 2
* regenerated code for
  0107-mmc-core-Hold-a-wake-lock-accross-delayed-work-m.patch
* mmc: sd: Remove debugging printk
* printk: Fix log_buf_copy termination.
* kernel_debugger_core: add interrupt-context debugger core
* kernel_debugger_core: Add sysrq command.
* pmem: Add include sched.h to fix compile errors
* net: Fix compilation of the IPv6 module
* ashmem: Don't install fault handler for private mmaps.
* ashmem: Add common prefix to name reported in /proc/pid/maps
* net: add PPP on L2TP Access Concentrator (PPPoLAC) driver.
* cgroup: Add generic cgroup subsystem permission checks.
* add missing conflict codes for
  0124-cgroup-Add-generic-cgroup-subsystem-permission-chec.patch
* nohz: Fix ondemand governor not always ramping up on 100% load.
* usb: gadget: android: Allow usb charging to draw up to 500mA instead of
  250.
* regnerate patch for
  0127-futex-Restore-one-of-the-fast-paths-eliminated-by-3.patch
* Optionally flush entire dcache from v6_dma_flush_range
* net: add PPP on PPTP Network Server (PPPoPNS) driver.
* sdio: fix sdio_reset_comm() error path
* net: Fix a bitmask in PPPoPNS and rename constants in PPPoPNS and
  PPPoLAC.
* net: Fix a potential deadlock while releasing PPPoLAC/PPPoPNS socket.
* ashmem: don't require a page aligned size
* security: Add AID_NET_RAW and AID_NET_ADMIN capability check in
  cap_capable().
* net: Replace AID_NET_RAW checks with capable(CAP_NET_RAW).
* net: Force PPPoLAC and PPPoPNS to bind an interface before creating PPP
  channel.
* Add default configuration for Android
* Sync with the newest dove_defconfig
* Turn off TLS feature for android in v7
* Fix compiling error for lowmemorykiller
* Fix Compiling error for shmem
* Temporary disable pm_suspend call.
* Fix crash error for shmem
* Fix met compiling errors from 2.6.31 kernel to 2.6.32 kernel.
* Sync up with 2.6.32.2's dove_defconfig
* cesa: add address decoding windows initialization code
* Refine comments and algorithm for easier to understand LCD's HW RGB
  format.
* PM: runtime support for V6 or V7 mode
* Remove all Z0 specific code
* dove: remove remaning Z0 stuff
* Add auto-calibration
* fix compilation error (kernel/power/Makefile)
* update dove_avng_y1_defconfig
* dovefb: clean up CONFIG_DOVEFB_SINGLE_DISPLAY_ACCURATE_PCLK
* 1. fill initial data for dcon. 2. refine backlight driver interface.
* 1. add clock disable and enable interface 2. refine changing LCD source
  clock implementation.
* Fill backlight driver platform data
* 1. apply Tawfik's patch to hook fb_blank event. 2. add LCD power on and
  off interface.
* Refine backlight interface more portable
* 1. Refine dcon power management feature 2. Implement sysfs interfaces.
* 1. Fix blank function setting to wrong mode when suspend. 2. Add SRAM
  power down interface.
* remove compiling warning.
* dove: remove another DOVE_REV_Z0 stuff
* dove: sync dove_defconfig with latest patches
* dove: fix compilation warning in pm.c
* Adds ADI9889 HDMI transmitter support
* Dove: Add Video Plug support
* MPP changes for Dove -
* Swap R&B for Video plug on video overlay Unclear why this is required,
  but it solves color bitmapping. Keep now for Video plug but requires
  more research
* 1. Remove testing code. 2. disable dumb interface as well when receives
  FB_BLANK.
* Dove nand: add support for Two CS for the DB board
* Dove nand: Add support for "cmdlinepart" option Add support for
  "cmdlinepart" option in kernel command line dove-nand should be used as
  the NAND HAL device name. example: mtdparts=dove-nand:1g(swap),-(root)
* dove: use dove_cesa_addr_dec_data instead of dove_eth_addr_dec_data for
  cesa driver
* dovefb: fix compilation error when mv_spi is disabled
* Dove: remove gpu_size, vmeta_size and pvt_size kernel command line
  parameters from code as they have no effect because fixup function is
  called before parse_cmdline function ( see arch/arm/kernel/setup.c )
* VMeta PM func: 1. Power on the VMeta only when VMeta was been used 2.
  Support suspend/resume when VMeta was been used (also need user space
  player support)
* Add a watch dog timer for Vmeta suspend/resume func
* Dove NAND: fix double byte command on writing small pages
* Change Vmeta PM clock control to using Linux clock framework
* Disable the Vmtea clock/power as default
* Fix MMC/SD cannot be detected issue due to merge upgraded from .31 to
  .32 Signed-off-by: Steve Guo <steve.guo@marvell.com>
* dove: disable some andriod features
* dove: fix crash in shmem
* PM: Debugger Reset Workaround in Deep-Idle
* dove: increase BOOT_PARAMS_SIZE for dram params
* Add support for AV-D1 X0 board and modify ADI9889 driver to fit Linux
  coding style
* remove android config from dove_defconfig
* update dove_avng_y1_defconfig
* Fixed AC97 read error issue. Modified SOC sound control items.
* update dove_avng_x0_defconfig : Disable CONFIG_DOVE_DEBUGGER_MODE_V6
* dove: enable UBIFS extended features and advanced compression
* crypt: update ocf to latest release
* dove: enable kexec support
* sound: rt5623 codec: deprecate hw_read and fix driver name
* dove: use updated i2s codec name
* dove: fix dai structure for avengers boards.
* dove: delete the i2c-dummy.c driver which is not used by any system
* sound: rename cs42l51 codec i2c driver from i2s_i2c to cs42l51
* sound: change rt5630 name from i2s_i2c to rt5630
* dove: configure pm mpps for new revision of avengers board
* dove: change power button code to KEY_SLEEP
* Add more resolution support in kernel driver according VGA timing spec
* LCD: disabled CONFIG_DOVEFB_SINGLE_DISPLAY_ACCURATE_PCLK and instead
  disabled accurate clock option in runtime if both LCD units are
  enabled; this will enable using the same uImage for dual and non-dual
  mode.
* 1. fill initial data for dcon. 2. refine backlight driver interface.
* dove: cleanup gpu_size kernel parameter
* pcie - add option to disable scan by command line parameter
* PM: add FB notifier to manage Book/Deep-Idle toggeling
* ARM: Ensure ARMv6/7 mm files are built using appropriate assembler
  options
* kirkwood: fix compilation errors
* dove: disable highmem and enable CONFIG_VMSPLIT_2G
* dove: set SKB_HEADROOM to 32 instead of 16
* bmm: export outer_cache
* dove: add missing pj4 name entries
* Fix thread stack overflow caused by Dove NAND HAL driver
* Remove unused include file and declaration
* Roll back wait for vsync mechanism to wait_event_interruptable_timeout
  and give timeout delay from 40ms to 4ms.
* dovefb: remove another DOVE_REV_Z0 stuff
* mv643xx_eth: don't include cache padding in rx desc buffer size
* fix build error introduced by add missing conflict codes for
  0124-cgroup-Add-generic-cgroup-subsystem-permission-chec.patch
* crypto: add openssl patch for user space to utilize the cesa engine
* crypto: update openswan patch for version 2.6.24
* dove: add device driver for the GPU gc600 engine
* Marvell Buffer Management Module for VPU & GPU memory buffer maintain
* BMM: split VPU & GPU to choice use BMM or not
* dove: enable building the bmm driver as module
* cesa: remove patch for openswan version 2.6.18
* Configure new LCD register for upcoming DOVE A0 Chip
* fix pixclk when under interlaced mode
* Not to power off LCD SRAM when system blanks screen.
* dvs: make dvs_enable variable depend on board, and change the default
  to enable instead of disable on Dove DB board.

[ Ubuntu: 2.6.32-16.24 ]

* armel -- perf userspace does not support arm
* ia64 -- libelf-dev/binutils-dev to not provide necessary libraries

[ Ubuntu: 2.6.32-16.23 ]

* SAUCE: PM report driver and device suspend/resume times -- move config
* update to standards version 3.8.4.0
* printenv -- expose all of the package selectors
* source package -- cleanup source content control
* doc package -- ensure we do build package content on buildd
* lintian -- correct the address in the debian/copyright
* lintian -- update debhelper package version dependancy
* lintian -- fix ghostscript dependancy
* lintian -- add required misc:Depends
* lintian -- move our debhelper compat level to debian/compat
* perf -- build the kernel carried tools
* perf -- add linux-tools carrying the version switches and manuals
* SAUCE: fix up Kconfig for staging drivers
* [Config] enable NOUVEAU etc following drm backport
* update DRM to mainline v2.6.33
* [Config] Remove AppArmor config options that no longer exist (ports)
* [Config] updateportsconfigs following drm update
* ubuntu: AppArmor -- update to mainline 2010-03-04
* SAUCE: AppArmor: Reintroduce AppArmor 2.4 compatibility
* SAUCE: AppArmor: replace strim with strstrip for 2.6.32 kernels
* [Config] Remove AppArmor config options that no longer exist
* ubuntu: rtl8192se -- version 2010-0115,0014
  - LP: #530275
* [Config] added CONFIG_RTL8192SE module.
  - LP: #530275
* [Config] Added vmw_pvscsi to d-i/scsi-modules
  - LP: #531017
* [Upstream] netfilter: xt_recent: Add an entry reaper
* Revert "KVM: x86 emulator: Check CPL level during privilege instruction
  emulation"
* Revert "KVM: x86 emulator: Fix popf emulation"
* Revert "KVM: x86 emulator: Check IOPL level during io instruction
  emulation"
* Revert "KVM: x86 emulator: Add Virtual-8086 mode of emulation"
* Revert "KVM: fix memory access during x86 emulation."
* Add vlan (8021.Q) module package for d-i.
* (pre-stable) drm/i915: blacklist lid status: Sony VGN-BX196VP, Dell
  Inspiron 700m
  - LP: #515246
* [Upstream] docbook: need xmldoclinks for all doc types
* x86: set_personality_ia32() misses force_personality32
* lib: Introduce generic list_sort function
* drm/nv50: Implement ctxprog/state generation.
* drm/nv50: Remove redundant/incorrect ctxvals initialisation.
* (pre-stable) drm/i915: blacklist lid status: Sony VGN-BX196VP, Dell
  Inspiron 700m
  - LP: #515246

[ Ubuntu: 2.6.32-15.22 ]

* Revert "[Config] added new config option CONFIG_SR_REPORT_TIME_LIMIT"
* Revert "SAUCE: PM report driver and device suspend/resume times."
* [Config] set CONFIG_SR_REPORT_TIME_LIMIT
* SAUCE: PM report driver and device suspend/resume times.

[ Ubuntu: 2.6.32-15.21 ]

* Revert "(pre-stable) drm/i915: Increase fb alignment to 64k"
* Revert "[Config] lenovo-sl-laptop -- enable"
* Revert "ubuntu: lenovo-sl-laptop -- git tip (b19a08f81f)"
* armel -- cramfs module will no longer be built
* d-i -- make all modules optional
* rename the debug packages to match archive standard
  - LP: #527837
* lenovo-sl-laptop is no longer built
* Disable 4MB page tables for Atom, work around errata AAE44
  - LP: #523112
* ubuntu: dm-raid4-5: Depend on XOR_BLOCKS
* ubuntu: fsam7400: Depend on CHECK_SIGNATURE
* SAUCE: drm/i915: don't change DRM configuration when releasing load
  detect pipe
  - LP: #488328
* [Config] armel Update versatile initrd configs
  - LP: #524893
* SAUCE: [um] Don't use nx_enabled under UML
  - LP: #524849
* [Config] added new config option CONFIG_SR_REPORT_TIME_LIMIT
* SAUCE: v3 - Add Dell Business Class Netbook LED driver
* SAUCE: PM report driver and device suspend/resume times.
* Revert "[Upstream] e1000e: enhance frame fragment detection"
  - CVE-2009-4538
* Revert "[Upstream] e1000: enhance frame fragment detection"
  - CVE-2009-4536
* [Config] Enabled CONFIG_LEDS_DELL_NETBOOKS=m
* SAUCE: (pre-stable) netfilter: xt_recent: fix buffer overflow
* SAUCE: (pre-stable) netfilter: xt_recent: fix false match
* Revert "(pre-stable) eCryptfs: Add getattr function"
* Fix potential crash with sys_move_pages
* futex_lock_pi() key refcnt fix
* futex: Handle user space corruption gracefully
* futex: Handle futex value corruption gracefully
* Fix race in tty_fasync() properly
* hwmon: (w83781d) Request I/O ports individually for probing
* hwmon: (lm78) Request I/O ports individually for probing
* hwmon: (adt7462) Wrong ADT7462_VOLT_COUNT
* ALSA: ctxfi - fix PTP address initialization
* drm/i915: disable hotplug detect before Ironlake CRT detect
* drm/i915: enable self-refresh on 965
* drm/i915: Disable SR when more than one pipe is enabled
* drm/i915: Fix DDC on some systems by clearing BIOS GMBUS setup.
* drm/i915: Add HP nx9020/SamsungSX20S to ACPI LID quirk list
* drm/i915: Fix the incorrect DMI string for Samsung SX20S laptop
* drm/i915: Add MALATA PC-81005 to ACPI LID quirk list
* usb: r8a66597-hcd: Flush the D-cache for the pipe-in transfer buffers.
* i2c-tiny-usb: Fix on big-endian systems
* drm/i915: handle FBC and self-refresh better
* drm/i915: Increase fb alignment to 64k
* drm/i915: Update write_domains on active list after flush.
* regulator: Fix display of null constraints for regulators
* ALSA: hda-intel: Avoid divide by zero crash
* CPUFREQ: Fix use after free of struct powernow_k8_data
* freeze_bdev: don't deactivate successfully frozen MS_RDONLY sb
* cciss: Make cciss_seq_show handle holes in the h->drv[] array
* ioat: fix infinite timeout checking in ioat2_quiesce
* resource: add helpers for fetching rlimits
* fs/exec.c: restrict initial stack space expansion to rlimit
* cifs: fix length calculation for converted unicode readdir names
* NFS: Fix a reference leak in nfs_wb_cancel_page()
* NFS: Try to commit unstable writes in nfs_release_page()
* NFSv4: Don't allow posix locking against servers that don't support it
* NFSv4: Ensure that the NFSv4 locking can recover from stateid errors
* NFS: Fix an Oops when truncating a file
* NFS: Fix a umount race
* NFS: Fix a bug in nfs_fscache_release_page()
* NFS: Fix the mapping of the NFSERR_SERVERFAULT error
* md: fix 'degraded' calculation when starting a reshape.
* V4L/DVB: dvb-core: fix initialization of feeds list in demux filter
* Export the symbol of getboottime and mmonotonic_to_bootbased
* kvmclock: count total_sleep_time when updating guest clock
* KVM: PIT: control word is write-only
* tpm_infineon: fix suspend/resume handler for pnp_driver
* amd64_edac: Do not falsely trigger kerneloops
* netfilter: nf_conntrack: fix memory corruption with multiple namespaces
* netfilter: nf_conntrack: per netns nf_conntrack_cachep
* netfilter: nf_conntrack: restrict runtime expect hashsize modifications
* netfilter: xtables: compat out of scope fix
* netfilter: nf_conntrack: fix hash resizing with namespaces
* drm/i915: remove full registers dump debug
* drm/i915: add i915_lp_ring_sync helper
* drm/i915: Don't wait interruptible for possible plane buffer flush
* dasd: remove strings from s390dbf
* crypto: padlock-sha - Add import/export support
* wmi: Free the allocated acpi objects through wmi_get_event_data
* dell-wmi, hp-wmi, msi-wmi: check wmi_get_event_data() return value
* /dev/mem: introduce size_inside_page()
* devmem: check vmalloc address on kmem read/write
* devmem: fix kmem write bug on memory holes
* SCSI: mptfusion : mptscsih_abort return value should be SUCCESS instead
  of value 0.
* sh: Couple kernel and user write page perm bits for CONFIG_X2TLB
* ALSA: hda - use WARN_ON_ONCE() for zero-division detection
* dst: call cond_resched() in dst_gc_task()
* ALSA: hda - Improved MacBook (Pro) 5,1 / 5,2 support
* befs: fix leak
* rtc-fm3130: add missing braces
* Call flush_dcache_page after PIO data transfers in libata-sff.c
* ahci: add Acer G725 to broken suspend list
* pktgen: Fix freezing problem
* x86/amd-iommu: Fix IOMMU-API initialization for iommu=pt
* x86/amd-iommu: Fix deassignment of a device from the pt_domain
* x86: Re-get cfg_new in case reuse/move irq_desc
* Staging: fix rtl8187se compilation errors with mac80211
* ALSA: usb-audio - Avoid Oops after disconnect
* serial: 8250: add serial transmitter fully empty test
* sysfs: sysfs_sd_setattr set iattrs unconditionally
* class: Free the class private data in class_release
* USB: usbfs: only copy the actual data received
* USB: usbfs: properly clean up the as structure on error paths
* rtl8187: Add new device ID
* ACPI: Add NULL pointer check in acpi_bus_start
* ACPI: fix High cpu temperature with 2.6.32
* drm/radeon/kms: use udelay for short delays
* NFS: Too many GETATTR and ACCESS calls after direct I/O
* eCryptfs: Add getattr function
* b43: Fix throughput regression
* ath9k: Fix sequence numbers for PAE frames
* mac80211: Fix probe request filtering in IBSS mode
* iwlwifi: Fix to set correct ht configuration
* dm stripe: avoid divide by zero with invalid stripe count
* dm log: userspace fix overhead_size calcuations
* Linux 2.6.32.9
* sfc: Fix SFE4002 initialisation
* sfc: Fix sign of efx_mcdi_poll_reboot() error in efx_mcdi_poll()
* sfc: SFE4002/SFN4112F: Widen temperature and voltage tolerances
* (pre-stable) HID: handle joysticks with large number of buttons
  - LP: #492056
* (pre-stable) HID: extend mask for BUTTON usage page
  - LP: #492056
* PM: Measure device suspend and resume times
* e1000: enhance frame fragment detection
  - CVE-2009-4536
* e1000e: enhance frame fragment detection
  - CVE-2009-4538
* KVM: fix memory access during x86 emulation.
  - CVE-2010-0306
* KVM: x86 emulator: Add Virtual-8086 mode of emulation
  - CVE-2010-0306
* KVM: x86 emulator: Check IOPL level during io instruction emulation
  - CVE-2010-0306
* KVM: x86 emulator: Fix popf emulation
  - CVE-2010-0306
* KVM: x86 emulator: Check CPL level during privilege instruction
  emulation
  - CVE-2010-0306
* Input: wacom - ensure the device is initialized properly upon resume
* Input: wacom - add defines for packet lengths of various devices
* Input: wacom - add support for new LCD tablets
  - LP: #516777

[ Ubuntu: 2.6.32-14.20 ]

* rebuild following the GCC update to match compiler for out of tree modules
* Revert "[Config] drbd -- enable"
* Revert "ubuntu: drbd -- version 8.3.1"
* SAUCE: khubd -- switch USB product/manufacturer/serial handling to RCU
  - LP: #510937

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**************************************************************************
 
2
 *
 
3
 * Copyright © 2009 VMware, Inc., Palo Alto, CA., USA
 
4
 * All Rights Reserved.
 
5
 *
 
6
 * Permission is hereby granted, free of charge, to any person obtaining a
 
7
 * copy of this software and associated documentation files (the
 
8
 * "Software"), to deal in the Software without restriction, including
 
9
 * without limitation the rights to use, copy, modify, merge, publish,
 
10
 * distribute, sub license, and/or sell copies of the Software, and to
 
11
 * permit persons to whom the Software is furnished to do so, subject to
 
12
 * the following conditions:
 
13
 *
 
14
 * The above copyright notice and this permission notice (including the
 
15
 * next paragraph) shall be included in all copies or substantial portions
 
16
 * of the Software.
 
17
 *
 
18
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
19
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
20
 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
 
21
 * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
 
22
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 
23
 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
 
24
 * USE OR OTHER DEALINGS IN THE SOFTWARE.
 
25
 *
 
26
 **************************************************************************/
 
27
 
 
28
#ifndef __VMWGFX_DRM_H__
 
29
#define __VMWGFX_DRM_H__
 
30
 
 
31
#define DRM_VMW_MAX_SURFACE_FACES 6
 
32
#define DRM_VMW_MAX_MIP_LEVELS 24
 
33
 
 
34
#define DRM_VMW_EXT_NAME_LEN 128
 
35
 
 
36
#define DRM_VMW_GET_PARAM            0
 
37
#define DRM_VMW_ALLOC_DMABUF         1
 
38
#define DRM_VMW_UNREF_DMABUF         2
 
39
#define DRM_VMW_CURSOR_BYPASS        3
 
40
/* guarded by DRM_VMW_PARAM_NUM_STREAMS != 0*/
 
41
#define DRM_VMW_CONTROL_STREAM       4
 
42
#define DRM_VMW_CLAIM_STREAM         5
 
43
#define DRM_VMW_UNREF_STREAM         6
 
44
/* guarded by DRM_VMW_PARAM_3D == 1 */
 
45
#define DRM_VMW_CREATE_CONTEXT       7
 
46
#define DRM_VMW_UNREF_CONTEXT        8
 
47
#define DRM_VMW_CREATE_SURFACE       9
 
48
#define DRM_VMW_UNREF_SURFACE        10
 
49
#define DRM_VMW_REF_SURFACE          11
 
50
#define DRM_VMW_EXECBUF              12
 
51
#define DRM_VMW_FIFO_DEBUG           13
 
52
#define DRM_VMW_FENCE_WAIT           14
 
53
 
 
54
 
 
55
/*************************************************************************/
 
56
/**
 
57
 * DRM_VMW_GET_PARAM - get device information.
 
58
 *
 
59
 * DRM_VMW_PARAM_FIFO_OFFSET:
 
60
 * Offset to use to map the first page of the FIFO read-only.
 
61
 * The fifo is mapped using the mmap() system call on the drm device.
 
62
 *
 
63
 * DRM_VMW_PARAM_OVERLAY_IOCTL:
 
64
 * Does the driver support the overlay ioctl.
 
65
 */
 
66
 
 
67
#define DRM_VMW_PARAM_NUM_STREAMS      0
 
68
#define DRM_VMW_PARAM_NUM_FREE_STREAMS 1
 
69
#define DRM_VMW_PARAM_3D               2
 
70
#define DRM_VMW_PARAM_FIFO_OFFSET      3
 
71
#define DRM_VMW_PARAM_HW_CAPS          4
 
72
#define DRM_VMW_PARAM_FIFO_CAPS        5
 
73
 
 
74
/**
 
75
 * struct drm_vmw_getparam_arg
 
76
 *
 
77
 * @value: Returned value. //Out
 
78
 * @param: Parameter to query. //In.
 
79
 *
 
80
 * Argument to the DRM_VMW_GET_PARAM Ioctl.
 
81
 */
 
82
 
 
83
struct drm_vmw_getparam_arg {
 
84
        uint64_t value;
 
85
        uint32_t param;
 
86
        uint32_t pad64;
 
87
};
 
88
 
 
89
/*************************************************************************/
 
90
/**
 
91
 * DRM_VMW_EXTENSION - Query device extensions.
 
92
 */
 
93
 
 
94
/**
 
95
 * struct drm_vmw_extension_rep
 
96
 *
 
97
 * @exists: The queried extension exists.
 
98
 * @driver_ioctl_offset: Ioctl number of the first ioctl in the extension.
 
99
 * @driver_sarea_offset: Offset to any space in the DRI SAREA
 
100
 * used by the extension.
 
101
 * @major: Major version number of the extension.
 
102
 * @minor: Minor version number of the extension.
 
103
 * @pl: Patch level version number of the extension.
 
104
 *
 
105
 * Output argument to the DRM_VMW_EXTENSION Ioctl.
 
106
 */
 
107
 
 
108
struct drm_vmw_extension_rep {
 
109
        int32_t exists;
 
110
        uint32_t driver_ioctl_offset;
 
111
        uint32_t driver_sarea_offset;
 
112
        uint32_t major;
 
113
        uint32_t minor;
 
114
        uint32_t pl;
 
115
        uint32_t pad64;
 
116
};
 
117
 
 
118
/**
 
119
 * union drm_vmw_extension_arg
 
120
 *
 
121
 * @extension - Ascii name of the extension to be queried. //In
 
122
 * @rep - Reply as defined above. //Out
 
123
 *
 
124
 * Argument to the DRM_VMW_EXTENSION Ioctl.
 
125
 */
 
126
 
 
127
union drm_vmw_extension_arg {
 
128
        char extension[DRM_VMW_EXT_NAME_LEN];
 
129
        struct drm_vmw_extension_rep rep;
 
130
};
 
131
 
 
132
/*************************************************************************/
 
133
/**
 
134
 * DRM_VMW_CREATE_CONTEXT - Create a host context.
 
135
 *
 
136
 * Allocates a device unique context id, and queues a create context command
 
137
 * for the host. Does not wait for host completion.
 
138
 */
 
139
 
 
140
/**
 
141
 * struct drm_vmw_context_arg
 
142
 *
 
143
 * @cid: Device unique context ID.
 
144
 *
 
145
 * Output argument to the DRM_VMW_CREATE_CONTEXT Ioctl.
 
146
 * Input argument to the DRM_VMW_UNREF_CONTEXT Ioctl.
 
147
 */
 
148
 
 
149
struct drm_vmw_context_arg {
 
150
        int32_t cid;
 
151
        uint32_t pad64;
 
152
};
 
153
 
 
154
/*************************************************************************/
 
155
/**
 
156
 * DRM_VMW_UNREF_CONTEXT - Create a host context.
 
157
 *
 
158
 * Frees a global context id, and queues a destroy host command for the host.
 
159
 * Does not wait for host completion. The context ID can be used directly
 
160
 * in the command stream and shows up as the same context ID on the host.
 
161
 */
 
162
 
 
163
/*************************************************************************/
 
164
/**
 
165
 * DRM_VMW_CREATE_SURFACE - Create a host suface.
 
166
 *
 
167
 * Allocates a device unique surface id, and queues a create surface command
 
168
 * for the host. Does not wait for host completion. The surface ID can be
 
169
 * used directly in the command stream and shows up as the same surface
 
170
 * ID on the host.
 
171
 */
 
172
 
 
173
/**
 
174
 * struct drm_wmv_surface_create_req
 
175
 *
 
176
 * @flags: Surface flags as understood by the host.
 
177
 * @format: Surface format as understood by the host.
 
178
 * @mip_levels: Number of mip levels for each face.
 
179
 * An unused face should have 0 encoded.
 
180
 * @size_addr: Address of a user-space array of sruct drm_vmw_size
 
181
 * cast to an uint64_t for 32-64 bit compatibility.
 
182
 * The size of the array should equal the total number of mipmap levels.
 
183
 * @shareable: Boolean whether other clients (as identified by file descriptors)
 
184
 * may reference this surface.
 
185
 * @scanout: Boolean whether the surface is intended to be used as a
 
186
 * scanout.
 
187
 *
 
188
 * Input data to the DRM_VMW_CREATE_SURFACE Ioctl.
 
189
 * Output data from the DRM_VMW_REF_SURFACE Ioctl.
 
190
 */
 
191
 
 
192
struct drm_vmw_surface_create_req {
 
193
        uint32_t flags;
 
194
        uint32_t format;
 
195
        uint32_t mip_levels[DRM_VMW_MAX_SURFACE_FACES];
 
196
        uint64_t size_addr;
 
197
        int32_t shareable;
 
198
        int32_t scanout;
 
199
};
 
200
 
 
201
/**
 
202
 * struct drm_wmv_surface_arg
 
203
 *
 
204
 * @sid: Surface id of created surface or surface to destroy or reference.
 
205
 *
 
206
 * Output data from the DRM_VMW_CREATE_SURFACE Ioctl.
 
207
 * Input argument to the DRM_VMW_UNREF_SURFACE Ioctl.
 
208
 * Input argument to the DRM_VMW_REF_SURFACE Ioctl.
 
209
 */
 
210
 
 
211
struct drm_vmw_surface_arg {
 
212
        int32_t sid;
 
213
        uint32_t pad64;
 
214
};
 
215
 
 
216
/**
 
217
 * struct drm_vmw_size ioctl.
 
218
 *
 
219
 * @width - mip level width
 
220
 * @height - mip level height
 
221
 * @depth - mip level depth
 
222
 *
 
223
 * Description of a mip level.
 
224
 * Input data to the DRM_WMW_CREATE_SURFACE Ioctl.
 
225
 */
 
226
 
 
227
struct drm_vmw_size {
 
228
        uint32_t width;
 
229
        uint32_t height;
 
230
        uint32_t depth;
 
231
        uint32_t pad64;
 
232
};
 
233
 
 
234
/**
 
235
 * union drm_vmw_surface_create_arg
 
236
 *
 
237
 * @rep: Output data as described above.
 
238
 * @req: Input data as described above.
 
239
 *
 
240
 * Argument to the DRM_VMW_CREATE_SURFACE Ioctl.
 
241
 */
 
242
 
 
243
union drm_vmw_surface_create_arg {
 
244
        struct drm_vmw_surface_arg rep;
 
245
        struct drm_vmw_surface_create_req req;
 
246
};
 
247
 
 
248
/*************************************************************************/
 
249
/**
 
250
 * DRM_VMW_REF_SURFACE - Reference a host surface.
 
251
 *
 
252
 * Puts a reference on a host surface with a give sid, as previously
 
253
 * returned by the DRM_VMW_CREATE_SURFACE ioctl.
 
254
 * A reference will make sure the surface isn't destroyed while we hold
 
255
 * it and will allow the calling client to use the surface ID in the command
 
256
 * stream.
 
257
 *
 
258
 * On successful return, the Ioctl returns the surface information given
 
259
 * in the DRM_VMW_CREATE_SURFACE ioctl.
 
260
 */
 
261
 
 
262
/**
 
263
 * union drm_vmw_surface_reference_arg
 
264
 *
 
265
 * @rep: Output data as described above.
 
266
 * @req: Input data as described above.
 
267
 *
 
268
 * Argument to the DRM_VMW_REF_SURFACE Ioctl.
 
269
 */
 
270
 
 
271
union drm_vmw_surface_reference_arg {
 
272
        struct drm_vmw_surface_create_req rep;
 
273
        struct drm_vmw_surface_arg req;
 
274
};
 
275
 
 
276
/*************************************************************************/
 
277
/**
 
278
 * DRM_VMW_UNREF_SURFACE - Unreference a host surface.
 
279
 *
 
280
 * Clear a reference previously put on a host surface.
 
281
 * When all references are gone, including the one implicitly placed
 
282
 * on creation,
 
283
 * a destroy surface command will be queued for the host.
 
284
 * Does not wait for completion.
 
285
 */
 
286
 
 
287
/*************************************************************************/
 
288
/**
 
289
 * DRM_VMW_EXECBUF
 
290
 *
 
291
 * Submit a command buffer for execution on the host, and return a
 
292
 * fence sequence that when signaled, indicates that the command buffer has
 
293
 * executed.
 
294
 */
 
295
 
 
296
/**
 
297
 * struct drm_vmw_execbuf_arg
 
298
 *
 
299
 * @commands: User-space address of a command buffer cast to an uint64_t.
 
300
 * @command-size: Size in bytes of the command buffer.
 
301
 * @throttle-us: Sleep until software is less than @throttle_us
 
302
 * microseconds ahead of hardware. The driver may round this value
 
303
 * to the nearest kernel tick.
 
304
 * @fence_rep: User-space address of a struct drm_vmw_fence_rep cast to an
 
305
 * uint64_t.
 
306
 * @version: Allows expanding the execbuf ioctl parameters without breaking
 
307
 * backwards compatibility, since user-space will always tell the kernel
 
308
 * which version it uses.
 
309
 * @flags: Execbuf flags. None currently.
 
310
 *
 
311
 * Argument to the DRM_VMW_EXECBUF Ioctl.
 
312
 */
 
313
 
 
314
#define DRM_VMW_EXECBUF_VERSION 0
 
315
 
 
316
struct drm_vmw_execbuf_arg {
 
317
        uint64_t commands;
 
318
        uint32_t command_size;
 
319
        uint32_t throttle_us;
 
320
        uint64_t fence_rep;
 
321
         uint32_t version;
 
322
         uint32_t flags;
 
323
};
 
324
 
 
325
/**
 
326
 * struct drm_vmw_fence_rep
 
327
 *
 
328
 * @fence_seq: Fence sequence associated with a command submission.
 
329
 * @error: This member should've been set to -EFAULT on submission.
 
330
 * The following actions should be take on completion:
 
331
 * error == -EFAULT: Fence communication failed. The host is synchronized.
 
332
 * Use the last fence id read from the FIFO fence register.
 
333
 * error != 0 && error != -EFAULT:
 
334
 * Fence submission failed. The host is synchronized. Use the fence_seq member.
 
335
 * error == 0: All is OK, The host may not be synchronized.
 
336
 * Use the fence_seq member.
 
337
 *
 
338
 * Input / Output data to the DRM_VMW_EXECBUF Ioctl.
 
339
 */
 
340
 
 
341
struct drm_vmw_fence_rep {
 
342
        uint64_t fence_seq;
 
343
        int32_t error;
 
344
        uint32_t pad64;
 
345
};
 
346
 
 
347
/*************************************************************************/
 
348
/**
 
349
 * DRM_VMW_ALLOC_DMABUF
 
350
 *
 
351
 * Allocate a DMA buffer that is visible also to the host.
 
352
 * NOTE: The buffer is
 
353
 * identified by a handle and an offset, which are private to the guest, but
 
354
 * useable in the command stream. The guest kernel may translate these
 
355
 * and patch up the command stream accordingly. In the future, the offset may
 
356
 * be zero at all times, or it may disappear from the interface before it is
 
357
 * fixed.
 
358
 *
 
359
 * The DMA buffer may stay user-space mapped in the guest at all times,
 
360
 * and is thus suitable for sub-allocation.
 
361
 *
 
362
 * DMA buffers are mapped using the mmap() syscall on the drm device.
 
363
 */
 
364
 
 
365
/**
 
366
 * struct drm_vmw_alloc_dmabuf_req
 
367
 *
 
368
 * @size: Required minimum size of the buffer.
 
369
 *
 
370
 * Input data to the DRM_VMW_ALLOC_DMABUF Ioctl.
 
371
 */
 
372
 
 
373
struct drm_vmw_alloc_dmabuf_req {
 
374
        uint32_t size;
 
375
        uint32_t pad64;
 
376
};
 
377
 
 
378
/**
 
379
 * struct drm_vmw_dmabuf_rep
 
380
 *
 
381
 * @map_handle: Offset to use in the mmap() call used to map the buffer.
 
382
 * @handle: Handle unique to this buffer. Used for unreferencing.
 
383
 * @cur_gmr_id: GMR id to use in the command stream when this buffer is
 
384
 * referenced. See not above.
 
385
 * @cur_gmr_offset: Offset to use in the command stream when this buffer is
 
386
 * referenced. See note above.
 
387
 *
 
388
 * Output data from the DRM_VMW_ALLOC_DMABUF Ioctl.
 
389
 */
 
390
 
 
391
struct drm_vmw_dmabuf_rep {
 
392
        uint64_t map_handle;
 
393
        uint32_t handle;
 
394
        uint32_t cur_gmr_id;
 
395
        uint32_t cur_gmr_offset;
 
396
        uint32_t pad64;
 
397
};
 
398
 
 
399
/**
 
400
 * union drm_vmw_dmabuf_arg
 
401
 *
 
402
 * @req: Input data as described above.
 
403
 * @rep: Output data as described above.
 
404
 *
 
405
 * Argument to the DRM_VMW_ALLOC_DMABUF Ioctl.
 
406
 */
 
407
 
 
408
union drm_vmw_alloc_dmabuf_arg {
 
409
        struct drm_vmw_alloc_dmabuf_req req;
 
410
        struct drm_vmw_dmabuf_rep rep;
 
411
};
 
412
 
 
413
/*************************************************************************/
 
414
/**
 
415
 * DRM_VMW_UNREF_DMABUF - Free a DMA buffer.
 
416
 *
 
417
 */
 
418
 
 
419
/**
 
420
 * struct drm_vmw_unref_dmabuf_arg
 
421
 *
 
422
 * @handle: Handle indicating what buffer to free. Obtained from the
 
423
 * DRM_VMW_ALLOC_DMABUF Ioctl.
 
424
 *
 
425
 * Argument to the DRM_VMW_UNREF_DMABUF Ioctl.
 
426
 */
 
427
 
 
428
struct drm_vmw_unref_dmabuf_arg {
 
429
        uint32_t handle;
 
430
        uint32_t pad64;
 
431
};
 
432
 
 
433
/*************************************************************************/
 
434
/**
 
435
 * DRM_VMW_FIFO_DEBUG - Get last FIFO submission.
 
436
 *
 
437
 * This IOCTL copies the last FIFO submission directly out of the FIFO buffer.
 
438
 */
 
439
 
 
440
/**
 
441
 * struct drm_vmw_fifo_debug_arg
 
442
 *
 
443
 * @debug_buffer: User space address of a debug_buffer cast to an uint64_t //In
 
444
 * @debug_buffer_size: Size in bytes of debug buffer //In
 
445
 * @used_size: Number of bytes copied to the buffer // Out
 
446
 * @did_not_fit: Boolean indicating that the fifo contents did not fit. //Out
 
447
 *
 
448
 * Argument to the DRM_VMW_FIFO_DEBUG Ioctl.
 
449
 */
 
450
 
 
451
struct drm_vmw_fifo_debug_arg {
 
452
        uint64_t debug_buffer;
 
453
        uint32_t debug_buffer_size;
 
454
        uint32_t used_size;
 
455
        int32_t did_not_fit;
 
456
        uint32_t pad64;
 
457
};
 
458
 
 
459
struct drm_vmw_fence_wait_arg {
 
460
        uint64_t sequence;
 
461
        uint64_t kernel_cookie;
 
462
        int32_t cookie_valid;
 
463
        int32_t pad64;
 
464
};
 
465
 
 
466
/*************************************************************************/
 
467
/**
 
468
 * DRM_VMW_CONTROL_STREAM - Control overlays, aka streams.
 
469
 *
 
470
 * This IOCTL controls the overlay units of the svga device.
 
471
 * The SVGA overlay units does not work like regular hardware units in
 
472
 * that they do not automaticaly read back the contents of the given dma
 
473
 * buffer. But instead only read back for each call to this ioctl, and
 
474
 * at any point between this call being made and a following call that
 
475
 * either changes the buffer or disables the stream.
 
476
 */
 
477
 
 
478
/**
 
479
 * struct drm_vmw_rect
 
480
 *
 
481
 * Defines a rectangle. Used in the overlay ioctl to define
 
482
 * source and destination rectangle.
 
483
 */
 
484
 
 
485
struct drm_vmw_rect {
 
486
        int32_t x;
 
487
        int32_t y;
 
488
        uint32_t w;
 
489
        uint32_t h;
 
490
};
 
491
 
 
492
/**
 
493
 * struct drm_vmw_control_stream_arg
 
494
 *
 
495
 * @stream_id: Stearm to control
 
496
 * @enabled: If false all following arguments are ignored.
 
497
 * @handle: Handle to buffer for getting data from.
 
498
 * @format: Format of the overlay as understood by the host.
 
499
 * @width: Width of the overlay.
 
500
 * @height: Height of the overlay.
 
501
 * @size: Size of the overlay in bytes.
 
502
 * @pitch: Array of pitches, the two last are only used for YUV12 formats.
 
503
 * @offset: Offset from start of dma buffer to overlay.
 
504
 * @src: Source rect, must be within the defined area above.
 
505
 * @dst: Destination rect, x and y may be negative.
 
506
 *
 
507
 * Argument to the DRM_VMW_CONTROL_STREAM Ioctl.
 
508
 */
 
509
 
 
510
struct drm_vmw_control_stream_arg {
 
511
        uint32_t stream_id;
 
512
        uint32_t enabled;
 
513
 
 
514
        uint32_t flags;
 
515
        uint32_t color_key;
 
516
 
 
517
        uint32_t handle;
 
518
        uint32_t offset;
 
519
        int32_t format;
 
520
        uint32_t size;
 
521
        uint32_t width;
 
522
        uint32_t height;
 
523
        uint32_t pitch[3];
 
524
 
 
525
        uint32_t pad64;
 
526
        struct drm_vmw_rect src;
 
527
        struct drm_vmw_rect dst;
 
528
};
 
529
 
 
530
/*************************************************************************/
 
531
/**
 
532
 * DRM_VMW_CURSOR_BYPASS - Give extra information about cursor bypass.
 
533
 *
 
534
 */
 
535
 
 
536
#define DRM_VMW_CURSOR_BYPASS_ALL    (1 << 0)
 
537
#define DRM_VMW_CURSOR_BYPASS_FLAGS       (1)
 
538
 
 
539
/**
 
540
 * struct drm_vmw_cursor_bypass_arg
 
541
 *
 
542
 * @flags: Flags.
 
543
 * @crtc_id: Crtc id, only used if DMR_CURSOR_BYPASS_ALL isn't passed.
 
544
 * @xpos: X position of cursor.
 
545
 * @ypos: Y position of cursor.
 
546
 * @xhot: X hotspot.
 
547
 * @yhot: Y hotspot.
 
548
 *
 
549
 * Argument to the DRM_VMW_CURSOR_BYPASS Ioctl.
 
550
 */
 
551
 
 
552
struct drm_vmw_cursor_bypass_arg {
 
553
        uint32_t flags;
 
554
        uint32_t crtc_id;
 
555
        int32_t xpos;
 
556
        int32_t ypos;
 
557
        int32_t xhot;
 
558
        int32_t yhot;
 
559
};
 
560
 
 
561
/*************************************************************************/
 
562
/**
 
563
 * DRM_VMW_CLAIM_STREAM - Claim a single stream.
 
564
 */
 
565
 
 
566
/**
 
567
 * struct drm_vmw_context_arg
 
568
 *
 
569
 * @stream_id: Device unique context ID.
 
570
 *
 
571
 * Output argument to the DRM_VMW_CREATE_CONTEXT Ioctl.
 
572
 * Input argument to the DRM_VMW_UNREF_CONTEXT Ioctl.
 
573
 */
 
574
 
 
575
struct drm_vmw_stream_arg {
 
576
        uint32_t stream_id;
 
577
        uint32_t pad64;
 
578
};
 
579
 
 
580
/*************************************************************************/
 
581
/**
 
582
 * DRM_VMW_UNREF_STREAM - Unclaim a stream.
 
583
 *
 
584
 * Return a single stream that was claimed by this process. Also makes
 
585
 * sure that the stream has been stopped.
 
586
 */
 
587
 
 
588
#endif