Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2 Prefix radeon .c files with `radeon_'.



details:   https://anonhg.NetBSD.org/src/rev/7db79bc0964f
branches:  trunk
changeset: 364751:7db79bc0964f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:38:20 2018 +0000

description:
Prefix radeon .c files with `radeon_'.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/atom.c                          |   1439 -
 sys/external/bsd/drm2/dist/drm/radeon/atombios_crtc.c                 |   2267 --
 sys/external/bsd/drm2/dist/drm/radeon/atombios_dp.c                   |    869 -
 sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c             |   2853 --
 sys/external/bsd/drm2/dist/drm/radeon/atombios_i2c.c                  |    161 -
 sys/external/bsd/drm2/dist/drm/radeon/btc_dpm.c                       |   2832 --
 sys/external/bsd/drm2/dist/drm/radeon/cayman_blit_shaders.c           |    325 -
 sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c                        |   5984 -----
 sys/external/bsd/drm2/dist/drm/radeon/ci_smc.c                        |    300 -
 sys/external/bsd/drm2/dist/drm/radeon/cik.c                           |  10143 ----------
 sys/external/bsd/drm2/dist/drm/radeon/cik_blit_shaders.c              |    251 -
 sys/external/bsd/drm2/dist/drm/radeon/cik_sdma.c                      |   1002 -
 sys/external/bsd/drm2/dist/drm/radeon/cypress_dpm.c                   |   2170 --
 sys/external/bsd/drm2/dist/drm/radeon/dce3_1_afmt.c                   |    237 -
 sys/external/bsd/drm2/dist/drm/radeon/dce6_afmt.c                     |    323 -
 sys/external/bsd/drm2/dist/drm/radeon/evergreen.c                     |   6128 ------
 sys/external/bsd/drm2/dist/drm/radeon/evergreen_blit_shaders.c        |    308 -
 sys/external/bsd/drm2/dist/drm/radeon/evergreen_cs.c                  |   3619 ---
 sys/external/bsd/drm2/dist/drm/radeon/evergreen_dma.c                 |    187 -
 sys/external/bsd/drm2/dist/drm/radeon/evergreen_hdmi.c                |    494 -
 sys/external/bsd/drm2/dist/drm/radeon/kv_dpm.c                        |   2907 --
 sys/external/bsd/drm2/dist/drm/radeon/kv_smc.c                        |    220 -
 sys/external/bsd/drm2/dist/drm/radeon/ni.c                            |   2680 --
 sys/external/bsd/drm2/dist/drm/radeon/ni_dma.c                        |    477 -
 sys/external/bsd/drm2/dist/drm/radeon/ni_dpm.c                        |   4386 ----
 sys/external/bsd/drm2/dist/drm/radeon/r100.c                          |   4203 ----
 sys/external/bsd/drm2/dist/drm/radeon/r200.c                          |    556 -
 sys/external/bsd/drm2/dist/drm/radeon/r300.c                          |   1625 -
 sys/external/bsd/drm2/dist/drm/radeon/r420.c                          |    508 -
 sys/external/bsd/drm2/dist/drm/radeon/r520.c                          |    337 -
 sys/external/bsd/drm2/dist/drm/radeon/r600.c                          |   4663 ----
 sys/external/bsd/drm2/dist/drm/radeon/r600_blit_shaders.c             |    724 -
 sys/external/bsd/drm2/dist/drm/radeon/r600_cs.c                       |   2635 --
 sys/external/bsd/drm2/dist/drm/radeon/r600_dma.c                      |    495 -
 sys/external/bsd/drm2/dist/drm/radeon/r600_dpm.c                      |   1373 -
 sys/external/bsd/drm2/dist/drm/radeon/r600_hdmi.c                     |    540 -
 sys/external/bsd/drm2/dist/drm/radeon/radeon_atom.c                   |   1439 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_atombios_crtc.c          |   2267 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_atombios_dp.c            |    869 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_atombios_encoders.c      |   2853 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_atombios_i2c.c           |    161 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_btc_dpm.c                |   2832 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_cayman_blit_shaders.c    |    325 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_ci_dpm.c                 |   5984 +++++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_ci_smc.c                 |    300 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c                    |  10143 ++++++++++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_cik_blit_shaders.c       |    251 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_cik_sdma.c               |   1002 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_cypress_dpm.c            |   2170 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_dce3_1_afmt.c            |    237 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_dce6_afmt.c              |    323 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen.c              |   6128 ++++++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen_blit_shaders.c |    308 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen_cs.c           |   3619 +++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen_dma.c          |    187 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen_hdmi.c         |    494 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_kv_dpm.c                 |   2907 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_kv_smc.c                 |    220 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_ni.c                     |   2680 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_ni_dma.c                 |    477 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_ni_dpm.c                 |   4386 ++++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r100.c                   |   4203 ++++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r200.c                   |    556 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r300.c                   |   1625 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r420.c                   |    508 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r520.c                   |    337 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r600.c                   |   4663 ++++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_blit_shaders.c      |    724 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_cs.c                |   2635 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_dma.c               |    495 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_dpm.c               |   1373 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_hdmi.c              |    540 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rs400.c                  |    591 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rs600.c                  |   1197 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rs690.c                  |    885 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rs780_dpm.c              |   1083 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rv515.c                  |   1311 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rv6xx_dpm.c              |   2166 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rv730_dpm.c              |    513 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rv740_dpm.c              |    421 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rv770.c                  |   2059 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rv770_dma.c              |     99 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rv770_dpm.c              |   2593 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_rv770_smc.c              |    636 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_si.c                     |   7968 +++++++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_si_blit_shaders.c        |    258 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_si_dma.c                 |    289 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_si_dpm.c                 |   7192 +++++++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_si_smc.c                 |    315 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_sumo_dpm.c               |   1952 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_sumo_smc.c               |    226 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_trinity_dpm.c            |   2111 ++
 sys/external/bsd/drm2/dist/drm/radeon/radeon_trinity_smc.c            |    132 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c               |    540 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v2_2.c               |    203 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v3_1.c               |     62 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v4_2.c               |     73 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_vce_v1_0.c               |    389 +
 sys/external/bsd/drm2/dist/drm/radeon/radeon_vce_v2_0.c               |    199 +
 sys/external/bsd/drm2/dist/drm/radeon/rs400.c                         |    591 -
 sys/external/bsd/drm2/dist/drm/radeon/rs600.c                         |   1197 -
 sys/external/bsd/drm2/dist/drm/radeon/rs690.c                         |    885 -
 sys/external/bsd/drm2/dist/drm/radeon/rs780_dpm.c                     |   1083 -
 sys/external/bsd/drm2/dist/drm/radeon/rv515.c                         |   1311 -
 sys/external/bsd/drm2/dist/drm/radeon/rv6xx_dpm.c                     |   2166 --
 sys/external/bsd/drm2/dist/drm/radeon/rv730_dpm.c                     |    513 -
 sys/external/bsd/drm2/dist/drm/radeon/rv740_dpm.c                     |    421 -
 sys/external/bsd/drm2/dist/drm/radeon/rv770.c                         |   2059 --
 sys/external/bsd/drm2/dist/drm/radeon/rv770_dma.c                     |     99 -
 sys/external/bsd/drm2/dist/drm/radeon/rv770_dpm.c                     |   2593 --
 sys/external/bsd/drm2/dist/drm/radeon/rv770_smc.c                     |    636 -
 sys/external/bsd/drm2/dist/drm/radeon/si.c                            |   7968 -------
 sys/external/bsd/drm2/dist/drm/radeon/si_blit_shaders.c               |    258 -
 sys/external/bsd/drm2/dist/drm/radeon/si_dma.c                        |    289 -
 sys/external/bsd/drm2/dist/drm/radeon/si_dpm.c                        |   7192 -------
 sys/external/bsd/drm2/dist/drm/radeon/si_smc.c                        |    315 -
 sys/external/bsd/drm2/dist/drm/radeon/sumo_dpm.c                      |   1952 -
 sys/external/bsd/drm2/dist/drm/radeon/sumo_smc.c                      |    226 -
 sys/external/bsd/drm2/dist/drm/radeon/trinity_dpm.c                   |   2111 --
 sys/external/bsd/drm2/dist/drm/radeon/trinity_smc.c                   |    132 -
 sys/external/bsd/drm2/dist/drm/radeon/uvd_v1_0.c                      |    540 -
 sys/external/bsd/drm2/dist/drm/radeon/uvd_v2_2.c                      |    203 -
 sys/external/bsd/drm2/dist/drm/radeon/uvd_v3_1.c                      |     62 -
 sys/external/bsd/drm2/dist/drm/radeon/uvd_v4_2.c                      |     73 -
 sys/external/bsd/drm2/dist/drm/radeon/vce_v1_0.c                      |    389 -
 sys/external/bsd/drm2/dist/drm/radeon/vce_v2_0.c                      |    199 -
 sys/external/bsd/drm2/radeon/files.radeon                             |    129 +-
 sys/external/bsd/drm2/radeon/radeon2netbsd                            |     47 +-
 128 files changed, 105792 insertions(+), 105752 deletions(-)

diffs (truncated from 212121 to 300 lines):

diff -r 06be5fc9140c -r 7db79bc0964f sys/external/bsd/drm2/dist/drm/radeon/atom.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/atom.c      Mon Aug 27 14:24:03 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,1439 +0,0 @@
-/*     $NetBSD: atom.c,v 1.3 2018/08/27 04:58:35 riastradh Exp $       */
-
-/*
- * Copyright 2008 Advanced Micro Devices, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * Author: Stanislaw Skowronek
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atom.c,v 1.3 2018/08/27 04:58:35 riastradh Exp $");
-
-#include <linux/module.h>
-#include <linux/sched.h>
-#include <linux/slab.h>
-#include <asm/unaligned.h>
-
-#define ATOM_DEBUG
-
-#include "atom.h"
-#include "atom-names.h"
-#include "atom-bits.h"
-#include "radeon.h"
-
-#define ATOM_COND_ABOVE                0
-#define ATOM_COND_ABOVEOREQUAL 1
-#define ATOM_COND_ALWAYS       2
-#define ATOM_COND_BELOW                3
-#define ATOM_COND_BELOWOREQUAL 4
-#define ATOM_COND_EQUAL                5
-#define ATOM_COND_NOTEQUAL     6
-
-#define ATOM_PORT_ATI  0
-#define ATOM_PORT_PCI  1
-#define ATOM_PORT_SYSIO        2
-
-#define ATOM_UNIT_MICROSEC     0
-#define ATOM_UNIT_MILLISEC     1
-
-#define PLL_INDEX      2
-#define PLL_DATA       3
-
-typedef struct {
-       struct atom_context *ctx;
-       uint32_t *ps, *ws;
-       int ps_shift;
-       uint16_t start;
-       unsigned last_jump;
-       unsigned long last_jump_jiffies;
-       bool abort;
-} atom_exec_context;
-
-int atom_debug = 0;
-static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params);
-int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params);
-
-static uint32_t atom_arg_mask[8] =
-    { 0xFFFFFFFF, 0xFFFF, 0xFFFF00, 0xFFFF0000, 0xFF, 0xFF00, 0xFF0000,
-0xFF000000 };
-static int atom_arg_shift[8] = { 0, 0, 8, 16, 0, 8, 16, 24 };
-
-static int atom_dst_to_src[8][4] = {
-       /* translate destination alignment field to the source alignment encoding */
-       {0, 0, 0, 0},
-       {1, 2, 3, 0},
-       {1, 2, 3, 0},
-       {1, 2, 3, 0},
-       {4, 5, 6, 7},
-       {4, 5, 6, 7},
-       {4, 5, 6, 7},
-       {4, 5, 6, 7},
-};
-static int atom_def_dst[8] = { 0, 0, 1, 2, 0, 1, 2, 3 };
-
-static int debug_depth = 0;
-#ifdef ATOM_DEBUG
-static void debug_print_spaces(int n)
-{
-       while (n--)
-               printk("   ");
-}
-
-#ifdef __NetBSD__              /* XXX */
-/*
- * Kludge: NetBSD defines DEBUG to mean debugging is enabled.  Since
- * we're not going to include any more header files, it's OK for it to
- * be defined unconditionally after this.
- */
-#undef DEBUG
-#endif
-
-#define DEBUG(...) do if (atom_debug) { printk(KERN_DEBUG __VA_ARGS__); } while (0)
-#define SDEBUG(...) do if (atom_debug) { printk(KERN_DEBUG); debug_print_spaces(debug_depth); printk(__VA_ARGS__); } while (0)
-#else
-#define DEBUG(...) do { } while (0)
-#define SDEBUG(...) do { } while (0)
-#endif
-
-static uint32_t atom_iio_execute(struct atom_context *ctx, int base,
-                                uint32_t index, uint32_t data)
-{
-       struct radeon_device *rdev = ctx->card->dev->dev_private;
-       uint32_t temp = 0xCDCDCDCD;
-
-       while (1)
-               switch (CU8(base)) {
-               case ATOM_IIO_NOP:
-                       base++;
-                       break;
-               case ATOM_IIO_READ:
-                       temp = ctx->card->ioreg_read(ctx->card, CU16(base + 1));
-                       base += 3;
-                       break;
-               case ATOM_IIO_WRITE:
-                       if (rdev->family == CHIP_RV515)
-                               (void)ctx->card->ioreg_read(ctx->card, CU16(base + 1));
-                       ctx->card->ioreg_write(ctx->card, CU16(base + 1), temp);
-                       base += 3;
-                       break;
-               case ATOM_IIO_CLEAR:
-                       temp &=
-                           ~((0xFFFFFFFF >> (32 - CU8(base + 1))) <<
-                             CU8(base + 2));
-                       base += 3;
-                       break;
-               case ATOM_IIO_SET:
-                       temp |=
-                           (0xFFFFFFFF >> (32 - CU8(base + 1))) << CU8(base +
-                                                                       2);
-                       base += 3;
-                       break;
-               case ATOM_IIO_MOVE_INDEX:
-                       temp &=
-                           ~((0xFFFFFFFF >> (32 - CU8(base + 1))) <<
-                             CU8(base + 3));
-                       temp |=
-                           ((index >> CU8(base + 2)) &
-                            (0xFFFFFFFF >> (32 - CU8(base + 1)))) << CU8(base +
-                                                                         3);
-                       base += 4;
-                       break;
-               case ATOM_IIO_MOVE_DATA:
-                       temp &=
-                           ~((0xFFFFFFFF >> (32 - CU8(base + 1))) <<
-                             CU8(base + 3));
-                       temp |=
-                           ((data >> CU8(base + 2)) &
-                            (0xFFFFFFFF >> (32 - CU8(base + 1)))) << CU8(base +
-                                                                         3);
-                       base += 4;
-                       break;
-               case ATOM_IIO_MOVE_ATTR:
-                       temp &=
-                           ~((0xFFFFFFFF >> (32 - CU8(base + 1))) <<
-                             CU8(base + 3));
-                       temp |=
-                           ((ctx->
-                             io_attr >> CU8(base + 2)) & (0xFFFFFFFF >> (32 -
-                                                                         CU8
-                                                                         (base
-                                                                          +
-                                                                          1))))
-                           << CU8(base + 3);
-                       base += 4;
-                       break;
-               case ATOM_IIO_END:
-                       return temp;
-               default:
-                       printk(KERN_INFO "Unknown IIO opcode.\n");
-                       return 0;
-               }
-}
-
-static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr,
-                                int *ptr, uint32_t *saved, int print)
-{
-       uint32_t idx, val = 0xCDCDCDCD, align, arg;
-       struct atom_context *gctx = ctx->ctx;
-       arg = attr & 7;
-       align = (attr >> 3) & 7;
-       switch (arg) {
-       case ATOM_ARG_REG:
-               idx = U16(*ptr);
-               (*ptr) += 2;
-               if (print)
-                       DEBUG("REG[0x%04X]", idx);
-               idx += gctx->reg_block;
-               switch (gctx->io_mode) {
-               case ATOM_IO_MM:
-                       val = gctx->card->reg_read(gctx->card, idx);
-                       break;
-               case ATOM_IO_PCI:
-                       printk(KERN_INFO
-                              "PCI registers are not implemented.\n");
-                       return 0;
-               case ATOM_IO_SYSIO:
-                       printk(KERN_INFO
-                              "SYSIO registers are not implemented.\n");
-                       return 0;
-               default:
-                       if (!(gctx->io_mode & 0x80)) {
-                               printk(KERN_INFO "Bad IO mode.\n");
-                               return 0;
-                       }
-                       if (!gctx->iio[gctx->io_mode & 0x7F]) {
-                               printk(KERN_INFO
-                                      "Undefined indirect IO read method %d.\n",
-                                      gctx->io_mode & 0x7F);
-                               return 0;
-                       }
-                       val =
-                           atom_iio_execute(gctx,
-                                            gctx->iio[gctx->io_mode & 0x7F],
-                                            idx, 0);
-               }
-               break;
-       case ATOM_ARG_PS:
-               idx = U8(*ptr);
-               (*ptr)++;
-               /* get_unaligned_le32 avoids unaligned accesses from atombios
-                * tables, noticed on a DEC Alpha. */
-               val = get_unaligned_le32((u32 *)&ctx->ps[idx]);
-               if (print)
-                       DEBUG("PS[0x%02X,0x%04X]", idx, val);
-               break;
-       case ATOM_ARG_WS:
-               idx = U8(*ptr);
-               (*ptr)++;
-               if (print)
-                       DEBUG("WS[0x%02X]", idx);
-               switch (idx) {
-               case ATOM_WS_QUOTIENT:
-                       val = gctx->divmul[0];
-                       break;
-               case ATOM_WS_REMAINDER:
-                       val = gctx->divmul[1];
-                       break;
-               case ATOM_WS_DATAPTR:
-                       val = gctx->data_block;
-                       break;
-               case ATOM_WS_SHIFT:
-                       val = gctx->shift;
-                       break;
-               case ATOM_WS_OR_MASK:
-                       val = 1 << gctx->shift;
-                       break;
-               case ATOM_WS_AND_MASK:
-                       val = ~(1 << gctx->shift);
-                       break;
-               case ATOM_WS_FB_WINDOW:
-                       val = gctx->fb_base;
-                       break;
-               case ATOM_WS_ATTRIBUTES:
-                       val = gctx->io_attr;
-                       break;
-               case ATOM_WS_REGPTR:
-                       val = gctx->reg_block;
-                       break;
-               default:
-                       val = ctx->ws[idx];
-               }
-               break;
-       case ATOM_ARG_ID:
-               idx = U16(*ptr);
-               (*ptr) += 2;
-               if (print) {
-                       if (gctx->data_block)
-                               DEBUG("ID[0x%04X+%04X]", idx, gctx->data_block);
-                       else
-                               DEBUG("ID[0x%04X]", idx);
-               }
-               val = U32(idx + gctx->data_block);
-               break;
-       case ATOM_ARG_FB:
-               idx = U8(*ptr);
-               (*ptr)++;
-               if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) {
-                       DRM_ERROR("ATOM: fb read beyond scratch region: %d vs. %d\n",
-                                 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes);



Home | Main Index | Thread Index | Old Index