linux/drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Functions corresponding to ordered list type attributes under
 * BIOS ORDERED LIST GUID for use with hp-bioscfg driver.
 *
 * Copyright (c) 2022 HP Development Company, L.P.
 */

#include "bioscfg.h"

GET_INSTANCE_ID(ordered_list);

static ssize_t current_value_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{}

static int replace_char_str(u8 *buffer, char *repl_char, char *repl_with)
{}

/**
 * validate_ordered_list_input() -
 * Validate input of current_value against possible values
 *
 * @instance: The instance on which input is validated
 * @buf: Input value
 */
static int validate_ordered_list_input(int instance, char *buf)
{}

static void update_ordered_list_value(int instance, char *attr_value)
{}

ATTRIBUTE_S_COMMON_PROPERTY_SHOW(display_name, ordered_list);
static struct kobj_attribute ordered_list_display_name =;

ATTRIBUTE_PROPERTY_STORE(current_value, ordered_list);
static struct kobj_attribute ordered_list_current_val =;

ATTRIBUTE_VALUES_PROPERTY_SHOW(elements, ordered_list, SEMICOLON_SEP);
static struct kobj_attribute ordered_list_elements_val =;

static ssize_t type_show(struct kobject *kobj, struct kobj_attribute *attr,
			 char *buf)
{}

static struct kobj_attribute ordered_list_type =;

static struct attribute *ordered_list_attrs[] =;

static const struct attribute_group ordered_list_attr_group =;

int hp_alloc_ordered_list_data(void)
{}

/* Expected Values types associated with each element */
static const acpi_object_type expected_order_types[] =;

static int hp_populate_ordered_list_elements_from_package(union acpi_object *order_obj,
							  int order_obj_count,
							  int instance_id)
{}

/**
 * hp_populate_ordered_list_package_data() -
 * Populate all properties of an instance under ordered_list attribute
 *
 * @order_obj: ACPI object with ordered_list data
 * @instance_id: The instance to enumerate
 * @attr_name_kobj: The parent kernel object
 */
int hp_populate_ordered_list_package_data(union acpi_object *order_obj, int instance_id,
					  struct kobject *attr_name_kobj)
{}

static int hp_populate_ordered_list_elements_from_buffer(u8 *buffer_ptr, u32 *buffer_size,
							 int instance_id)
{}

/**
 * hp_populate_ordered_list_buffer_data() - Populate all properties of an
 * instance under ordered list attribute
 *
 * @buffer_ptr: Buffer pointer
 * @buffer_size: Buffer size
 * @instance_id: The instance to enumerate
 * @attr_name_kobj: The parent kernel object
 */
int hp_populate_ordered_list_buffer_data(u8 *buffer_ptr, u32 *buffer_size, int instance_id,
					 struct kobject *attr_name_kobj)
{}

/**
 * hp_exit_ordered_list_attributes() - Clear all attribute data
 *
 * Clears all data allocated for this group of attributes
 */
void hp_exit_ordered_list_attributes(void)
{}