Changeset 28741 in vbox
- Timestamp:
- Apr 26, 2010 10:50:36 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r28739 r28741 383 383 ifeq ($(KBUILD_TARGET),linux) 384 384 VBOX_USB_WITH_SYSFS=1 385 VBOX_USB_WITH_FAM=1 385 386 endif 386 387 # Use the new VBI module on Solaris. -
trunk/src/VBox/Main/Makefile.kmk
r28555 r28741 224 224 $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \ 225 225 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \ 226 $(if $(VBOX_USB_WITH_FAM),VBOX_USB_WITH_FAM,) \ 226 227 $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \ 227 228 $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,) … … 277 278 VBoxSVC_LIBS.solaris += \ 278 279 devinfo 279 ifdef VBOX_USB_WITH_ SYSFS280 ifdef VBOX_USB_WITH_FAM 280 281 VBoxSVC_LIBS.linux += \ 281 282 fam -
trunk/src/VBox/Main/linux/HostHardwareLinux.cpp
r28682 r28741 58 58 59 59 #ifdef VBOX_USB_WITH_SYSFS 60 # include <fam.h> 60 # ifdef VBOX_USB_WITH_FAM 61 # include <fam.h> 62 # endif 61 63 #endif 62 64 … … 95 97 bool *pfSuccess); 96 98 #ifdef VBOX_USB_WITH_SYSFS 99 # ifdef VBOX_USB_WITH_FAM 97 100 static int getUSBDeviceInfoFromSysfs(USBDeviceInfoList *pList, bool *pfSuccess); 101 # endif 98 102 # ifdef VBOX_WITH_DBUS 99 103 /* These must be extern to be usable in the RTMemAutoPtr template */ … … 1043 1047 success = halSuccess; 1044 1048 # endif /* VBOX_WITH_DBUS */ 1049 # ifdef VBOX_USB_WITH_FAM 1045 1050 if ( RT_SUCCESS(rc) 1046 1051 && (!success || testing())) 1047 1052 rc = getUSBDeviceInfoFromSysfs(&mDeviceList, &success); 1053 # endif 1048 1054 #else /* !VBOX_USB_WITH_SYSFS */ 1049 1055 NOREF(success); … … 1182 1188 1183 1189 #ifdef VBOX_USB_WITH_SYSFS 1184 1185 #define SYSFS_USB_DEVICE_PATH "/dev/bus/usb" 1186 #define SYSFS_WAKEUP_STRING "Wake up!" 1190 # ifdef VBOX_USB_WITH_FAM 1191 1192 # define SYSFS_USB_DEVICE_PATH "/dev/bus/usb" 1193 # define SYSFS_WAKEUP_STRING "Wake up!" 1187 1194 1188 1195 class hotplugSysfsFAMImpl : public VBoxMainHotplugWaiterImpl … … 1333 1340 mfWaiting(0), mStatus(VERR_WRONG_ORDER) 1334 1341 { 1335 # ifdef DEBUG1342 # ifdef DEBUG 1336 1343 /* Excercise the code path (term() on a not-fully-initialised object) as 1337 1344 * well as we can. On an uninitialised object this method is a sematic … … 1342 1349 if (!testing()) 1343 1350 { 1344 # ifndef VBOX_USB_WITH_SYSFS_BY_DEFAULT1351 # ifndef VBOX_USB_WITH_SYSFS_BY_DEFAULT 1345 1352 Assert(!RTFileExists("/proc/bus/usb/devices")); 1346 # endif1347 # ifdef VBOX_WITH_DBUS1353 # endif 1354 # ifdef VBOX_WITH_DBUS 1348 1355 Assert(!hotplugDBusImpl::HalAvailable()); 1349 # endif1350 } 1351 # endif1356 # endif 1357 } 1358 # endif 1352 1359 int rc; 1353 1360 do { … … 1356 1363 if (RT_FAILURE(rc = initConnection())) 1357 1364 break; 1358 # ifdef DEBUG1365 # ifdef DEBUG 1359 1366 /** Other tests */ 1360 1367 testMonitorDirectoryFAM(); 1361 1368 testNextEventFAM(); 1362 1369 testCheckConnection(); 1363 # endif1370 # endif 1364 1371 } while(0); 1365 1372 mStatus = rc; … … 1492 1499 } 1493 1500 1501 # endif /* VBOX_USB_WITH_FAM */ 1494 1502 #endif /* VBOX_USB_WTH_SYSFS */ 1495 1503 … … 1504 1512 } 1505 1513 # endif /* VBOX_WITH_DBUS */ 1514 # ifdef VBOX_USB_WITH_FAM 1506 1515 if (hotplugSysfsFAMImpl::SysfsAvailable()) 1507 1516 { … … 1509 1518 return; 1510 1519 } 1520 # endif /* VBOX_USB_WITH_FAM */ 1511 1521 #endif /* VBOX_USB_WITH_SYSFS */ 1512 1522 mImpl = new hotplugNullImpl; … … 1514 1524 1515 1525 #ifdef VBOX_USB_WITH_SYSFS 1526 # ifdef VBOX_USB_WITH_FAM 1516 1527 class sysfsPathHandler 1517 1528 { … … 1724 1735 return rc; 1725 1736 } 1737 # endif /* VBOX_USB_WITH_FAM */ 1726 1738 #endif /* VBOX_USB_WITH_SYSFS */ 1727 1739 -
trunk/src/VBox/Main/testcase/Makefile.kmk
r28553 r28741 133 133 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \ 134 134 $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \ 135 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) 135 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \ 136 $(if $(VBOX_USB_WITH_FAM),VBOX_USB_WITH_FAM,) 136 137 tstHostHardwareLinux_LIBS += \ 137 138 $(PATH_OUT)/lib/USBLib.a \ 138 $(if $(VBOX_USB_WITH_ SYSFS),fam,)139 $(if $(VBOX_USB_WITH_FAM),fam,) 139 140 140 141
Note:
See TracChangeset
for help on using the changeset viewer.