/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _SPARC_OPENPROMIO_H #define _SPARC_OPENPROMIO_H #include <linux/compiler.h> #include <linux/ioctl.h> #include <linux/types.h> /* * SunOS and Solaris /dev/openprom definitions. The ioctl values * were chosen to be exactly equal to the SunOS equivalents. */ struct openpromio { u_int oprom_size; /* Actual size of the oprom_array. */ char oprom_array[1]; /* Holds property names and values. */ }; #define OPROMMAXPARAM 4096 /* Maximum size of oprom_array. */ #define OPROMGETOPT 0x20004F01 #define OPROMSETOPT 0x20004F02 #define OPROMNXTOPT 0x20004F03 #define OPROMSETOPT2 0x20004F04 #define OPROMNEXT 0x20004F05 #define OPROMCHILD 0x20004F06 #define OPROMGETPROP 0x20004F07 #define OPROMNXTPROP 0x20004F08 #define OPROMU2P 0x20004F09 #define OPROMGETCONS 0x20004F0A #define OPROMGETFBNAME 0x20004F0B #define OPROMGETBOOTARGS 0x20004F0C /* Linux extensions */ /* Arguments in oprom_array: */ #define OPROMSETCUR 0x20004FF0 /* int node - Sets current node */ #define OPROMPCI2NODE 0x20004FF1 /* int pci_bus, pci_devfn - Sets current node to PCI device's node */ #define OPROMPATH2NODE 0x20004FF2 /* char path[] - Set current node from fully qualified PROM path */ /* * Return values from OPROMGETCONS: */ #define OPROMCONS_NOT_WSCONS 0 #define OPROMCONS_STDIN_IS_KBD 0x1 /* stdin device is kbd */ #define OPROMCONS_STDOUT_IS_FB 0x2 /* stdout is a framebuffer */ #define OPROMCONS_OPENPROM 0x4 /* supports openboot */ /* * NetBSD/OpenBSD /dev/openprom definitions. */ struct opiocdesc { int op_nodeid; /* PROM Node ID (value-result) */ int op_namelen; /* Length of op_name. */ char __user *op_name; /* Pointer to the property name. */ int op_buflen; /* Length of op_buf (value-result) */ char __user *op_buf; /* Pointer to buffer. */ }; #define OPIOCGET _IOWR('O', 1, struct opiocdesc) #define OPIOCSET _IOW('O', 2, struct opiocdesc) #define OPIOCNEXTPROP _IOWR('O', 3, struct opiocdesc) #define OPIOCGETOPTNODE _IOR('O', 4, int) #define OPIOCGETNEXT _IOWR('O', 5, int) #define OPIOCGETCHILD _IOWR('O', 6, int) #endif /* _SPARC_OPENPROMIO_H */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Kbuild | File | 122 B | 0644 |
|
apc.h | File | 1.7 KB | 0644 |
|
asi.h | File | 14.73 KB | 0644 |
|
auxvec.h | File | 153 B | 0644 |
|
bitsperlong.h | File | 324 B | 0644 |
|
byteorder.h | File | 191 B | 0644 |
|
display7seg.h | File | 1.9 KB | 0644 |
|
envctrl.h | File | 3.41 KB | 0644 |
|
errno.h | File | 5.41 KB | 0644 |
|
fbio.h | File | 7.72 KB | 0644 |
|
fcntl.h | File | 1.75 KB | 0644 |
|
ioctl.h | File | 2.58 KB | 0644 |
|
ioctls.h | File | 5.87 KB | 0644 |
|
ipcbuf.h | File | 776 B | 0644 |
|
jsflash.h | File | 928 B | 0644 |
|
kvm_para.h | File | 97 B | 0644 |
|
mman.h | File | 1.22 KB | 0644 |
|
msgbuf.h | File | 1.12 KB | 0644 |
|
openpromio.h | File | 2.13 KB | 0644 |
|
param.h | File | 253 B | 0644 |
|
perfctr.h | File | 5.56 KB | 0644 |
|
poll.h | File | 273 B | 0644 |
|
posix_types.h | File | 1.48 KB | 0644 |
|
psr.h | File | 2.21 KB | 0644 |
|
psrcompat.h | File | 2.02 KB | 0644 |
|
pstate.h | File | 5.81 KB | 0644 |
|
ptrace.h | File | 8.03 KB | 0644 |
|
resource.h | File | 770 B | 0644 |
|
sembuf.h | File | 877 B | 0644 |
|
setup.h | File | 310 B | 0644 |
|
shmbuf.h | File | 1.3 KB | 0644 |
|
sigcontext.h | File | 167 B | 0644 |
|
siginfo.h | File | 670 B | 0644 |
|
signal.h | File | 4.62 KB | 0644 |
|
socket.h | File | 2.44 KB | 0644 |
|
sockios.h | File | 435 B | 0644 |
|
stat.h | File | 1.97 KB | 0644 |
|
statfs.h | File | 164 B | 0644 |
|
swab.h | File | 1.01 KB | 0644 |
|
termbits.h | File | 6.92 KB | 0644 |
|
termios.h | File | 742 B | 0644 |
|
traps.h | File | 5.15 KB | 0644 |
|
uctx.h | File | 1.39 KB | 0644 |
|
unistd.h | File | 25.3 KB | 0644 |
|
utrap.h | File | 1.5 KB | 0644 |
|
watchdog.h | File | 1 KB | 0644 |
|