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

TOMOYO Linux Cross Reference
Linux/arch/sparc/include/uapi/asm/oradax.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-or-later WITH Linux-syscall-note */
  2 /*
  3  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
  4  */
  5 
  6 /*
  7  * Oracle DAX driver API definitions
  8  */
  9 
 10 #ifndef _ORADAX_H
 11 #define _ORADAX_H
 12 
 13 #include <linux/types.h>
 14 
 15 #define CCB_KILL 0
 16 #define CCB_INFO 1
 17 #define CCB_DEQUEUE 2
 18 
 19 struct dax_command {
 20         __u16 command;          /* CCB_KILL/INFO/DEQUEUE */
 21         __u16 ca_offset;        /* offset into mmapped completion area */
 22 };
 23 
 24 struct ccb_kill_result {
 25         __u16 action;           /* action taken to kill ccb */
 26 };
 27 
 28 struct ccb_info_result {
 29         __u16 state;            /* state of enqueued ccb */
 30         __u16 inst_num;         /* dax instance number of enqueued ccb */
 31         __u16 q_num;            /* queue number of enqueued ccb */
 32         __u16 q_pos;            /* ccb position in queue */
 33 };
 34 
 35 struct ccb_exec_result {
 36         __u64   status_data;    /* additional status data (e.g. bad VA) */
 37         __u32   status;         /* one of DAX_SUBMIT_* */
 38 };
 39 
 40 union ccb_result {
 41         struct ccb_exec_result exec;
 42         struct ccb_info_result info;
 43         struct ccb_kill_result kill;
 44 };
 45 
 46 #define DAX_MMAP_LEN            (16 * 1024)
 47 #define DAX_MAX_CCBS            15
 48 #define DAX_CCB_BUF_MAXLEN      (DAX_MAX_CCBS * 64)
 49 #define DAX_NAME                "oradax"
 50 
 51 /* CCB_EXEC status */
 52 #define DAX_SUBMIT_OK                   0
 53 #define DAX_SUBMIT_ERR_RETRY            1
 54 #define DAX_SUBMIT_ERR_WOULDBLOCK       2
 55 #define DAX_SUBMIT_ERR_BUSY             3
 56 #define DAX_SUBMIT_ERR_THR_INIT         4
 57 #define DAX_SUBMIT_ERR_ARG_INVAL        5
 58 #define DAX_SUBMIT_ERR_CCB_INVAL        6
 59 #define DAX_SUBMIT_ERR_NO_CA_AVAIL      7
 60 #define DAX_SUBMIT_ERR_CCB_ARR_MMU_MISS 8
 61 #define DAX_SUBMIT_ERR_NOMAP            9
 62 #define DAX_SUBMIT_ERR_NOACCESS         10
 63 #define DAX_SUBMIT_ERR_TOOMANY          11
 64 #define DAX_SUBMIT_ERR_UNAVAIL          12
 65 #define DAX_SUBMIT_ERR_INTERNAL         13
 66 
 67 /* CCB_INFO states - must match HV_CCB_STATE_* definitions */
 68 #define DAX_CCB_COMPLETED       0
 69 #define DAX_CCB_ENQUEUED        1
 70 #define DAX_CCB_INPROGRESS      2
 71 #define DAX_CCB_NOTFOUND        3
 72 
 73 /* CCB_KILL actions - must match HV_CCB_KILL_* definitions */
 74 #define DAX_KILL_COMPLETED      0
 75 #define DAX_KILL_DEQUEUED       1
 76 #define DAX_KILL_KILLED         2
 77 #define DAX_KILL_NOTFOUND       3
 78 
 79 #endif /* _ORADAX_H */
 80 

~ [ 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