From: Don Burn on 1 Oct 2007 08:35 That article is only for Windows NT, not for Windows 2000/XP/2003/Vista or Longhorn. What do you mean by 2 drivers with interrupt in the same device? If you mean one interrupt and interrupt control register then you probably will need to write a bus driver if you want seperate drivers for the devices. If you mean sperate interrupts triggering on the same interrupt line, then just write your driver. Since you are new to this take a look at KMDF this will simplify you development a lot. Get the book "Developing Drivers for the Windows Driver Foundation" and get the latest WDK http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx. -- Don Burn (MVP, Windows DDK) Windows 2k/XP/2k3 Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr Remove StopSpam to reply "Hasitha" <Hasitha(a)discussions.microsoft.com> wrote in message news:52F6AD21-BDBF-426A-BFB3-9B8973166AEE(a)microsoft.com... >> The reason is that you are using an unsupported mechanism to get your >> resources. You should write your driver as a PnP driver. How do you >> expect to install your driver? > I am new for the this fied. I got info from here. > http://support.microsoft.com/default.aspx/kb/152044 > if i write PNP driver can i use 2 drivers whth interrupt in same device. > >
From: Maxim S. Shatskih on 4 Oct 2007 16:16 HalAssignSlotResources is obsolete since year 2000. Write a WDM PnP driver, possibly using KMDF framework. HalAssignSlotResources is NT4 function, using it in a driver will disable all power management on the machine. -- Maxim Shatskih, Windows DDK MVP StorageCraft Corporation maxim(a)storagecraft.com http://www.storagecraft.com "Hasitha" <Hasitha(a)discussions.microsoft.com> wrote in message news:C652F62D-3814-4AC3-A06A-3588B4CC420F(a)microsoft.com... > Hi all, > Thank you very much in advance. > > I am writing 3 drivers for one PCI device. Each driver have separate > functionality. > they are use interrupts. I use > > NtStatus = HalAssignSlotResources (RegistryPath, > NULL, > pDriverObject, > pDeviceObject, > PCIBus, > bus_number, > slot.u.AsULONG, > &Resources); > for(i= 0; i<Resources->List[0].PartialResourceList.Count; i++){ > if(Resources->List[0].PartialResourceList.PartialDescriptors[i].Type > ==CmResourceTypeInterrupt ){ > intLeval > =Resources->List[0].PartialResourceList.PartialDescriptors[i].u.Interrupt.Level ; > > intVector=Resources->List[0].PartialResourceList.PartialDescriptors[i].u.Interr upt.Vector; > } > > } > ShareVector = TRUE; > > MappedVector = HalGetInterruptVector( > FILE_DEVICE_UNKNOWN, // Interface type > bus_number, // Bus number > Leval, // Bus interrupt level > Vector, // Bus interrupt vector > &irql, // IRQ level > &Affinity // Affinity mask > ); > > NtStatus = IoConnectInterrupt( > &(pDevEex->InterruptObject), > adc_driver_isr, > pDeviceObject, > NULL, > MappedVector, > irql, > irql, > LevelSensitive,//Latched, > ShareVector, > Affinity, > FALSE > ); > Function to register interrupts. > > Problem is i cannot use that drivers simultaneously. Get Blue Screens. > What wold be the reason for it. > your corporation is highly appreciated. >
From: Hasitha on 15 Oct 2007 07:31 > What do you mean by 2 drivers with interrupt in the same device? Yes my PCI device have 7 subsystems. each one have read write and IOCTRL functionality. 3 of them use interrupts. therefore i cannot write one driver for whole device. I have to write 7 separate drivers for each subsystems. What can i do to resolve this problem? "Don Burn" wrote: > That article is only for Windows NT, not for Windows 2000/XP/2003/Vista or > Longhorn. What do you mean by 2 drivers with interrupt in the same device? > If you mean one interrupt and interrupt control register then you probably > will need to write a bus driver if you want seperate drivers for the > devices. If you mean sperate interrupts triggering on the same interrupt > line, then just write your driver. > > Since you are new to this take a look at KMDF this will simplify you > development a lot. Get the book "Developing Drivers for the Windows Driver > Foundation" and get the latest WDK > http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx. > > > -- > Don Burn (MVP, Windows DDK) > Windows 2k/XP/2k3 Filesystem and Driver Consulting > Website: http://www.windrvr.com > Blog: http://msmvps.com/blogs/WinDrvr > Remove StopSpam to reply > > > "Hasitha" <Hasitha(a)discussions.microsoft.com> wrote in message > news:52F6AD21-BDBF-426A-BFB3-9B8973166AEE(a)microsoft.com... > >> The reason is that you are using an unsupported mechanism to get your > >> resources. You should write your driver as a PnP driver. How do you > >> expect to install your driver? > > I am new for the this fied. I got info from here. > > http://support.microsoft.com/default.aspx/kb/152044 > > if i write PNP driver can i use 2 drivers whth interrupt in same device. > > > > > > >
First
|
Prev
|
Pages: 1 2 Prev: Where can I get IFDTest.exe? Next: KsPinGetLeadingEdgeStreamPointer returns NULL |