Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87073
b: refs/heads/master
c: 3acd9d4
h: refs/heads/master
i:
  87071: aa37f3b
v: v3
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Mar 11, 2008
1 parent 4f4f739 commit 10f7694
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e84290dc79d30af3e95b38e670f80c0b5046bbf2
refs/heads/master: 3acd9d462062bb332073fde90bf9d118ac5a043d
12 changes: 0 additions & 12 deletions trunk/drivers/video/tridentfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,44 +566,32 @@ static inline void write3CE(int reg, unsigned char val)

static void enable_mmio(void)
{
unsigned char tmp;

/* Goto New Mode */
outb(0x0B, 0x3C4);
inb(0x3C5);

/* Unprotect registers */
outb(NewMode1, 0x3C4);
tmp = inb(0x3C5);
outb(0x80, 0x3C5);

/* Enable MMIO */
outb(PCIReg, 0x3D4);
outb(inb(0x3D5) | 0x01, 0x3D5);

t_outb(NewMode1, 0x3C4);
t_outb(tmp, 0x3C5);
}

static void disable_mmio(void)
{
unsigned char tmp;

/* Goto New Mode */
t_outb(0x0B, 0x3C4);
t_inb(0x3C5);

/* Unprotect registers */
t_outb(NewMode1, 0x3C4);
tmp = t_inb(0x3C5);
t_outb(0x80, 0x3C5);

/* Disable MMIO */
t_outb(PCIReg, 0x3D4);
t_outb(t_inb(0x3D5) & ~0x01, 0x3D5);

outb(NewMode1, 0x3C4);
outb(tmp, 0x3C5);
}

#define crtc_unlock() write3X4(CRTVSyncEnd, read3X4(CRTVSyncEnd) & 0x7F)
Expand Down

0 comments on commit 10f7694

Please sign in to comment.