diff options
author | Eric Anholt <eric@anholt.net> | 2007-07-16 01:53:06 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-07-16 01:53:06 -0700 |
commit | 3f04fe7890fe7728e7df37a6b65ad328a46699bf (patch) | |
tree | 09489018159e31df67394a9863aa0f3ef8f4c204 /bsd-core | |
parent | aa6d9199fa7b0cbe04a936312db7be75bb53bdc8 (diff) |
Fix FreeBSD build.
Diffstat (limited to 'bsd-core')
-rw-r--r-- | bsd-core/drmP.h | 1 | ||||
-rw-r--r-- | bsd-core/drm_scatter.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h index 6e05b58f..b2ecd4d4 100644 --- a/bsd-core/drmP.h +++ b/bsd-core/drmP.h @@ -780,6 +780,7 @@ struct drm_device { int last_context; /* Last current context */ int vbl_queue; /* vbl wait channel */ atomic_t vbl_received; + atomic_t vbl_received2; #ifdef __FreeBSD__ struct sigio *buf_sigio; /* Processes waiting for SIGIO */ diff --git a/bsd-core/drm_scatter.c b/bsd-core/drm_scatter.c index 46222f18..99eae408 100644 --- a/bsd-core/drm_scatter.c +++ b/bsd-core/drm_scatter.c @@ -44,6 +44,7 @@ int drm_sg_alloc(drm_device_t * dev, drm_scatter_gather_t * request) { drm_sg_mem_t *entry; unsigned long pages; + int i; if ( dev->sg ) return EINVAL; @@ -52,7 +53,7 @@ int drm_sg_alloc(drm_device_t * dev, drm_scatter_gather_t * request) if ( !entry ) return ENOMEM; - pages = round_page(request.size) / PAGE_SIZE; + pages = round_page(request->size) / PAGE_SIZE; DRM_DEBUG( "sg size=%ld pages=%ld\n", request->size, pages ); entry->pages = pages; |