VirtualBox

Changeset 66507 in vbox for trunk/include/VBox/Graphics


Ignore:
Timestamp:
Apr 11, 2017 10:15:57 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114507
Message:

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
Rename VBoxVideoCmnPort* macros to VBVO_PORT_* to fit in with our naming conventions and improve aesthetics.

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

Legend:

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

    r66506 r66507  
    114114DECLINLINE(void) VBoxHGSMIClearIrq(PHGSMIHOSTCOMMANDCONTEXT pCtx)
    115115{
    116     VBoxVideoCmnPortWriteUlong(pCtx->port, HGSMIOFFSET_VOID);
     116    VBVO_PORT_WRITE_U32(pCtx->port, HGSMIOFFSET_VOID);
    117117}
    118118
  • trunk/include/VBox/Graphics/VBoxVideoIPRT.h

    r66506 r66507  
    4747
    4848/** Write an 8-bit value to an I/O port. */
    49 # define VBoxVideoCmnPortWriteUchar(Port, Value) \
     49# define VBVO_PORT_WRITE_U8(Port, Value) \
    5050    VideoPortWritePortUchar((PUCHAR)Port, Value)
    5151/** Write a 16-bit value to an I/O port. */
    52 # define VBoxVideoCmnPortWriteUshort(Port, Value) \
     52# define VBVO_PORT_WRITE_U16(Port, Value) \
    5353    VideoPortWritePortUshort((PUSHORT)Port, Value)
    5454/** Write a 32-bit value to an I/O port. */
    55 # define VBoxVideoCmnPortWriteUlong(Port, Value) \
     55# define VBVO_PORT_WRITE_U32(Port, Value) \
    5656    VideoPortWritePortUlong((PULONG)Port, Value)
    5757/** Read an 8-bit value from an I/O port. */
    58 # define VBoxVideoCmnPortReadUchar(Port) \
     58# define VBVO_PORT_READ_U8(Port) \
    5959    VideoPortReadPortUchar((PUCHAR)Port)
    6060/** Read a 16-bit value from an I/O port. */
    61 # define VBoxVideoCmnPortReadUshort(Port) \
     61# define VBVO_PORT_READ_U16(Port) \
    6262    VideoPortReadPortUshort((PUSHORT)Port)
    6363/** Read a 32-bit value from an I/O port. */
    64 # define VBoxVideoCmnPortReadUlong(Port) \
     64# define VBVO_PORT_READ_U32(Port) \
    6565    VideoPortReadPortUlong((PULONG)Port)
    6666   
     
    6868
    6969/** Write an 8-bit value to an I/O port. */
    70 # define VBoxVideoCmnPortWriteUchar(Port, Value) \
     70# define VBVO_PORT_WRITE_U8(Port, Value) \
    7171    outb(Port, Value)
    7272/** Write a 16-bit value to an I/O port. */
    73 # define VBoxVideoCmnPortWriteUshort(Port, Value) \
     73# define VBVO_PORT_WRITE_U16(Port, Value) \
    7474    outw(Port, Value)
    7575/** Write a 32-bit value to an I/O port. */
    76 # define VBoxVideoCmnPortWriteUlong(Port, Value) \
     76# define VBVO_PORT_WRITE_U32(Port, Value) \
    7777    outl(Port, Value)
    7878/** Read an 8-bit value from an I/O port. */
    79 # define VBoxVideoCmnPortReadUchar(Port) \
     79# define VBVO_PORT_READ_U8(Port) \
    8080    inb(Port)
    8181/** Read a 16-bit value from an I/O port. */
    82 # define VBoxVideoCmnPortReadUshort(Port) \
     82# define VBVO_PORT_READ_U16(Port) \
    8383    inw(Port)
    8484/** Read a 32-bit value from an I/O port. */
    85 # define VBoxVideoCmnPortReadUlong(Port) \
     85# define VBVO_PORT_READ_U32(Port) \
    8686    inl(Port)
    8787
     
    8989
    9090/** Write an 8-bit value to an I/O port. */
    91 # define VBoxVideoCmnPortWriteUchar(Port, Value) \
     91# define VBVO_PORT_WRITE_U8(Port, Value) \
    9292    ASMOutU8(Port, Value)
    9393/** Write a 16-bit value to an I/O port. */
    94 # define VBoxVideoCmnPortWriteUshort(Port, Value) \
     94# define VBVO_PORT_WRITE_U16(Port, Value) \
    9595    ASMOutU16(Port, Value)
    9696/** Write a 32-bit value to an I/O port. */
    97 # define VBoxVideoCmnPortWriteUlong(Port, Value) \
     97# define VBVO_PORT_WRITE_U32(Port, Value) \
    9898    ASMOutU32(Port, Value)
    9999/** Read an 8-bit value from an I/O port. */
    100 # define VBoxVideoCmnPortReadUchar(Port) \
     100# define VBVO_PORT_READ_U8(Port) \
    101101    ASMInU8(Port)
    102102/** Read a 16-bit value from an I/O port. */
    103 # define VBoxVideoCmnPortReadUshort(Port) \
     103# define VBVO_PORT_READ_U16(Port) \
    104104    ASMInU16(Port)
    105105/** Read a 32-bit value from an I/O port. */
    106 # define VBoxVideoCmnPortReadUlong(Port) \
     106# define VBVO_PORT_READ_U32(Port) \
    107107    ASMInU32(Port)
    108108#endif
Note: See TracChangeset for help on using the changeset viewer.

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