summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test69.c
blob: c01338fc62be398a82b2988cd547d00c6ac002c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
static void outb(unsigned char value, unsigned short port)
{
	__builtin_outb(value, port);
}

static void pnp_write_config(void)
{
	unsigned char port;
	unsigned char value;
	unsigned char reg;
	port = 0x2e;
	value = 0x03;
	reg = 0x07;
	outb(reg, port);
	outb(value, port +1);
	outb(value -1, port +2);
}

static void main(void)
{
	pnp_write_config();
}