Lines Matching +full:ssc +full:- +full:block +full:- +full:bus

18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
44 * registers that are defined solely for the use by function-like macros.
52 * should be defined using function-like macros.
58 * with underscore, followed by a function-like macro choosing the right
68 * function-like macros may be used to define bit fields, but do note that the
87 * Try to re-use existing register macro definitions. Only add new macros for
204 #define DPIO_POST_DIV_HDMIDP 1 /* DAC 225-400M rate */
249 /* Spec for ref block start counts at DW10 */
551 _MMIO(BXT_PHY_BASE(phy) - _BXT_PHY0_BASE + (reg))
554 (BXT_PHY_BASE(phy) + _PIPE((ch), (reg_ch0) - _BXT_PHY0_BASE, \
555 (reg_ch1) - _BXT_PHY0_BASE))
839 * [0-7] @ 0x2000 gen2,gen3
840 * [8-15] @ 0x3000 945,g33,pnv
842 * [0-15] @ 0x3000 gen4,gen5
844 * [0-15] @ 0x100000 gen6,vlv,chv
845 * [0-31] @ 0x100000 gen7+
850 #define I830_FENCE_SIZE_BITS(size) ((ffs((size) >> 19) - 1) << 8)
858 #define I915_FENCE_SIZE_BITS(size) ((ffs((size) >> 20) - 1) << 8)
887 #define PRB0_BASE (0x2030 - 0x30)
888 #define PRB1_BASE (0x2040 - 0x30) /* 830,gen3 */
889 #define PRB2_BASE (0x2050 - 0x30) /* gen3 */
890 #define SRB0_BASE (0x2100 - 0x30) /* gen2 */
891 #define SRB1_BASE (0x2110 - 0x30) /* gen2 */
892 #define SRB2_BASE (0x2120 - 0x30) /* 830 */
893 #define SRB3_BASE (0x2130 - 0x30) /* 830 */
958 /* the FWSTS regs are 1-based, so we use -base for index 0 to get an invalid reg */
959 #define HECI_FWSTS(base, x) _MMIO((base) + _PICK(x, -(base), \
1042 #define DISPLAY_PLANE_FLIP_PENDING(plane) (1 << (11 - (plane))) /* A and B only */
1104 /* Block grant count for isoch requests when block count is
1124 /* Enables non-sequential data reads through arbiter
1133 /* Arbiter time slice for non-isoch streams */
1161 * interrupt. The second control is for the functional block generating the
1167 * These defines should cover us well from SNB->HSW with minor exceptions
1206 #define I915_GMCH_THERMAL_SENSOR_EVENT_INTERRUPT (1 << 14) /* p-state */
1241 #define VLV_AUD_PORT_EN_DBG(port) _MMIO_PORT3((port) - PORT_B, \
1321 #define DPFC_CTL_PLANE_MASK_G4X REG_BIT(30) /* g4x-snb */
1323 #define DPFC_CTL_FENCE_EN_G4X REG_BIT(29) /* g4x-snb */
1327 #define DPFC_CTL_PERSISTENT_MODE REG_BIT(25) /* g4x-snb */
1355 #define DPFC_HT_MODIFY REG_BIT(31) /* pre-ivb */
1470 #define PHY_STATUS_CMN_LDO(phy, ch) (1 << (6 - (6 * (phy) + 3 * (ch))))
1471 #define PHY_STATUS_SPLINE_LDO(phy, ch, spline) (1 << (8 - (6 * (phy) + 3 * (ch) + (spline)…
1480 /* i830, required in DVO non-gang */
1492 # define PLL_REF_SDVO_HDMI_MULTIPLIER(x) (((x) - 1) << 9)
1529 * SDVO requires that the bus clock rate be between 1 and 2 Ghz, and the bus
1531 * modes, the bus rate would be below the limits, so SDVO allows for stuffing
1536 * rate to 130Mhz to get a bus rate of 1.30Ghz. The DPLL clock rate would be
1594 # define TVRUNIT_CLOCK_GATE_DISABLE (1 << 23) /* 915-945 */
1595 # define TVCUNIT_CLOCK_GATE_DISABLE (1 << 22) /* 915-945 */
1596 # define TVFUNIT_CLOCK_GATE_DISABLE (1 << 21) /* 915-945 */
1597 # define TVEUNIT_CLOCK_GATE_DISABLE (1 << 20) /* 915-945 */
1598 # define DVSUNIT_CLOCK_GATE_DISABLE (1 << 19) /* 915-945 */
1599 # define DSSUNIT_CLOCK_GATE_DISABLE (1 << 18) /* 915-945 */
1600 # define DDBUNIT_CLOCK_GATE_DISABLE (1 << 17) /* 915-945 */
1601 # define DPRUNIT_CLOCK_GATE_DISABLE (1 << 16) /* 915-945 */
1602 # define DPFUNIT_CLOCK_GATE_DISABLE (1 << 15) /* 915-945 */
1603 # define DPBMUNIT_CLOCK_GATE_DISABLE (1 << 14) /* 915-945 */
1604 # define DPLSUNIT_CLOCK_GATE_DISABLE (1 << 13) /* 915-945 */
1605 # define DPLUNIT_CLOCK_GATE_DISABLE (1 << 12) /* 915-945 */
1611 # define OVHUNIT_CLOCK_GATE_DISABLE (1 << 6) /* 830-865 */
1612 # define DPIOUNIT_CLOCK_GATE_DISABLE (1 << 6) /* 915-945 */
1713 #define PFI_CREDIT(x) (((x) - 8) << 28) /* 8-15 */
1729 /* pre-i965 10bit interpolated mode ldw */
1733 /* pre-i965 10bit interpolated mode udw */
1869 /* embedded DP port on the north display block */
2111 #define ADPA_CRT_HOTPLUG_MASK 0x03ff0000 /* bit 25-16 */
2265 * Programmed value is multiplier - 1, up to 5x.
2313 * of the infoframe structure specified by CEA-861. */
2368 #define PFIT_VERT_INTERP_MASK REG_GENMASK(11, 10) /* pre-965 */
2370 #define PFIT_VERT_AUTO_SCALE REG_BIT(9) /* pre-965 */
2371 #define PFIT_HORIZ_INTERP_MASK REG_GENMASK(7, 6) /* pre-965 */
2373 #define PFIT_HORIZ_AUTO_SCALE REG_BIT(5) /* pre-965 */
2374 #define PFIT_PANEL_8TO6_DITHER_ENABLE REG_BIT(3) /* pre-965 */
2377 #define PFIT_VERT_SCALE_MASK REG_GENMASK(31, 20) /* pre-965 */
2379 #define PFIT_HORIZ_SCALE_MASK REG_GENMASK(15, 4) /* pre-965 */
2410 /* Link training mode - select a suitable mode for each stage */
2434 /* Signal pre-emphasis levels, like voltages, the other end tells us what
2445 #define DP_PORT_WIDTH(width) (((width) - 1) << 19)
2498 /* Transfer unit size for display port - 1, default is 0x3f (for TU size 64) */
2500 #define TU_SIZE(x) REG_FIELD_PREP(TU_SIZE_MASK, (x) - 1) /* default size 64 */
2516 * Attributes and VB-ID.
2537 #define TRANSCONF_DOUBLE_WIDE REG_BIT(30) /* pre-i965 */
2540 #define TRANSCONF_FRAME_START_DELAY_MASK REG_GENMASK(28, 27) /* pre-hsw */
2541 …CONF_FRAME_START_DELAY(x) REG_FIELD_PREP(TRANSCONF_FRAME_START_DELAY_MASK, (x)) /* pre-hsw: 0-3 */
2545 #define TRANSCONF_GAMMA_MODE_MASK_ILK REG_GENMASK(25, 24) /* ilk-ivb */
2548 #define TRANSCONF_GAMMA_MODE_12BIT REG_FIELD_PREP(TRANSCONF_GAMMA_MODE_MASK_ILK, 2) /* ilk-ivb */
2559 * DBL=power saving pixel doubling, PF-ID* requires panel fitter
2575 #define TRANSCONF_OUTPUT_COLORSPACE_MASK REG_GENMASK(12, 11) /* ilk-ivb */
2576 … TRANSCONF_OUTPUT_COLORSPACE_RGB REG_FIELD_PREP(TRANSCONF_OUTPUT_COLORSPACE_MASK, 0) /* ilk-ivb */
2577 …RANSCONF_OUTPUT_COLORSPACE_YUV601 REG_FIELD_PREP(TRANSCONF_OUTPUT_COLORSPACE_MASK, 1) /* ilk-ivb */
2578 …RANSCONF_OUTPUT_COLORSPACE_YUV709 REG_FIELD_PREP(TRANSCONF_OUTPUT_COLORSPACE_MASK, 2) /* ilk-ivb */
2580 #define TRANSCONF_BPC_MASK REG_GENMASK(7, 5) /* ctg-ivb */
2609 #define PIPE_HOTPLUG_TV_INTERRUPT_ENABLE (1UL << 18) /* pre-965 */
2632 #define PIPE_HOTPLUG_TV_INTERRUPT_STATUS (1UL << 2) /* pre-965 */
2669 * For Display < 13, Bits 5-7 of PIPE MISC represent DITHER BPC with
2671 * ADLP+, the bits 5-7 represent PORT OUTPUT BPC with valid values of:
2812 #define DSPFW_PLANEC_OLD_MASK (0x7f << 0) /* pre-gen4 sprite C */
3036 #define CURSOR_STRIDE(stride) REG_FIELD_PREP(CURSOR_STRIDE_MASK, ffs(stride) - 9) /* 256,512,1k,2…
3161 #define DSPGAMC(plane, i) _MMIO_PIPE2(plane, _DSPAGAMC + (5 - (i)) * 4) /* plane C only, 6 x u0.8 */
3332 #define DVSGAMC_G4X(pipe, i) _MMIO(_PIPE(pipe, _DVSAGAMC_G4X, _DVSBGAMC_G4X) + (5 - (i)) * 4) /* 6 …
3518 _PIPE((pipe) * 2 + (plane_id) - PLANE_SPRITE0, (reg_a), (reg_b))
3536 #define SPGAMC(pipe, plane_id, i) _MMIO(_VLV_SPR((pipe), (plane_id), _SPAGAMC, _SPBGAMC) + (5 - (i)…
3546 _MMIO(VLV_DISPLAY_BASE + ((plane_id) - PLANE_SPRITE0) * 0x1000 + (reg))
3590 #define PLANE_CTL_PIPE_GAMMA_ENABLE REG_BIT(30) /* Pre-GLK */
3594 * expanded to include bit 23 as well. However, the shift-24 based values
3597 #define PLANE_CTL_FORMAT_MASK_SKL REG_GENMASK(27, 24) /* pre-icl */
3616 #define PLANE_CTL_PIPE_CSC_ENABLE REG_BIT(23) /* Pre-GLK */
3631 #define PLANE_CTL_PLANE_GAMMA_DISABLE REG_BIT(13) /* Pre-GLK */
3641 #define PLANE_CTL_ALPHA_MASK REG_GENMASK(5, 4) /* Pre-GLK */
3722 #define PLANE_COLOR_PIPE_GAMMA_ENABLE REG_BIT(30) /* Pre-ICL */
3724 #define PLANE_COLOR_PIPE_CSC_ENABLE REG_BIT(23) /* Pre-ICL */
3949 #define DIGITAL_PORTA_PULSE_DURATION_2ms (0 << 2) /* pre-HSW */
3950 #define DIGITAL_PORTA_PULSE_DURATION_4_5ms (1 << 2) /* pre-HSW */
3951 #define DIGITAL_PORTA_PULSE_DURATION_6ms (2 << 2) /* pre-HSW */
3952 #define DIGITAL_PORTA_PULSE_DURATION_100ms (3 << 2) /* pre-HSW */
3953 #define DIGITAL_PORTA_PULSE_DURATION_MASK (3 << 2) /* pre-HSW */
4051 #define PS_SCALER_MODE_MASK REG_BIT(29) /* glk-tgl */
4067 #define PS_PIPE_SCALER_LOC_AFTER_OUTPUT_CSC REG_FIELD_PREP(PS_SCALER_LOCATION_MASK, 0) /* non-lin…
4079 #define PS_BINDING_Y_MASK REG_GENMASK(7, 5) /* icl-tgl */
4361 #define _HPD_PIN_DDI(hpd_pin) ((hpd_pin) - HPD_PORT_A)
4362 #define _HPD_PIN_TC(hpd_pin) ((hpd_pin) - HPD_PORT_TC1)
4505 /* Required on all Ironlake and Sandybridge according to the B-Spec. */
4756 /* south display engine interrupt: CPT - CNP */
4839 #define PORTD_PULSE_DURATION_2ms (0 << 18) /* pre-LPT */
4840 #define PORTD_PULSE_DURATION_4_5ms (1 << 18) /* pre-LPT */
4841 #define PORTD_PULSE_DURATION_6ms (2 << 18) /* pre-LPT */
4842 #define PORTD_PULSE_DURATION_100ms (3 << 18) /* pre-LPT */
4843 #define PORTD_PULSE_DURATION_MASK (3 << 18) /* pre-LPT */
4850 #define PORTC_PULSE_DURATION_2ms (0 << 10) /* pre-LPT */
4851 #define PORTC_PULSE_DURATION_4_5ms (1 << 10) /* pre-LPT */
4852 #define PORTC_PULSE_DURATION_6ms (2 << 10) /* pre-LPT */
4853 #define PORTC_PULSE_DURATION_100ms (3 << 10) /* pre-LPT */
4854 #define PORTC_PULSE_DURATION_MASK (3 << 10) /* pre-LPT */
4861 #define PORTB_PULSE_DURATION_2ms (0 << 2) /* pre-LPT */
4862 #define PORTB_PULSE_DURATION_4_5ms (1 << 2) /* pre-LPT */
4863 #define PORTB_PULSE_DURATION_6ms (2 << 2) /* pre-LPT */
4864 #define PORTB_PULSE_DURATION_100ms (3 << 2) /* pre-LPT */
4865 #define PORTB_PULSE_DURATION_MASK (3 << 2) /* pre-LPT */
4994 /* Per-transcoder DIP controls (PCH) */
5010 /* Per-transcoder DIP controls (VLV) */
5132 #define TRANS_FRAME_START_DELAY(x) REG_FIELD_PREP(TRANS_FRAME_START_DELAY_MASK, (x)) /* ibx: 0-3 */
5155 …CHICKEN2_FRAME_START_DELAY(x) REG_FIELD_PREP(TRANS_CHICKEN2_FRAME_START_DELAY_MASK, (x)) /* 0-3 */
5172 #define FDI_PHASE_SYNC_OVR(pipe) (1 << (FDIA_PHASE_SYNC_SHIFT_OVR - ((pipe) * 2)))
5173 #define FDI_PHASE_SYNC_EN(pipe) (1 << (FDIA_PHASE_SYNC_SHIFT_EN - ((pipe) * 2)))
5222 #define PCH_DP_AUX_CH_CTL(aux_ch) _MMIO_PORT((aux_ch) - AUX_CH_B, _PCH_DPB_AUX_CH_CTL, _PCH_DPC_AU…
5223 #define PCH_DP_AUX_CH_DATA(aux_ch, i) _MMIO(_PORT((aux_ch) - AUX_CH_B, _PCH_DPB_AUX_CH_DATA1, _PCH_…
5233 #define TRANS_DP_PORT_SEL(port) REG_FIELD_PREP(TRANS_DP_PORT_SEL_MASK, (port) - PORT_B)
5268 /* SNB A-stepping */
5273 /* SNB B-stepping */
5330 #define GEN6_ENCODE_RC6_VID(mv) (((mv) - 245) / 5)
5403 /* XEHP_PCODE_FREQUENCY_CONFIG sub-commands (param1) */
5406 /* PCODE_MBOX_DOMAIN_* - mailbox domain IDs */
5429 /* These are the 4 32-bit write offset registers for each stream
5436 * HSW - ICL power wells
5440 * - main (HSW_PWR_WELL_CTL[1-4])
5441 * - AUX (ICL_PWR_WELL_CTL_AUX[1-4])
5442 * - DDI (ICL_PWR_WELL_CTL_DDI[1-4])
5445 * - BIOS (HSW_PWR_WELL_CTL1/ICL_PWR_WELL_CTL_AUX1/ICL_PWR_WELL_CTL_DDI1)
5446 * - DRIVER (HSW_PWR_WELL_CTL2/ICL_PWR_WELL_CTL_AUX2/ICL_PWR_WELL_CTL_DDI2)
5447 * - KVMR (HSW_PWR_WELL_CTL3) (only in the main register set)
5448 * - DEBUG (HSW_PWR_WELL_CTL4/ICL_PWR_WELL_CTL_AUX4/ICL_PWR_WELL_CTL_DDI4)
5473 /* ICL/TGL - power wells */
5480 /* XE_LPD - power wells */
5532 /* HSW - power well misc debug registers */
5552 * SKL_DISP_PW1_IDX..SKL_DISP_PW2_IDX -> PG1..PG2
5555 ((pw_idx) - SKL_PW_CTL_IDX_PW_1 + SKL_PG1)
5558 * ICL_DISP_PW1_IDX..ICL_DISP_PW4_IDX -> PG1..PG4
5561 ((pw_idx) - ICL_PW_CTL_IDX_PW_1 + SKL_PG1)
5562 #define SKL_FUSE_PG_DIST_STATUS(pg) (1 << (27 - (pg)))
5564 #define _ICL_AUX_REG_IDX(pw_idx) ((pw_idx) - ICL_PW_CTL_IDX_AUX_A)
5573 /* Per-pipe DDI Function Control */
5624 #define TRANS_DDI_PORT_WIDTH(width) REG_FIELD_PREP(TRANS_DDI_PORT_WIDTH_MASK, (width) - 1)
5698 #define DDI_PORT_WIDTH(width) (((width) - 1) << 1)
5778 #define SPLL_REF_MUXED_SSC (1 << 28) /* CPU SSC if fused enabled, PCH SSC otherwise */
5795 #define WRPLL_REF_MUXED_SSC_BDW (2 << 28) /* CPU SSC if fused enabled, PCH SSC otherwise */
5796 #define WRPLL_REF_SPECIAL_HSW (2 << 28) /* muxed SSC (ULT), non-SSC (non-ULT) */
5978 #define DPLL_CFGCR1(id) _MMIO_PIPE((id) - SKL_DPLL1, _DPLL1_CFGCR1, _DPLL2_CFGCR1)
5979 #define DPLL_CFGCR2(id) _MMIO_PIPE((id) - SKL_DPLL1, _DPLL1_CFGCR2, _DPLL2_CFGCR2)
5987 (tc_port) - TC_PORT_4 + 21))
6070 /* ADL-P Type C PLL */
6161 /* For ADL-S DPLL4_CFGCR0/1 are used to control DPLL2 */
6205 /* Pipe WM_LINETIME - watermark line time */