x86: convert mtrr/generic.c to kernel-doc
Convert function comment blocks to kernel-doc notation. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
c0c20fb5a8
commit
1d3381ebf4
@ -176,12 +176,13 @@ static inline void k8_enable_fixed_iorrs(void)
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks and updates an fixed-range MTRR if it differs from the value it
|
||||
* should have. If K8 extentions are wanted, update the K8 SYSCFG MSR also.
|
||||
* see AMD publication no. 24593, chapter 7.8.1, page 233 for more information
|
||||
* \param msr MSR address of the MTTR which should be checked and updated
|
||||
* \param changed pointer which indicates whether the MTRR needed to be changed
|
||||
* \param msrwords pointer to the MSR values which the MSR should have
|
||||
* set_fixed_range - checks & updates a fixed-range MTRR if it differs from the value it should have
|
||||
* @msr: MSR address of the MTTR which should be checked and updated
|
||||
* @changed: pointer which indicates whether the MTRR needed to be changed
|
||||
* @msrwords: pointer to the MSR values which the MSR should have
|
||||
*
|
||||
* If K8 extentions are wanted, update the K8 SYSCFG MSR also.
|
||||
* See AMD publication no. 24593, chapter 7.8.1, page 233 for more information.
|
||||
*/
|
||||
static void set_fixed_range(int msr, bool *changed, unsigned int *msrwords)
|
||||
{
|
||||
@ -199,12 +200,15 @@ static void set_fixed_range(int msr, bool *changed, unsigned int *msrwords)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* generic_get_free_region - Get a free MTRR.
|
||||
* @base: The starting (base) address of the region.
|
||||
* @size: The size (in bytes) of the region.
|
||||
* @replace_reg: mtrr index to be replaced; set to invalid value if none.
|
||||
*
|
||||
* Returns: The index of the region on success, else negative on error.
|
||||
*/
|
||||
int generic_get_free_region(unsigned long base, unsigned long size, int replace_reg)
|
||||
/* [SUMMARY] Get a free MTRR.
|
||||
<base> The starting (base) address of the region.
|
||||
<size> The size (in bytes) of the region.
|
||||
[RETURNS] The index of the region on success, else -1 on error.
|
||||
*/
|
||||
{
|
||||
int i, max;
|
||||
mtrr_type ltype;
|
||||
@ -249,8 +253,8 @@ static void generic_get_mtrr(unsigned int reg, unsigned long *base,
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks and updates the fixed-range MTRRs if they differ from the saved set
|
||||
* \param frs pointer to fixed-range MTRR values, saved by get_fixed_ranges()
|
||||
* set_fixed_ranges - checks & updates the fixed-range MTRRs if they differ from the saved set
|
||||
* @frs: pointer to fixed-range MTRR values, saved by get_fixed_ranges()
|
||||
*/
|
||||
static int set_fixed_ranges(mtrr_type * frs)
|
||||
{
|
||||
@ -294,13 +298,13 @@ static bool set_mtrr_var_ranges(unsigned int index, struct mtrr_var_range *vr)
|
||||
|
||||
static u32 deftype_lo, deftype_hi;
|
||||
|
||||
/**
|
||||
* set_mtrr_state - Set the MTRR state for this CPU.
|
||||
*
|
||||
* NOTE: The CPU must already be in a safe state for MTRR changes.
|
||||
* RETURNS: 0 if no changes made, else a mask indicating what was changed.
|
||||
*/
|
||||
static unsigned long set_mtrr_state(void)
|
||||
/* [SUMMARY] Set the MTRR state for this CPU.
|
||||
<state> The MTRR state information to read.
|
||||
<ctxt> Some relevant CPU context.
|
||||
[NOTE] The CPU must already be in a safe state for MTRR changes.
|
||||
[RETURNS] 0 if no changes made, else a mask indication what was changed.
|
||||
*/
|
||||
{
|
||||
unsigned int i;
|
||||
unsigned long change_mask = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user