Subject: Re: Ethernet on LC630???
To: Geoff Roberts <gjr01@uow.edu.au>
From: Michael R Zucca <mrz5149@cs.rit.edu>
List: port-mac68k
Date: 02/13/1998 11:04:35
>    I wish to setup ethernet on the LC630.   As I understand it I could
> either use the COMMs slot or a card in the PDS slot.   Does MacBSD support
> one or both of these?
> 
>    Is there any advantage in using one or the other?   I guess if I use the
> COMMs slot, at least I have a spare slot for a graphics card...

I think either type will work. However, you'll need a patch to the kernel
that I just put out that turns off video interrupts.

I'm going to submit it so it will enter the official kernel source tree soon.
In that case you'll need to wait for a new snapshot with the patch applied
to it or you can roll your own kernel with the following diff:

*** grf_iv.c.old	Sat Jan 24 11:58:32 1998
--- grf_iv.c	Mon Feb  9 00:39:12 1998
***************
*** 70,75 ****
--- 70,76 ----
  
  #define QUADRA_DAFB_BASE	0xF9800000
  #define CIVIC_CONTROL_BASE	0x50036000
+ #define VALKYRIE_CONTROL_BASE	0x50f2A000
  
  static int
  grfiv_match(parent, cf, aux)
***************
*** 104,111 ****
--- 105,114 ----
  
  		sense = (bus_space_read_4(oa->oa_tag, bsh, 0x1C) & 7);
  
+ 		#if 0
  		if (sense == 0)
  			found = 0;
+ 		#endif
  
  		/* Set "Turbo SCSI" configuration to default */
  		bus_space_write_4(oa->oa_tag, bsh, 0x24, 0x1d1); /* ch0 */
***************
*** 136,141 ****
--- 139,154 ----
  		break;
  
  	case MACH_CLASSQ2:
+ 		if(current_mac_model->machineid == MACH_MACQ630) {
+ 			base = VALKYRIE_CONTROL_BASE;
+ 
+ 			if (bus_space_map(oa->oa_tag, base, 0x40, 0, &bsh)) {
+ 				panic("failed to map space for Valkyrie regs.\n");
+ 			}
+ 			
+ 			/* Disable interrupts */
+ 			bus_space_write_1(oa->oa_tag, bsh, 0x18, 0x1);
+ 		}
  		break;
  
  	default: