VirtualBox

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


Ignore:
Timestamp:
Oct 3, 2008 11:28:44 PM (16 years ago)
Author:
vboxsync
Message:

PDM: PDM_DEVREG_FLAGS_DEFAULT_BITS convenience.

File:
1 edited

Legend:

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

    r12977 r12978  
    301301
    302302/** Current DEVREG version number. */
    303 #define PDM_DEVREG_VERSION  0xc0020000
     303#define PDM_DEVREG_VERSION                      0xc0020000
    304304
    305305/** PDM Device Flags.
     
    340340#define PDM_DEVREG_FLAGS_GUEST_BITS_MASK        0x00000300
    341341
     342/** A convenience. */
     343#define PDM_DEVREG_FLAGS_DEFAULT_BITS           (PDM_DEVREG_FLAGS_GUEST_BITS_DEFAULT | PDM_DEVREG_FLAGS_HOST_BITS_DEFAULT)
     344
    342345/** Indicates that the devices support PAE36 on a 32-bit guest. */
    343346#define PDM_DEVREG_FLAGS_PAE36                  0x00001000
     
    349352 * @{ */
    350353/** Architecture device. */
    351 #define PDM_DEVREG_CLASS_ARCH           RT_BIT(0)
     354#define PDM_DEVREG_CLASS_ARCH                   RT_BIT(0)
    352355/** Architecture BIOS device. */
    353 #define PDM_DEVREG_CLASS_ARCH_BIOS      RT_BIT(1)
     356#define PDM_DEVREG_CLASS_ARCH_BIOS              RT_BIT(1)
    354357/** PCI bus brigde. */
    355 #define PDM_DEVREG_CLASS_BUS_PCI        RT_BIT(2)
     358#define PDM_DEVREG_CLASS_BUS_PCI                RT_BIT(2)
    356359/** ISA bus brigde. */
    357 #define PDM_DEVREG_CLASS_BUS_ISA        RT_BIT(3)
     360#define PDM_DEVREG_CLASS_BUS_ISA                RT_BIT(3)
    358361/** Input device (mouse, keyboard, joystick, HID, ...). */
    359 #define PDM_DEVREG_CLASS_INPUT          RT_BIT(4)
     362#define PDM_DEVREG_CLASS_INPUT                  RT_BIT(4)
    360363/** Interrupt controller (PIC). */
    361 #define PDM_DEVREG_CLASS_PIC            RT_BIT(5)
     364#define PDM_DEVREG_CLASS_PIC                    RT_BIT(5)
    362365/** Interval controoler (PIT). */
    363 #define PDM_DEVREG_CLASS_PIT            RT_BIT(6)
     366#define PDM_DEVREG_CLASS_PIT                    RT_BIT(6)
    364367/** RTC/CMOS. */
    365 #define PDM_DEVREG_CLASS_RTC            RT_BIT(7)
     368#define PDM_DEVREG_CLASS_RTC                    RT_BIT(7)
    366369/** DMA controller. */
    367 #define PDM_DEVREG_CLASS_DMA            RT_BIT(8)
     370#define PDM_DEVREG_CLASS_DMA                    RT_BIT(8)
    368371/** VMM Device. */
    369 #define PDM_DEVREG_CLASS_VMM_DEV        RT_BIT(9)
     372#define PDM_DEVREG_CLASS_VMM_DEV                RT_BIT(9)
    370373/** Graphics device, like VGA. */
    371 #define PDM_DEVREG_CLASS_GRAPHICS       RT_BIT(10)
     374#define PDM_DEVREG_CLASS_GRAPHICS               RT_BIT(10)
    372375/** Storage controller device. */
    373 #define PDM_DEVREG_CLASS_STORAGE        RT_BIT(11)
     376#define PDM_DEVREG_CLASS_STORAGE                RT_BIT(11)
    374377/** Network interface controller. */
    375 #define PDM_DEVREG_CLASS_NETWORK        RT_BIT(12)
     378#define PDM_DEVREG_CLASS_NETWORK                RT_BIT(12)
    376379/** Audio. */
    377 #define PDM_DEVREG_CLASS_AUDIO          RT_BIT(13)
     380#define PDM_DEVREG_CLASS_AUDIO                  RT_BIT(13)
    378381/** USB HIC. */
    379 #define PDM_DEVREG_CLASS_BUS_USB        RT_BIT(14)
     382#define PDM_DEVREG_CLASS_BUS_USB                RT_BIT(14)
    380383/** ACPI. */
    381 #define PDM_DEVREG_CLASS_ACPI           RT_BIT(15)
     384#define PDM_DEVREG_CLASS_ACPI                   RT_BIT(15)
    382385/** Serial controller device. */
    383 #define PDM_DEVREG_CLASS_SERIAL         RT_BIT(16)
     386#define PDM_DEVREG_CLASS_SERIAL                 RT_BIT(16)
    384387/** Parallel controller device */
    385 #define PDM_DEVREG_CLASS_PARALLEL       RT_BIT(17)
     388#define PDM_DEVREG_CLASS_PARALLEL               RT_BIT(17)
    386389/** Misc devices (always last). */
    387 #define PDM_DEVREG_CLASS_MISC           RT_BIT(31)
     390#define PDM_DEVREG_CLASS_MISC                   RT_BIT(31)
    388391/** @} */
    389392
     
    393396 */
    394397/** Assert the IRQ (can assume value 1). */
    395 #define PDM_IRQ_LEVEL_HIGH          RT_BIT(0)
     398#define PDM_IRQ_LEVEL_HIGH                      RT_BIT(0)
    396399/** Deassert the IRQ (can assume value 0). */
    397400#define PDM_IRQ_LEVEL_LOW           0
    398401/** flip-flop - assert and then deassert it again immediately. */
    399 #define PDM_IRQ_LEVEL_FLIP_FLOP     (RT_BIT(1) | PDM_IRQ_LEVEL_HIGH)
     402#define PDM_IRQ_LEVEL_FLIP_FLOP                 (RT_BIT(1) | PDM_IRQ_LEVEL_HIGH)
    400403/** @} */
    401404
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