summaryrefslogtreecommitdiff
path: root/os/boot/puma/outb.c
blob: e66c994e941ce2cb1519fc4bf07c772dc9714c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
typedef	unsigned short	ushort;
typedef	unsigned char	uchar;

enum {
	IsaIOBase		= 0xf0000000,
	IsaMemBase	= 0xe0000000,

	IOBase		= 0x300,
	MemBase		= 0xc0000,

	TxFrame		= 0x0a00,
};

#define	regw(reg, val)		*((ushort *)IsaMemBase + MemBase + (reg)) = (val)

void
main(void)
{
	regw(TxFrame, 0x1234);
}