儲存庫 vbox 的更動 18576
- 時間撮記:
- 2009-3-31 下午02:16:38 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/solaris/DRM/vboxvideo_drm.c
r18085 r18576 33 33 #include <VBox/version.h> 34 34 35 #ifdef DEBUG_ramshankar 36 # undef LogFlow 37 # undef Log 38 # define LogFlow LogRel 39 # define Log LogRel 40 #endif 35 41 36 42 /******************************************************************************* … … 69 75 * Structures and Typedefs * 70 76 *******************************************************************************/ 71 /** 72 * cb_ops: for drivers that support char/block entry points 73 */ 74 static struct cb_ops g_VBoxVideoSolarisCbOps = 75 { 76 nodev, /* c open */ 77 nodev, /* c close */ 78 nodev, /* b strategy */ 79 nodev, /* b dump */ 80 nodev, /* b print */ 81 nodev, /* c read */ 82 nodev, /* c write*/ 83 nodev, /* ioctl */ 84 nodev, /* c devmap */ 85 nodev, /* c mmap */ 86 nodev, /* c segmap */ 87 nochpoll, /* c poll */ 88 ddi_prop_op, /* property ops */ 89 NULL, /* streamtab */ 90 D_NEW | D_MP, /* compat. flag */ 91 CB_REV /* revision */ 92 }; 77 extern struct cb_ops drm_cb_ops; 93 78 94 79 /** … … 105 90 VBoxVideoSolarisDetach, 106 91 nodev, /* reset */ 107 & g_VBoxVideoSolarisCbOps,108 (struct bus_ops *)0,109 nodev/* power */92 &drm_cb_ops, 93 NULL, /* dev bus ops*/ 94 NULL /* power */ 110 95 }; 111 96 … … 149 134 static void *g_pVBoxVideoSolarisState; 150 135 151 /** GCC C++ hack. */152 unsigned __gxx_personality_v0 = 0xdecea5ed;153 154 136 155 137 /** … … 158 140 int _init(void) 159 141 { 160 LogFlow((DEVICE_NAME ":_init\n")); 142 LogFlow((DEVICE_NAME ":_init flow\n")); 143 cmn_err(CE_NOTE, DEVICE_NAME ":_init\n"); 144 145 vboxVideoSolarisConfigure(&g_VBoxVideoSolarisDRMDriver); 161 146 int rc = ddi_soft_state_init(&g_pVBoxVideoSolarisState, sizeof(drm_device_t), DRM_MAX_INSTANCES); 162 147 if (!rc) … … 169 154 int _fini(void) 170 155 { 171 LogFlow((DEVICE_NAME ":_fini\n")); 156 LogFlow((DEVICE_NAME ":_fini flow\n")); 157 cmn_err(CE_NOTE, DEVICE_NAME ":_fini\n"); 172 158 int rc = mod_remove(&g_VBoxVideoSolarisModLinkage); 173 159 ddi_soft_state_fini(&g_pVBoxVideoSolarisState); … … 178 164 int _info(struct modinfo *pModInfo) 179 165 { 180 LogFlow((DEVICE_NAME ":_info\n")); 166 LogFlow((DEVICE_NAME ":_info flow\n")); 167 cmn_err(CE_NOTE, DEVICE_NAME ":_info\n"); 181 168 return mod_info(&g_VBoxVideoSolarisModLinkage, pModInfo); 182 169 } … … 194 181 { 195 182 LogFlow((DEVICE_NAME ":VBoxVideoSolarisAttach pDip=%p enmCmd=%d\n", pDip, enmCmd)); 183 cmn_err(CE_NOTE, DEVICE_NAME ":attach\n"); 196 184 197 185 int rc = -1; … … 208 196 pState->dip = pDip; 209 197 pState->driver = &g_VBoxVideoSolarisDRMDriver; 210 198 211 199 /* 212 200 * Register using the DRM module which will create the minor nodes … … 216 204 { 217 205 pState->drm_handle = pDRMHandle; 218 206 219 207 /* 220 208 * Probe with our pci-id. … … 333 321 } 334 322 else 335 { 323 { 336 324 LogRel((DEVICE_NAME ":VBoxGuestSolarisGetInfo state or state's devinfo invalid.\n")); 337 325 rc = DDI_FAILURE;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器