/drivers/ddk/Makefile |
---|
44,7 → 44,6 |
linux/idr.c \ |
linux/interval_tree.c \ |
linux/kasprintf.c \ |
linux/kmap.c \ |
linux/list_sort.c \ |
linux/mutex.c \ |
linux/rbtree.c \ |
/drivers/ddk/linux/kmap.c |
---|
File deleted |
/drivers/ddk/linux/workqueue.c |
---|
195,7 → 195,7 |
ret = 1; |
}; |
timer->handle = TimerHS(expires, 0, timer->function, (void*)timer->data); |
timer->handle = TimerHS(expires, 0, timer->function, timer->data); |
return ret; |
} |
/drivers/include/drm/drmP.h |
---|
318,11 → 318,6 |
unsigned universal_planes:1; |
/* true if client understands atomic properties */ |
unsigned atomic:1; |
/* |
* This client is allowed to gain master privileges for @master. |
* Protected by struct drm_device::master_mutex. |
*/ |
unsigned allowed_master:1; |
struct list_head lhead; |
struct drm_minor *minor; |
unsigned long lock_count; |
/drivers/include/drm/drm_dp_mst_helper.h |
---|
44,6 → 44,8 |
/** |
* struct drm_dp_mst_port - MST port |
* @kref: reference count for this port. |
* @guid_valid: for DP 1.2 devices if we have validated the GUID. |
* @guid: guid for DP 1.2 device on this port. |
* @port_num: port number |
* @input: if this port is an input port. |
* @mcs: message capability status - DP 1.2 spec. |
68,6 → 70,10 |
struct drm_dp_mst_port { |
struct kref kref; |
/* if dpcd 1.2 device is on this port - its GUID info */ |
bool guid_valid; |
u8 guid[16]; |
u8 port_num; |
bool input; |
bool mcs; |
103,12 → 109,10 |
* @tx_slots: transmission slots for this device. |
* @last_seqno: last sequence number used to talk to this. |
* @link_address_sent: if a link address message has been sent to this device yet. |
* @guid: guid for DP 1.2 branch device. port under this branch can be |
* identified by port #. |
* |
* This structure represents an MST branch device, there is one |
* primary branch device at the root, along with any other branches connected |
* to downstream port of parent branches. |
* primary branch device at the root, along with any others connected |
* to downstream ports |
*/ |
struct drm_dp_mst_branch { |
struct kref kref; |
127,9 → 131,6 |
struct drm_dp_sideband_msg_tx *tx_slots[2]; |
int last_seqno; |
bool link_address_sent; |
/* global unique identifier to identify branch devices */ |
u8 guid[16]; |
}; |
404,9 → 405,11 |
* @conn_base_id: DRM connector ID this mgr is connected to. |
* @down_rep_recv: msg receiver state for down replies. |
* @up_req_recv: msg receiver state for up requests. |
* @lock: protects mst state, primary, dpcd. |
* @lock: protects mst state, primary, guid, dpcd. |
* @mst_state: if this manager is enabled for an MST capable port. |
* @mst_primary: pointer to the primary branch device. |
* @guid_valid: GUID valid for the primary branch device. |
* @guid: GUID for primary port. |
* @dpcd: cache of DPCD for primary port. |
* @pbn_div: PBN to slots divisor. |
* |
428,11 → 431,13 |
struct drm_dp_sideband_msg_rx up_req_recv; |
/* pointer to info about the initial MST device */ |
struct mutex lock; /* protects mst_state + primary + dpcd */ |
struct mutex lock; /* protects mst_state + primary + guid + dpcd */ |
bool mst_state; |
struct drm_dp_mst_branch *mst_primary; |
/* primary MST device GUID */ |
bool guid_valid; |
u8 guid[16]; |
u8 dpcd[DP_RECEIVER_CAP_SIZE]; |
u8 sink_count; |
int pbn_div; |
445,7 → 450,9 |
the mstb tx_slots and txmsg->state once they are queued */ |
struct mutex qlock; |
struct list_head tx_msg_downq; |
struct list_head tx_msg_upq; |
bool tx_down_in_progress; |
bool tx_up_in_progress; |
/* payload info + lock for it */ |
struct mutex payload_lock; |
/drivers/include/drm/drm_cache.h |
---|
35,13 → 35,4 |
void drm_clflush_pages(struct page *pages[], unsigned long num_pages); |
static inline bool drm_arch_can_wc_memory(void) |
{ |
#if defined(CONFIG_PPC) && !defined(CONFIG_NOT_COHERENT_CACHE) |
return false; |
#else |
return true; |
#endif |
} |
#endif |
/drivers/include/drm/drm_fixed.h |
---|
73,8 → 73,6 |
#define DRM_FIXED_ONE (1ULL << DRM_FIXED_POINT) |
#define DRM_FIXED_DECIMAL_MASK (DRM_FIXED_ONE - 1) |
#define DRM_FIXED_DIGITS_MASK (~DRM_FIXED_DECIMAL_MASK) |
#define DRM_FIXED_EPSILON 1LL |
#define DRM_FIXED_ALMOST_ONE (DRM_FIXED_ONE - DRM_FIXED_EPSILON) |
static inline s64 drm_int2fixp(int a) |
{ |
81,21 → 79,13 |
return ((s64)a) << DRM_FIXED_POINT; |
} |
static inline int drm_fixp2int(s64 a) |
static inline int drm_fixp2int(int64_t a) |
{ |
return ((s64)a) >> DRM_FIXED_POINT; |
} |
static inline int drm_fixp2int_ceil(s64 a) |
static inline unsigned drm_fixp_msbset(int64_t a) |
{ |
if (a > 0) |
return drm_fixp2int(a + DRM_FIXED_ALMOST_ONE); |
else |
return drm_fixp2int(a - DRM_FIXED_ALMOST_ONE); |
} |
static inline unsigned drm_fixp_msbset(s64 a) |
{ |
unsigned shift, sign = (a >> 63) & 1; |
for (shift = 62; shift > 0; --shift) |
146,45 → 136,6 |
return result; |
} |
static inline s64 drm_fixp_from_fraction(s64 a, s64 b) |
{ |
s64 res; |
bool a_neg = a < 0; |
bool b_neg = b < 0; |
u64 a_abs = a_neg ? -a : a; |
u64 b_abs = b_neg ? -b : b; |
u64 rem; |
/* determine integer part */ |
u64 res_abs = div64_u64_rem(a_abs, b_abs, &rem); |
/* determine fractional part */ |
{ |
u32 i = DRM_FIXED_POINT; |
do { |
rem <<= 1; |
res_abs <<= 1; |
if (rem >= b_abs) { |
res_abs |= 1; |
rem -= b_abs; |
} |
} while (--i != 0); |
} |
/* round up LSB */ |
{ |
u64 summand = (rem << 1) >= b_abs; |
res_abs += summand; |
} |
res = (s64) res_abs; |
if (a_neg ^ b_neg) |
res = -res; |
return res; |
} |
static inline s64 drm_fixp_exp(s64 x) |
{ |
s64 tolerance = div64_s64(DRM_FIXED_ONE, 1000000); |
/drivers/include/linux/file.h |
---|
10,7 → 10,6 |
#include <linux/posix_types.h> |
struct file; |
extern void fput(struct file *); |
extern struct file *fget(unsigned int fd); |
#endif /* __LINUX_FILE_H */ |
/drivers/include/linux/idr.h |
---|
12,6 → 12,7 |
#ifndef __IDR_H__ |
#define __IDR_H__ |
#include <syscall.h> |
#include <linux/types.h> |
#include <linux/bitops.h> |
#include <linux/init.h> |
/drivers/include/linux/dmi.h |
---|
2,7 → 2,6 |
#define __DMI_H__ |
#include <linux/list.h> |
#include <linux/kobject.h> |
#include <linux/mod_devicetable.h> |
/* enum dmi_field is in mod_devicetable.h */ |
94,7 → 93,6 |
int devfn; |
}; |
extern struct kobject *dmi_kobj; |
extern int dmi_check_system(const struct dmi_system_id *list); |
const struct dmi_system_id *dmi_first_match(const struct dmi_system_id *list); |
extern const char * dmi_get_system_info(int field); |
/drivers/include/linux/lockdep.h |
---|
2,7 → 2,7 |
* Runtime locking correctness validator |
* |
* Copyright (C) 2006,2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> |
* Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra |
* Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com> |
* |
* see Documentation/locking/lockdep-design.txt for more details. |
*/ |
/drivers/include/linux/rcutiny.h |
---|
37,10 → 37,6 |
might_sleep(); |
} |
static inline unsigned long get_state_synchronize_sched(void) |
{ |
return 0; |
} |
static inline void rcu_barrier_bh(void) |
{ |
wait_rcu_gp(call_rcu_bh); |
/drivers/include/linux/sfi.h |
---|
59,7 → 59,7 |
#ifndef _LINUX_SFI_H |
#define _LINUX_SFI_H |
#include <linux/init.h> |
//#include <linux/init.h> |
#include <linux/types.h> |
/* Table signatures reserved by the SFI specification */ |
/drivers/include/linux/mmdebug.h |
---|
1,7 → 1,6 |
#ifndef LINUX_MM_DEBUG_H |
#define LINUX_MM_DEBUG_H 1 |
#include <linux/bug.h> |
#include <linux/stringify.h> |
struct page; |
/drivers/include/linux/backlight.h |
---|
7,10 → 7,6 |
#ifndef _LINUX_BACKLIGHT_H |
#define _LINUX_BACKLIGHT_H |
#include <linux/device.h> |
#include <linux/fb.h> |
#include <linux/mutex.h> |
/* Notes on locking: |
* |
* backlight_device->ops_lock is an internal backlight lock protecting the |
/drivers/include/syscall.h |
---|
486,7 → 486,7 |
("" :::"eax","ecx","edx"); |
} |
void FASTCALL sysSetFramebuffer(void *fb)__asm__("SetFramebuffer"); |
int drm_order(unsigned long size); |
static inline void __iomem *ioremap(u32 offset, size_t size) |
{ |
/drivers/include/display.h |
---|
40,11 → 40,6 |
uint32_t pde[8]; |
}; |
int fake_framebuffer_create(); |
void set_fake_framebuffer(); |
int kolibri_framebuffer_init(void *param); |
void kolibri_framebuffer_update(struct drm_device *dev, struct kos_framebuffer *kfb); |
struct tag_display |
{ |
u32 x; |
/drivers/include/asm-generic/delay.h |
---|
19,6 → 19,9 |
#define udelay(n) \ |
({ \ |
if (__builtin_constant_p(n)) { \ |
if ((n) / 20000 >= 1) \ |
__bad_udelay(); \ |
else \ |
__const_udelay((n) * 0x10c7ul); \ |
} else { \ |
__udelay(n); \ |