Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6101 → Rev 6102

/drivers/include/drm/drmP.h
39,6 → 39,8
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/idr.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/kref.h>
833,6 → 835,10
struct drm_pending_vblank_event *e);
extern void drm_crtc_send_vblank_event(struct drm_crtc *crtc,
struct drm_pending_vblank_event *e);
extern void drm_arm_vblank_event(struct drm_device *dev, unsigned int pipe,
struct drm_pending_vblank_event *e);
extern void drm_crtc_arm_vblank_event(struct drm_crtc *crtc,
struct drm_pending_vblank_event *e);
extern bool drm_handle_vblank(struct drm_device *dev, unsigned int pipe);
extern bool drm_crtc_handle_vblank(struct drm_crtc *crtc);
extern int drm_vblank_get(struct drm_device *dev, unsigned int pipe);
964,6 → 970,11
 
extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
 
/* returns true if currently okay to sleep */
static __inline__ bool drm_can_sleep(void)
{
return true;
}
 
static __inline__ int drm_device_is_pcie(struct drm_device *dev)
{
/drivers/include/drm/drm_gem.h
142,9 → 142,12
static inline void
drm_gem_object_unreference(struct drm_gem_object *obj)
{
if (obj != NULL)
if (obj != NULL) {
WARN_ON(!mutex_is_locked(&obj->dev->struct_mutex));
 
kref_put(&obj->refcount, drm_gem_object_free);
}
}
 
static inline void
drm_gem_object_unreference_unlocked(struct drm_gem_object *obj)
/drivers/include/drm/drm_os_linux.h
3,7 → 3,7
* OS abstraction macros.
*/
 
//#include <linux/interrupt.h> /* For task queue support */
#include <linux/interrupt.h> /* For task queue support */
#include <linux/delay.h>
 
#ifndef readq