aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_regs.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-07-16 21:15:58 -0700
committerIan Romanick <idr@us.ibm.com>2007-07-16 21:15:58 -0700
commitbcba7ba981a88e27ad4d7e8ebcdbed7097cf1488 (patch)
treedb7cf6b14d8685b33ac2828ddf472c3885851bc7 /linux-core/xgi_regs.h
parent5b08ab258f3e541334d2b64d38e15e1431080199 (diff)
Log message clean up in WriteRegDWord. Remove unused inline functions.
Diffstat (limited to 'linux-core/xgi_regs.h')
-rw-r--r--linux-core/xgi_regs.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/linux-core/xgi_regs.h b/linux-core/xgi_regs.h
index 0e54e7d8..bc3e2a1e 100644
--- a/linux-core/xgi_regs.h
+++ b/linux-core/xgi_regs.h
@@ -153,16 +153,10 @@ static inline void writeAttr(struct xgi_info * info, u8 index, u8 value)
*/
static inline void WriteRegDWord(struct xgi_info * info, u32 addr, u32 data)
{
- /* Jong 05/25/2006 */
- XGI_INFO("Jong-WriteRegDWord()-Begin \n");
- XGI_INFO("Jong-WriteRegDWord()-info->mmio.vbase=0x%lx \n",
- info->mmio.vbase);
- XGI_INFO("Jong-WriteRegDWord()-addr=0x%lx \n", addr);
- XGI_INFO("Jong-WriteRegDWord()-data=0x%lx \n", data);
- /* return; */
+ XGI_INFO("mmio vbase = 0x%p, addr = 0x%x, data = 0x%x\n",
+ info->mmio->vbase, addr, data);
*(volatile u32 *)(info->mmio.vbase + addr) = (data);
- XGI_INFO("Jong-WriteRegDWord()-End \n");
}
static inline void WriteRegWord(struct xgi_info * info, u32 addr, u16 data)
@@ -262,18 +256,6 @@ extern void DisableProtect();
#define wReadReg(addr) ReadRegWord(info, addr)
#define bReadReg(addr) ReadRegByte(info, addr)
-static inline void xgi_protect_all(struct xgi_info * info)
-{
- OUTB(0x3C4, 0x11);
- OUTB(0x3C5, 0x92);
-}
-
-static inline void xgi_unprotect_all(struct xgi_info * info)
-{
- OUTB(0x3C4, 0x11);
- OUTB(0x3C5, 0x92);
-}
-
static inline void xgi_enable_mmio(struct xgi_info * info)
{
u8 protect = 0;