From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: nigel@9fs.org To: 9fans@cse.psu.edu Subject: Re: [9fans] i82365 change MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Tue, 28 May 2002 15:47:04 +0100 Topicbox-Message-UUID: 9ddc00e4-eaca-11e9-9e20-41e7f4b1d025 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 Card 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.