Moved mpu401 into sound
[reactos.git] / reactos / drivers / sound / sound / sb16.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: services/dd/sound/sb16.c
6 * PURPOSE: SB16 device driver
7 * PROGRAMMER: Steven Edwards
8 * UPDATE HISTORY:
9 * 19/01/04 Created
10 *
11 */
12
13 /* INCLUDES ****************************************************************/
14
15 #include <ntddk.h>
16
17 NTSTATUS STDCALL
18 DriverEntry(PDRIVER_OBJECT DriverObject,
19 PUNICODE_STRING RegistryPath);
20
21 #define NDEBUG
22 #include <debug.h>
23
24 NTSTATUS STDCALL
25 DriverEntry(PDRIVER_OBJECT DriverObject,
26 PUNICODE_STRING RegistryPath)
27 /*
28 * FUNCTION: Called by the system to initalize the driver
29 * ARGUMENTS:
30 * DriverObject = object describing this driver
31 * RegistryPath = path to our configuration entries
32 * RETURNS: Success or failure
33 */
34 {
35 PDEVICE_OBJECT DeviceObject;
36 UNICODE_STRING DeviceName = RTL_CONSTANT_STRING(L"\\Device\\SNDBLST");
37 UNICODE_STRING SymlinkName = RTL_CONSTANT_STRING(L"\\??\\SNDBLST");
38 NTSTATUS Status;
39
40 DPRINT1("Sound Blaster 16 Driver 0.0.1\n");
41
42 DriverObject->Flags = 0;
43
44 Status = IoCreateDevice(DriverObject,
45 0,
46 &DeviceName,
47 FILE_DEVICE_BEEP,
48 0,
49 FALSE,
50 &DeviceObject);
51 if (!NT_SUCCESS(Status))
52 return Status;
53
54 /* Create the dos device link */
55 IoCreateSymbolicLink(&SymlinkName,
56 &DeviceName);
57
58 return(STATUS_SUCCESS);
59 }
60
61 /* EOF */