~kris/9p

9hist

ba1dce5cab0e216c904e5e7dd4b58d8e572e1542 — David du Colombier 24 years ago 2a7904a
Plan 9 from Bell Labs 2001-09-25
5 files changed, 7 insertions(+), 6 deletions(-)

M pc/devarch.c
M pc/etherelnk3.c
M pc/pci.c
M port/auth.c
M port/devcons.c
M pc/devarch.c => pc/devarch.c +1 -0
@@ 107,6 107,7 @@ ioinit(void)

	// a dummy entry at 2^16
	ioalloc(0x10000, 1, 0, "dummy");
	ioalloc(0x1000, 1, 0, "dummy");
}

// Reserve a range to be ioalloced later.  This is in particular useful for exchangable cards, such

M pc/etherelnk3.c => pc/etherelnk3.c +2 -2
@@ 1491,8 1491,8 @@ tcm59Xpci(void)
		if(!(p->mem[0].bar & 0x01))
			continue;
		port = p->mem[0].bar & ~0x01;
		print("tcm59Xpci: Allocating port %X\n", port);
		if(ioalloc(port, p->mem[0].size, 0, "tcm59Xpci") < 0){
		if((port = ioalloc((port == 0)? -1: port,  p->mem[0].size, 
					  0, "tcm59Xpci")) < 0){
			print("tcm59Xpci: port 0x%uX in use\n", port);
			continue;
		}

M pc/pci.c => pc/pci.c +2 -2
@@ 575,7 575,7 @@ pcicfginit(void)
					/* reset the cardbus */
					bcr = pcicfgr16(pci, PciBCR);
					pcicfgw16(pci, PciBCR, 0x40 | bcr);
					pcicfgw16(pci, PciBCR, bcr);
					delay(50);
				}
				pci = pci->link;
			}


@@ 851,7 851,7 @@ pcilhinv(Pcidev* p)
	}
	while(p != nil) {
		if(p->bridge != nil)
			pcihinv(p->bridge);
			pcilhinv(p->bridge);
		p = p->link;
	}	
}

M port/auth.c => port/auth.c +1 -1
@@ 5,7 5,7 @@
#include	"fns.h"
#include	"../port/error.h"

#include	<auth.h>
#include	<authsrv.h>

char	*eve;
char	evekey[DESKEYLEN];

M port/devcons.c => port/devcons.c +1 -1
@@ 5,7 5,7 @@
#include	"fns.h"
#include	"../port/error.h"

#include	<auth.h>
#include	<authsrv.h>

void	(*consdebug)(void) = nil;
void	(*screenputs)(char*, int) = nil;