Re: KernelIoControl error 50



just to be sure: in your post you say that you want to call
KernelIoControl( IOCTL_HAL_TRANSLATE_IRQ,...
but you have added *IOCTL_HALL_REQUEST_SYSINTR* to OALIOCTL.
Is it a typo...?

Anyway, which IRQ do you need for the parallel port? if you need the
'standard' IRQ5 or IRQ7 you do not need to associate to a SYSINTR since
they are statically mapped to SYSINTR_FIRMWARE+5 and SYSINTR_FIRMWARE+7
respectively (check %_WINCEROOT%\PLATFORM\COMMON\SRC\X86\COMMON\INTR\init.c)


--

Luca Calligaris
www.eurotech.it

<vlatko.petkoski@xxxxxxxxxxx> ha scritto nel messaggio
news:48dd2aaf-829f-411f-81c2-8780ca8af194@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi. I'm using windowsCE 6.0 and x86 platform.

I'm writing IST for parallel port. I'm using MSDN example for IST.
http://msdn.microsoft.com/en-us/library/ms836807.aspx.

Problem!!!
When I call KernelIoControl it fails with error code 50
(ERROR_NOT_SUPPORTED).
KernelIoControl( IOCTL_HAL_TRANSLATE_IRQ,
&dwIrq,
sizeof( dwIrq ),
&g_dwSysInt,
sizeof( g_dwSysInt ),
NULL );

http://geekswithblogs.net/BruceEitman/archive/2008/07/01/windows-ce-6.0-user-mode-kerneliocontrol.aspx
From the link above I modify oalioctl.cpp in C:\WINCE600\PUBLIC\COMMON
\OAK\OALIOCTL,
add IOCTL_HALL_REQUEST_SYSINTR and after that I build new OSDesign
image.
I start my application and KernelIoControl() failed again with error
code 50 (ERROR_NOT_SUPPORTED).
What I'm doing wrong?
My problem is to translate IRQ from parallel port to SYSINTR value.
Is there another way or should I use this way?
Please give me some example how to exactly call KernelIoControl().
Thanks in advance.
Regards Vlatko.






.



Relevant Pages

  • Re: 5.1-R-p2 crashes on SMP with AMI RAID and Intel 1000/Pro
    ... Most problems were caused by IRQ problems, I gues and I solved them by fiddling around ... :>Sadly, I can offer no help, but I do have a Thunder 2462 (SMP mobo), and I ... :>> Dependend on which devices are switched on or off by BIOS, the kernel ... :>> serial ports, the parallel port, sound and usb to get additional IRQs. ...
    (freebsd-stable)
  • Re: XA1541 on AMD64 x2, further suggestions
    ... taken from the chip itself, ... parallel port, IRQ1, IRQ3 and IRQ12. ... IRQ in your BIOS. ... BIOS does not provide such a configuration option. ...
    (comp.sys.cbm)
  • Re: Programming the parallel port irq on a shared irq?
    ... unshared parallel port for years. ... unshared irq. ... For shared interrupts you set for level triggered and the ISR loops until ... the parport driver is notified and it triggers a polling ...
    (alt.os.linux)
  • Strange BIOS-self-reset and IRQ-conflicts
    ... For my application i dont need the ... parallel port, but many serial ports, so the kernel was built without ... which needs at least one IRQ. ... And the system has heavy communication over the serial ports ...
    (comp.os.linux.embedded)
  • [PATCH] parport: Use the PCI IRQ if offered
    ... PCI parallel port devices can IRQ share so we should stop them hogging the ... printk (KERN_INFO ...
    (Linux-Kernel)