~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sparc/include/uapi/asm/openpromio.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef _SPARC_OPENPROMIO_H
  3 #define _SPARC_OPENPROMIO_H
  4 
  5 #include <linux/compiler.h>
  6 #include <linux/ioctl.h>
  7 
  8 /*
  9  * SunOS and Solaris /dev/openprom definitions. The ioctl values
 10  * were chosen to be exactly equal to the SunOS equivalents.
 11  */
 12 
 13 struct openpromio {
 14         unsigned int oprom_size;        /* Actual size of the oprom_array. */
 15         char    oprom_array[];          /* Holds property names and values. */
 16 };
 17 
 18 #define OPROMMAXPARAM   4096            /* Maximum size of oprom_array. */
 19 
 20 #define OPROMGETOPT             0x20004F01
 21 #define OPROMSETOPT             0x20004F02
 22 #define OPROMNXTOPT             0x20004F03
 23 #define OPROMSETOPT2            0x20004F04
 24 #define OPROMNEXT               0x20004F05
 25 #define OPROMCHILD              0x20004F06
 26 #define OPROMGETPROP            0x20004F07
 27 #define OPROMNXTPROP            0x20004F08
 28 #define OPROMU2P                0x20004F09
 29 #define OPROMGETCONS            0x20004F0A
 30 #define OPROMGETFBNAME          0x20004F0B
 31 #define OPROMGETBOOTARGS        0x20004F0C
 32 /* Linux extensions */                          /* Arguments in oprom_array: */
 33 #define OPROMSETCUR             0x20004FF0      /* int node - Sets current node */
 34 #define OPROMPCI2NODE           0x20004FF1      /* int pci_bus, pci_devfn - Sets current node to PCI device's node */
 35 #define OPROMPATH2NODE          0x20004FF2      /* char path[] - Set current node from fully qualified PROM path */
 36 
 37 /*
 38  * Return values from OPROMGETCONS:
 39  */
 40 
 41 #define OPROMCONS_NOT_WSCONS    0
 42 #define OPROMCONS_STDIN_IS_KBD  0x1     /* stdin device is kbd */
 43 #define OPROMCONS_STDOUT_IS_FB  0x2     /* stdout is a framebuffer */
 44 #define OPROMCONS_OPENPROM      0x4     /* supports openboot */
 45 
 46 
 47 /*
 48  *  NetBSD/OpenBSD /dev/openprom definitions.
 49  */
 50 
 51 struct opiocdesc
 52 {
 53         int     op_nodeid;              /* PROM Node ID (value-result) */
 54         int     op_namelen;             /* Length of op_name. */
 55         char    __user *op_name;        /* Pointer to the property name. */
 56         int     op_buflen;              /* Length of op_buf (value-result) */
 57         char    __user *op_buf;         /* Pointer to buffer. */
 58 };
 59 
 60 #define OPIOCGET        _IOWR('O', 1, struct opiocdesc)
 61 #define OPIOCSET        _IOW('O', 2, struct opiocdesc)
 62 #define OPIOCNEXTPROP   _IOWR('O', 3, struct opiocdesc)
 63 #define OPIOCGETOPTNODE _IOR('O', 4, int)
 64 #define OPIOCGETNEXT    _IOWR('O', 5, int)
 65 #define OPIOCGETCHILD   _IOWR('O', 6, int)
 66 
 67 #endif /* _SPARC_OPENPROMIO_H */
 68 
 69 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php