summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/kernel/pbus.h
blob: 351b144f958e424ea9ad11ad21db4aa4cf4a085b (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
27
28
29
30
31
32
33
34
35
#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)

struct sccb_io
{
 unsigned char addr;	/* Address */
 unsigned char data;	/* Data */
};

#define CAM_SETFRAMESIZE 	_IOW('R', 10, unsigned long)
#define CAM_SCCBREAD		_IOWR('R',11, struct sccb_io)
#define CAM_SCCBWRITE		_IOWR('R',12, struct sccb_io)
#define CAM_SETHCOUNT 		_IOW('R', 13, unsigned long)
#endif