All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: Linux MIPS <linux-mips@linux-mips.org>
Cc: Jorik Jonker <linux-mips@boeventronie.net>
Subject: Re: VINO
Date: Tue, 29 Jun 2004 15:42:14 +0200	[thread overview]
Message-ID: <20040629134213.GA2968@umax645sx> (raw)
In-Reply-To: <20040609122046.GB18364@hydrogen.boeventronie.net>

On Wed, Jun 09, 2004 at 02:20:46PM +0200, Jorik Jonker wrote:
> Well, it seems not that easy for me. As I told, it's very opaque matter to
> me; ie I already figured out that a kernel driver must be built but I really
> have no clue on how to do this. For instance, I don't know what call (if
> there exists any) should access that memory.

PHYS_TO_K1 macro from <sys/mips_addrspace.h> does the trick. Just use
something like:

#define VINO_BASE 0x00080000
unsigned int reg = * (unsigned int *) PHYS_TO_K1(VINO_BASE + ofs);

Note that VINO registers are 64bit, but only lower 32bits are relevant for
us (the only exception is valid bit in descriptor cache register, which
is not important in this case). Please refer to VINO Design
Specification for more details:
ftp://ftp.linux-mips.org/pub/linux/mips/doc/indy/vino/

> My plan was on writing a driver which allows me (through an ioctl to a special
> device) to read/write to the VINO registers. I think I saw a driver example
> in the DevDriver_PG which shows how to communicate through ioctl with
> userspace (or kernelspace, depends on how you look at it), but the part where
> I do the actual 'talking' to the VINO is matter I don't have any clue on how
> to do that.

I hope you'll find time to make your plan reality.

Best regars,
	ladis

  reply	other threads:[~2004-06-29 13:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-08 12:54 VINO Jorik Jonker
2004-06-08 22:06 ` VINO Ladislav Michl
2004-06-09 12:20   ` VINO Jorik Jonker
2004-06-29 13:42     ` Ladislav Michl [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-09-23 23:12 VINO Thomas Bogendoerfer
1998-09-24 16:31 ` VINO Alex deVries
1998-09-24 23:59 ` VINO George Kyriazis
1998-09-24 23:59   ` VINO George Kyriazis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040629134213.GA2968@umax645sx \
    --to=ladis@linux-mips.org \
    --cc=linux-mips@boeventronie.net \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.