VirtualBox

Changeset 44514 in vbox for trunk/src/VBox/ExtPacks


Ignore:
Timestamp:
Feb 1, 2013 2:26:03 PM (12 years ago)
Author:
vboxsync
Message:

DevACPI cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/BusMouseSample/BusMouse.cpp

    r44446 r44514  
    55
    66/*
    7  * Copyright (C) 2006-2011 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * Permission is hereby granted, free of charge, to any person
     
    119119*   Structures and Typedefs                                                    *
    120120*******************************************************************************/
    121 typedef struct MouState {
     121/**
     122 * The device state.
     123 */
     124typedef struct MouState
     125{
    122126    /* 8255A state */
    123127    uint8_t         port_a;
     
    125129    uint8_t         port_c;
    126130    uint8_t         ctrl_port;
    127     uint8_t         cnt_held;   /* Counters held for reading. */
     131    uint8_t         cnt_held;   /**< Counters held for reading. */
    128132    uint8_t         held_dx;
    129133    uint8_t         held_dy;
    130     uint8_t         irq;        /* The "jumpered" IRQ level. */
     134    uint8_t         irq;        /**< The "jumpered" IRQ level. */
    131135    int32_t         irq_toggle_counter;
    132136    /** Mouse timer handle - HC. */
     
    703707
    704708/**
    705  * Destruct a device instance for a VM.
    706  *
    707  * @returns VBox status.
    708  * @param   pDevIns     The device instance data.
    709  */
    710 static DECLCALLBACK(int) mouDestruct(PPDMDEVINS pDevIns)
    711 {
    712     MouState   *pThis = PDMINS_2_DATA(pDevIns, MouState *);
    713     PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns);
    714 
    715     return VINF_SUCCESS;
    716 }
    717 
    718 
    719 /**
    720709 * @interface_method_impl{PDMDEVREG,pfnConstruct}
    721710 */
     
    827816    "LUN #0 is the mouse connector.",
    828817    /* fFlags */
    829     PDM_DEVREG_FLAGS_HOST_BITS_DEFAULT | PDM_DEVREG_FLAGS_GUEST_BITS_32_64 | PDM_DEVREG_FLAGS_PAE36 | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0,
     818    PDM_DEVREG_FLAGS_HOST_BITS_DEFAULT | PDM_DEVREG_FLAGS_GUEST_BITS_32_64 | PDM_DEVREG_FLAGS_PAE36
     819    | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0,
    830820    /* fClass */
    831821    PDM_DEVREG_CLASS_INPUT,
     
    837827    mouConstruct,
    838828    /* pfnDestruct */
    839     mouDestruct,
     829    NULL,
    840830    /* pfnRelocate */
    841831    mouRelocate,
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