Do not set DCR_SYNC for the C/Q[68]xx systems.

Thanks to Steve Brown <sbrown@best.com> for working with me to find this.
This commit is contained in:
briggs 1997-04-04 14:54:44 +00:00
parent 64a2cc5d5b
commit 28af7de8a4
2 changed files with 10 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_sn_obio.c,v 1.5 1997/03/30 19:51:49 briggs Exp $ */ /* $NetBSD: if_sn_obio.c,v 1.6 1997/04/04 14:54:44 briggs Exp $ */
/* /*
* Copyright (C) 1997 Allen Briggs * Copyright (C) 1997 Allen Briggs
@ -92,15 +92,14 @@ sn_obio_attach(parent, self, aux)
u_int8_t myaddr[ETHER_ADDR_LEN]; u_int8_t myaddr[ETHER_ADDR_LEN];
int i; int i;
sc->snr_dcr = DCR_SYNC | DCR_WAIT0 | DCR_DMABLOCK | sc->snr_dcr = DCR_WAIT0 | DCR_DMABLOCK | DCR_RFT16 | DCR_TFT16;
DCR_RFT16 | DCR_TFT16;
sc->snr_dcr2 = 0; sc->snr_dcr2 = 0;
switch (current_mac_model->machineid) { switch (current_mac_model->machineid) {
case MACH_MACQ700: /* only tested on Q700 */ case MACH_MACQ700: /* only tested on Q700 */
case MACH_MACQ900: case MACH_MACQ900:
case MACH_MACQ950: case MACH_MACQ950:
sc->snr_dcr |= DCR_LBR | DCR_DW32; sc->snr_dcr |= DCR_SYNC | DCR_LBR | DCR_DW32;
sc->bitmode = 1; sc->bitmode = 1;
break; break;
@ -114,7 +113,7 @@ sn_obio_attach(parent, self, aux)
break; break;
case MACH_MACPB500: case MACH_MACPB500:
sc->snr_dcr |= DCR_LBR | DCR_DW16; sc->snr_dcr |= DCR_SYNC | DCR_LBR | DCR_DW16;
sc->bitmode = 0; sc->bitmode = 0;
break; break;
@ -170,7 +169,7 @@ sn_obio_getaddr(sc, lladdr)
* When the address is read out it must be reversed to ethernet format * When the address is read out it must be reversed to ethernet format
* before use. * before use.
* *
* Apple has been assigned OUI's 00:08:07 and 00:a0:40. All onboard * Apple has been assigned OUI's 08:00:07 and 00:a0:40. All onboard
* ethernet addresses on 68K machines should be in one of these * ethernet addresses on 68K machines should be in one of these
* two ranges. * two ranges.
* *

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_sn_obio.c,v 1.5 1997/03/30 19:51:49 briggs Exp $ */ /* $NetBSD: if_sn_obio.c,v 1.6 1997/04/04 14:54:44 briggs Exp $ */
/* /*
* Copyright (C) 1997 Allen Briggs * Copyright (C) 1997 Allen Briggs
@ -92,15 +92,14 @@ sn_obio_attach(parent, self, aux)
u_int8_t myaddr[ETHER_ADDR_LEN]; u_int8_t myaddr[ETHER_ADDR_LEN];
int i; int i;
sc->snr_dcr = DCR_SYNC | DCR_WAIT0 | DCR_DMABLOCK | sc->snr_dcr = DCR_WAIT0 | DCR_DMABLOCK | DCR_RFT16 | DCR_TFT16;
DCR_RFT16 | DCR_TFT16;
sc->snr_dcr2 = 0; sc->snr_dcr2 = 0;
switch (current_mac_model->machineid) { switch (current_mac_model->machineid) {
case MACH_MACQ700: /* only tested on Q700 */ case MACH_MACQ700: /* only tested on Q700 */
case MACH_MACQ900: case MACH_MACQ900:
case MACH_MACQ950: case MACH_MACQ950:
sc->snr_dcr |= DCR_LBR | DCR_DW32; sc->snr_dcr |= DCR_SYNC | DCR_LBR | DCR_DW32;
sc->bitmode = 1; sc->bitmode = 1;
break; break;
@ -114,7 +113,7 @@ sn_obio_attach(parent, self, aux)
break; break;
case MACH_MACPB500: case MACH_MACPB500:
sc->snr_dcr |= DCR_LBR | DCR_DW16; sc->snr_dcr |= DCR_SYNC | DCR_LBR | DCR_DW16;
sc->bitmode = 0; sc->bitmode = 0;
break; break;
@ -170,7 +169,7 @@ sn_obio_getaddr(sc, lladdr)
* When the address is read out it must be reversed to ethernet format * When the address is read out it must be reversed to ethernet format
* before use. * before use.
* *
* Apple has been assigned OUI's 00:08:07 and 00:a0:40. All onboard * Apple has been assigned OUI's 08:00:07 and 00:a0:40. All onboard
* ethernet addresses on 68K machines should be in one of these * ethernet addresses on 68K machines should be in one of these
* two ranges. * two ranges.
* *