~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to include/drm/drmP.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 * can build the DRM (part of PI DRI). 4/21/2000 S + B */
43
43
#include <asm/current.h>
44
44
#endif                          /* __alpha__ */
45
 
#include <linux/module.h>
46
45
#include <linux/kernel.h>
47
46
#include <linux/miscdevice.h>
48
47
#include <linux/fs.h>
80
79
#define __OS_HAS_AGP (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && defined(MODULE)))
81
80
#define __OS_HAS_MTRR (defined(CONFIG_MTRR))
82
81
 
 
82
struct module;
 
83
 
83
84
struct drm_file;
84
85
struct drm_device;
85
86
 
122
123
 * using the DRM_DEBUG_KMS and DRM_DEBUG.
123
124
 */
124
125
 
125
 
extern __attribute__((format (printf, 4, 5)))
 
126
extern __printf(4, 5)
126
127
void drm_ut_debug_printk(unsigned int request_level,
127
 
                                const char *prefix,
128
 
                                const char *function_name,
129
 
                                const char *format, ...);
130
 
extern __attribute__((format (printf, 2, 3)))
 
128
                         const char *prefix,
 
129
                         const char *function_name,
 
130
                         const char *format, ...);
 
131
extern __printf(2, 3)
131
132
int drm_err(const char *func, const char *format, ...);
132
133
 
133
134
/***********************************************************************/
886
887
         */
887
888
        int (*gem_init_object) (struct drm_gem_object *obj);
888
889
        void (*gem_free_object) (struct drm_gem_object *obj);
 
890
        int (*gem_open_object) (struct drm_gem_object *, struct drm_file *);
 
891
        void (*gem_close_object) (struct drm_gem_object *, struct drm_file *);
889
892
 
890
893
        /* vga arb irq handler */
891
894
        void (*vgaarb_irq)(struct drm_device *dev, bool state);
987
990
        struct proc_dir_entry *proc_root;  /**< proc directory entry */
988
991
        struct drm_info_node proc_nodes;
989
992
        struct dentry *debugfs_root;
990
 
        struct drm_info_node debugfs_nodes;
 
993
 
 
994
        struct list_head debugfs_list;
 
995
        struct mutex debugfs_lock; /* Protects debugfs_list. */
991
996
 
992
997
        struct drm_master *master; /* currently active master for this node */
993
998
        struct list_head master_list;
1677
1682
        return pci_find_capability(dev->pdev, PCI_CAP_ID_AGP);
1678
1683
}
1679
1684
 
1680
 
 
1681
 
static __inline__ int drm_pci_device_is_pcie(struct drm_device *dev)
1682
 
{
1683
 
        return pci_find_capability(dev->pdev, PCI_CAP_ID_EXP);
1684
 
}
1685
 
 
1686
 
 
1687
1685
extern int drm_pci_init(struct drm_driver *driver, struct pci_driver *pdriver);
1688
1686
extern void drm_pci_exit(struct drm_driver *driver, struct pci_driver *pdriver);
1689
1687
extern int drm_get_pci_dev(struct pci_dev *pdev,