atom.c (23e041dbaa80eb1032f9d612433c6b9062da5afd) atom.c (d904ef9b00a4473af16766e99f17bdbb5f0fde65)
1/*
2 * Copyright 2008 Advanced Micro Devices, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 249 unchanged lines hidden (view full) ---

258 else
259 DEBUG("ID[0x%04X]", idx);
260 }
261 val = U32(idx + gctx->data_block);
262 break;
263 case ATOM_ARG_FB:
264 idx = U8(*ptr);
265 (*ptr)++;
1/*
2 * Copyright 2008 Advanced Micro Devices, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 249 unchanged lines hidden (view full) ---

258 else
259 DEBUG("ID[0x%04X]", idx);
260 }
261 val = U32(idx + gctx->data_block);
262 break;
263 case ATOM_ARG_FB:
264 idx = U8(*ptr);
265 (*ptr)++;
266 val = gctx->scratch[((gctx->fb_base + idx) / 4)];
266 if (print)
267 DEBUG("FB[0x%02X]", idx);
267 if (print)
268 DEBUG("FB[0x%02X]", idx);
268 printk(KERN_INFO "FB access is not implemented.\n");
269 return 0;
269 break;
270 case ATOM_ARG_IMM:
271 switch (align) {
272 case ATOM_SRC_DWORD:
273 val = U32(*ptr);
274 (*ptr) += 4;
275 if (print)
276 DEBUG("IMM 0x%08X\n", val);
277 return val;

--- 205 unchanged lines hidden (view full) ---

483 break;
484 default:
485 ctx->ws[idx] = val;
486 }
487 break;
488 case ATOM_ARG_FB:
489 idx = U8(*ptr);
490 (*ptr)++;
270 case ATOM_ARG_IMM:
271 switch (align) {
272 case ATOM_SRC_DWORD:
273 val = U32(*ptr);
274 (*ptr) += 4;
275 if (print)
276 DEBUG("IMM 0x%08X\n", val);
277 return val;

--- 205 unchanged lines hidden (view full) ---

483 break;
484 default:
485 ctx->ws[idx] = val;
486 }
487 break;
488 case ATOM_ARG_FB:
489 idx = U8(*ptr);
490 (*ptr)++;
491 gctx->scratch[((gctx->fb_base + idx) / 4)] = val;
491 DEBUG("FB[0x%02X]", idx);
492 DEBUG("FB[0x%02X]", idx);
492 printk(KERN_INFO "FB access is not implemented.\n");
493 return;
493 break;
494 case ATOM_ARG_PLL:
495 idx = U8(*ptr);
496 (*ptr)++;
497 DEBUG("PLL[0x%02X]", idx);
498 gctx->card->pll_write(gctx->card, idx, val);
499 break;
500 case ATOM_ARG_MC:
501 idx = U8(*ptr);

--- 715 unchanged lines hidden ---
494 case ATOM_ARG_PLL:
495 idx = U8(*ptr);
496 (*ptr)++;
497 DEBUG("PLL[0x%02X]", idx);
498 gctx->card->pll_write(gctx->card, idx, val);
499 break;
500 case ATOM_ARG_MC:
501 idx = U8(*ptr);

--- 715 unchanged lines hidden ---