Hi,
I tried HalAssignSlotResources() instead of IoReportResourceUsage() . But I
didnt get status success.
The value of Status = -1073741819. ( Window NT 4.0 workstation, SP 6)
NTSTATUS Status;
PCI_SLOT_NUMBER SlotNumber;
PCM_RESOURCE_LIST ResList;
SlotNumber.u.bits.Reserved = 0;
SlotNumber.u.bits.DeviceNumber = PCI_AUDIO_DEVICE; // Device 20
SlotNumber.u.bits.FunctionNumber = PCI_AUDIO_FUNCTION; // Function 5
Status = HalAssignSlotResources(
pGDI->RegistryPathName,
NULL,
pGDI->DeviceObject[WaveOutDevice]->DriverObject,
pGDI->DeviceObject[WaveOutDevice],
pGDI->BusType, // PCIbus
pGDI->BusNumber, // bus 0
SlotNumber.u.AsULONG,
&ResList
);
Status = -1073741819.
Is it a correct way of calling HalAssignSlotResources() ? Is there any
sample code available for using HalAssignSlotResources() ?
When I use IoReportResourceUsage(), I got Status success.I get Interrpt
0x51(at offset 0x3C) and interrupt pin 0x2(at offset 0x3D) in Pci
configuration header. I can see my hw interrupts generated after DMA
kick-off from Interrupts status registers. But my SoundISR() didnt get
called.
Is there any special way to deal with interrupts in multi-function device
? ( interrupt pin is 0x2 (at offset 0x3D) <=> int # B )
Is there any command setting for interrupts in PCI devices ?
Is there any master enable of Interrupts ?
Regards,
Tejendra.
********************************************************************
************************************************************************
********
-----Original Message-----
From: Calvin Guan [SMTP:xxxxx@ati.com]
Sent: Monday, April 26, 2004 8:15 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] SoundISR()
If you mean NT4, you should use HalAssignSlotResources to get resources
(int/mem/port).
Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
************************************************************************
***************************************************************************
-----Original Message-----
From: Tejendra Joshi [mailto:xxxxx@contechsoftware.com]
Sent: Monday, April 26, 2004 2:30 PM
To: Windows System Software Devs Interest List
Cc: ‘xxxxx@esntechnologies.co.in’
Subject: [ntdev] SoundISR()Hi,
I am writing an Audio driver in Window NT. My SoundISR() is
not getting
called. As It is PCI based Onboard controller, I used offset
0x3C of PCI Configuration header as Interrupt line(e.g 0x5).
Then I called
HalGetInterruptVector() ,IoReportResourceUsage() and
IoConnectInterrupt().
All these function returns STATUS_SUCCESS. My hardware
interrupts are also
enabled. Despite of all these, My SoundISR() never gets
called.( Interrpts
are shared, LevelSensitive).I observed if I Insert network card in to another PCI slot,
My Interrupt
line becomes 0xB which is shared by Network card also.
In this case my driver runs well without any problem. But in
absence of
network card( or network card in other slot), my SoundISR() never get
called.I dont know where/what I am doing wrong.
Am I missing something ?Regards,
Tejendra
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256You are currently subscribed to ntdev as: xxxxx@ati.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@contechsoftware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
<< File: ATT00000.html >>