From bb554c234aa5b16e78a01e0eb99712b56cbbfec7 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Thu, 28 Jun 2007 15:19:30 +0000 Subject: [PATCH] Change case and improve comments. Signed-off-by: Ronald G. Minnich Acked-by: Uwe Hermann Acked-by: Peter Stuge git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@393 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- include/arch/x86/amd_geodelx.h | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/include/arch/x86/amd_geodelx.h b/include/arch/x86/amd_geodelx.h index 6288bac70a..7a5a775f9c 100644 --- a/include/arch/x86/amd_geodelx.h +++ b/include/arch/x86/amd_geodelx.h @@ -1214,23 +1214,26 @@ /* * Write to a Virtual Register + * @param class_index The register index + * @param data The data to write */ -static inline void vrWrite(u16 wClassIndex, u16 wData) +static inline void vr_write(u16 class_index, u16 data) { - outl(((u32) VR_UNLOCK << 16) | wClassIndex, VRC_INDEX); - outw(wData, VRC_DATA); + outl(((u32) VR_UNLOCK << 16) | class_index, VRC_INDEX); + outw(data, VRC_DATA); } /* - * Read from a Virtual Register - * Returns a 16-bit word of data - */ -static inline u16 vrRead(u16 wClassIndex) + * Read from a Virtual Register + * @param class_index The register index + * @return the 16-bit word of data + */ +static inline u16 vr_ead(u16 class_index) { - u16 wData; - outl(((u32) VR_UNLOCK << 16) | wClassIndex, VRC_INDEX); - wData = inw(VRC_DATA); - return wData; + u16 data; + outl(((u32) VR_UNLOCK << 16) | class_index, VRC_INDEX); + data = inw(VRC_DATA); + return data; } /* support functions */