From 837f7e8a48ea35d21de24b620830a2c6db854861 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 30 Dec 2008 06:50:54 +1000 Subject: atombios: endian fix in r600 object table handling This fixes the r600 object table on r600. --- src/radeon_atombios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/radeon_atombios.c') diff --git a/src/radeon_atombios.c b/src/radeon_atombios.c index 43f2c18f..1ca9f86f 100644 --- a/src/radeon_atombios.c +++ b/src/radeon_atombios.c @@ -1644,8 +1644,8 @@ RADEONGetATOMConnectorInfoFromBIOSObject (ScrnInfoPtr pScrn) for (j = 0; j < SrcDstTable->ucNumberOfSrc; j++) { uint8_t sobj_id; - sobj_id = (SrcDstTable->usSrcObjectID[j] & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT; - ErrorF("src object id %04x %d\n", SrcDstTable->usSrcObjectID[j], sobj_id); + sobj_id = (le16_to_cpu(SrcDstTable->usSrcObjectID[j]) & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT; + ErrorF("src object id %04x %d\n", le16_to_cpu(SrcDstTable->usSrcObjectID[j]), sobj_id); switch(sobj_id) { case ENCODER_OBJECT_ID_INTERNAL_LVDS: -- cgit v1.2.3