Since some people disapprove of white space cleanups mixed in regular commits
[coreboot.git] / src / northbridge / amd / gx2 / grphinit.c
index 4e0da1789da448ddd551d78800d223a683feebcd..e59a838afe0abc1bc60ce774544a6eb77f54c666 100644 (file)
@@ -1,34 +1,15 @@
 #include <arch/io.h>
 #include <stdint.h>
 #include <cpu/amd/vr.h>
+#include <device/device.h>
+#include "chip.h"
+#include "northbridge.h"
+
+// FIXME handle UMA properly.
 #define VIDEO_MB       8                                       // MB of video memory
 
-/*
- * Write to a Virtual Register
- * AX = Class/Index
- * CX = data to write
- */
-void vrWrite(uint16_t wClassIndex, uint16_t wData)
-{
-       outl(((uint32_t) VR_UNLOCK << 16) | wClassIndex, VRC_INDEX);
-       outw(wData, VRC_DATA);
-}
 
  /*
- * Read from a Virtual Register
- * AX = Class/Index
- * Returns a 16-bit word of data
- */
-uint16_t vrRead(uint16_t wClassIndex)
-{
-       uint16_t wData;
-       outl(((uint32_t) VR_UNLOCK << 16) | wClassIndex, VRC_INDEX);
-       wData = inw(VRC_DATA);
-       return wData;
-}
-
-/*
  * This function mirrors the Graphics_Init routine in GeodeROM.
  */
 void graphics_init(void)