diff options
author | Michel Daenzer <michel@daenzer.net> | 2003-11-04 00:46:05 +0000 |
---|---|---|
committer | Michel Daenzer <michel@daenzer.net> | 2003-11-04 00:46:05 +0000 |
commit | 2655ccddf4c026f37dcc76754cdfde6f0a4a4c86 (patch) | |
tree | 98ae7d93c77d64e24863fb27d5ce8342fd2fe2fa /bsd/drm_os_freebsd.h | |
parent | 84dfe702e27e0ef22801f8fe366120bea90adf4f (diff) |
Memory layout transition:
the 2D driver initializes MC_FB_LOCATION and related registers sanely
the DRM deduces the layout from these registers
clients use the new SETPARAM ioctl to tell the DRM where they think the
framebuffer is located in the card's address space
the DRM uses all this information to check client state and fix it up if
necessary
This is a prerequisite for things like direct rendering with IGP chips and
video capturing.
Diffstat (limited to 'bsd/drm_os_freebsd.h')
-rw-r--r-- | bsd/drm_os_freebsd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index 4822b056..480a53f5 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -267,6 +267,8 @@ for ( ret = 0 ; !ret && !(condition) ; ) { \ (!useracc((caddr_t)uaddr, size, VM_PROT_READ)) #define DRM_COPY_FROM_USER_UNCHECKED(arg1, arg2, arg3) \ copyin(arg2, arg1, arg3) +#define DRM_COPY_TO_USER_UNCHECKED(arg1, arg2, arg3) \ + copyout(arg2, arg1, arg3) #define DRM_GET_USER_UNCHECKED(val, uaddr) \ ((val) = fuword(uaddr), 0) #define DRM_PUT_USER_UNCHECKED(val, uaddr) \ |