linux/include/uapi/linux/sed-opal.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * Copyright © 2016 Intel Corporation
 *
 * Authors:
 *    Rafael Antognolli <[email protected]>
 *    Scott  Bauer      <[email protected]>
 */

#ifndef _UAPI_SED_OPAL_H
#define _UAPI_SED_OPAL_H

#include <linux/types.h>

#define OPAL_KEY_MAX
#define OPAL_MAX_LRS

enum opal_mbr {};

enum opal_mbr_done_flag {};

enum opal_user {};

enum opal_lock_state {};

enum opal_lock_flags {};

enum opal_key_type {};

struct opal_key {};

enum opal_revert_lsp_opts {};

struct opal_lr_act {};

struct opal_session_info {};

struct opal_user_lr_setup {};

struct opal_lr_status {};

struct opal_lock_unlock {};

struct opal_new_pw {};

struct opal_mbr_data {};

struct opal_mbr_done {};

struct opal_shadow_mbr {};

/* Opal table operations */
enum opal_table_ops {};

#define OPAL_UID_LENGTH
struct opal_read_write_table {};

#define OPAL_FL_SUPPORTED
#define OPAL_FL_LOCKING_SUPPORTED
#define OPAL_FL_LOCKING_ENABLED
#define OPAL_FL_LOCKED
#define OPAL_FL_MBR_ENABLED
#define OPAL_FL_MBR_DONE
#define OPAL_FL_SUM_SUPPORTED

struct opal_status {};

/*
 * Geometry Reporting per TCG Storage OPAL SSC
 * section 3.1.1.4
 */
struct opal_geometry {};

struct opal_discovery {};

struct opal_revert_lsp {};

#define IOC_OPAL_SAVE
#define IOC_OPAL_LOCK_UNLOCK
#define IOC_OPAL_TAKE_OWNERSHIP
#define IOC_OPAL_ACTIVATE_LSP
#define IOC_OPAL_SET_PW
#define IOC_OPAL_ACTIVATE_USR
#define IOC_OPAL_REVERT_TPR
#define IOC_OPAL_LR_SETUP
#define IOC_OPAL_ADD_USR_TO_LR
#define IOC_OPAL_ENABLE_DISABLE_MBR
#define IOC_OPAL_ERASE_LR
#define IOC_OPAL_SECURE_ERASE_LR
#define IOC_OPAL_PSID_REVERT_TPR
#define IOC_OPAL_MBR_DONE
#define IOC_OPAL_WRITE_SHADOW_MBR
#define IOC_OPAL_GENERIC_TABLE_RW
#define IOC_OPAL_GET_STATUS
#define IOC_OPAL_GET_LR_STATUS
#define IOC_OPAL_GET_GEOMETRY
#define IOC_OPAL_DISCOVERY
#define IOC_OPAL_REVERT_LSP

#endif /* _UAPI_SED_OPAL_H */