Plan 9 from Bell Labs’s /usr/web/sources/extra/9hist/pc/vgamach32.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


## diffname pc/vgamach32.c 1995/0516
## diff -e /dev/null /n/fornaxdump/1995/0516/sys/src/brazil/pc/vgamach32.c
0a
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"

#include <libg.h>
#include "screen.h"
#include "vga.h"

static void
mach32page(int page)
{
	uchar ae, p;


	p = (page & 0x0F)<<1;
	p |= (page & 0x07)<<5;
	outs(0x1CE, (p<<8)|0xB2);

	outb(0x1CE, 0xAE);
	ae = inb(0x1CE+1);

	p = (page>>4) & 0x03;
	p |= p<<2;
	p |= ae & 0xF0;
	outs(0x1CE, (p<<8)|0xAE);
}

static Vgac mach32 = {
	"mach32",
	mach32page,

	0,
};

void
vgamach32link(void)
{
	addvgaclink(&mach32);
}
.
## diffname pc/vgamach32.c 1997/0327
## diff -e /n/fornaxdump/1995/0516/sys/src/brazil/pc/vgamach32.c /n/emeliedump/1997/0327/sys/src/brazil/pc/vgamach32.c
28a

	unlock(&mach32lock);
.
16a
	lock(&mach32lock);
.
11a
static Lock mach32lock;

.
## diffname pc/vgamach32.c 1997/1101 # deleted
## diff -e /n/emeliedump/1997/0327/sys/src/brazil/pc/vgamach32.c /n/emeliedump/1997/1101/sys/src/brazil/pc/vgamach32.c
1,47d

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.