Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions Documentation/components/nxgraphics/nx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ features:
* **Multi-User Support** NX includes front-end logic to an NX server
daemon that can serve multiple NX client threads. The NX sever
thread/daemon serializes graphics operations from multiple clients.

* **Minimal Graphics Toolset** The actual implementation of the graphics
operations is performed by common, back-end logic. This back-end supports
only a primitive set of graphic and rendering operations.
Expand Down Expand Up @@ -124,16 +124,10 @@ start this daemon. There are two ways that this can be done:
calling the function ``nxmu_start()``. The board startup logic
usually resides the ``boards/arch/chip/board/src`` directory. The
board startup logic can run automatically during the early system if
``CONFIG_BOARD_LATE_INITIALIZE`` is defined in the configuration. Or,
the board startup logic can execute under control of the application
by calling :c:func:`boardctl` as:

.. code-block:: c

boardctl(BOARDIOC_INIT, arg)
``CONFIG_BOARD_LATE_INITIALIZE`` is defined in the configuration.

The board initialization logic will run in either case and the simple
call to ``nxmu_start()`` will start the NX server.
The board initialization logic will run and the simple call to
``nxmu_start()`` will start the NX server.

#. The NX server may also be started later by the application via
:c:func:`boardctl` as:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ Device Drivers -> Memory Technology Device (MTD) Support
CONFIG_AT24XX_SIZE=512 : Specifies the AT 24C512 part
CONFIG_AT24XX_ADDR=0x53 : AT24 I2C address

Application Configuration -> NSH Library

.. code-block:: console

CONFIG_NSH_ARCHINIT=y : NSH board-initialization

File systems

.. code-block:: console
Expand Down
8 changes: 0 additions & 8 deletions boards/boardctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,14 +387,6 @@ int boardctl(unsigned int cmd, uintptr_t arg)

switch (cmd)
{
case BOARDIOC_INIT:
{
/* WARNING: deprecated, will be removed */

ret = -ENOTTY;
}
break;

#ifdef CONFIG_BOARDCTL_FINALINIT
/* CMD: BOARDIOC_FINALINIT
* DESCRIPTION: Perform one-time application initialization after
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ CONFIG_NET_ICMP_SOCKET=y
CONFIG_NET_TCP=y
CONFIG_NET_UDP=y
CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6
CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_BUILTIN_APPS=y
CONFIG_NSH_DISABLE_LOSMART=y
CONFIG_NSH_FILEIOSIZE=512
Expand Down
47 changes: 23 additions & 24 deletions include/sys/boardctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,30 +181,29 @@
* DEPENDENCIES: Board logic must provide the board_reset_cause() interface.
*/

#define BOARDIOC_INIT _BOARDIOC(0x0001)
#define BOARDIOC_FINALINIT _BOARDIOC(0x0002)
#define BOARDIOC_POWEROFF _BOARDIOC(0x0003)
#define BOARDIOC_RESET _BOARDIOC(0x0004)
#define BOARDIOC_PM_CONTROL _BOARDIOC(0x0005)
#define BOARDIOC_UNIQUEID _BOARDIOC(0x0006)
#define BOARDIOC_MKRD _BOARDIOC(0x0007)
#define BOARDIOC_ROMDISK _BOARDIOC(0x0008)
#define BOARDIOC_APP_SYMTAB _BOARDIOC(0x0009)
#define BOARDIOC_OS_SYMTAB _BOARDIOC(0x000a)
#define BOARDIOC_BUILTINS _BOARDIOC(0x000b)
#define BOARDIOC_USBDEV_CONTROL _BOARDIOC(0x000c)
#define BOARDIOC_NX_START _BOARDIOC(0x000d)
#define BOARDIOC_VNC_START _BOARDIOC(0x000e)
#define BOARDIOC_NXTERM _BOARDIOC(0x000f)
#define BOARDIOC_NXTERM_IOCTL _BOARDIOC(0x0010)
#define BOARDIOC_SPINLOCK _BOARDIOC(0x0011)
#define BOARDIOC_UNIQUEKEY _BOARDIOC(0x0012)
#define BOARDIOC_SWITCH_BOOT _BOARDIOC(0x0013)
#define BOARDIOC_BOOT_IMAGE _BOARDIOC(0x0014)
#define BOARDIOC_RESET_CAUSE _BOARDIOC(0x0015)
#define BOARDIOC_IRQ_AFFINITY _BOARDIOC(0x0016)
#define BOARDIOC_START_CPU _BOARDIOC(0x0017)
#define BOARDIOC_MACADDR _BOARDIOC(0x0018)
#define BOARDIOC_FINALINIT _BOARDIOC(0x0001)
#define BOARDIOC_POWEROFF _BOARDIOC(0x0002)
#define BOARDIOC_RESET _BOARDIOC(0x0003)
#define BOARDIOC_PM_CONTROL _BOARDIOC(0x0004)
#define BOARDIOC_UNIQUEID _BOARDIOC(0x0005)
#define BOARDIOC_MKRD _BOARDIOC(0x0006)
#define BOARDIOC_ROMDISK _BOARDIOC(0x0007)
#define BOARDIOC_APP_SYMTAB _BOARDIOC(0x0008)
#define BOARDIOC_OS_SYMTAB _BOARDIOC(0x0009)
#define BOARDIOC_BUILTINS _BOARDIOC(0x000a)
#define BOARDIOC_USBDEV_CONTROL _BOARDIOC(0x000b)
#define BOARDIOC_NX_START _BOARDIOC(0x000c)
#define BOARDIOC_VNC_START _BOARDIOC(0x000d)
#define BOARDIOC_NXTERM _BOARDIOC(0x000e)
#define BOARDIOC_NXTERM_IOCTL _BOARDIOC(0x000f)
#define BOARDIOC_SPINLOCK _BOARDIOC(0x0010)
#define BOARDIOC_UNIQUEKEY _BOARDIOC(0x0011)
#define BOARDIOC_SWITCH_BOOT _BOARDIOC(0x0012)
#define BOARDIOC_BOOT_IMAGE _BOARDIOC(0x0013)
#define BOARDIOC_RESET_CAUSE _BOARDIOC(0x0014)
#define BOARDIOC_IRQ_AFFINITY _BOARDIOC(0x0015)
#define BOARDIOC_START_CPU _BOARDIOC(0x0016)
#define BOARDIOC_MACADDR _BOARDIOC(0x0017)

/* If CONFIG_BOARDCTL_IOCTL=y, then board-specific commands will be support.
* In this case, all commands not recognized by boardctl() will be forwarded
Expand Down
Loading