boardctl(): Remove the BOARDIOC_GRAPHICS_SETUP command.
This commit is contained in:
parent
8919c485c4
commit
4b56c0cc0c
@ -2295,14 +2295,6 @@ config BOARDCTL_TSCTEST
|
||||
specific logic must provide board_tsc_setup() and
|
||||
board_tsc_teardown() interfaces.
|
||||
|
||||
config BOARDCTL_GRAPHICS
|
||||
bool "Enable custom graphics initialization interfaces"
|
||||
default n
|
||||
---help---
|
||||
Enables support for the BOARDIOC_GRAPHICS_SETUP boardctl() command.
|
||||
Architecture specific logic must provide board_graphics_setup()
|
||||
interface.
|
||||
|
||||
config BOARDCTL_IOCTL
|
||||
bool "Board-specific boardctl() commands"
|
||||
default n
|
||||
|
@ -430,26 +430,6 @@ int boardctl(unsigned int cmd, uintptr_t arg)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BOARDCTL_GRAPHICS
|
||||
/* CMD: BOARDIOC_GRAPHICS_SETUP
|
||||
* DESCRIPTION: Configure graphics that require special initialization
|
||||
* procedures
|
||||
* ARG: A pointer to an instance of struct boardioc_graphics_s
|
||||
* CONFIGURATION: CONFIG_LIB_BOARDCTL && CONFIG_BOARDCTL_GRAPHICS
|
||||
* DEPENDENCIES: Board logic must provide board_graphics_setup()
|
||||
*/
|
||||
|
||||
case BOARDIOC_GRAPHICS_SETUP:
|
||||
{
|
||||
FAR struct boardioc_graphics_s *setup =
|
||||
(FAR struct boardioc_graphics_s *)arg;
|
||||
|
||||
setup->dev = board_graphics_setup(setup->devno);
|
||||
ret = setup->dev ? OK : -ENODEV;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
{
|
||||
#ifdef CONFIG_BOARDCTL_IOCTL
|
||||
|
@ -344,11 +344,8 @@ void board_tsc_teardown(void);
|
||||
* If the driver for the graphics device on the platform some unusual
|
||||
* initialization, then this board interface should be provided.
|
||||
*
|
||||
* This is an internal OS interface but may be invoked indirectly from
|
||||
* application-level graphics logic. If CONFIG_LIB_BOARDCTL=y and
|
||||
* CONFIG_BOARDCTL_GRAPHICS=y, then this functions will be invoked via the
|
||||
* (non-standard) boardctl() interface using the BOARDIOC_GRAPHICS_SETUP
|
||||
* command.
|
||||
* This is an internal OS interface. It is invoked by graphics sub-system
|
||||
* initialization logic (nx_start()).
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* include/sys/boardctl.h
|
||||
*
|
||||
* Copyright (C) 2015-2016 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2015-2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -126,13 +126,6 @@
|
||||
* ARG: None
|
||||
* CONFIGURATION: CONFIG_LIB_BOARDCTL && CONFIG_BOARDCTL_TSCTEST
|
||||
* DEPENDENCIES: Board logic must provide board_tsc_teardown()
|
||||
*
|
||||
* CMD: BOARDIOC_GRAPHICS_SETUP
|
||||
* DESCRIPTION: Configure graphics that require special initialization
|
||||
* procedures
|
||||
* ARG: A pointer to an instance of struct boardioc_graphics_s
|
||||
* CONFIGURATION: CONFIG_LIB_BOARDCTL && CONFIG_BOARDCTL_GRAPHICS
|
||||
* DEPENDENCIES: Board logic must provide board_graphics_setup()
|
||||
*/
|
||||
|
||||
#define BOARDIOC_INIT _BOARDIOC(0x0001)
|
||||
@ -145,16 +138,15 @@
|
||||
#define BOARDIOC_NX_START _BOARDIOC(0x0008)
|
||||
#define BOARDIOC_TSCTEST_SETUP _BOARDIOC(0x0009)
|
||||
#define BOARDIOC_TSCTEST_TEARDOWN _BOARDIOC(0x000a)
|
||||
#define BOARDIOC_GRAPHICS_SETUP _BOARDIOC(0x000b)
|
||||
|
||||
/* If CONFIG_BOARDCTL_IOCTL=y, then boad-specific commands will be support.
|
||||
/* If CONFIG_BOARDCTL_IOCTL=y, then board-specific commands will be support.
|
||||
* In this case, all commands not recognized by boardctl() will be forwarded
|
||||
* to the board-provided board_ioctl() function.
|
||||
*
|
||||
* User defined board commands may begin with this value:
|
||||
*/
|
||||
|
||||
#define BOARDIOC_USER _BOARDIOC(0x000d)
|
||||
#define BOARDIOC_USER _BOARDIOC(0x000b)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Type Definitions
|
||||
|
Loading…
Reference in New Issue
Block a user