From 535741cd4631fb8e5dad789c6b9ca7b449e12c01 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 9 Oct 2005 20:07:33 +0000 Subject: special case sparc64 for now and lower the Jumbo slots down from 384 to 54. --- sys/dev/pci/if_bgereg.h | 6 +++++- sys/dev/pci/if_tireg.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h index 0fa36393858..9f6618d35c4 100644 --- a/sys/dev/pci/if_bgereg.h +++ b/sys/dev/pci/if_bgereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bgereg.h,v 1.28 2005/09/04 20:28:29 brad Exp $ */ +/* $OpenBSD: if_bgereg.h,v 1.29 2005/10/09 20:07:32 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2209,7 +2209,11 @@ struct vpd_key { #define BGE_SSLOTS 256 #define BGE_MSLOTS 256 +#ifdef __sparc64__ +#define BGE_JSLOTS 54 +#else #define BGE_JSLOTS 384 +#endif #define BGE_RSLOTS 256 #define BGE_JRAWLEN (ETHER_MAX_LEN_JUMBO + ETHER_ALIGN) diff --git a/sys/dev/pci/if_tireg.h b/sys/dev/pci/if_tireg.h index 20975f57ce1..12ccbc3c7be 100644 --- a/sys/dev/pci/if_tireg.h +++ b/sys/dev/pci/if_tireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tireg.h,v 1.19 2005/10/09 19:41:11 brad Exp $ */ +/* $OpenBSD: if_tireg.h,v 1.20 2005/10/09 20:07:32 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -981,7 +981,11 @@ struct ti_event_desc { #define TI_SSLOTS 256 #define TI_MSLOTS 256 +#ifdef __sparc64__ +#define TI_JSLOTS 54 +#else #define TI_JSLOTS 384 +#endif #define TI_JRAWLEN (ETHER_MAX_LEN_JUMBO + ETHER_ALIGN) #define TI_JLEN (TI_JRAWLEN + (sizeof(u_int64_t) - \ -- cgit v1.2.3