~kris/9p

9hist

3caf1cf4eb464ef1479c05f470ef98528325868e — David du Colombier 25 years ago b18742d
Plan 9 from Bell Labs 2001-09-06
2 files changed, 12 insertions(+), 8 deletions(-)

M pc/devi82365.c
M pc/devpccard.c
M pc/devi82365.c => pc/devi82365.c +7 -8
@@ 113,7 113,6 @@ static PCMslot	*lastslot;
static nslot;

static void	i82365intr(Ureg*, void*);
static void	i82365reset(void);
static int	pcmio(int, ISAConf*);
static long	pcmread(int, int, void*, long, vlong);
static long	pcmwrite(int, int, void*, long, vlong);


@@ 355,7 354,6 @@ pcmcia_pcmspecial(char *idstr, ISAConf *isa)
	extern char *strstr(char*, char*);
	int enabled;

	i82365reset();
	for(pp = slot; pp < lastslot; pp++){
		if(pp->special)
			continue;	/* already taken */


@@ 570,8 568,8 @@ i82365dump(PCMslot *pp)
/*
 *  set up for slot cards
 */
static void
i82365reset(void)
void
devi82365link(void)
{
	static int already;
	int i, j;


@@ 579,6 577,10 @@ i82365reset(void)
	PCMslot *pp;
	char buf[32];

	if(already)
		return;
	already = 1;

	if (!getconf("pcmcia0"))
		return;
	


@@ 590,9 592,6 @@ i82365reset(void)
	_pcmspecial = pcmcia_pcmspecial;
	_pcmspecialclose = pcmcia_pcmspecialclose;

	if(already)
		return;
	already = 1;

	/* look for controllers if the ports aren't already taken */
	if(ioalloc(0x3E0, 2, 0, "i82365.0") >= 0){


@@ 869,7 868,7 @@ Dev i82365devtab = {
	'y',
	"i82365",

	i82365reset,
	devreset,
	devinit,
	i82365attach,
	i82365walk,

M pc/devpccard.c => pc/devpccard.c +5 -0
@@ 481,6 481,11 @@ devpccardlink(void)
	if (!getconf("pccard0"))
		return;

	if (_pcmspecial) {
		print("#Y: CardBus and PCMCIA at the same time?\n");
		return;
	}

	_pcmspecial = pccard_pcmspecial;
	_pcmspecialclose = pccard_pcmspecialclose;