|
|
Memory Mapped register read/write on USB device
Hi,
Is it possible to access USB device registers through memory mapped
I/
O.
The windows miniport driver for USB WLAN card that I have uses bulk
read/write operations to access USB device's registers, which is very
slow and doesn't take constant time. On the other hand the driver
written for CardBus WLAN card uses memory mapped I/O access CardBus
device register ,which is very fast. I want to access USB registers
in
negligible and constant time (in order of 1/2 microseconds) is there
a
way to do this or can we use memory mapped register I/O on USB
platform?
Thanks in advance.
- Ravi
|
|
0
|
|
|
|
Reply
|
ravis
|
11/27/2009 11:46:57 AM |
|
> Is it possible to access USB device registers through memory mapped
> I/
> O.
Surely no.
USB bus is driven by the host controller, not by the CPU. It does not =
have the usual CPU-to-devices notions like "IO ports" or "memory-mapped =
IO".
You can only access USB by sending commands to the USB HC. Since this is =
a complicated DMA based device, MS provided the code to program it with =
the OS, and what you do is just send requests to this MS's code.
There is some hack in the USB HC which intercepts port 0x60 at boot to =
fully emulate the USB keyboard as PS/2 one, but this is specific to the =
keyboard (and early boot stages) and is not generic.
> The windows miniport driver for USB WLAN card that I have uses bulk
> read/write operations to access USB device's registers, which is very
> slow=20
This is not slow, this is normal. Creation of the URB+IRP is neglectable =
amount of time.
>and doesn't take constant time.=20
This is normal. Ethernet is not realtime anyway.
> written for CardBus WLAN card uses memory mapped I/O access CardBus
> device register ,which is very fast.=20
Yes, register access is fast, but the overall data transfer rate should =
be nearly the same.
>I want to access USB registers
There is no such thing as "USB registers" in the USB WLAN device.
> negligible and constant time (in order of 1/2 microseconds) is there
No ways. More so - I do not think that with Windows and PC, you can =
guarantee this small latency of hardware access _for any hardware =
device_.
--=20
Maxim S. Shatskih
Windows DDK MVP
maxim@storagecraft.com
http://www.storagecraft.com
|
|
0
|
|
|
|
Reply
|
Maxim
|
11/27/2009 3:43:59 PM
|
|
|
1 Replies
388 Views
(page loaded in 0.032 seconds)
Similiar Articles: Memory Mapped register read/write on USB device - comp.os.ms ...Hi, Is it possible to access USB device registers through memory mapped I/ O. The windows miniport driver for USB WLAN card that I have uses bulk read/write ... Microblaze and external block memory - comp.arch.fpgaMemory Mapped register read/write on USB device - comp.os.ms ... How to synthesyze a RAM block?? Help Me.. - comp.lang.verilog ... Memory Mapped register read/write on ... Help to choose a new MCU - comp.arch.embeddedMemory Mapped register read/write on USB device - comp.os.ms ... Help to choose a new MCU - comp.arch.embedded... oscillator / 1 % accuracy - USB PLL - Code Read ... Data tranfer rate calculation for Disk storage. - comp.arch ...Memory Mapped register read/write on USB device - comp.os.ms ... Data tranfer rate calculation for Disk storage. - comp.arch ... Memory Mapped register read/write on USB ... How to increase write speed to local hard drive? - comp.unix ...If disk rotates at a speed of 7200 rpm then what is the ... Your data transfer rate is over an order of ... local ... Memory Mapped register read/write on USB device ... How to mount USB flash memory to Sun Solaris 9 on Sun Blade 150 ...I can access (read / write) on my Apple ... Register ... pci@1f,0/usb@c,3/<usb device> Sun Blade[TM] 1000/2000, Sun ... Sun Blade Memory, Sun ... User Port expansion - comp.sys.cbm... for connecting IDE devices to ... has built was full-on memory-mapped IDE ... low the IDE will neither read nor write. PC2 to input2, the /IDE to input1, the shift register ... IOCTL_DISK_GET_PARTITION_INFO and the PartitionType field problem ...I've got an USB stick here ... of the world" when you write the changes to disk. But since you target a memory stick, plug-n-play device ... can't even find simple "read/write ... How can i use USB with labview 6.1 - comp.lang.labview... Register ... All devices that are connected to the USB port work with some ... have a JetFlash 128MB USB Flash Memory Pen. I can access (read / write ... Freescale's Idea of Open Source JTAG - comp.arch.embedded ...... Register ... for instruction fetch or data read/write, read/write memory ... as I can see, in addition to > the OSJTAG USB device ... Memory Mapped register read/write on USB device - comp.os.ms ...Hi, Is it possible to access USB device registers through memory mapped I/ O. The windows miniport driver for USB WLAN card that I have uses bulk read/write ... Reading and Writing to Device Registers - Microsoft Corporation ...Reading and Writing to Device ... O ports, the driver calls the READ/WRITE_PORT_Xxx routines. This example shows how to write to a memory-mapped register. 7/22/2012 1:17:57 AM
|
|
|
|
|
|
|
|
|