1
2#ifndef _SPARC_OPENPROMIO_H
3#define _SPARC_OPENPROMIO_H
4
5#include <linux/compiler.h>
6#include <linux/ioctl.h>
7#include <linux/types.h>
8
9
10
11
12
13
14struct openpromio
15{
16 u_int oprom_size;
17 char oprom_array[1];
18};
19
20#define OPROMMAXPARAM 4096
21
22#define OPROMGETOPT 0x20004F01
23#define OPROMSETOPT 0x20004F02
24#define OPROMNXTOPT 0x20004F03
25#define OPROMSETOPT2 0x20004F04
26#define OPROMNEXT 0x20004F05
27#define OPROMCHILD 0x20004F06
28#define OPROMGETPROP 0x20004F07
29#define OPROMNXTPROP 0x20004F08
30#define OPROMU2P 0x20004F09
31#define OPROMGETCONS 0x20004F0A
32#define OPROMGETFBNAME 0x20004F0B
33#define OPROMGETBOOTARGS 0x20004F0C
34
35#define OPROMSETCUR 0x20004FF0
36#define OPROMPCI2NODE 0x20004FF1
37#define OPROMPATH2NODE 0x20004FF2
38
39
40
41
42
43#define OPROMCONS_NOT_WSCONS 0
44#define OPROMCONS_STDIN_IS_KBD 0x1
45#define OPROMCONS_STDOUT_IS_FB 0x2
46#define OPROMCONS_OPENPROM 0x4
47
48
49
50
51
52
53struct opiocdesc
54{
55 int op_nodeid;
56 int op_namelen;
57 char __user *op_name;
58 int op_buflen;
59 char __user *op_buf;
60};
61
62#define OPIOCGET _IOWR('O', 1, struct opiocdesc)
63#define OPIOCSET _IOW('O', 2, struct opiocdesc)
64#define OPIOCNEXTPROP _IOWR('O', 3, struct opiocdesc)
65#define OPIOCGETOPTNODE _IOR('O', 4, int)
66#define OPIOCGETNEXT _IOWR('O', 5, int)
67#define OPIOCGETCHILD _IOWR('O', 6, int)
68
69#endif
70
71