Change case and improve comments.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@393 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
2a605775a6
commit
bb554c234a
1 changed files with 14 additions and 11 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue