~kris/9p

9hist

f8d781abfa70f464ada3212f4f1a7d14b5aa74b7 — David du Colombier 25 years ago 689e8fd
Plan 9 from Bell Labs 2001-05-19
2 files changed, 1 insertions(+), 32 deletions(-)

M pc/devi82365.c
M port/portfns.h
M pc/devi82365.c => pc/devi82365.c +0 -31
@@ 97,18 97,6 @@ enum

typedef struct I82365	I82365;

enum {
	Ricoh_vid = 0x1180,
	Ricoh_476_did = 0x476,
};

static struct {
	ushort	r_did;
	char		*r_name;
} variant[] = {
{	Ricoh_476_did,	"Ricoh 476 PCI/Cardbus bridge",	}
};

/* a controller */
enum
{


@@ 593,7 581,6 @@ static void
i82365reset(void)
{
	static int already;
	Pcidev *p;
	int i, j;
	I82365 *cp;
	PCMslot *pp;


@@ 603,24 590,6 @@ i82365reset(void)
		return;
	already = 1;

	/* First find Ricoh controllers on the PCI bus */
	p = nil;
	while ((p = pcimatch(p, Ricoh_vid, 0)) != nil) {
		for (i = 0; i != nelem(variant); i++)
			if (p->did == variant[i].r_did)
				break;
		if (i == nelem(variant)) {
			print("No match on %.4X/%.4X\n", p->vid, p->did);
			continue;
		}

		print("#y: %s, intl %d\n", variant[i].r_name, p->intl);

		for (i = 0; i != 0xE4 / 4; i++)
			iprint("pci[%.2X] %.8ulX\n", i * 4, pcicfgr32(p, i * 4));
		break;
	}

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

M port/portfns.h => port/portfns.h +1 -1
@@ 7,7 7,7 @@ void		alarmkproc(void*);
Block*		allocb(int);
int		anyhigher(void);
int		anyready(void);
#define	assert(x)	if(x){}else panic("assert(x) failed");
#define	assert(x)	if(x){}else panic("assert(x) failed")
void		_assert(char*);
Image*		attachimage(int, Chan*, ulong, ulong);
long		authcheck(Chan*, char*, int);