VirtualBox

Changeset 5605 in vbox for trunk/include/VBox/pdmdev.h


Ignore:
Timestamp:
Nov 1, 2007 4:09:26 PM (17 years ago)
Author:
vboxsync
Message:

BIT => RT_BIT, BIT64 => RT_BIT_64. BIT() is defined in Linux 2.6.24

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdmdev.h

    r5525 r5605  
    332332 * @{ */
    333333/** Architecture device. */
    334 #define PDM_DEVREG_CLASS_ARCH           BIT(0)
     334#define PDM_DEVREG_CLASS_ARCH           RT_BIT(0)
    335335/** Architecture BIOS device. */
    336 #define PDM_DEVREG_CLASS_ARCH_BIOS      BIT(1)
     336#define PDM_DEVREG_CLASS_ARCH_BIOS      RT_BIT(1)
    337337/** PCI bus brigde. */
    338 #define PDM_DEVREG_CLASS_BUS_PCI        BIT(2)
     338#define PDM_DEVREG_CLASS_BUS_PCI        RT_BIT(2)
    339339/** ISA bus brigde. */
    340 #define PDM_DEVREG_CLASS_BUS_ISA        BIT(3)
     340#define PDM_DEVREG_CLASS_BUS_ISA        RT_BIT(3)
    341341/** Input device (mouse, keyboard, joystick,..). */
    342 #define PDM_DEVREG_CLASS_INPUT          BIT(4)
     342#define PDM_DEVREG_CLASS_INPUT          RT_BIT(4)
    343343/** Interrupt controller (PIC). */
    344 #define PDM_DEVREG_CLASS_PIC            BIT(5)
     344#define PDM_DEVREG_CLASS_PIC            RT_BIT(5)
    345345/** Interval controoler (PIT). */
    346 #define PDM_DEVREG_CLASS_PIT            BIT(6)
     346#define PDM_DEVREG_CLASS_PIT            RT_BIT(6)
    347347/** RTC/CMOS. */
    348 #define PDM_DEVREG_CLASS_RTC            BIT(7)
     348#define PDM_DEVREG_CLASS_RTC            RT_BIT(7)
    349349/** DMA controller. */
    350 #define PDM_DEVREG_CLASS_DMA            BIT(8)
     350#define PDM_DEVREG_CLASS_DMA            RT_BIT(8)
    351351/** VMM Device. */
    352 #define PDM_DEVREG_CLASS_VMM_DEV        BIT(9)
     352#define PDM_DEVREG_CLASS_VMM_DEV        RT_BIT(9)
    353353/** Graphics device, like VGA. */
    354 #define PDM_DEVREG_CLASS_GRAPHICS       BIT(10)
     354#define PDM_DEVREG_CLASS_GRAPHICS       RT_BIT(10)
    355355/** Storage controller device. */
    356 #define PDM_DEVREG_CLASS_STORAGE        BIT(11)
     356#define PDM_DEVREG_CLASS_STORAGE        RT_BIT(11)
    357357/** Network interface controller. */
    358 #define PDM_DEVREG_CLASS_NETWORK        BIT(12)
     358#define PDM_DEVREG_CLASS_NETWORK        RT_BIT(12)
    359359/** Audio. */
    360 #define PDM_DEVREG_CLASS_AUDIO          BIT(13)
     360#define PDM_DEVREG_CLASS_AUDIO          RT_BIT(13)
    361361/** USB HIC. */
    362 #define PDM_DEVREG_CLASS_BUS_USB        BIT(14)
     362#define PDM_DEVREG_CLASS_BUS_USB        RT_BIT(14)
    363363/** ACPI. */
    364 #define PDM_DEVREG_CLASS_ACPI           BIT(15)
     364#define PDM_DEVREG_CLASS_ACPI           RT_BIT(15)
    365365/** Serial controller device. */
    366 #define PDM_DEVREG_CLASS_SERIAL         BIT(16)
     366#define PDM_DEVREG_CLASS_SERIAL         RT_BIT(16)
    367367/** Parallel controller device */
    368 #define PDM_DEVREG_CLASS_PARALLEL       BIT(17)
     368#define PDM_DEVREG_CLASS_PARALLEL       RT_BIT(17)
    369369/** Misc devices (always last). */
    370 #define PDM_DEVREG_CLASS_MISC           BIT(31)
     370#define PDM_DEVREG_CLASS_MISC           RT_BIT(31)
    371371/** @} */
    372372
     
    376376 */
    377377/** Assert the IRQ (can assume value 1). */
    378 #define PDM_IRQ_LEVEL_HIGH          BIT(0)
     378#define PDM_IRQ_LEVEL_HIGH          RT_BIT(0)
    379379/** Deassert the IRQ (can assume value 0). */
    380380#define PDM_IRQ_LEVEL_LOW           0
    381381/** flip-flop - assert and then deassert it again immediately. */
    382 #define PDM_IRQ_LEVEL_FLIP_FLOP     (BIT(1) | PDM_IRQ_LEVEL_HIGH)
     382#define PDM_IRQ_LEVEL_FLIP_FLOP     (RT_BIT(1) | PDM_IRQ_LEVEL_HIGH)
    383383/** @} */
    384384
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