mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
bus: fsl-mc: move fsl_mc_command struct in a uapi header
Define "struct fsl_mc_command" as a structure that can cross the user/kernel boundary. Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20210114170752.2927915-2-ciorneiioana@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2f6055c26f
commit
8544717cda
@@ -14652,6 +14652,7 @@ S: Maintained
|
|||||||
F: Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
|
F: Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
|
||||||
F: Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst
|
F: Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst
|
||||||
F: drivers/bus/fsl-mc/
|
F: drivers/bus/fsl-mc/
|
||||||
|
F: include/uapi/linux/fsl_mc.h
|
||||||
|
|
||||||
QT1010 MEDIA DRIVER
|
QT1010 MEDIA DRIVER
|
||||||
M: Antti Palosaari <crope@iki.fi>
|
M: Antti Palosaari <crope@iki.fi>
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
#include <linux/device.h>
|
#include <linux/device.h>
|
||||||
#include <linux/mod_devicetable.h>
|
#include <linux/mod_devicetable.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
|
#include <uapi/linux/fsl_mc.h>
|
||||||
|
|
||||||
#define FSL_MC_VENDOR_FREESCALE 0x1957
|
#define FSL_MC_VENDOR_FREESCALE 0x1957
|
||||||
|
|
||||||
@@ -209,8 +210,6 @@ struct fsl_mc_device {
|
|||||||
#define to_fsl_mc_device(_dev) \
|
#define to_fsl_mc_device(_dev) \
|
||||||
container_of(_dev, struct fsl_mc_device, dev)
|
container_of(_dev, struct fsl_mc_device, dev)
|
||||||
|
|
||||||
#define MC_CMD_NUM_OF_PARAMS 7
|
|
||||||
|
|
||||||
struct mc_cmd_header {
|
struct mc_cmd_header {
|
||||||
u8 src_id;
|
u8 src_id;
|
||||||
u8 flags_hw;
|
u8 flags_hw;
|
||||||
@@ -220,11 +219,6 @@ struct mc_cmd_header {
|
|||||||
__le16 cmd_id;
|
__le16 cmd_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct fsl_mc_command {
|
|
||||||
__le64 header;
|
|
||||||
__le64 params[MC_CMD_NUM_OF_PARAMS];
|
|
||||||
};
|
|
||||||
|
|
||||||
enum mc_cmd_status {
|
enum mc_cmd_status {
|
||||||
MC_CMD_STATUS_OK = 0x0, /* Completed successfully */
|
MC_CMD_STATUS_OK = 0x0, /* Completed successfully */
|
||||||
MC_CMD_STATUS_READY = 0x1, /* Ready to be processed */
|
MC_CMD_STATUS_READY = 0x1, /* Ready to be processed */
|
||||||
|
25
include/uapi/linux/fsl_mc.h
Normal file
25
include/uapi/linux/fsl_mc.h
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
||||||
|
/*
|
||||||
|
* Management Complex (MC) userspace public interface
|
||||||
|
*
|
||||||
|
* Copyright 2021 NXP
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#ifndef _UAPI_FSL_MC_H_
|
||||||
|
#define _UAPI_FSL_MC_H_
|
||||||
|
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
|
#define MC_CMD_NUM_OF_PARAMS 7
|
||||||
|
|
||||||
|
/**
|
||||||
|
* struct fsl_mc_command - Management Complex (MC) command structure
|
||||||
|
* @header: MC command header
|
||||||
|
* @params: MC command parameters
|
||||||
|
*/
|
||||||
|
struct fsl_mc_command {
|
||||||
|
__le64 header;
|
||||||
|
__le64 params[MC_CMD_NUM_OF_PARAMS];
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* _UAPI_FSL_MC_H_ */
|
Reference in New Issue
Block a user