VirtualBox

Changeset 69065 in vbox


Ignore:
Timestamp:
Oct 12, 2017 6:48:38 PM (7 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: remove dependencies on more VirtualBox headers.
bugref:9017: Additions/x11: put vboxvideo into upstream X.Org

Remove dependencies on product-generated.h, revision-generated.h and
VBox/param.h. Remove dependency on the subversion revision. Hard-code
the PCI Ids in the driver header and hard code the vendor name (used in one
place only) to Oracle Corporation.

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/setmode.c

    r69064 r69065  
    4848#endif
    4949#include "vboxvideo.h"
    50 #include "version-generated.h"
    51 #include "product-generated.h"
    5250#include "xf86.h"
    5351
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r69064 r69065  
    4444
    4545#include "vboxvideo.h"
    46 #include <VBox/param.h> /* for VBOX_DEVICEID and VBOX_VENDORID */
    4746#include <VBox/VBoxGuestLib.h>
    4847#include <VBoxVideoVBE.h>
    49 #include "version-generated.h"
    50 #include "product-generated.h"
    51 #include "revision-generated.h"
    5248
    5349/* Basic definitions and functions needed by all drivers. */
     
    598594{
    599595    VBOX_DRIVER_NAME,
    600     VBOX_VENDOR,
     596    "Oracle Corporation",
    601597    MODINFOSTRING1,
    602598    MODINFOSTRING2,
     
    849845        return (FALSE);
    850846
    851     xf86DrvMsg(pScrn->scrnIndex, X_INFO, "VirtualBox guest additions video driver version " VBOX_VERSION_STRING "r%d\n",
    852                VBOX_SVN_REV);
     847    xf86DrvMsg(pScrn->scrnIndex, X_INFO,
     848               "VirtualBox guest additions video driver version %d.%d\n",
     849               VBOX_VERSION_MAJOR, VBOX_VERSION_MINOR);
    853850
    854851    /* The ramdac module is needed for the hardware cursor. */
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r69064 r69065  
    4646#include <VBoxVideo.h>
    4747#include "version-generated.h"
     48
     49#define VBOX_VENDORID 0x80EE
     50#define VBOX_DEVICEID 0xBEEF
    4851
    4952#ifndef VBVA_SCREEN_F_BLANK
     
    98101#include "xf86Cursor.h"
    99102
    100 #define VBOX_VERSION            VBOX_VERSION_MAJOR * 10000 + VBOX_VERSION_MINOR * 100 + VBOX_VERSION_BUILD
     103#define VBOX_VERSION            VBOX_VERSION_MAJOR * 10000 \
     104                              + VBOX_VERSION_MINOR * 100
    101105#define VBOX_NAME               "VBoxVideo"
    102106#define VBOX_DRIVER_NAME        "vboxvideo"
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