All of lore.kernel.org
 help / color / mirror / Atom feed
* Driver question
@ 2001-08-26 19:53 Elan Feingold
  2001-08-26 20:46 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Elan Feingold @ 2001-08-26 19:53 UTC (permalink / raw)
  To: Linuxppc-Embedded@Lists. Linuxppc. Org


Hi,

Thanks to all those who helped me get my custom 860 board up and running!
My next question is about mapping some physical memory to user space.  I
have some devices with memory mapped registers.  One of them lives at
0x84000800 (above 2Gb!).  I have been trying to mmap() this into user space
memory, without success (the kernel doesn't like the >2Gb).

>From what I understand, there are usually a few options.  Usually one can
use mmap() -- although I don't know if I can -- or one can write a device
driver to work with kmalloc and friends.

What would be the easiest way to gain access to that physical memory
(non-cached, of course) from user space?  Obviously, it would be nice to map
it in at that very address in user space, but I don't think that's going to
happen.  Any tips would be greatly appreciated, as I'm new to this game.

Best regards,

-elan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Driver question
  2001-08-26 19:53 Driver question Elan Feingold
@ 2001-08-26 20:46 ` Wolfgang Denk
  2001-08-27 18:25   ` Elan Feingold
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2001-08-26 20:46 UTC (permalink / raw)
  To: Elan Feingold; +Cc: Linuxppc-Embedded@Lists. Linuxppc. Org


In message <NDBBLJKOJGKDOFBHNPGEGEIKCEAA.elan@nxnetworks.com> you wrote:
>
> Thanks to all those who helped me get my custom 860 board up and running!
> My next question is about mapping some physical memory to user space.  I
> have some devices with memory mapped registers.  One of them lives at
> 0x84000800 (above 2Gb!).  I have been trying to mmap() this into user space

That's a physical address, right?

> memory, without success (the kernel doesn't like the >2Gb).

Ummm... you must have been doing something wrong.

> >From what I understand, there are usually a few options.  Usually one can
> use mmap() -- although I don't know if I can -- or one can write a device
> driver to work with kmalloc and friends.

You can use mmap(), but of course  you  need  a  device  driver  that
provides such a mmap() interface.

> What would be the easiest way to gain access to that physical memory
> (non-cached, of course) from user space?  Obviously, it would be nice to map
> it in at that very address in user space, but I don't think that's going to
> happen.  Any tips would be greatly appreciated, as I'm new to this game.

No. You should really use mmap(), but you will end  up  with  virtual
addresses  (a  virtual  kernel  address  in your device driver, and a
virtual user address in  your  application)  which  differ  from  the
physical address.

See drivers/char/ip860_mem.c for examples of how to  export  physical
address  ranges  (in  the  example  it's VMEBus memory) to user level
applications. You can find the file in the kernel sources on our  FTP
server, see
ftp://ftp.denx.de/pub/LinuxPPC/usr/src/linux-2.4.4-2001-07-23.tar.bz2

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Certainly there are things in life that money  can't  buy,  but  it's
very funny - Did you ever try buying them without money? - Ogden Nash

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Driver question
  2001-08-26 20:46 ` Wolfgang Denk
@ 2001-08-27 18:25   ` Elan Feingold
  0 siblings, 0 replies; 4+ messages in thread
From: Elan Feingold @ 2001-08-27 18:25 UTC (permalink / raw)
  To: wd, kenneth.johansson; +Cc: Linuxppc-Embedded@Lists. Linuxppc. Org


> > One of them lives at 0x84000800 (above 2Gb!).
> That's a physical address, right?

Correct.

> Ummm... you must have been doing something wrong.

Yep, I wasn't page aligning the 0x8400800 8-)  That did it.

> You can use mmap(), but of course  you  need  a  device  driver  that
> provides such a mmap() interface.

It didn't sound like Kenneth was using a device driver (is that correct,
Kenneth?).  Is the driver used to provide additional features (like making
sure the memory is not cached, etc.)?

I'm confused 8-)  Thanks in advance for any help you can provide.

-elan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* driver question
@ 2009-04-05  6:00 Dr.-Ing. Erhard Schellmann
  0 siblings, 0 replies; 4+ messages in thread
From: Dr.-Ing. Erhard Schellmann @ 2009-04-05  6:00 UTC (permalink / raw)
  To: linux-media

Hi,

I have an DTR 61USB TV Reciever from VESEG GmbH, a German company. For 
this device I need a driver to run it under Ubuntu..
With the device only came a Windows driver. Can anybody help me to find 
such a driver?

Many thanks in advance.

Hardi2000


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-05  6:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-05  6:00 driver question Dr.-Ing. Erhard Schellmann
  -- strict thread matches above, loose matches on Subject: below --
2001-08-26 19:53 Driver question Elan Feingold
2001-08-26 20:46 ` Wolfgang Denk
2001-08-27 18:25   ` Elan Feingold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.