Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4109 → Rev 4110

/drivers/include/drm/drm_mm.h
36,7 → 36,10
/*
* Generic range manager structs
*/
#include <linux/bug.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#ifdef CONFIG_DEBUG_FS
#include <linux/seq_file.h>
#endif
/drivers/include/drm/ttm/ttm_bo_api.h
32,12 → 32,12
#define _TTM_BO_API_H_
 
#include <drm/drm_hashtab.h>
#include <drm/drm_vma_manager.h>
#include <linux/kref.h>
#include <linux/list.h>
#include <linux/wait.h>
#include <linux/mutex.h>
#include <linux/mm.h>
#include <linux/rbtree.h>
#include <linux/bitmap.h>
 
struct ttm_bo_device;
195,7 → 195,6
enum ttm_bo_type type;
void (*destroy) (struct ttm_buffer_object *);
unsigned long num_pages;
uint64_t addr_space_offset;
size_t acc_size;
 
/**
239,14 → 238,8
void *sync_obj;
unsigned long priv_flags;
 
/**
* Members protected by the bdev::vm_lock
*/
struct drm_vma_offset_node vma_node;
 
// struct rb_node vm_rb;
struct drm_mm_node *vm_node;
 
 
/**
* Special members that are protected by the reserve lock
* and the bo::lock when written to. Can be read with
/drivers/include/drm/ttm/ttm_bo_driver.h
36,6 → 36,7
#include <ttm/ttm_placement.h>
#include <drm/drm_mm.h>
#include <drm/drm_global.h>
#include <drm/drm_vma_manager.h>
//#include <linux/workqueue.h>
//#include <linux/fs.h>
#include <linux/spinlock.h>
538,14 → 539,13
struct list_head device_list;
struct ttm_bo_global *glob;
struct ttm_bo_driver *driver;
rwlock_t vm_lock;
struct ttm_mem_type_manager man[TTM_NUM_MEM_TYPES];
spinlock_t fence_lock;
 
/*
* Protected by the vm lock.
* Protected by internal locks.
*/
struct rb_root addr_space_rb;
struct drm_mm addr_space_mm;
struct drm_vma_offset_manager vma_manager;
 
/*
* Protected by the global:lru lock.
/drivers/include/linux/kernel.h
12,7 → 12,7
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/bitops.h>
 
#include <linux/errno.h>
#include <linux/typecheck.h>
 
#define __init
/drivers/include/syscall.h
143,6 → 143,19
 
///////////////////////////////////////////////////////////////////////////////
 
static inline int CreateKernelThread(void *entry)
{
int pid;
__asm__ __volatile__ (
"call *__imp__CreateThread"
:"=a"(pid)
:"b"(1),"c"(entry),"d"(0)
:"memory");
__asm__ __volatile__ ("":::"ebx","ecx","edx","esi","edi");
return pid;
};
 
 
static inline evhandle_t CreateEvent(kevent_t *ev, u32_t flags)
{
evhandle_t evh;