Lines Matching +full:low +full:- +full:vt

1 /* SPDX-License-Identifier: GPL-2.0 */
19 #include <linux/i2c-algo-bit.h>
36 * Chip families. Must fit in the low 16 bits of a long word
62 #define IS_RV100_VARIANT(rinfo) (((rinfo)->family == CHIP_FAMILY_RV100) || \
63 ((rinfo)->family == CHIP_FAMILY_RV200) || \
64 ((rinfo)->family == CHIP_FAMILY_RS100) || \
65 ((rinfo)->family == CHIP_FAMILY_RS200) || \
66 ((rinfo)->family == CHIP_FAMILY_RV250) || \
67 ((rinfo)->family == CHIP_FAMILY_RV280) || \
68 ((rinfo)->family == CHIP_FAMILY_RS300))
71 #define IS_R300_VARIANT(rinfo) (((rinfo)->family == CHIP_FAMILY_R300) || \
72 ((rinfo)->family == CHIP_FAMILY_RV350) || \
73 ((rinfo)->family == CHIP_FAMILY_R350) || \
74 ((rinfo)->family == CHIP_FAMILY_RV380) || \
75 ((rinfo)->family == CHIP_FAMILY_R420) || \
76 ((rinfo)->family == CHIP_FAMILY_RC410) || \
77 ((rinfo)->family == CHIP_FAMILY_RS480))
109 MT_STV /* S-Video out */
171 /* Other registers to save for VT switches or driver load/unload */
367 #define PRIMARY_MONITOR(rinfo) (rinfo->mon1_type)
376 #define INREG8(addr) readb((rinfo->mmio_base)+addr)
377 #define OUTREG8(addr,val) writeb(val, (rinfo->mmio_base)+addr)
378 #define INREG16(addr) readw((rinfo->mmio_base)+addr)
379 #define OUTREG16(addr,val) writew(val, (rinfo->mmio_base)+addr)
380 #define INREG(addr) readl((rinfo->mmio_base)+addr)
381 #define OUTREG(addr,val) writel(val, (rinfo->mmio_base)+addr)
396 * With the latest changes to the VT layer, this is guaranteed for all
407 if (rinfo->errata & CHIP_ERRATA_PLL_DUMMYREADS) in radeon_pll_errata_after_index()
414 if (rinfo->errata & (CHIP_ERRATA_PLL_DELAY|CHIP_ERRATA_R300_CG)) in radeon_pll_errata_after_data()
428 #define BIOS_IN8(v) (readb(rinfo->bios_seg + (v)))
429 #define BIOS_IN16(v) (readb(rinfo->bios_seg + (v)) | \
430 (readb(rinfo->bios_seg + (v) + 1) << 8))
431 #define BIOS_IN32(v) (readb(rinfo->bios_seg + (v)) | \
432 (readb(rinfo->bios_seg + (v) + 1) << 8) | \
433 (readb(rinfo->bios_seg + (v) + 2) << 16) | \
434 (readb(rinfo->bios_seg + (v) + 3) << 24))
446 if (var->bits_per_pixel != 16) in var_to_depth()
447 return var->bits_per_pixel; in var_to_depth()
448 return (var->green.length == 5) ? 15 : 16; in var_to_depth()