VirtualBox

Changeset 68848 in vbox for trunk/include


Ignore:
Timestamp:
Sep 24, 2017 4:58:46 PM (7 years ago)
Author:
vboxsync
Message:

Additions/linux/drm: lots of formatting changes to match kernel style.
bugref:8524: Additions/linux: play nicely with distribution-installed Additions

This change makes a lot of formatting changes to the Linux Additions drm
driver, with no intended changes to functionality, and much of the
formatting change done using the sed script which installs the driver
sources to the Additions archive. Hans de Goede's clean-up of the driver for
submission to staging is the base for these changes.

Location:
trunk/include/VBox/Graphics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/Graphics/HGSMIChSetup.h

    r68672 r68848  
    3131
    3232/* HGSMI setup and configuration channel commands and data structures. */
    33 #define HGSMI_CC_HOST_FLAGS_LOCATION 0 /* Tell the host the location of HGSMIHOSTFLAGS structure,
    34                                         * where the host can write information about pending
    35                                         * buffers, etc, and which can be quickly polled by
    36                                         * the guest without a need to port IO.
    37                                         */
     33/*
     34 * Tell the host the location of hgsmi_host_flags structure, where the host
     35 * can write information about pending buffers, etc, and which can be quickly
     36 * polled by the guest without a need to port IO.
     37 */
     38#define HGSMI_CC_HOST_FLAGS_LOCATION 0
    3839
    3940typedef struct HGSMIBUFFERLOCATION
     
    4647/* HGSMI setup and configuration data structures. */
    4748/* host->guest commands pending, should be accessed under FIFO lock only */
    48 #define HGSMIHOSTFLAGS_COMMANDS_PENDING    UINT32_C(0x1)
     49#define HGSMIHOSTFLAGS_COMMANDS_PENDING    UINT32_C(0x01)
    4950/* IRQ is fired, should be accessed under VGAState::lock only  */
    50 #define HGSMIHOSTFLAGS_IRQ                 UINT32_C(0x2)
     51#define HGSMIHOSTFLAGS_IRQ                 UINT32_C(0x02)
    5152#ifdef VBOX_WITH_WDDM
    5253/* one or more guest commands is completed, should be accessed under FIFO lock only */
    53 # define HGSMIHOSTFLAGS_GCOMMAND_COMPLETED UINT32_C(0x4)
     54# define HGSMIHOSTFLAGS_GCOMMAND_COMPLETED UINT32_C(0x04)
    5455/* watchdog timer interrupt flag (used for debugging), should be accessed under VGAState::lock only */
    55 # define HGSMIHOSTFLAGS_WATCHDOG           UINT32_C(0x8)
     56# define HGSMIHOSTFLAGS_WATCHDOG           UINT32_C(0x08)
    5657#endif
    5758/* vsync interrupt flag, should be accessed under VGAState::lock only */
     
    5960/** monitor hotplug flag, should be accessed under VGAState::lock only */
    6061#define HGSMIHOSTFLAGS_HOTPLUG             UINT32_C(0x20)
    61 /** Cursor capability state change flag, should be accessed under
    62  * VGAState::lock only.  @see VBVACONF32. */
     62/**
     63 * Cursor capability state change flag, should be accessed under
     64 * VGAState::lock only.  @see VBVACONF32.
     65 */
    6366#define HGSMIHOSTFLAGS_CURSOR_CAPABILITIES UINT32_C(0x40)
    6467
    6568typedef struct HGSMIHOSTFLAGS
    6669{
    67     /* host flags can be accessed and modified in multiple threads concurrently,
    68      * e.g. CrOpenGL HGCM and GUI threads when to completing HGSMI 3D and Video Accel respectively,
    69      * EMT thread when dealing with HGSMI command processing, etc.
    70      * Besides settings/cleaning flags atomically, some each flag has its own special sync restrictions,
    71      * see commants for flags definitions above */
     70    /*
     71     * Host flags can be accessed and modified in multiple threads
     72     * concurrently, e.g. CrOpenGL HGCM and GUI threads when completing
     73     * HGSMI 3D and Video Accel respectively, EMT thread when dealing with
     74     * HGSMI command processing, etc.
     75     * Besides settings/cleaning flags atomically, some flags have their
     76     * own special sync restrictions, see comments for flags above.
     77     */
    7278    volatile uint32_t u32HostFlags;
    7379    uint32_t au32Reserved[3];
     
    7682
    7783#endif
    78 
  • trunk/include/VBox/Graphics/HGSMIChannels.h

    r66544 r68848  
    3333
    3434
    35 /* Each channel has an 8 bit identifier. There are a number of predefined
     35/*
     36 * Each channel has an 8 bit identifier. There are a number of predefined
    3637 * (hardcoded) channels.
    3738 *
     
    3940 * to a free 16 bit numerical value. values are allocated in range
    4041 * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST].
    41  *
    4242 */
    4343
    4444
    4545/* Predefined channel identifiers. Used internally by VBOX to simplify the channel setup. */
    46 #define HGSMI_CH_RESERVED     (0x00) /* A reserved channel value. */
    47 
    48 #define HGSMI_CH_HGSMI        (0x01) /* HGCMI: setup and configuration channel. */
    49 
    50 #define HGSMI_CH_VBVA         (0x02) /* Graphics: VBVA. */
    51 #define HGSMI_CH_SEAMLESS     (0x03) /* Graphics: Seamless with a single guest region. */
    52 #define HGSMI_CH_SEAMLESS2    (0x04) /* Graphics: Seamless with separate host windows. */
    53 #define HGSMI_CH_OPENGL       (0x05) /* Graphics: OpenGL HW acceleration. */
     46/* A reserved channel value */
     47#define HGSMI_CH_RESERVED     0x00
     48/* HGCMI: setup and configuration */
     49#define HGSMI_CH_HGSMI        0x01
     50/* Graphics: VBVA */
     51#define HGSMI_CH_VBVA         0x02
     52/* Graphics: Seamless with a single guest region */
     53#define HGSMI_CH_SEAMLESS     0x03
     54/* Graphics: Seamless with separate host windows */
     55#define HGSMI_CH_SEAMLESS2    0x04
     56/* Graphics: OpenGL HW acceleration */
     57#define HGSMI_CH_OPENGL       0x05
    5458
    5559
    5660/* Dynamically allocated channel identifiers. */
    57 #define HGSMI_CH_STRING_FIRST (0x20) /* The first channel index to be used for string mappings (inclusive). */
    58 #define HGSMI_CH_STRING_LAST  (0xff) /* The last channel index for string mappings (inclusive). */
     61/* The first channel index to be used for string mappings (inclusive) */
     62#define HGSMI_CH_STRING_FIRST 0x20
     63/* The last channel index for string mappings (inclusive) */
     64#define HGSMI_CH_STRING_LAST  0xff
    5965
    6066
    61 /* Check whether the channel identifier is allocated for a dynamic channel. */
     67/* Check whether the channel identifier is allocated for a dynamic channel */
    6268#define HGSMI_IS_DYNAMIC_CHANNEL(_channel) (((uint8_t)(_channel) & 0xE0) != 0)
    6369
  • trunk/include/VBox/Graphics/VBoxVideoGuest.h

    r68672 r68848  
    2929#define ___VBox_Graphics_VBoxVideoGuest_h___
    3030
     31#include "VBoxVideoIPRT.h"
    3132#include "HGSMIBase.h"
    3233#include "VBoxVideo.h"
    33 #include "VBoxVideoIPRT.h"
    3434
    3535RT_C_DECLS_BEGIN
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette