9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: nigel@9fs.org
To: 9fans@cse.psu.edu
Subject: Re: [9fans] i82365 change
Date: Tue, 28 May 2002 15:47:04 +0100	[thread overview]
Message-ID: <b24ca8499b0f3448cb07d146902f6e06@9fs.org> (raw)

Reading the oracle (http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pccard/)
that bit does nothing for any pcmcia bridge or cardbus bridge in compatbility mode
except 82365SL-DF.

However, setting it will break any 5v cards. You need to

1) detect the DF version
2) use a different register to detect if the card present is 3.3v or 5v
3) set the appropriate bit in the case of 3.3v

The DF version returns 0x84 in register 0.
Register 0x16 is the \x16Card Detect and General Control register.
Bit 6 tells the voltage of slot 1, and bit 7 for slot 2.
0 means 3.3v, 1 means 5v.

So, it register 0 is 0x84, and register 0x16 has the appropriate bit clear,
then set the 3.3v bit.

I think.


             reply	other threads:[~2002-05-28 14:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-28 14:47 nigel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-28 15:00 Fco.J.Ballesteros
2002-05-28 14:33 Fco.J.Ballesteros
2002-05-28 14:27 nigel
2002-05-28 14:04 Fco.J.Ballesteros

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=b24ca8499b0f3448cb07d146902f6e06@9fs.org \
    --to=nigel@9fs.org \
    --cc=9fans@cse.psu.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).