linux/drivers/usb/gadget/u_os_desc.h

// SPDX-License-Identifier: GPL-2.0
/*
 * u_os_desc.h
 *
 * Utility definitions for "OS Descriptors" support
 *
 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com
 *
 * Author: Andrzej Pietrasiewicz <[email protected]>
 */

#ifndef __U_OS_DESC_H__
#define __U_OS_DESC_H__

#include <asm/unaligned.h>
#include <linux/nls.h>

#define USB_EXT_PROP_DW_SIZE
#define USB_EXT_PROP_DW_PROPERTY_DATA_TYPE
#define USB_EXT_PROP_W_PROPERTY_NAME_LENGTH
#define USB_EXT_PROP_B_PROPERTY_NAME
#define USB_EXT_PROP_DW_PROPERTY_DATA_LENGTH
#define USB_EXT_PROP_B_PROPERTY_DATA

#define USB_EXT_PROP_RESERVED
#define USB_EXT_PROP_UNICODE
#define USB_EXT_PROP_UNICODE_ENV
#define USB_EXT_PROP_BINARY
#define USB_EXT_PROP_LE32
#define USB_EXT_PROP_BE32
#define USB_EXT_PROP_UNICODE_LINK
#define USB_EXT_PROP_UNICODE_MULTI

static inline u8 *__usb_ext_prop_ptr(u8 *buf, size_t offset)
{}

static inline u8 *usb_ext_prop_size_ptr(u8 *buf)
{}

static inline u8 *usb_ext_prop_type_ptr(u8 *buf)
{}

static inline u8 *usb_ext_prop_name_len_ptr(u8 *buf)
{}

static inline u8 *usb_ext_prop_name_ptr(u8 *buf)
{}

static inline u8 *usb_ext_prop_data_len_ptr(u8 *buf, size_t off)
{}

static inline u8 *usb_ext_prop_data_ptr(u8 *buf, size_t off)
{}

static inline void usb_ext_prop_put_size(u8 *buf, int dw_size)
{}

static inline void usb_ext_prop_put_type(u8 *buf, int type)
{}

static inline int usb_ext_prop_put_name(u8 *buf, const char *name, int pnl)
{}

static inline void usb_ext_prop_put_binary(u8 *buf, int pnl, const u8 *data,
					   int data_len)
{}

static inline int usb_ext_prop_put_unicode(u8 *buf, int pnl, const char *string,
					   int data_len)
{}

#endif /* __U_OS_DESC_H__ */