Changeset 147 for sbliveos2/trunk/drv16/init.cpp
- Timestamp:
- Apr 24, 2000, 9:45:21 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/drv16/init.cpp
r142 r147 56 56 #include <sbversion.h> 57 57 58 #ifndef PCI_VENDOR_ID_CREATIVE 59 #define PCI_VENDOR_ID_CREATIVE 0x1102UL 60 #endif 61 62 #ifndef PCI_DEVICE_ID_CREATIVE_EMU10K1 63 #define PCI_DEVICE_ID_CREATIVE_EMU10K1 0x0002UL 64 #endif 65 #define PCI_ID ((PCI_VENDOR_ID_CREATIVE<<16UL)|PCI_DEVICE_ID_CREATIVE_EMU10K1) 66 58 67 // Default MIDI timer interval, milliseconds. 59 68 static USHORT MIDI_TimerInterval = 10; … … 62 71 static char szCopyRight[] = "Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)"; 63 72 static char NEWLINE[] = "\r\n"; 73 static char szSBLiveNotFound[] = "SB Live! hardware not detected!"; 74 static char szAltF1[] = "Reboot, press Alt-F1 during OS/2 startup and select Enable Hardware Detection"; 64 75 65 76 // … … 122 133 memcpy(phdr->abName,szCL_DevName,8); // yes, copy it to the dev header 123 134 124 // Resources identified by the Resource Manager are saved into the125 // *pResourcesWSS and *pResourcesICS objects, repectively.126 127 135 pRM = new ResourceManager(); // Create the RM object. 128 136 if (! pRM) { … … 131 139 else if (pRM->getState() != rmDriverCreated) { 132 140 return; 141 } 142 143 //SvL: Check if SB Live hardware has been detected by the resource manager 144 // If not, tell user to reboot, press alt-f1 and enable hardware detection 145 if(!pRM->bIsDevDetected(PCI_ID, SEARCH_ID_DEVICEID, TRUE)) { 146 USHORT result; 147 148 DosWrite(1, (VOID FAR*)szSBLiveNotFound, strlen(szSBLiveNotFound), &result); 149 DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result); 150 DosWrite(1, (VOID FAR*)szAltF1, sizeof(szAltF1), &result); 151 DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result); 152 return; 133 153 } 134 154
Note:
See TracChangeset
for help on using the changeset viewer.