mirror of
https://github.com/gnif/vendor-reset.git
synced 2025-12-27 06:19:29 +01:00
[amd] all: removed dependency on DRM
This commit is contained in:
parent
69ec73efd3
commit
6140e2fdb0
@ -22,14 +22,16 @@
|
|||||||
* Author: Stanislaw Skowronek
|
* Author: Stanislaw Skowronek
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <asm/unaligned.h>
|
#include <asm/unaligned.h>
|
||||||
|
|
||||||
#include <drm/drm_util.h>
|
//#include <drm/drm_util.h>
|
||||||
#include <drm/drm_print.h>
|
//#include <drm/drm_print.h>
|
||||||
|
|
||||||
#define ATOM_DEBUG
|
#define ATOM_DEBUG
|
||||||
|
|
||||||
|
|||||||
@ -24,10 +24,16 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include "vendor-reset-dev.h"
|
#include "vendor-reset-dev.h"
|
||||||
|
|
||||||
/* these are to remove the dependency on DRM */
|
/* these are to remove the dependency on DRM */
|
||||||
|
#include <linux/kgdb.h>
|
||||||
#define DRM_INFO(fmt, args...) pr_info("vendor-reset-drm: " fmt, ##args)
|
#define DRM_INFO(fmt, args...) pr_info("vendor-reset-drm: " fmt, ##args)
|
||||||
#define DRM_ERROR(fmt, args...) pr_err("vendor-reset-drm: " fmt, ##args)
|
#define DRM_ERROR(fmt, args...) pr_err("vendor-reset-drm: " fmt, ##args)
|
||||||
#define DRM_DEBUG(fmt, args...) pr_debug("vendor-reset-drm: " fmt, ##args)
|
#define DRM_DEBUG(fmt, args...) pr_debug("vendor-reset-drm: " fmt, ##args)
|
||||||
|
static inline bool drm_can_sleep(void)
|
||||||
|
{
|
||||||
|
if (in_atomic() || in_dbg_master() || irqs_disabled())
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
#define RREG32(reg) \
|
#define RREG32(reg) \
|
||||||
({ \
|
({ \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user