summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/kernel/pbus.h
blob: 65b6024551771f59870956117e87b3d1dc913a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _PBUS_H_
#define _PBUS_H_

#include <sys/ioctl.h>

struct pbus_io
{
 unsigned char addr;	/* Address */
 unsigned char data;	/* Data */
 unsigned char ints;	/* IRQ lines */
};

#define	PBUS_DATAMASK	0x00FF
#define	PBUS_ADDRMASK	0x0F00
#define	PBUS_RnW	0x1000
#define	PBUS_CLK	0x2000
#define	PBUS_INTEN	0x4000

#define PBUS_READ		_IOWR('R', 1, struct pbus_io)
#define PBUS_WRITE		_IOWR('R', 2, struct pbus_io)
#define PBUS_INTENABLE		_IO('R', 3)
#define PBUS_INTDISABLE       	_IO('R', 4)
#define PBUS_INTREAD  		_IOWR('R', 5, struct pbus_io)

#define CAM_SETFRAMESIZE 	_IOW('R', 10, unsigned long)
#endif