Radeon: fix warnings on 64bit.
This commit is contained in:
@@ -138,12 +138,9 @@ typedef enum
|
||||
connector_dvi_d,
|
||||
connector_ctv,
|
||||
connector_stv,
|
||||
connector_unsupported
|
||||
} radeon_connector_type;
|
||||
connector_unsupported,
|
||||
|
||||
typedef enum
|
||||
{
|
||||
connector_none_atom,
|
||||
connector_none_atom = 0,
|
||||
connector_vga_atom,
|
||||
connector_dvi_i_atom,
|
||||
connector_dvi_d_atom,
|
||||
@@ -153,7 +150,7 @@ typedef enum
|
||||
connector_lvds_atom,
|
||||
connector_digital_atom,
|
||||
connector_unsupported_atom
|
||||
} radeon_connector_type_atom;
|
||||
} radeon_connector_type;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -431,7 +428,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
int32 inuse; // one, if someone allocated overlay head
|
||||
// (this doesn't necessarily mean that an overlay is shown)
|
||||
uint32 token; // arbitrarily chosen token to identify overlay owner
|
||||
uintptr_t token; // arbitrarily chosen token to identify overlay owner
|
||||
// (increased by 1 whenever there is a new owner)
|
||||
uint32 auto_flip_reg; // content of auto_flip_reg
|
||||
} overlay_mgr_info;
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
#include <GraphicsDefs.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
status_t
|
||||
GET_DISPLAY_MODE(display_mode *mode)
|
||||
|
||||
@@ -1084,7 +1084,7 @@ status_t Radeon_UpdateOverlay(
|
||||
return B_OK;
|
||||
|
||||
// verify that the overlay is still valid
|
||||
if( (uint32)si->pending_overlay.ot != si->overlay_mgr.token )
|
||||
if ((uintptr_t)si->pending_overlay.ot != si->overlay_mgr.token )
|
||||
return B_BAD_VALUE;
|
||||
|
||||
if ( vc->different_heads > 1 ) {
|
||||
|
||||
@@ -344,7 +344,7 @@ status_t CONFIGURE_OVERLAY( overlay_token ot, const overlay_buffer *ob,
|
||||
|
||||
SHOW_FLOW0( 4, "" );
|
||||
|
||||
if( (uint32)ot != si->overlay_mgr.token )
|
||||
if ( (uintptr_t)ot != si->overlay_mgr.token )
|
||||
return B_BAD_VALUE;
|
||||
|
||||
if ( !si->overlay_mgr.inuse )
|
||||
|
||||
@@ -54,7 +54,7 @@ typedef struct accelerator_info {
|
||||
// a copy of either mt_pci or mt_agp, mt_local a copy of si->local_mem
|
||||
struct {
|
||||
area_id area; // area of clone
|
||||
char *data; // CPU address of area
|
||||
unsigned char *data; // CPU address of area
|
||||
} mapped_memory[mt_last+1];
|
||||
|
||||
int accelerant_is_clone; // true, if this is a cloned accelerant
|
||||
|
||||
Reference in New Issue
Block a user