Add ifdtool, utility to read / modify Intel Firmware Descriptor images
[coreboot.git] / util / romcc / tests / simple_test69.c
1 static void outb(unsigned char value, unsigned short port)
2 {
3         __builtin_outb(value, port);
4 }
5
6 static void pnp_write_config(void)
7 {
8         unsigned char port;
9         unsigned char value;
10         unsigned char reg;
11         port = 0x2e;
12         value = 0x03;
13         reg = 0x07;
14         outb(reg, port);
15         outb(value, port +1);
16         outb(value -1, port +2);
17 }
18
19 static void main(void)
20 {
21         pnp_write_config();
22 }