/* The base address of the CPC registers */ externvoid __iomem *mips_cpc_base;
/** * mips_cpc_default_phys_base - retrieve the default physical base address of * the CPC * * Returns the default physical base address of the Cluster Power Controller * memory mapped registers. This is platform dependent & must therefore be * implemented per-platform.
*/ extern phys_addr_t mips_cpc_default_phys_base(void);
/** * mips_cpc_probe - probe for a Cluster Power Controller * * Attempt to detect the presence of a Cluster Power Controller. Returns 0 if * a CPC is successfully detected, else -errno.
*/ #ifdef CONFIG_MIPS_CPC externint mips_cpc_probe(void); #else staticinlineint mips_cpc_probe(void)
{ return -ENODEV;
} #endif
/** * mips_cpc_present - determine whether a Cluster Power Controller is present * * Returns true if a CPC is present in the system, else false.
*/ staticinlinebool mips_cpc_present(void)
{ #ifdef CONFIG_MIPS_CPC return mips_cpc_base != NULL; #else returnfalse; #endif
}
/* Offsets from the CPC base address to various control blocks */ #define MIPS_CPC_GCB_OFS 0x0000 #define MIPS_CPC_CLCB_OFS 0x2000 #define MIPS_CPC_COCB_OFS 0x4000
/** * mips_cpc_lock_other - lock access to another core * core: the other core to be accessed * * Call before operating upon a core via the 'other' register region in * order to prevent the region being moved during access. Must be called * within the bounds of a mips_cm_{lock,unlock}_other pair, and followed * by a call to mips_cpc_unlock_other.
*/ externvoid mips_cpc_lock_other(unsignedint core);
/** * mips_cpc_unlock_other - unlock access to another core * * Call after operating upon another core via the 'other' register region. * Must be called after mips_cpc_lock_other.
*/ externvoid mips_cpc_unlock_other(void);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.