Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
bf82322e
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
bf82322e
编写于
6月 26, 2005
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge 'drm-fixes' branch of
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
上级
7d681b23
6921e331
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
151 addition
and
26 deletion
+151
-26
drivers/char/drm/Kconfig
drivers/char/drm/Kconfig
+1
-1
drivers/char/drm/i915_dma.c
drivers/char/drm/i915_dma.c
+22
-2
drivers/char/drm/i915_drm.h
drivers/char/drm/i915_drm.h
+27
-0
drivers/char/drm/i915_drv.c
drivers/char/drm/i915_drv.c
+22
-3
drivers/char/drm/i915_drv.h
drivers/char/drm/i915_drv.h
+22
-2
drivers/char/drm/i915_irq.c
drivers/char/drm/i915_irq.c
+22
-2
drivers/char/drm/i915_mem.c
drivers/char/drm/i915_mem.c
+22
-2
drivers/char/drm/radeon_irq.c
drivers/char/drm/radeon_irq.c
+13
-14
未找到文件。
drivers/char/drm/Kconfig
浏览文件 @
bf82322e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#
#
config DRM
config DRM
tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)"
tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)"
depends on
AGP || AGP=n
depends on
(AGP || AGP=n) && PCI
help
help
Kernel-level support for the Direct Rendering Infrastructure (DRI)
Kernel-level support for the Direct Rendering Infrastructure (DRI)
introduced in XFree86 4.0. If you say Y here, you need to select
introduced in XFree86 4.0. If you say Y here, you need to select
...
...
drivers/char/drm/i915_dma.c
浏览文件 @
bf82322e
/* i915_dma.c -- DMA support for the I915 -*- linux-c -*-
/* i915_dma.c -- DMA support for the I915 -*- linux-c -*-
*/
*/
/**************************************************************************
/**************************************************************************
*
*
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
* All Rights Reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
**************************************************************************/
**************************************************************************/
#include "drmP.h"
#include "drmP.h"
...
...
drivers/char/drm/i915_drm.h
浏览文件 @
bf82322e
/**************************************************************************
*
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
**************************************************************************/
#ifndef _I915_DRM_H_
#ifndef _I915_DRM_H_
#define _I915_DRM_H_
#define _I915_DRM_H_
...
...
drivers/char/drm/i915_drv.c
浏览文件 @
bf82322e
/* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*-
/* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*-
*/
*/
/**************************************************************************
/**************************************************************************
*
*
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
* All Rights Reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
**************************************************************************/
**************************************************************************/
#include "drmP.h"
#include "drmP.h"
...
...
drivers/char/drm/i915_drv.h
浏览文件 @
bf82322e
/* i915_drv.h -- Private header for the I915 driver -*- linux-c -*-
/* i915_drv.h -- Private header for the I915 driver -*- linux-c -*-
*/
*/
/**************************************************************************
/**************************************************************************
*
*
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
* All Rights Reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
**************************************************************************/
**************************************************************************/
#ifndef _I915_DRV_H_
#ifndef _I915_DRV_H_
...
...
drivers/char/drm/i915_irq.c
浏览文件 @
bf82322e
/* i915_dma.c -- DMA support for the I915 -*- linux-c -*-
/* i915_dma.c -- DMA support for the I915 -*- linux-c -*-
*/
*/
/**************************************************************************
/**************************************************************************
*
*
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
* All Rights Reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
**************************************************************************/
**************************************************************************/
#include "drmP.h"
#include "drmP.h"
...
...
drivers/char/drm/i915_mem.c
浏览文件 @
bf82322e
/* i915_mem.c -- Simple agp/fb memory manager for i915 -*- linux-c -*-
/* i915_mem.c -- Simple agp/fb memory manager for i915 -*- linux-c -*-
*/
*/
/**************************************************************************
/**************************************************************************
*
*
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
* All Rights Reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
**************************************************************************/
**************************************************************************/
#include "drmP.h"
#include "drmP.h"
...
...
drivers/char/drm/radeon_irq.c
浏览文件 @
bf82322e
...
@@ -35,6 +35,14 @@
...
@@ -35,6 +35,14 @@
#include "radeon_drm.h"
#include "radeon_drm.h"
#include "radeon_drv.h"
#include "radeon_drv.h"
static
__inline__
u32
radeon_acknowledge_irqs
(
drm_radeon_private_t
*
dev_priv
,
u32
mask
)
{
u32
irqs
=
RADEON_READ
(
RADEON_GEN_INT_STATUS
)
&
mask
;
if
(
irqs
)
RADEON_WRITE
(
RADEON_GEN_INT_STATUS
,
irqs
);
return
irqs
;
}
/* Interrupts - Used for device synchronization and flushing in the
/* Interrupts - Used for device synchronization and flushing in the
* following circumstances:
* following circumstances:
*
*
...
@@ -63,8 +71,8 @@ irqreturn_t radeon_driver_irq_handler( DRM_IRQ_ARGS )
...
@@ -63,8 +71,8 @@ irqreturn_t radeon_driver_irq_handler( DRM_IRQ_ARGS )
/* Only consider the bits we're interested in - others could be used
/* Only consider the bits we're interested in - others could be used
* outside the DRM
* outside the DRM
*/
*/
stat
=
RADEON_READ
(
RADEON_GEN_INT_STATUS
)
stat
=
radeon_acknowledge_irqs
(
dev_priv
,
(
RADEON_SW_INT_TEST_ACK
|
&
(
RADEON_SW_INT_TEST
|
RADEON_CRTC_VBLANK_STAT
);
RADEON_CRTC_VBLANK_STAT
)
);
if
(
!
stat
)
if
(
!
stat
)
return
IRQ_NONE
;
return
IRQ_NONE
;
...
@@ -80,19 +88,9 @@ irqreturn_t radeon_driver_irq_handler( DRM_IRQ_ARGS )
...
@@ -80,19 +88,9 @@ irqreturn_t radeon_driver_irq_handler( DRM_IRQ_ARGS )
drm_vbl_send_signals
(
dev
);
drm_vbl_send_signals
(
dev
);
}
}
/* Acknowledge interrupts we handle */
RADEON_WRITE
(
RADEON_GEN_INT_STATUS
,
stat
);
return
IRQ_HANDLED
;
return
IRQ_HANDLED
;
}
}
static
__inline__
void
radeon_acknowledge_irqs
(
drm_radeon_private_t
*
dev_priv
)
{
u32
tmp
=
RADEON_READ
(
RADEON_GEN_INT_STATUS
)
&
(
RADEON_SW_INT_TEST_ACK
|
RADEON_CRTC_VBLANK_STAT
);
if
(
tmp
)
RADEON_WRITE
(
RADEON_GEN_INT_STATUS
,
tmp
);
}
static
int
radeon_emit_irq
(
drm_device_t
*
dev
)
static
int
radeon_emit_irq
(
drm_device_t
*
dev
)
{
{
drm_radeon_private_t
*
dev_priv
=
dev
->
dev_private
;
drm_radeon_private_t
*
dev_priv
=
dev
->
dev_private
;
...
@@ -141,7 +139,7 @@ int radeon_driver_vblank_wait(drm_device_t *dev, unsigned int *sequence)
...
@@ -141,7 +139,7 @@ int radeon_driver_vblank_wait(drm_device_t *dev, unsigned int *sequence)
return
DRM_ERR
(
EINVAL
);
return
DRM_ERR
(
EINVAL
);
}
}
radeon_acknowledge_irqs
(
dev_priv
);
radeon_acknowledge_irqs
(
dev_priv
,
RADEON_CRTC_VBLANK_STAT
);
dev_priv
->
stats
.
boxes
|=
RADEON_BOX_WAIT_IDLE
;
dev_priv
->
stats
.
boxes
|=
RADEON_BOX_WAIT_IDLE
;
...
@@ -219,7 +217,8 @@ void radeon_driver_irq_preinstall( drm_device_t *dev ) {
...
@@ -219,7 +217,8 @@ void radeon_driver_irq_preinstall( drm_device_t *dev ) {
RADEON_WRITE
(
RADEON_GEN_INT_CNTL
,
0
);
RADEON_WRITE
(
RADEON_GEN_INT_CNTL
,
0
);
/* Clear bits if they're already high */
/* Clear bits if they're already high */
radeon_acknowledge_irqs
(
dev_priv
);
radeon_acknowledge_irqs
(
dev_priv
,
(
RADEON_SW_INT_TEST_ACK
|
RADEON_CRTC_VBLANK_STAT
));
}
}
void
radeon_driver_irq_postinstall
(
drm_device_t
*
dev
)
{
void
radeon_driver_irq_postinstall
(
drm_device_t
*
dev
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录