*BSD News Article 37670


Return to BSD News archive

Xref: sserve comp.os.386bsd.development:2685 comp.os.386bsd.misc:4024
Newsgroups: comp.os.386bsd.development,comp.os.386bsd.misc
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!dmssyd.syd.dms.CSIRO.AU!megadata!andrew
From: andrew@megadata.mega.oz.au (Andrew McRae)
Subject: PCMCIA support for 1.1.5.1 - package available
Message-ID: <1994Nov9.004632.27227@mega.com.au>
Sender: news@mega.com.au
Organization: MITS Real Time Ltd, North Ryde, Sydney, Aust.
Date: Wed, 9 Nov 1994 00:46:32 GMT
Lines: 123

A package that supports PCMCIA cards is available on
freebsd.cdrom.com (and mirrors) as pcmciad.tar.gz.

Consider this an alpha release, with work progressing on
a 2.0 release hopefully to be ready for FreeBSD 2.0 release (not
the alpha 2.0, but maybe a later one).

In the true spirit of free software, there is already one patch, 
which I have reproduced below. Please send feedback to me
about cards you have tried, bugs and experiences.
I have attached the README file.

Cheers,
Andrew McRae			inet:	andrew@mega.com.au
MITS Real Time Ltd,		uucp:	..!uunet!mega.com.au!andrew
North Ryde  2113		Phone:	+61 2 805 0899
NSW    AUSTRALIA		Fax:	+61 2 887 4847


--------------cut here for diff
*** pcmfile.c.old	Fri Nov  4 16:19:29 1994
--- pcmfile.c	Fri Nov  4 16:19:46 1994
***************
*** 782,793 ****
  		case '-':
  		case '?':
  		case '*':
! 			if (p != buf)
! 				pushc = c;
! 			else
  				*p++ = c;
! 			*p++ = 0;
! 			return(buf);
  		case EOF:
  			if (p != buf)
  				{
--- 782,799 ----
  		case '-':
  		case '?':
  		case '*':
! 			if (instr)
  				*p++ = c;
! 			else
! 				{
! 				if (p != buf)
! 					pushc = c;
! 				else
! 					*p++ = c;
! 				*p++ = 0;
! 				return(buf);
! 				}
! 			break;
  		case EOF:
  			if (p != buf)
  				{
-----------------------cut here for README
PCMCIA Support for FreeBSD 1.1.5.1
----------------------------------

This package contains the following:

	- Driver for Intel 83265 PCIC PCMCIA controller
	- A PCMCIA daemon for managing card insertions/removals
	- Diffs to various source files for adding PCMCIA support
	- A sample config file
	- Some utility programs for reading card data tuples
	- Some documentation.

What it doesn't include is:

	- Configuration for brand XYZ PCMCIA cards
	- Drivers for brand XYZ PCMCIA cards
	- Diffs to modify standard drivers to handle card events

Essentially, this package contains everything required to
add PCMCIA support to FreeBSD 1.1.5.1. It does this via a
daemon that manages the PCMCIA slots via a PCIC driver. A configuration
file provides the daemon with the information required to setup
the specific cards, and to manage card insertion and removal.

This package has been developed on a Toshiba T4700CT Laptop,
but has also been tested with a Micro-Pro and NEC Versa
Laptop. Various network cards have been plugged in and tested,
such as a Kingston (IBM Credit Card clone) and an RPTI Inc.
NE2000 clone. These cards use the `ed' network driver. An early
version of the software was used on a Fax/modem card.

The main idea behind the package is for pcmciad to detect
inserted cards and match to a card ID in the config file,
then set up the I/O ports and memory window to the card
according to the data for the driver associated with the
card, then attach the kernel driver to the device. Shell
commands can be executed for both insertion and removal of cards,
and different commands can be executed for different cards,
drivers and devices.

Different kernel drivers may have to have some mods
done to recognise the card once installed; I have included
some diffs to `ed' that allows recognition of a `generic'
NS8390 card.

Some minor changes were made to ifconfig(8) to allow a
different ethernet address to be assigned to a network
interface, since each card may have different locations
the ethernet address is stored in.

Consider this a alpha release. Work is proceeding on
a FreeBSD 2.0 version that works with loadable drivers.
Also, I do not have a copy of the PCMCIA official spec,
so it is possible (likely?) that some guesses I made
are wrong :-)

For instructions on installation, see INSTALL.
There is a man entry on the daemon (pcmciad.8),
and the config file (pcmcia.conf.5).

Please send mail with any bugs or new card descriptions.

Enjoy!
Andrew McRae			inet:	andrew@mega.com.au
MITS Real Time Ltd,		uucp:	..!uunet!mega.com.au!andrew
North Ryde  2113		Phone:	+61 2 805 0899
NSW    AUSTRALIA		Fax:	+61 2 887 4847