I'm having the same problem

device driver

    Sponsored Links

    Next

  • 1. Secure Digital Card (SD Card) IOCTL_SFFDISK_DEVICE_COMMAND
    Hi All; I need to access SD card Hardware Serial somehow on PC XP, Vista etc. I know this can be done on Win CE. But I could not come up a solution yet on PC. on searching I found IOCTL_SFFDISK_DEVICE_COMMAND DeviceIOControl control code and wrote the code and got ERROR_NOT_SUPPORTED result, so, it seems that the host controller driver has not implemented this request type, am I wrong? In the code I simply grab a handle and call DeviceIOControl, is there anything that must be done before sending IOCTL_SFFDISK_DEVICE_COMMAND, like any lock or else. I must say that I need to access device from a regular application. Your help is very appreciated. Is there
  • 2. Writing to a file from kernel mode
    Hello I've develop a driver. I want to write from kernel mode to a file for some log purposes. What is the recommended way to do it? May I use functions like fopen/fwrite/fclose? Or are there substitues for kernel mode? Thanks dominolog
  • 3. NDIS hook filter driver - virtual adapter
    Hello, NDIS hook filter driver has been developed for packet filtering purpose. But It is not able to filter traffic on virtual adapters. So what could be the solution to this problem. Thanking you, Regards, Devang Vyas
  • 4. RTL unicode string functions IRQLs
    Hello, on the latest WDK documentation for RtlPrefixUnicodeString, and many other RTL unicode string functions, I read that it must be called at PASSIVE_LEVEL. I need it on a minifilter preoperation calllback, so possibly at APC_LEVEL. Of course I understand it can't be called at DISPATCH_LEVEL, because it uses character tables from paged memory, but why not APC? Is it a documentation flaw? I read that RtlUpcaseUnicodeChar was wrongly declared needing PASSIVE_LEVEL in past DDK/WDK editions, so maybe the documentation has not been updated for RtlPrefixUnicodeString. Thank you, Paolo
  • 5. Setup application
    Hi now i wrote a wdm driver. now i want to install it automatically when i click the setup icon which is created by an MFC applilcation. anyone help me? Note : i tried servicemanager functions... but it didnt work ... Regards dsrking.

I'm having the same problem

Postby » Thu, 18 Mar 2010 07:51:35 GMT

Hi guys,
I'm trying exactly the same thing.

I thought that I had to configure the base address in the INF file and then in the EvtPrepareHardware callback, read the translated resource address and write it to the GPIO Base Address thru the LPC (using CONFIG_ADDRESS and DATA_ADDRESS registers of the SCH), but according to Tim's post, it seams is the opposite...  

So I have to read the base address from the proper LPC register (in the prepareHardware callback, maybe protecting the access to the CONFIG_ADDRESS with a spin lock I think...) and pass it to the device context, is it right? But in this case what am I suppose to write in the INF file?






Do you mean US15w, the Atom chipset that used to be called "Poulsbo"?
18-Feb-10

Do you mean US15w, the Atom chipset that used to be called "Poulsbo"?


This depends on the design of your motherboard and your BIOS.  it is
entirely possible that your BIOS configures the LPC with the GPIOs
disabled.


it is complicated.  Are you looking at the US15w datasheet?  You have to
find the I/O port base for the LPC (by getting the I/O BAR for device 31
function 0), then fetch the base address of the GPIO registers within the
I/O space, then go tweak the register itself.

There are better ways to get I/O pins.
Previous Posts In This Thread:

On Tuesday, February 16, 2010 2:41 AM



GPIO read/write on intel using DDK example : Genport
Hi All,

I would like to control one of the 14 GPIO provided on the Poulsbo UW15w.
and I would like to use the driver (Genport) provided in DDK.

Do you know if this would work to set and clear GPIO.

How do I get the Address of the Port i want to set. (gpdwrite .   ...)
is it set in  the .inf

Thanks

regards

Norrih

On Tuesday, February 16, 2010 12:10 PM



Genport provides only interface to access GPIO.
Genport provides only interface to access GPIO. Using gpdwrite/gpdread
you could specify an offset from a Base address and access to
particular IO port. The Base address is specified in *.inf file. You
could check Base Addresses in PortIOEvtDevicePrepareHardware of
device.c  .

Igor Sharovar

On Thursday, February 18, 2010 2:42 AM



Do you mean US15w, the Atom chipset that used to be called "Poulsbo"?
Do you mean US15w, the Atom chipset that used to be called "Poulsbo"?


This depends on the design of your motherboard and your BIOS.  it is
entirely possible that your BIOS configures the LPC with the GPIOs
disabled.


it is complicated.  Are you looking at the US15w datasheet?  You have to
find the I/O port base for the LPC (by getting the I/O BAR for device 31
function 0), then fetch the base address of the GPIO registers within the
I/O space, then go tweak the register itself.

There are better ways to get I/O pins.

Submitted via EggHeadCafe - Software Developer Portal of Choice 
How to display a Gravatar Image with 100 Percent Client Script Code
 http://www.**--****.com/ 

Re: I'm having the same problem

Postby Tim Roberts » Thu, 18 Mar 2010 13:55:39 GMT



Tim's post was trying to say "it depends".  Since this is non-PnP, you
won't even get an EvtPrepareHardware callback unles you have assigned
resources in the INF file, so in a sense your approach is correct.

The key problem is that your LPC might be configured with the GPIOs turned
off.  Many motherboard are.  You will have to do SOME manipulation of the
LPC registers just to check this. 


If you are REALLy intent on doing this (and, as I said, it seems like a
really hard way to get GPIO pins), I think the only way you can do it is to
CHOOSE a base address that you know does not conflict with any other
device, put that in your INF, then write the registers in PrepareHardware
to make sure the hardware actually responds there.
-- 
Tim Roberts,  XXXX@XXXXX.COM 
Providenza & Boekelheide, Inc.

Re: I'm having the same problem

Postby RGF2aWRl » Thu, 18 Mar 2010 17:51:01 GMT

Thanks for your reply.
But now I've become curious, which is the best way to access the GPIO ?

Re: I'm having the same problem

Postby Tim Roberts » Sat, 20 Mar 2010 11:48:41 GMT



With a USB device or a parallel port adapter, where you are in complete
control of your destiny.
-- 
Tim Roberts,  XXXX@XXXXX.COM 
Providenza & Boekelheide, Inc.

Re: I'm having the same problem

Postby Pavel A. » Sat, 20 Mar 2010 23:50:50 GMT





Since this is an Intel platform, the best way is to consult with their 
support or partner (system builder).

--pa
 


Re: I'm having the same problem

Postby Pavel A. » Sat, 20 Mar 2010 23:56:07 GMT





Since this is an Intel platform, the best way is to consult with their
support or partner (system builder).

--pa

 


Similar Threads:

1.Having Problems With

PsGetVersion when TARGETTYPE=MINIPORT.  I get link error 2019 and PsGetVersion is not recognized.  If I change to TARGETTYPE=DRIVER everything is ok.  The problem is that I am dealing with a tape driver so I believe it needs to be MINIPORT.  Is there anyway to get around this situation.

Thanks!

2.Having Problems With ...

PsGetVersion when TARGETTYPE=MINIPORT .  In this case I get a link error 2019.  If I change TARGETTYPE=DRIVER then everything is ok.  The problem is that my driver is a tape driver.  Is there anyway to get around this situation?  

3.Having a problem of Vista XPSDrv filter to call an entry in other

I built a pass through filter(stream in and stream out) and it worked fine.  
Then I tried calling an entry to one DLL built by VC8 or WDK.  But the filter 
failed to load.  The linker linked correctly.  I think it might be caused by 
incorrect building process of the DLL.  Can anyone give me some simple 
sample(codes, build file, environment) which works?  Thanks.

4.Having Problems with Win 7 Drivers?

This may solve it for you:

Pre-partition the hard drive you're going to use for 7 into two 
partitions in NTFS. Attach the hard drive as a slave on a current xp 
system. Insert the Seven disk and when it auto starts the install quit 
the install. Copy the entire dvd to the second partition on the newly 
formatted slave drive. Right click on the setup.exe file and change the 
properties to Vista compatibility mode. Reset the hd as master with the 
jumper in the back and put back hd in the system. Reboot the computer 
with a XP or 98 bootdisk and in dos change to drive d:  Then type Setup 
and it should take off into the Seven setup. Use c: as the drive to 
install to.

Alias

5.NOBODY having problems with ATI beta drivers?

Come on I know there are others having issues getting their ATI Vista 2 Beta 
drivers installed properly, I can't be the only one....

Let's work this out... for me I get this thing in the bottom-right that 
comes up saying that there was a problem installing the driver (I had 
numerous other errors beforehand, but after uninstalling and re-installing 
and deleting various things and moving stuff around its come to this, which 
seems like a solution should be right around the corner)

I have a radeon 9550, and the driver won't install - other than that, 
everything seems to be running pretty well for a beta!

Anybody else? What ATI card do you have and what kinds of problems are you 
running into. Let's figure this out!!

6. HP PSC 2510 mf, or driver, having problems

7. Having Problem in using JDBC Driver for SQL Server 2000 SP3

8. having problem in runing a driver which was written for windows nt 4 in 2kwin



Return to device driver

 

Who is online

Users browsing this forum: No registered users and 69 guest