Changeset 44514 in vbox for trunk/src/VBox/ExtPacks
- Timestamp:
- Feb 1, 2013 2:26:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/BusMouseSample/BusMouse.cpp
r44446 r44514 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * Permission is hereby granted, free of charge, to any person … … 119 119 * Structures and Typedefs * 120 120 *******************************************************************************/ 121 typedef struct MouState { 121 /** 122 * The device state. 123 */ 124 typedef struct MouState 125 { 122 126 /* 8255A state */ 123 127 uint8_t port_a; … … 125 129 uint8_t port_c; 126 130 uint8_t ctrl_port; 127 uint8_t cnt_held; /* Counters held for reading. */131 uint8_t cnt_held; /**< Counters held for reading. */ 128 132 uint8_t held_dx; 129 133 uint8_t held_dy; 130 uint8_t irq; /* The "jumpered" IRQ level. */134 uint8_t irq; /**< The "jumpered" IRQ level. */ 131 135 int32_t irq_toggle_counter; 132 136 /** Mouse timer handle - HC. */ … … 703 707 704 708 /** 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 /**720 709 * @interface_method_impl{PDMDEVREG,pfnConstruct} 721 710 */ … … 827 816 "LUN #0 is the mouse connector.", 828 817 /* 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, 830 820 /* fClass */ 831 821 PDM_DEVREG_CLASS_INPUT, … … 837 827 mouConstruct, 838 828 /* pfnDestruct */ 839 mouDestruct,829 NULL, 840 830 /* pfnRelocate */ 841 831 mouRelocate,
Note:
See TracChangeset
for help on using the changeset viewer.