Solaris 2.x PC Card FAQ
<Basis Systeme netzwerk/Munich>




Disclaimer
Basis Systeme netzwerk (BSn) makes no representation or warranty, express or implied with respect to this publication or the programs or information described in this publication. In no event shall BSn, it employees or contractors be liable for specific, indirect, or consequential damages.



0.0 Intro

PCMCIA stands for Personal Computer Memory Card International Association. It was founded in 1989 to develop and promote a world-wide card standard from among the 40 or so emerging card formats available at the time.

Although the early versions of the standard were called PCMCIA, the current standard (since CeBit '95) is called the "PC Card Standard" and the cards themselves are called "PC Cards" to distinguish between the subject and the association.

These cards provide a vast variety of hardware devices which are rugged, credit-card sized, lightweight, power efficient and "easy to use". Hundreds of vendors are active in the competitive PC Card marketplace and returns to scale have produced a wide range of low cost, quality, devices. Although primarily designed for portable applicances such as notebooks their utility and platform independent standardization has also made them attractive for desktops.

PC Card slots are provided on the SPARCStation Voyager and Tadpole SPARCBook 3s and is optionally possible with Sun Desktop, RDI's Powerlite notebook and BriteLite Laptop SPARCStations.

This FAQ is focused upon the RDI and Sun Solutions using Solaris 2.x. The Tadpole SPARCBook , by contrast, provides its own collection of drivers and has its own interface as part of its NCE 2.0 ( Nomadic Computing Environment) for SunOS 4.1x and Solaris 2.x.

1.0 PC Cards (General)

The PC Card Standard defines a 68-pin interface between the peripheral card and the socket into which it gets inserted. It defines three standard PC Card form factors, called Type I, Type II and Type III. All PC Cards measure the same length and width, differing only in thickness. Smaller cards can fit in larger sockets.
In addition to electrical and physical specifications, the PC Card Standard defines a software architecture to provide "plug and play" capability across the widest range of products. This software is made up of Socket Services and Card Services. It is Card and Socket Services that allow for interoperability of PC Cards.

PC Card Physical Characteristics
Physical Interface 68 Pins
Back End I/O Conn. Proprietary1)
Length 85.6 mm
Width 54.0 mm
Thickness Type I 3.3 mm
Type II 5.0 mm
Type III 10.5 mm
Operating Temp. 0 to 55 C
Storage Temp. -20 to 65 C
Minimum Insertions Office Env. 10,000
Harsh Env. 5,000

1) Two standardized connectors are available as part of the optional PCMCIA Specific Extensions Specifications.

Electrical Pin Assignments
Pin Assignments For The PC Card And Cardbus Interfaces
Pin 16-Bit 32-bit

Card Bus

Pin 16-Bit 32-bit

Card Bus

Memory I/O+Mem Memory I/O+Mem
1 GND GND GND 35 GND GND GND
2 D3 D3 CAD0 36 CD1# CD1# CCD1#
3 D4 D4 CAD1 37 D11 D11 CAD2
4 D5 D5 CAD3 38 D12 D12 CAD4
5 D6 D6 CAD5 39 D13 D13 CAD6
6 D7 D7 CAD7 40 D14 D14 RSRVD
7 CE1# CE1# CCBE0# 41 D15 D15 CAD8
8 A10 A10 CAD9 42 CE2# CE2# CAD10
9 OE# OE# CAD11 43 VS1# VS1# CVS1
10 A11 A11 CAD12 44 RSRVD IORD# CAD13
11 A9 A9 CAD14 45 RSRVD IOWR# CAD15
12 A8 A8 CCBE1# 46 A17 A17 CAD16
13 A13 A13 CPAR 47 A18 A18 RSRVD
14 A14 A14 CPERR# 48 A19 A19 CBLOCK#
15 WE# WE# CGNT# 49 A20 A20 CSTOP#
16 READY IREQ# CINT# 50 A21 A21 CDEVSEL#
17 Vcc Vcc Vcc 51 Vcc Vcc Vcc
18 Vpp1 Vpp1 Vpp1 52 Vpp2 Vpp2 Vpp2
19 A16 A16 CCLK 53 A22 A22 CTRDY#
20 A15 A15 CIRDY# 54 A23 A23 CFRAME#
21 A12 A12 CCBE2# 55 A24 A24 CAD17
22 A7 A7 CAD18 56 A25 A25 CAD18
23 A6 A6 CAD20 57 VS2# VS2# CVS2
24 A5 A5 CAD21 58 RESET RESET CRST#
25 A4 A4 CAD22 59 WAIT# WAIT# CSERR#
26 A3 A3 CAD23 60 RSRVD INPACK# CREQ#
27 A2 A2 CAD24 61 REG# REG# CCBE3#
28 A1 A1 CAD25 62 BVD2 SPKR# CAUDIO
29 A0 A0 CAD26 63 BVD1 STSCHG# CSTSCHG
30 D0 D0 CAD27 64 D8 D8 CAD28
31 D1 D1 CAD29 65 D9 D9 CAD30
32 D2 D2 RSRVD 66 D10 D10 CAD31
33 WP IOIS16# CCLKRUN# 67 CD2# CD2# CCD2#
34 GND GND GND 68 GND GND GND

Sun PCMCIA Interface Electrical
DC Signal Levels +5 Volt TTL/CMOS
Vcc supplied +5 Volt; power can be switched on/off to support live insertion and removal of PC Cards
VPP1 +5 Volt, +12 Volt, High Impedance -software selectable; power can be switched on/off to support live insertion and removal of PC Cards

1.1 Card Services

Card Services describes an API (Application Programming Interface) which allows PC Cards and sockets to be shared by multiple clients. Clients are the programs that access Card Servicse and may be devices drivers, configuration utilities or application programs. This specification is intended to be independent of the hardware that actually manipulates PC Cards and sockets.
Card Services has two goals. First to support the ability of PC Card-aware devices drivers, configuration utilities and application programs to share PC Cards, sockets and system resources. Second is to provide a centralized resource for the common functionality required by these clients.
Card Services is structured in a client/server model. Application programs, device drivers and utility programs are the clients requesting services. Card Services is the server providing the services requested by clients. the Card Services interface defines how the clients and servers communicate.
See also: PC Card Standard Volume 5, Card Services .

1.2 Socket Services

Socket Services is the lowest layer in a multi-layer architecture that manages resources on PC Cards. Socket Services provides a universal software interface to the hardware that controls sockets for PC Cards. It masks the details of the hardware used to implement these sockets, allowing higher-level software to be developed which is able to control and utilize PC Cards without any knowledge of the actual hardware interface. Software layers above Socket Services provide additional capabilities. Immediately above Socket Services is Card Services.
Socket Services approaches the handling it manages by addressing it as a number of objects with different areas of functionality. Adapters are the hardware that connects a host system's bus to PC Card sockets. Sockets are receptacles for PC Cards. Host systems may have more than one adapter, and each adapter may have one or more sockets.
Socket Services reports the number of sockets, windows and EDC generators provided by each adapter installed. Adapter power consumption and stats change reporting may be controlled separately for each adapter. Socket Services describes the characteristics of each socket and allows socket resources to be manipulated and current settings determined.
See also: PC Card Standard Volume 6 Socket Services.

2.0 PC Cards and SPARC Solaris (2.5):

PC Card slots are provided on the SPARCStation Voyager and Tadpole SPARCBook 3s. The RDI Powerlite SPARC notebooks offer PC Card slots as an option&emdash;. instead of the internal 3 1/2" floppy drive or in the Peripheral Expansion Unit.

To use PC Cards (PCMCIA) with a Desktop SPARCStation&emdash; or RDI BriteLite Laptop or Powerlite PXU&emdash; one needs a free SBus slot and a Nell Card (SBus adapter card from Sun). This card provides 2xType I or Type II or 1xTypeIII for modems, storage cards, network options conpatible with the Intel PC Card chip set. See Nell Card Description and Specification.

The PCMCIA Interface utilizes the STP4020QFP PCMCIA/SBus interface chip to bridge the two bus standards. The STP 4020QFP contains a fully-compliant IEEE P1496 SBus slave interface. It supplies a direct interface to the PCMCIA standard for Type 1, Type 2 and Type 3 devices.

The Tadpole SPARCBook provides its own collection of drivers and has its own interface. The Voyager, RDI and SBus products uses the Card and Socket services that are provided by Solaris 2.x in the Vendor supplement CD or Voyager cluster on the SMCC supplement CD.

Drivers are developed with the Solaris PCMCIA Card Services API (77k gzip'd Postscript), enabling all devices to be supported on every Solaris system&emdash; source compatability.

At current PC Card support within Solaris (2.5) is primarily restricted to memory and modem cards. SunSoft has announced that more drivers will be available to support other kinds of PC Card devices in the future.

Software to develop PC Card drivers is part of the Solaris 2.5 Driver Development Toolkit available from SMCC/SunSoft.
PC Card Drivers
Type Function Driver
SERIAL:* Serial/Modem Cards pcser
MEMORY:SRAM Memory Cards pcmem
MEMORY:ATA ATA Cards (eg. SunDisk) pcata1)
LAN/3COM 3Com Ethernet Adapter Card pclx (Not Available)
LAN:Wireless/WAVELAN WaveLAN Wireless Ethernet Adapter wavelan2)
MISC:FLOPPY Accurite TravelFloppy pcmfd2)
MEMORY:SWAP Experimental DRAM Swap driver pcswap3)

1)Sun Internal Development
2)3rd party drivers
3)Experimental Driver (not yet released)
to use DRAM cards for virtual memory (SWAP).

Solaris 2.5 (or earlier) uses the card Metaformat, or CIS (Card Information Structure) to identify the card. The correlation (mapping) between CIS and driver is specified in the /etc/driver_aliases file by:

<driver> <PC Card Identify>
Example: pcser "PC,Intel MODEM 2400+ iNC110US A-0"

2.1 List of PC Cards usable with Solaris (2.5):

The following cards are confirmed to work with SPARC Solaris 2.5:

2.2 Additional SunSoft/SMCC Drivers (Internal)

2.3 3rd Party drivers

2.4 Adding new PC Cards

  1. Insert PC Card into a slot.
  2. Examine the output of prtconf (example):
     pcmcia, instance #0
                    pcser, instance #0
                    PC,Intel MODEM 2400+ iNC110US A-0 (driver not attached)
    

    Notice the line PC,Intel MODEM 2400+ iNC110US A-0 (driver not attached)

  3. Determine which driver is appropriate to this card. In this case, since it is a modem, its pcser.
  4. Modify the /etc/driver_aliases file to include an entry for this modem card as follows:
    pcser "PC,Intel MODEM 2400+ iNC110US A-0"
  5. Remove PC Card.
  6. Reboot the system (reboot -r).
  7. Insert PC Card into Slot.
  8. Check that the card is recognized. Modem cards will, for example, be /dev/pcX or /dev/pcmciaX &emdash; depending upon version of Solaris&emdash; where X is 0 or 1 (or with multiple Nell Cards 2, 3 etc).

2.4.1 Common CIS Modem Strings (examples)

A collection of PC Card Modem CIS Strings (similar to format.dat) is available from:
http://www.bsn.com/Support/PCMCIA/modem.cis and a tool to read this file and add new entries into the /etc/driver_aliases file is downloadable from http://www.bsn.com/PCMCIA/addmodem.
If you have an entry for a serial device not in the list: please send it to Edward C. Zimmermann <edz@bsn.com> for inclusion in this list.

Appendix A: Questions and Answers

A.1: About this document

Is this an "officialy" Sactioned FAQ from Sun?
No. This FAQ is non-related in any way with Sun Microsystems or any of its associated companies.

Basis Systeme netzwerk/Munich is distributing this FAQ and acting as a self-appointed clearinghouse for SPARC PC Card related information as a service to the Internet community.  Although this FAQ is not sactioned by SMCC it is the authors hope that Sun Microsystem or its employees will help this project and contribute information, hints and tips.

Why do a FAQ?
The standard Sun support archives (Usenet and Sun-managers) don't seem to have any substantial information about PC Card in SPARCs. The aims of this FAQ is to remedy this information deficit and in the Internet tradition bundle community self-support channels.
How do I submit information to this FAQ?
To submit software or data for the FAQ: Please send mail to Edward C. Zimmermann <edz@bsn.com>

###


BSn PC Card Deal
Desktop SPARCStation SBus PCMCIA Adapter + MultiTech 2834LTI Modem bundle: together only 1000 DM + MwSt.



Trademarks other than those owned by BSn used throughout this page belong to the owners and are used here in a purely editorial fashion.
Copyright © 1996 Basis Systeme netzwerk/Munich. All rights reserved worldwide.