Subject: changing mainbus a bit...
To: None <port-arm@netbsd.org>
From: Chris Gilbert <chris@dokein.co.uk>
List: port-arm
Date: 07/04/2003 01:52:42
Would anyone have any strong objections to the removing of the #if
defined(arm32) and the adding of IO_CONF_BASE from mainbussearch in
mainbus.c, obviously updating the effected kernel config files?

For those wondering I was attempting to get something to attach to
mainbus on the 7500 based simtec board, but couldnt quite figure out why
it kept adding f6000000 to the iobase.

Chris

		if (cf->cf_loc[MAINBUSCF_BASE] == MAINBUSCF_BASE_DEFAULT) {
			mb.mb_iobase = MAINBUSCF_BASE_DEFAULT;
			mb.mb_iosize = 0;
			mb.mb_drq = MAINBUSCF_DACK_DEFAULT;
			mb.mb_irq = MAINBUSCF_IRQ_DEFAULT;
		} else {    
			mb.mb_iobase = cf->cf_loc[MAINBUSCF_BASE];
#if defined(arm32) /* XXX */
			mb.mb_iobase += IO_CONF_BASE;
#endif
			mb.mb_iosize = 0;
			mb.mb_drq = cf->cf_loc[MAINBUSCF_DACK];
			mb.mb_irq = cf->cf_loc[MAINBUSCF_IRQ];
		}