| /openbmc/qemu/include/hw/i2c/ |
| H A D | pnv_i2c_regs.h | 18 #define I2C_CMD_WITH_START PPC_BIT(0) 19 #define I2C_CMD_WITH_ADDR PPC_BIT(1) 20 #define I2C_CMD_READ_CONT PPC_BIT(2) 21 #define I2C_CMD_WITH_STOP PPC_BIT(3) 26 #define I2C_CMD_READ_NOT_WRITE PPC_BIT(15) 34 #define I2C_MODE_ENHANCED PPC_BIT(28) 35 #define I2C_MODE_DIAGNOSTIC PPC_BIT(29) 36 #define I2C_MODE_PACING_ALLOW PPC_BIT(30) 37 #define I2C_MODE_WRAP PPC_BIT(31) 62 #define I2C_INTR_INVALID_CMD PPC_BIT(16) [all …]
|
| /openbmc/qemu/include/hw/pci-host/ |
| H A D | pnv_phb4_regs.h | 75 #define PEC_NEST_STK_BAR_EN_MMIO0 PPC_BIT(0) 76 #define PEC_NEST_STK_BAR_EN_MMIO1 PPC_BIT(1) 77 #define PEC_NEST_STK_BAR_EN_PHB PPC_BIT(2) 78 #define PEC_NEST_STK_BAR_EN_INT PPC_BIT(3) 111 #define PHB_SCOM_HV_IND_ADDR_VALID PPC_BIT(0) 112 #define PHB_SCOM_HV_IND_ADDR_4B PPC_BIT(1) 113 #define PHB_SCOM_HV_IND_ADDR_AUTOINC PPC_BIT(2) 140 #define PHB_DMA_CHAN_ANY_ERR PPC_BIT(27) 141 #define PHB_DMA_CHAN_ANY_ERR1 PPC_BIT(28) 142 #define PHB_DMA_CHAN_ANY_FREEZE PPC_BIT(29) [all …]
|
| H A D | pnv_phb3_regs.h | 31 #define PBCQ_NEST_BAR_EN_MMIO0 PPC_BIT(0) 32 #define PBCQ_NEST_BAR_EN_MMIO1 PPC_BIT(1) 33 #define PBCQ_NEST_BAR_EN_PHB PPC_BIT(2) 34 #define PBCQ_NEST_BAR_EN_IRSN_RX PPC_BIT(3) 35 #define PBCQ_NEST_BAR_EN_IRSN_TX PPC_BIT(4) 55 #define PHB_DMA_CHAN_ANY_ERR PPC_BIT(27) 56 #define PHB_DMA_CHAN_ANY_ERR1 PPC_BIT(28) 57 #define PHB_DMA_CHAN_ANY_FREEZE PPC_BIT(29) 59 #define PHB_CPU_LS_ANY_ERR PPC_BIT(27) 60 #define PHB_CPU_LS_ANY_ERR1 PPC_BIT(28) [all …]
|
| /openbmc/qemu/hw/intc/ |
| H A D | pnv_xive_regs.h | 25 #define CQ_IC_BAR_VALID PPC_BIT(0) 26 #define CQ_IC_BAR_64K PPC_BIT(1) 29 #define CQ_TM_BAR_VALID PPC_BIT(0) 30 #define CQ_TM_BAR_64K PPC_BIT(1) 32 #define CQ_PC_BAR_VALID PPC_BIT(0) 36 #define CQ_VC_BAR_VALID PPC_BIT(0) 40 #define CQ_TAR_TBL_AUTOINC PPC_BIT(0) 42 #define CQ_TAR_TSEL_BLK PPC_BIT(12) 43 #define CQ_TAR_TSEL_MIG PPC_BIT(13) 44 #define CQ_TAR_TSEL_VDT PPC_BIT(14) [all …]
|
| H A D | pnv_xive2_regs.h | 33 #define CQ_XIVE_CAP_VP_SAVE_RESTORE PPC_BIT(38) 35 #define CQ_XIVE_CAP_PHB_PQ_DISABLE PPC_BIT(56) 36 #define CQ_XIVE_CAP_PHB_ABT PPC_BIT(57) 37 #define CQ_XIVE_CAP_EXPLOITATION_MODE PPC_BIT(58) 38 #define CQ_XIVE_CAP_STORE_EOI PPC_BIT(59) 61 #define CQ_XIVE_CFG_HYP_HARD_BLKID_OVERRIDE PPC_BIT(16) 64 #define CQ_XIVE_CFG_GEN1_TIMA_OS PPC_BIT(24) 65 #define CQ_XIVE_CFG_GEN1_TIMA_HYP PPC_BIT(25) 66 #define CQ_XIVE_CFG_GEN1_TIMA_HYP_BLK0 PPC_BIT(26) /* 0 if bit[25]=0 */ 67 #define CQ_XIVE_CFG_GEN1_TIMA_CROWD_DIS PPC_BIT(27) /* 0 if bit[25]=0 */ [all …]
|
| H A D | spapr_xive.c | 927 #define SPAPR_XIVE_SRC_H_INT_ESB PPC_BIT(60) /* ESB manage with H_INT_ESB */ 928 #define SPAPR_XIVE_SRC_LSI PPC_BIT(61) /* Virtual LSI type */ 929 #define SPAPR_XIVE_SRC_TRIGGER PPC_BIT(62) /* Trigger and management 931 #define SPAPR_XIVE_SRC_STORE_EOI PPC_BIT(63) /* Store EOI support */ 1042 #define SPAPR_XIVE_SRC_SET_EISN PPC_BIT(62) 1043 #define SPAPR_XIVE_SRC_MASK PPC_BIT(63) 1315 #define SPAPR_XIVE_END_ALWAYS_NOTIFY PPC_BIT(63) 1486 #define SPAPR_XIVE_END_DEBUG PPC_BIT(63) 1676 #define SPAPR_XIVE_ESB_STORE PPC_BIT(63)
|
| H A D | pnv_xive.c | 470 return xive->regs[reg >> 3] & PPC_BIT(bit); in pnv_xive_is_cpu_enabled()
|
| /openbmc/qemu/include/hw/ssi/ |
| H A D | pnv_spi_regs.h | 17 #define PPC_BIT(bit) (0x8000000000000000ULL >> (bit)) macro 19 #define PPC_BITMASK(bs, be) ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs)) 35 #define SPI_CTR_CFG_N1_CTRL_B1 PPC_BIT(49) 36 #define SPI_CTR_CFG_N1_CTRL_B2 PPC_BIT(50) 37 #define SPI_CTR_CFG_N1_CTRL_B3 PPC_BIT(51) 38 #define SPI_CTR_CFG_N2_CTRL_B0 PPC_BIT(52) 39 #define SPI_CTR_CFG_N2_CTRL_B1 PPC_BIT(53) 40 #define SPI_CTR_CFG_N2_CTRL_B2 PPC_BIT(54) 41 #define SPI_CTR_CFG_N2_CTRL_B3 PPC_BIT(55) 50 #define SPI_CLK_CFG_ECC_EN PPC_BIT(28) [all …]
|
| /openbmc/qemu/target/ppc/ |
| H A D | cpu.h | 44 #define PPC_BIT(bit) (0x8000000000000000ULL >> (bit)) macro 48 #define PPC_BITMASK(bs, be) ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs)) 561 #define MMCR0_FC PPC_BIT(32) /* Freeze Counters */ 562 #define MMCR0_PMAO PPC_BIT(56) /* Perf Monitor Alert Occurred */ 563 #define MMCR0_PMAE PPC_BIT(37) /* Perf Monitor Alert Enable */ 564 #define MMCR0_EBE PPC_BIT(43) /* Perf Monitor EBB Enable */ 565 #define MMCR0_FCECE PPC_BIT(38) /* FC on Enabled Cond or Event */ 566 #define MMCR0_PMCC0 PPC_BIT(44) /* PMC Control bit 0 */ 567 #define MMCR0_PMCC1 PPC_BIT(45) /* PMC Control bit 1 */ 569 #define MMCR0_FC14 PPC_BIT(58) /* PMC Freeze Counters 1-4 bit */ [all …]
|
| H A D | misc_helper.c | 355 val |= PPC_BIT(63); /* verion 0x1 (POWER9/10) */ in helper_load_pmsr() 378 val |= PPC_BIT(63); in helper_store_pmcr()
|
| H A D | int_helper.c | 212 if (rb & PPC_BIT(index)) { in helper_BPERMD()
|
| H A D | cpu_init.c | 6478 PPC_BIT(63)); /* Version 1 (POWER9/10) */ in register_power9_common_sprs()
|
| /openbmc/qemu/hw/ppc/ |
| H A D | pnv_psi.c | 593 #define PSIHB9_IRQ_METHOD PPC_BIT(0) 594 #define PSIHB9_IRQ_RESET PPC_BIT(1) 597 #define PSIHB9_ESB_CI_VALID PPC_BIT(63) 600 #define PSIHB9_ESB_NOTIF_VALID PPC_BIT(63) 605 #define PSIHB9_IRQ_LEVEL_PSI PPC_BIT(0) 606 #define PSIHB9_IRQ_LEVEL_OCC PPC_BIT(1) 607 #define PSIHB9_IRQ_LEVEL_FSI PPC_BIT(2) 608 #define PSIHB9_IRQ_LEVEL_LPCHC PPC_BIT(3) 609 #define PSIHB9_IRQ_LEVEL_LOCAL_ERR PPC_BIT(4) 610 #define PSIHB9_IRQ_LEVEL_GLOBAL_ERR PPC_BIT(5) [all …]
|
| H A D | pnv_sbe.c | 61 #define HOST_SBE_MSG_WAITING PPC_BIT(0) 67 #define SBE_HOST_RESPONSE_WAITING PPC_BIT(0) 68 #define SBE_HOST_MSG_READ PPC_BIT(1) 69 #define SBE_HOST_STOP15_EXIT PPC_BIT(2) 70 #define SBE_HOST_RESET PPC_BIT(3) 71 #define SBE_HOST_PASSTHROUGH PPC_BIT(4) 72 #define SBE_HOST_TIMER_EXPIRY PPC_BIT(14) 80 #define SBE_CONTROL_REG_S0 PPC_BIT(14) 81 #define SBE_CONTROL_REG_S1 PPC_BIT(15)
|
| H A D | pnv_adu.c | 60 val = PPC_BIT(0); /* ack / done */ in pnv_adu_xscom_read() 75 return !!(adu->lpc_cmd_reg & PPC_BIT(0)); in lpc_cmd_read()
|
| H A D | pnv_lpc.c | 255 #define ECCB_CTL_READ PPC_BIT(15) 260 #define ECCB_STAT_OP_DONE PPC_BIT(52) 261 #define ECCB_STAT_OP_ERR PPC_BIT(52)
|
| H A D | pnv_occ.c | 37 #define OCCMISC_PSI_IRQ PPC_BIT(0) 38 #define OCCMISC_IRQ_SHMEM PPC_BIT(3)
|
| H A D | spapr_nvdimm.c | 41 #define PAPR_PMEM_UNARMED PPC_BIT(0)
|
| /openbmc/qemu/tests/qtest/ |
| H A D | pnv-xive2-common.h | 12 #define PPC_BIT(bit) (0x8000000000000000ULL >> (bit)) macro 15 #define PPC_BITMASK(bs, be) ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs))
|
| H A D | pnv-host-i2c-test.c | 15 #define PPC_BIT(bit) (0x8000000000000000ULL >> (bit)) macro 18 #define PPC_BITMASK(bs, be) ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs))
|
| /openbmc/qemu/include/hw/ppc/ |
| H A D | xive_regs.h | 38 #define XIVE_TRIGGER_END PPC_BIT(0) 39 #define XIVE_TRIGGER_PQ PPC_BIT(1) 186 #define EAS_VALID PPC_BIT(0) 189 #define EAS_MASKED PPC_BIT(32) /* Masked */
|
| H A D | xive2_regs.h | 42 #define EAS2_VALID PPC_BIT(0) 43 #define EAS2_QOS PPC_BIT(1, 2) /* Quality of Service(unimp) */ 44 #define EAS2_RESUME PPC_BIT(3) /* END Resume(unimp) */ 47 #define EAS2_MASKED PPC_BIT(32) /* Masked */
|
| /openbmc/qemu/hw/pci-host/ |
| H A D | pnv_phb3.c | 763 if (!(tve & PPC_BIT(51))) { in pnv_phb3_translate_tve()
|
| H A D | pnv_phb4.c | 1131 phb->pci_regs[reg] = val & PPC_BIT(0); in pnv_pec_stk_pci_xscom_write()
|